@font-face{font-family:Diary;src:local('Avenir Next'),local('Segoe UI');font-display:swap}
:root{--bg:#f5f7f7;--paper:#fff;--ink:#223b3c;--muted:#697c7d;--teal:#16796d;--teal-dark:#105f56;--light:#eaf5f1;--line:#e3eaea;--blue:#587fba;--orange:#af763b;--rose:#b56275;--purple:#8372a5;--radius:18px;--shadow:0 4px 22px #284e4c05}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Diary,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #e7b76b;outline-offset:4px}a{color:var(--teal)}svg{flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.2;font-weight:650}h2{font-size:19px;letter-spacing:-.4px;font-weight:650}h3{font-size:16px;font-weight:650}p{color:var(--muted)}small{font-size:12px}button{border:0;background:none}input,select,textarea{width:100%;border:1px solid #d5e1df;background:#fff;color:var(--ink);border-radius:10px;padding:11px 13px;min-height:46px}input:focus,select:focus,textarea:focus{outline:2px solid #4f9b8b;outline-offset:1px}textarea{resize:vertical;min-height:80px}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--teal)}label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}input[type=date]{min-width:0}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.skip{position:fixed;left:10px;top:-80px;z-index:40;background:#fff;padding:14px;border-radius:9px}.skip:focus{top:10px}.initial{height:100vh;display:grid;place-content:center;gap:12px;font-size:30px;color:var(--teal)}.initial span{font-size:14px;color:var(--muted)}.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:34px 20px 22px;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 9px;text-decoration:none;color:var(--ink)}.brand-icon{width:40px;height:44px;background:var(--teal);color:#fff;border-radius:13px;display:grid;place-items:center}.brand-icon svg{width:27px;height:27px}.brand b{font-size:19px;letter-spacing:-.6px;line-height:1.15;display:block}.brand small{font-size:11px;display:block;color:var(--muted);margin-top:4px;letter-spacing:.2px}.nav-group{margin-top:44px}.nav-caption{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:#8a9998;margin:0 14px 11px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:47px;padding:12px 14px;border-radius:10px;margin-bottom:6px;color:var(--muted);font-size:13px;font-weight:550}.nav-item:hover{background:#f4f8f7}.nav-item.active{background:var(--light);color:var(--teal);font-weight:650}.nav-item .icon{width:19px;height:19px}.mini-badge{font-size:9px;padding:2px 5px;border:1px solid #d4e0dd;border-radius:5px;letter-spacing:.4px;margin-left:auto}.sidebar-bottom{margin-top:auto}.sidebar-note{background:#f7f9f8;border:1px solid #edf1ef;border-radius:13px;padding:14px;margin:28px 0 15px}.sidebar-note .icon{color:var(--teal);margin-bottom:8px}.sidebar-note strong{display:block;font-size:12px;margin-bottom:5px}.sidebar-note p{font-size:11px;line-height:1.6}.text-button{padding:0;color:var(--teal);font-weight:600;font-size:12px;display:inline-flex;gap:6px;align-items:center}.sidebar-bottom .text-button{padding:5px 10px}.workspace{min-width:0}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#fafcfc}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.breadcrumb .icon{width:16px;height:16px}.topbar-right{display:flex;align-items:center;gap:18px}.connection{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;background:#67a590;border-radius:50%;display:inline-block}.patient-pill{border-left:1px solid var(--line);padding-left:18px;display:flex;align-items:center;gap:10px;text-align:left;font-size:11px}.avatar{background:#e4ece9;color:var(--teal);width:33px;height:33px;border-radius:50%;display:grid;place-items:center}.patient-pill b{display:block;font-size:11px;font-family:ui-monospace,monospace;letter-spacing:.3px}.patient-pill small{font-size:10px;color:var(--muted)}.content{max-width:1320px;margin:0 auto;padding:30px 42px 35px}.demo-strip{display:flex;align-items:center;gap:9px;color:#7d735c;background:#f5f1e7;border:1px solid #ece5d6;border-radius:9px;padding:8px 12px;font-size:11px;margin-bottom:28px}.demo-strip .icon{width:15px;height:15px}.demo-strip button{margin-left:auto;text-decoration:underline;color:inherit;font-size:11px;white-space:nowrap}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;color:var(--teal);text-transform:uppercase;letter-spacing:1.8px;font-weight:600;margin-bottom:9px}.subtitle{margin-top:10px;font-size:13px}.day-control{display:flex;align-items:center;gap:8px}.day-control input{width:151px;min-height:39px;padding:7px 10px;font-size:12px;cursor:pointer}.icon-button{height:36px;width:36px;border:1px solid var(--line);background:white;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.icon-button:hover{background:var(--light)}.icon-button .icon{width:16px;height:16px}.period-caption{font-size:11px;color:var(--muted);text-align:right;margin-top:7px}.hero{padding:24px 27px;border-radius:18px;background:#e7f1ed;border:1px solid #ddebe4;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;overflow:hidden;position:relative}.hero h2{font-size:23px;font-weight:600;letter-spacing:-.65px;margin-bottom:8px}.hero p{font-size:12px;max-width:440px;color:#5c7a70;line-height:1.7}.hero-drawing{width:160px;height:100px;flex-shrink:0;color:#458b75}.hero-note{margin-top:12px;display:flex;gap:6px;align-items:center;color:var(--teal);font-size:10px}.hero-note .icon{width:13px;height:13px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px 21px;box-shadow:var(--shadow)}.stat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}.stat-icon{width:31px;height:31px;border-radius:9px;background:var(--light);color:var(--teal);display:grid;place-items:center}.stat-icon .icon{width:17px;height:17px}.stat-icon.blue{background:#edf2fa;color:var(--blue)}.stat-icon.neutral{background:#f1f4f3;color:#6e8b7e}.stat-value{font-size:31px;font-weight:600;letter-spacing:-.8px;margin-top:8px;line-height:1.25}.stat-value span{font-size:13px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:5px}.stat-foot{font-size:10px;color:var(--muted);margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(255px,1fr);gap:22px;align-items:start}.stack{display:grid;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-body{padding:22px}.card-head{padding:21px 22px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-head h2{font-size:16px}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:10px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}.quick{border:1px solid var(--line);border-radius:13px;padding:16px 5px 13px;display:flex;align-items:center;flex-direction:column;gap:12px;font-size:12px;font-weight:600;transition:transform .15s,border-color .15s,background .15s}.quick:hover{transform:translateY(-2px);border-color:#aacbbf;background:#f7fbf8}.quick-icon{height:40px;width:40px;display:grid;place-items:center;border-radius:50%;background:var(--light);color:var(--teal)}.quick-icon.blue{color:var(--blue);background:#eef2fa}.quick-icon.orange{color:var(--orange);background:#fbf3e9}.quick-icon.purple{color:var(--purple);background:#f2eff7}.quick-note{font-size:10px;color:var(--muted);margin-top:17px;display:flex;align-items:center;gap:6px}.quick-note .icon{width:13px;height:13px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;min-height:43px;border-radius:10px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s}.primary{background:var(--teal);color:#fff}.primary:hover{background:var(--teal-dark)}.secondary{border:1px solid var(--line);background:#fff}.secondary:hover{background:#f4f8f6}.danger{background:#faeded;color:#a44040;border:1px solid #efd1d1}.primary .icon,.secondary .icon{width:17px;height:17px}.full{width:100%}.timeline{padding:9px 22px 6px}.event{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #edf1f0}.event:last-child{border:0}.event-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--light);color:var(--teal);flex-shrink:0}.event-icon.blue{background:#edf2fa;color:var(--blue)}.event-icon.orange{background:#fbf3e9;color:var(--orange)}.event-icon.rose{background:#f9edf0;color:var(--rose)}.event-icon.purple{background:#f2eff7;color:var(--purple)}.event-icon .icon{width:17px;height:17px}.event-detail{min-width:0;flex:1}.event-title{font-size:12px;font-weight:600}.event-subtitle{font-size:10px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.event-value{text-align:right;font-size:13px;font-weight:600;white-space:nowrap}.event-value time{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:3px}.edit-btn{color:#859794;padding:7px;margin-right:-9px;border-radius:7px}.edit-btn:hover{background:#eef4f1;color:var(--teal)}.edit-btn .icon{width:15px;height:15px}.card-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.chart-row{margin-top:19px}.chart-label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:7px}.chart-label b{font-weight:600}.bar{background:#f1f5f3;height:9px;border-radius:10px;overflow:hidden}.bar span{display:block;height:100%;background:#72aa97;border-radius:10px;min-width:0}.bar.blue span{background:#87a6d3}.balance-total{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #dce6e2;margin-top:22px;padding-top:17px;font-size:11px;color:var(--muted)}.balance-total strong{color:var(--ink);font-size:19px;font-weight:600}.balance-caption{font-size:10px;color:var(--muted);line-height:1.7;margin-top:13px}.code-card{background:#fff}.code-line{font-family:ui-monospace,monospace;letter-spacing:1.3px;font-size:19px;font-weight:600;margin:17px 0 8px}.code-card .secondary{margin-top:16px}.hint-card{padding:1px 4px;display:flex;gap:12px;color:var(--muted)}.hint-card .icon{width:19px;height:19px;margin-top:3px;color:#78958a}.hint-card h3{font-size:12px;color:var(--ink);margin-bottom:6px}.hint-card p{font-size:11px;line-height:1.7}.hint-card button{margin-top:9px}.page-footer{display:flex;justify-content:space-between;gap:10px;color:#8b9a97;font-size:10px;margin-top:35px}.page-footer button{font-size:10px;color:inherit}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 7px;font-size:9px;white-space:nowrap;background:#f1f4f3;color:#748780;font-weight:550}.badge.ok{background:#eaf4ee;color:#417b5b}.badge.warn{background:#faf2e6;color:#936b31}.badge.blue{background:#edf2fa;color:#5c7eae}.empty{padding:38px 22px;text-align:center}.empty .icon{width:31px;height:31px;color:#91afa3;margin-bottom:12px}.empty h3{font-size:14px;margin-bottom:6px}.empty p{font-size:12px;max-width:320px;margin:0 auto 17px}.notice{background:#f6f4ec;border:1px solid #e9e3d4;border-radius:11px;padding:13px 15px;color:#82714f;font-size:12px;margin-bottom:20px}.notice.good{background:#edf5f0;color:#527465;border-color:#dbe9df}.toolbar{display:flex;gap:10px;align-items:center;margin:18px 0}.toolbar input{flex:1;min-width:140px}.toolbar select{width:160px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:600;color:var(--muted);background:#f9fbfa;padding:13px 18px;white-space:nowrap}td{padding:17px 18px;border-top:1px solid var(--line)}td b{font-size:12px;font-weight:600}td small{display:block;margin-top:3px;font-size:10px;color:var(--muted)}tr.selected td{background:#f2f8f5}.table-link{color:var(--teal);font-family:ui-monospace,monospace;font-size:12px;font-weight:600;text-align:left;padding:5px 0}.table-link:hover{text-decoration:underline}.staff-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.staff-summary .stat{padding:16px 19px}.staff-summary .stat-value{font-size:25px}.staff-detail{margin-top:23px}.detail-header{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:19px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap}.mapping{display:flex;gap:22px;flex-wrap:wrap;background:#f8faf9;border-radius:10px;padding:13px 16px;font-size:12px;margin-top:14px}.mapping span{color:var(--muted)}.mapping b{margin-left:5px;font-weight:600}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.help-number{width:35px;height:35px;background:var(--light);color:var(--teal);display:grid;place-items:center;border-radius:10px;margin-bottom:17px;font-size:14px;font-weight:600}.help-grid h3{font-size:15px;margin-bottom:10px}.help-grid p{font-size:12px;line-height:1.8}.faq{margin-top:22px}.faq details{border-bottom:1px solid var(--line);padding:17px 0}.faq details:last-child{border:0}.faq summary{font-size:13px;font-weight:600;cursor:pointer}.faq p{font-size:12px;margin-top:11px;line-height:1.8;max-width:730px}.bottom-nav{display:none}.history-filter{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.chip{font-size:11px;border:1px solid var(--line);padding:8px 12px;border-radius:8px;background:white}.chip.active{background:var(--light);border-color:#b9d8cd;color:var(--teal)}.pill-count{font-size:10px;padding:3px 7px;background:#f1f5f3;border-radius:5px;color:var(--muted);margin-left:8px}.login{max-width:460px;margin:55px auto}.login h1{font-size:28px;margin:14px 0}.login .brand{padding:0}.login .card-body{padding:30px}.login p{margin-bottom:23px;font-size:13px}.inline-link{display:inline-block;color:var(--teal);font-size:12px;margin-top:15px}.login .demo-strip{margin:20px 0 0}.alert{background:#fff1ee;border:1px solid #eccdc6;color:#9d4f3c;border-radius:9px;font-size:12px;padding:12px 14px;margin:12px 0}.error[hidden]{display:none!important}
dialog{width:min(540px,calc(100% - 32px));max-height:90dvh;border:0;border-radius:20px;padding:0;box-shadow:0 20px 100px #1c343942;color:var(--ink);background:#fff;overscroll-behavior:contain}dialog::backdrop{background:#18383560;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:23px 25px 19px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{font-size:20px}.modal-body{padding:22px 25px 25px}.modal-body p{font-size:12px;line-height:1.8}.modal-head .icon-button{border:0;background:#f1f5f3}.field{margin-top:18px}.field:first-child{margin-top:0}.field-hint{color:var(--muted);font-size:10px;line-height:1.6;margin-top:6px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.type-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:19px}.type-tab{font-size:10px;padding:7px 9px;border:1px solid var(--line);border-radius:7px}.type-tab.active{color:var(--teal);background:var(--light);border-color:#b4d4c8}.big-input-wrap{position:relative}.big-input-wrap input{font-size:30px;font-weight:600;letter-spacing:-.5px;padding:13px 65px 13px 17px;height:68px}.unit{position:absolute;right:20px;top:20px;color:var(--muted);font-size:16px}.presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.preset{font-size:12px;padding:7px 13px;background:#f3f7f5;border:1px solid #e2eae6;border-radius:8px}.checkbox-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:400;margin-top:12px;cursor:pointer}.modal-actions{display:flex;gap:9px;margin-top:23px}.modal-actions .primary{flex:1;min-height:47px;font-size:13px}.modal-actions .secondary{min-height:47px}.modal-note{font-size:10px;color:var(--muted);text-align:center;margin-top:12px}.delete-action{color:#ab5d58;font-size:11px;text-decoration:underline;padding:12px 0 0}.pain-options{display:grid;grid-template-columns:repeat(11,1fr);gap:3px;margin-top:10px}.pain-options button{padding:9px 0;border-radius:6px;border:1px solid var(--line);font-size:12px}.pain-options button.active{background:var(--teal);color:#fff;border-color:var(--teal)}.scale-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:8px}.qr-box{width:222px;height:222px;border:1px solid var(--line);padding:10px;border-radius:12px;display:grid;place-items:center;margin:19px auto}.qr-box svg{width:200px;height:200px;max-width:100%;max-height:100%}.center{text-align:center}.qr-code{font-family:ui-monospace,monospace;letter-spacing:1px;font-size:20px;font-weight:650}.link-field{font-size:11px;background:#f6f9f7;margin-top:16px}.audit-row{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.audit-row time{display:block;font-size:10px;color:var(--muted);margin-top:4px}.audit-detail{font-size:10px;color:var(--muted);margin-top:5px}.privacy-list{padding-left:18px;margin:14px 0;color:var(--muted);font-size:12px;line-height:1.8}.privacy-list li{margin:10px 0}.divider{height:1px;background:var(--line);margin:22px 0}.print-code{max-width:380px;margin:auto;text-align:center}.print-code h1{font-size:26px}.print-code .qr-box{width:260px;height:260px}.print-code .qr-box svg{width:240px;height:240px}.print-code p{margin:14px 0}.print-code small{display:block;word-break:break-all}.warning{color:#946d37}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);background:#244c42;color:white;border-radius:12px;padding:13px 20px;font-size:12px;box-shadow:0 5px 30px #173f362a;z-index:100;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;max-width:calc(100vw - 30px)}#toast.show{opacity:1;transform:translate(-50%,0)}#print-area{display:none}
@media(min-width:1450px){.content{padding-top:38px}.hero{padding:28px 30px}.hero-drawing{height:115px}.stat{padding:23px}.sidebar{padding-top:36px}}
@media(max-width:1150px){.layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.brand b{font-size:17px}.content{padding:27px}.topbar{padding:0 27px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:17px}.quick-grid{gap:6px}.quick{font-size:10px}.card-body{padding:18px}.card-head{padding:18px 18px 0}.timeline{padding-left:18px;padding-right:18px}.page-heading{align-items:start}.hero-drawing{width:125px}.hero h2{font-size:21px}.stat{padding:17px}.stat-value{font-size:29px}}
@media(max-width:940px){.sidebar{width:76px;padding:26px 10px}.layout{grid-template-columns:76px minmax(0,1fr)}.brand{padding:0;justify-content:center}.brand>span:last-child,.nav-caption,.nav-item>span,.sidebar-note,.sidebar-bottom .text-button,.nav-item>.mini-badge{display:none}.nav-item{justify-content:center;padding:13px}.nav-item .icon{width:21px;height:21px}.nav-group{margin-top:30px}.sidebar-bottom{display:none}.topbar{height:68px}.staff-summary{gap:9px}.staff-summary .stat{padding:13px}.help-grid{gap:12px}.demo-strip{font-size:10px}}
@media(max-width:720px){h1{font-size:29px}.layout{display:block}.sidebar{display:none}.topbar{padding:0 20px;height:66px}.breadcrumb{font-size:11px}.breadcrumb .hide-mobile{display:none}.connection{display:none}.patient-pill{border:0;padding:0}.patient-pill small{display:none}.content{padding:20px 18px 105px}.demo-strip{font-size:10px;line-height:1.6;padding:9px 10px;align-items:flex-start;margin-bottom:23px}.demo-strip .icon{margin-top:2px}.demo-strip button{font-size:10px}.page-heading{display:block;margin-bottom:18px}.eyebrow{font-size:9px}.subtitle{font-size:12px;margin-top:8px}.date-wrapper{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.day-control{gap:6px}.day-control input{width:136px;font-size:11px;min-height:36px}.period-caption{font-size:9px;margin:0;max-width:120px}.hero{padding:20px;margin-bottom:17px;min-height:128px}.hero h2{font-size:20px;max-width:220px}.hero p{font-size:11px;max-width:250px}.hero-drawing{width:94px;height:94px;position:absolute;right:7px;top:12px;opacity:.9}.hero>div:first-child{position:relative;z-index:1;padding-right:65px}.hero-note{font-size:9px}.stats{gap:8px;margin-bottom:18px}.stat{padding:13px 11px;border-radius:13px}.stat-head{font-size:10px}.stat-icon{width:22px;height:22px;border-radius:6px}.stat-icon .icon{width:13px;height:13px}.stat-value{font-size:25px;margin-top:12px}.stat-value span{font-size:10px;margin-left:3px}.stat-foot{font-size:9px;margin-top:6px;line-height:1.5}.dashboard-grid{display:flex;flex-direction:column;gap:18px}.dashboard-grid>.stack{width:100%;gap:18px}.dashboard-grid>.stack:last-child{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dashboard-grid>.stack:last-child>.hint-card{grid-column:1/-1}.card{border-radius:15px}.card-body{padding:18px}.card-head{padding:18px 18px 0}.card-head h2{font-size:15px}.quick-grid{gap:8px;margin-top:16px}.quick{font-size:11px;padding:14px 4px 12px;gap:10px}.quick-icon{width:35px;height:35px}.quick-icon .icon{width:18px;height:18px}.quick-note{font-size:9px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;padding:9px 8px calc(9px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid var(--line);backdrop-filter:blur(14px);z-index:20;justify-content:space-around}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;color:#7d9089;padding:4px 10px;min-width:65px;border-radius:8px}.bottom-nav button.active{color:var(--teal);background:#edf6f1}.bottom-nav .icon{width:20px;height:20px}.page-footer{margin-top:26px;font-size:9px}.page-footer span:last-child{display:none}.code-line{font-size:14px;letter-spacing:.4px;margin-top:16px}.code-card .secondary{font-size:10px;padding:8px;gap:5px}.code-card p{font-size:10px}.balance-total{display:block;font-size:10px}.balance-total strong{display:block;font-size:19px;margin-top:4px}.balance-caption{font-size:9px}.chart-label{font-size:10px}.detail-header{display:block}.detail-actions{margin-top:13px}.staff-summary{grid-template-columns:repeat(2,1fr)}.staff-summary .stat{padding:16px}.staff-summary .stat-value{font-size:27px}.toolbar{flex-wrap:wrap}.toolbar input{width:100%;flex:auto}.toolbar select{flex:1;width:auto;min-width:100px}.help-grid{grid-template-columns:1fr}.help-grid .card-body{display:grid;grid-template-columns:35px 1fr;gap:12px}.help-grid .help-number{grid-row:span 2;margin:0}.help-grid h3{margin:2px 0 0}.help-grid p{grid-column:2}.page-heading>.primary{margin-top:17px}.mapping{gap:7px 20px;font-size:11px}#toast{bottom:90px;width:max-content;font-size:11px}dialog{border-radius:19px;width:calc(100% - 20px);max-height:92dvh}.modal-head{padding:19px 20px 16px}.modal-body{padding:20px}.modal-head h2{font-size:19px}.modal-actions .primary{font-size:12px}.field-row{gap:10px}.pain-options{gap:3px}.pain-options button{font-size:11px}.login{margin:30px 18px}.login .card-body{padding:24px}.login h1{font-size:25px}}
@media(max-width:720px){.hero{display:none}.quick{font-size:12px;min-height:96px}.stat-foot{font-size:10px}.subtitle{font-size:13px}.event-title{font-size:13px}.event-subtitle{font-size:11px}.event-value{font-size:14px}.field-hint{font-size:11px}.type-tab{font-size:11px;min-height:35px}.modal-body label{font-size:14px}.modal-body input,.modal-body select,.modal-body textarea{font-size:16px}.modal-body .big-input-wrap input{font-size:30px}.modal-note{font-size:11px}.bottom-nav button{font-size:10px}}
@media(max-width:380px){.content{padding-left:12px;padding-right:12px}.quick{font-size:11px}.stat-value{font-size:23px}.stat-head{font-size:10px}.stat-icon{display:none}.date-wrapper{gap:5px}.period-caption{font-size:9px}.dashboard-grid>.stack:last-child{grid-template-columns:1fr}.code-line{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:black}#app,dialog,#toast,.skip{display:none!important}#print-area{display:block!important;padding:15px}#print-area table{font-size:10px}#print-area th,#print-area td{padding:8px;border:1px solid #ddd}#print-area h1{font-size:23px;margin-bottom:12px}#print-area h2{font-size:17px}#print-area p{font-size:12px;margin:9px 0}.no-print{display:none!important}@page{size:A4;margin:15mm}}

.mobile-quick{display:none}
@media(max-width:720px){.mobile-quick{display:block;margin:0 0 18px}.quick-card{display:none}.mobile-quick .quick-grid{grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.mobile-quick .quick{flex-direction:row;justify-content:flex-start;padding:11px;gap:10px;min-height:61px;font-size:12px}.mobile-quick .quick-icon{width:31px;height:31px}.mobile-quick .card-body{padding:16px}.mobile-quick h2{font-size:16px}}
@media(max-width:380px){.mobile-quick .quick{font-size:11px;padding:9px;gap:7px}.mobile-quick .quick-icon{width:27px;height:27px}}
.protocol{border:1px solid var(--line);border-radius:12px;margin:20px 0 0;padding:12px 15px;display:grid;grid-template-columns:1fr 1fr;gap:5px 12px}.protocol legend{font-size:13px;font-weight:600;padding:0 5px}.protocol .checkbox-label{margin:4px 0;font-size:12px}.connection{min-height:34px;padding:4px;border-radius:6px}.connection.stale{color:#9d6234}.connection.stale .dot{background:#bd7939}.quick-icon.rose{color:var(--rose);background:#f9edf0}.quick-grid{grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}.login{padding:0 14px}.modal-body .notice b{overflow-wrap:anywhere}
@media(max-width:720px){.topbar .connection{display:flex;font-size:10px;max-width:140px;text-align:left}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-actions .secondary,.detail-actions .primary{white-space:normal}.field-row>div{min-width:0}}
@media(max-width:380px){.field-row{grid-template-columns:1fr}.date-wrapper{display:block!important}.period-caption{text-align:left;margin-top:7px}.day-control{justify-content:flex-start}.bottom-nav button{font-size:10px}.topbar-right{gap:5px}.topbar .connection{max-width:105px;font-size:9px}.protocol{grid-template-columns:1fr}}
@media(max-width:380px){.modal-actions{flex-direction:column;align-items:stretch}.modal-actions>button{width:100%;min-width:0}}
