:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203a35;background:#f4f6f4;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #cc8b18;outline-offset:3px}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid #e1e7e2;padding:40px 26px;display:flex;flex-direction:column;gap:20px}.brand{font-size:37px;text-decoration:none;font-weight:750;letter-spacing:-2px;display:flex;align-items:center;gap:8px}.brand-mark{background:#173b35;color:#fff;width:40px;height:43px;display:grid;place-items:center;border-radius:12px;letter-spacing:-2px;font-size:33px}.brand-dot{color:#d39826;margin-left:-7px}.side-label,.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;color:#687a74}.side-label{margin-top:36px}nav{display:grid;gap:9px}nav a{display:flex;gap:15px;align-items:center;padding:14px 16px;text-decoration:none;border-radius:11px;color:#52665f;font-weight:550}nav a span{font-size:22px;width:23px;text-align:center}nav a.active{background:#173b35;color:#fff}.machine{margin-top:auto;background:#f3f6f2;border-radius:16px;padding:20px}.pill{display:inline-block;font-size:12px;letter-spacing:1px;font-weight:700;border:1px solid #cdd8d1;padding:5px 8px;border-radius:5px}.machine strong{display:block;font-size:20px;line-height:1.4;margin:18px 0}.machine p{font-size:14px;line-height:1.8;color:#60746a;margin:0}.sidebar small{font-size:12px;color:#6c7c75}main{margin-left:242px;padding:44px clamp(24px,5vw,80px);max-width:1550px}header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:32px}h1{font-size:34px;letter-spacing:-1.1px;margin:10px 0 0}h2{font-size:23px;letter-spacing:-.5px;margin:0 0 18px}h3{font-size:18px;margin:0 0 9px}p{line-height:1.6}.primary{background:#173b35;color:white;border:0;padding:13px 20px;border-radius:10px;font-weight:650}.secondary{background:#fff;color:#173b35;border:1px solid #cfd9d2;padding:10px 15px;border-radius:9px}.danger{color:#a03727;border-color:#dcaea7}.subtle{color:#62766c}.hero{background:#173b35;color:#fff;border-radius:22px;padding:32px;display:grid;grid-template-columns:1fr auto;gap:24px;overflow:hidden}.hero .eyebrow{color:#b9ccc2}.hero h2{font-size:32px;margin:13px 0 10px}.hero p{color:#cbd9d1;margin:0}.hero .pill{color:#f4d48c;border-color:#658072}.countdown{min-width:160px;text-align:center;align-self:center;border-left:1px solid #537167;padding-left:28px}.countdown b{display:block;font-size:70px;font-weight:550;line-height:1.1;letter-spacing:-4px}.countdown span{font-size:14px;color:#d4e0d7}.progress-label{display:flex;justify-content:space-between;font-size:14px;color:#cedcd2;margin:27px 0 9px}progress{width:100%;height:7px;border:none;display:block;border-radius:5px;overflow:hidden;background:#4b665b}progress::-webkit-progress-bar{background:#4b665b}progress::-webkit-progress-value{background:#efc569}progress::-moz-progress-bar{background:#efc569}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 32px}.stat{background:#fff;border:1px solid #e2e8e2;border-radius:15px;padding:21px}.stat .subtle{font-size:14px}.stat b{display:block;font-size:28px;margin:9px 0 4px;letter-spacing:-1px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 16px}.section-heading h2{margin:0}.badge{font-size:13px;padding:5px 9px;border-radius:6px;background:#f8edce;color:#76540b;white-space:nowrap}.grid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}.card{background:#fff;border:1px solid #e0e7e1;border-radius:17px;padding:25px;margin-bottom:18px}.task{display:flex;gap:15px;padding:21px 0;border-bottom:1px solid #edf0ed;align-items:flex-start}.task:last-child{border-bottom:0}.task-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f3efd9;color:#876d17;flex-shrink:0}.task.done .task-icon{background:#e2efe5;color:#236243}.task-main{flex:1;min-width:0}.task h3{font-size:16px;line-height:1.4;margin:0 0 5px}.task p{font-size:14px;color:#62766c;margin:8px 0}.task time{font-size:14px;color:#5f7169}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.actions button{font-size:14px;padding:9px 12px}.empty{max-width:660px;margin:50px auto;text-align:center;padding:42px}.empty .empty-symbol{font-size:48px;color:#bc871c}.empty h2{font-size:29px;margin:20px 0 12px}.empty p{color:#5c7066;margin-bottom:25px}.timeline{border-left:2px solid #d9e4db;padding-left:20px;margin:22px 0 0 6px}.timeline p{font-size:14px}.timeline strong{display:block}.timeline>div{margin-bottom:23px}.notice{background:#f7f0dd;border:1px solid #e7d9b8;color:#71582c;border-radius:12px;padding:16px;line-height:1.5;font-size:14px}.record{padding:17px 0;border-bottom:1px solid #e8eee8}.record:last-child{border:0}.record p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.record small{color:#5c7066;font-size:14px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar select{max-width:100%}label{display:block;font-size:14px;font-weight:600;margin:17px 0 7px}input,select,textarea{width:100%;border:1px solid #c9d5cc;border-radius:9px;background:#fff;padding:12px;color:#203a35}textarea{resize:vertical;min-height:85px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog{width:min(540px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:0;border-radius:20px;padding:28px;color:#203a35;box-shadow:0 24px 90px #102b3540}dialog::backdrop{background:#112d2966;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.icon-button{border:0;background:transparent;font-size:28px;color:#52675e}.form-end{display:flex;justify-content:flex-end;margin-top:25px}.help{font-size:13px;color:#5b7065;line-height:1.6}.error{color:#a62d28;font-size:14px;line-height:1.5}footer{color:#78877e;font-size:12px;line-height:1.6;margin:35px 0 10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173b35;color:#fff;border-radius:11px;padding:15px 23px;box-shadow:0 6px 24px #163b3530;z-index:9;max-width:90vw}button:disabled{opacity:.5;cursor:wait}.setting-row{padding:18px 0;border-bottom:1px solid #e2e9e2}.setting-row:last-child{border:0}.setting-row p{font-size:14px;color:#61736a}.end-summary{font-size:16px;line-height:1.7}.offline{padding:16px;border-radius:12px;background:#f8e3dc;color:#813725}a.inline{font-weight:600;color:#286352}.link-button{border:0;background:transparent;color:#245e4e;text-decoration:underline;padding:10px 0}.record-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:1000px){.sidebar{width:205px;padding:30px 18px}main{margin-left:205px;padding:30px 26px}.grid{grid-template-columns:1fr}.hero{padding:25px}.countdown{min-width:120px}.countdown b{font-size:55px}}
@media(max-width:700px){.sidebar{inset:auto 0 0;width:100%;height:auto;z-index:5;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid #dbe5db;background:#fff}.brand,.side-label,.machine,.sidebar small{display:none}nav{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}nav a{display:flex;flex-direction:column;gap:4px;font-size:12px;padding:7px 4px}nav a span{font-size:20px}main{margin:0;padding:26px 18px 110px}header{margin-bottom:24px}h1{font-size:29px}.eyebrow{font-size:11px;letter-spacing:1px}.primary{padding:12px 15px}header .primary{font-size:14px}.hero{padding:24px 21px;gap:14px;grid-template-columns:1fr auto;border-radius:18px}.hero h2{font-size:25px}.hero p{font-size:14px}.countdown{min-width:84px;padding-left:15px}.countdown b{font-size:47px}.countdown span{font-size:12px}.stats{gap:9px;margin:14px 0 27px}.stat{padding:15px 11px}.stat b{font-size:23px}.stat .subtle{font-size:12px}.stat small{font-size:12px}.card{padding:19px}.empty{margin:25px auto;padding:25px 15px}.empty h2{font-size:25px}.section-heading h2{font-size:21px}#toast{bottom:100px}.fields{gap:9px}dialog{padding:22px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,opacity .15s}.card,.hero{animation:appear .25s ease-out}@keyframes appear{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

.care-sequence{margin-top:34px}.care-sequence>.subtle{margin:0 0 22px;max-width:760px}.sequence-start{display:flex;gap:15px;justify-content:space-between;flex-wrap:wrap;background:#e4ece5;border:1px solid #cfddd0;padding:17px 21px;border-radius:12px;margin-bottom:22px;font-size:14px}.sequence-list{list-style:none;padding:0;margin:0}.sequence-step{position:relative;display:flex;gap:18px;padding:0 0 22px;isolation:isolate}.sequence-step:not(:last-child)::before{content:"";position:absolute;left:19px;top:40px;bottom:0;width:2px;background:#d8e3da;z-index:-1}.sequence-number{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;border:1px solid #cbd9cf;background:#f4f6f4;font-weight:650;font-size:14px}.sequence-body{min-width:0;flex:1;background:#fff;border:1px solid #dce5dd;border-radius:14px;padding:20px 23px}.sequence-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.sequence-date{font-size:14px;color:#4d6758;font-weight:600}.sequence-status{font-size:13px;color:#546b5e;background:#edf2ec;padding:5px 9px;border-radius:6px}.sequence-body h3{margin:0 0 7px;font-size:18px;line-height:1.4}.sequence-body p{font-size:14px;margin:0;color:#52695b;line-height:1.65}.sequence-body small{display:block;margin-top:12px;color:#497055;font-size:13px}.sequence-body>.inline{display:inline-block;margin-top:12px;font-size:14px}.sequence-step.pending .sequence-number{background:#f4d788;border-color:#e6c46d;color:#67490d}.sequence-step.pending .sequence-status{background:#fbebbd;color:#735416}.sequence-step.pending .sequence-body{border-color:#dec785}.sequence-step.completed .sequence-number{background:#173b35;border-color:#173b35;color:#fff}.sequence-step.completed .sequence-status{background:#dfeddf;color:#2e6340}.sequence-step.conditional .sequence-body{border-style:dashed;background:transparent}.sequence-step.cancelled .sequence-status{background:#edeceb;color:#696560}.sequence-step .actions{margin-top:15px}
@media(max-width:700px){.care-sequence>.section-heading{align-items:flex-start;flex-direction:column;gap:8px}.sequence-step{gap:11px}.sequence-number{width:32px;height:32px;flex-basis:32px}.sequence-step:not(:last-child)::before{left:15px;top:32px}.sequence-body{padding:16px}.sequence-top{gap:8px}.sequence-body h3{font-size:16px}.sequence-body .actions button{font-size:13px;padding:9px}.sequence-start{gap:7px}}

nav a span svg{width:21px;height:21px;display:block;margin:auto}a.secondary{display:inline-block;text-decoration:none}.actions a.secondary{font-size:14px;padding:9px 12px}.notice+.notice{margin-top:16px}.notice p{margin:8px 0 0}
fieldset{border:0;margin:0;padding:0;min-width:0}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}.card-heading h2{margin:0}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:16px 0;border-bottom:1px solid #edf0ed;font-weight:inherit;font-size:inherit;cursor:pointer}.switch-row:last-of-type{border-bottom:0}.switch-row strong{display:block;font-size:16px;font-weight:650}.switch-row small{display:block;font-size:14px;color:#62766c;line-height:1.5;margin-top:3px}
.switch-row input{position:absolute;opacity:0;width:1px;height:1px}.switch-row i{flex:0 0 46px;height:28px;border-radius:14px;background:#cfd9d2;position:relative;transition:background .15s}.switch-row i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #10302b40;transition:transform .15s}.switch-row input:checked+i{background:#173b35}.switch-row input:checked+i::after{transform:translateX(18px)}.switch-row input:focus-visible+i{outline:3px solid #cc8b18;outline-offset:3px}
.time-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:420px}.time-fields label{margin-top:10px}fieldset:disabled .card{opacity:.55}fieldset:disabled .switch-row{cursor:not-allowed}
html.ptr-on,html.ptr-on body{overscroll-behavior-y:none}#ptr{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 14px);z-index:8;width:42px;height:42px;margin-left:-21px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#173b35;font-size:22px;font-weight:700;box-shadow:0 8px 20px -8px #10302b80,0 0 0 1px #dbe5db;transform:translateY(-60px);opacity:0;pointer-events:none;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s,background .15s,color .15s}#ptr.drag{transition:background .15s,color .15s}#ptr.ready,#ptr.busy{background:#173b35;color:#fff}#ptr span{display:block;line-height:1}#ptr.busy span{animation:ptr-spin .8s linear infinite}@keyframes ptr-spin{to{transform:rotate(360deg)}}
.new-version{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom,0px));z-index:10;display:flex;align-items:center;gap:14px;padding:8px 8px 8px 18px;border-radius:13px;background:#173b35;color:#fff;font-weight:600;font-size:15px;box-shadow:0 16px 36px -14px #10302b99;transform:translate(-50%,20px);opacity:0;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .25s;width:max-content;max-width:calc(100vw - 32px)}.new-version.show{transform:translate(-50%,0);opacity:1}.new-version button{background:#f4d488;color:#173b35;border:0;border-radius:9px;padding:10px 14px;font-weight:700;white-space:nowrap}
@media(max-width:700px){.new-version{bottom:calc(92px + env(safe-area-inset-bottom,0px));font-size:14px}.switch-row{gap:14px}.time-fields{gap:9px}}
@media(prefers-reduced-motion:reduce){#ptr,.new-version{transition:opacity .2s}#ptr.busy span{animation-duration:2.4s}}
