:root{--ink:#243a33;--muted:#78817b;--green:#214f41;--green-light:#edf3ea;--line:#e6e9e2;--paper:#f8f9f5;--amber:#b78945;--coral:#ba7768;--sidebar:262px;--radius:15px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;font-size:16px}
*{box-sizing:border-box}body{margin:0}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:disabled{cursor:not-allowed;opacity:.5}button{color:inherit}a{color:inherit;text-decoration:none}svg{display:block}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c09c55;outline-offset:3px}.skip-link{position:fixed;top:-70px;left:20px;background:var(--green);color:white;padding:12px;z-index:99}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:32px 23px 22px;background:#f0f3ec;border-right:1px solid #dfe5db;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:9px;color:var(--green);padding-left:7px}.brand>svg{width:37px;height:43px}.brand>span{font-family:Georgia,serif;font-size:42px;letter-spacing:-2px}.brand-dot{color:#bc9162}.brand-caption{font-size:10.5px;letter-spacing:1.65px;margin:8px 0 32px 8px;color:#6c7d70}.study-label{padding:19px 15px;background:#e8eee2;border:1px solid #dfe7d7;border-radius:11px;margin-bottom:34px;display:flex;flex-direction:column;gap:8px}.tiny-label,.nav-label,.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:600;color:#718270}.study-label strong{font-size:15px;font-weight:600}.study-tag{font-size:12px;color:#6d7a6b}.nav-label{padding:0 15px;margin-bottom:12px;font-size:10px;letter-spacing:1.8px}nav{display:grid;gap:6px}nav a,.sidebar-button{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:8px;font-size:14px;color:#617064}nav a.active{background:var(--green);color:#fff;box-shadow:0 4px 10px #214f4112}nav a:hover:not(.active){background:#e7ede1}.icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding-top:28px}.botanical{padding:15px 10px 25px;color:#78906d}.botanical svg{width:135px;max-height:79px;margin:auto;opacity:.7}.botanical p{font-size:12px;line-height:1.8;text-align:center;color:#82907c;margin:9px 0 0}.sidebar-button{border:0;background:none;width:100%;font-size:13px;padding:11px 13px;text-align:left}.sidebar-button:hover{background:#e5ebdf}.version{display:block;font-size:9.5px;letter-spacing:1.5px;color:#9aab96;margin:24px 0 0 14px}.workspace{margin-left:var(--sidebar)}.topbar{height:76px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff;gap:18px}.breadcrumb{font-size:13px;color:#8a9189;white-space:nowrap}.breadcrumb span{margin:0 12px;color:#c3c9bf}.breadcrumb strong{font-weight:500;color:#536152}.topbar-right{display:flex;align-items:center;gap:24px}.storage-label{font-size:12px;color:#85907e;display:flex;align-items:center;gap:6px}.storage-label i{width:5px;height:5px;background:#7e9b70;border-radius:50%}.mode-switch{display:flex;padding:3px;border:1px solid #e2e7dd;border-radius:7px;background:#f5f7f1}.mode-switch button{border:0;border-radius:4px;background:none;padding:7px 12px;font-size:12px;color:#7c8776}.mode-switch button.active{background:#fff;color:var(--green);box-shadow:0 1px 4px #10201915;font-weight:600}main{max-width:1530px;margin:0 auto;padding:28px 42px 44px;min-height:calc(100vh - 120px)}#mode-banner{margin-bottom:29px}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 15px;border:1px solid #e9e0cc;background:#fbf7ed;border-radius:8px;color:#89744b;font-size:12px;line-height:1.5}.demo-banner>span{display:flex;align-items:center;gap:9px}.demo-banner .icon{width:15px;height:15px}.text-button{border:0;background:none;padding:0;font-size:13px;font-weight:600;color:var(--green);display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.text-button:hover{text-decoration:underline}.demo-banner .text-button{font-size:12px;color:#89744b}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.eyebrow{display:block;font-size:10px;letter-spacing:1.9px;color:#8a9b7e;margin-bottom:10px}h1{font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:400;letter-spacing:-.9px;line-height:1.15;margin:0 0 9px;color:#2b4337}.page-heading p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid #dfe5d9;border-radius:7px;background:white;color:#53614f;padding:10px 14px;font-size:13px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px}.btn .icon{width:15px;height:15px}.btn:hover{border-color:#92a58a;background:#f9fbf6}.btn.primary{background:var(--green);color:white;border-color:var(--green)}.btn.primary:hover{background:#2b614f}.btn.small{padding:7px 11px;min-height:31px;font-size:12px}.btn.danger{color:#a05a4b;border-color:#e7d5cf}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.study-overview{display:flex;align-items:center;gap:25px;padding:23px 26px;position:relative;overflow:hidden;margin-bottom:18px}.study-overview:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#8ca27b}.study-symbol{width:55px;height:55px;display:flex;align-items:center;justify-content:center;background:#eef3e8;border-radius:12px;color:#5b7c50;flex-shrink:0}.study-symbol svg{width:32px;height:32px}.study-overview h2{font-size:15px;font-weight:600;margin:0 0 8px}.overview-meta{display:flex;gap:17px;font-size:12px;color:#87917e;flex-wrap:wrap}.overview-meta span{display:flex;align-items:center;gap:5px}.overview-meta .icon{width:12px;height:12px}.badge{display:inline-flex;align-items:center;gap:5px;background:#f0f4eb;color:#75896b;font-size:11px;border-radius:5px;padding:5px 7px;white-space:nowrap;font-weight:500}.badge.amber{background:#faf4e7;color:#a48851}.badge.neutral{background:#f3f5f0;color:#808b77}.progress-block{margin-left:auto;min-width:245px;width:29%}.progress-title{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}.progress-title span:last-child{color:#899580;font-size:11px}.progress-track{height:5px;background:#e9eee3;border-radius:6px;overflow:hidden}.progress-fill{height:100%;background:#77966b;border-radius:6px}.progress-labels{display:flex;justify-content:space-between;font-size:10px;color:#98a28e;margin-top:7px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat{padding:19px 20px;min-height:128px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#79856e;font-size:12px;margin-bottom:15px;gap:6px}.stat-top .icon{width:16px;height:16px;color:#9ba990}.stat-value{font-size:30px;letter-spacing:-.8px;font-weight:500;line-height:1.1;color:#34523d}.stat-value small{font-size:15px;font-weight:400;letter-spacing:0;color:#8f9c83;margin-left:4px}.stat-note{font-size:11px;color:#9aa18f;margin-top:8px;line-height:1.5}.chart-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:20px;margin-bottom:20px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:23px 23px 0}.card-head h2{font-size:15px;font-weight:600;margin:0 0 6px}.card-head p{font-size:11px;color:#97a08d;line-height:1.6;margin:0}.select-compact{border:1px solid #e3e8dc;border-radius:6px;background:#fcfdf9;padding:7px 25px 7px 9px;font-size:12px;color:#657758;max-width:160px}.chart-wrap{padding:10px 17px 0}.chart{width:100%;height:auto;max-height:218px;overflow:visible}.chart text{font-family:inherit;font-size:12px;fill:#97a08c}.chart .point-label{fill:#527044;font-size:13px;font-weight:600}.chart-legend{padding:2px 24px 18px;display:flex;justify-content:space-between;align-items:center;color:#97a08c;font-size:10px;gap:10px}.chart-legend span:first-child{display:flex;align-items:center;gap:6px}.chart-legend i{width:6px;height:6px;background:#799466;border-radius:50%}.calendar{display:grid;grid-template-columns:repeat(14,1fr);gap:5px;padding:26px 23px 18px}.day-cell{aspect-ratio:1;border-radius:4px;background:#f0f3eb;display:flex;align-items:center;justify-content:center;font-size:9px;color:#b0b9a8;border:1px solid transparent;min-width:0;padding:0}.day-cell.full{background:#799268;color:#fff}.day-cell.partial{background:#d9bc82;color:#fff}.day-cell.none{background:#e8cdc3;color:#a87160}.day-cell.missing{background:#fff;border:1px dashed #b7bfaf;color:#88977a}.day-cell.today{box-shadow:0 0 0 2px #47633d33}.day-cell:hover{outline:2px solid #b1bea5;outline-offset:2px}.calendar-legend{display:flex;flex-wrap:wrap;gap:10px;padding:0 23px 18px;font-size:10px;color:#8b9780}.calendar-legend span{display:flex;align-items:center;gap:4px}.calendar-legend i{height:7px;width:7px;border-radius:2px;background:#f0f3eb}.calendar-legend .full{background:#799268}.calendar-legend .partial{background:#d9bc82}.calendar-legend .none{background:#e8cdc3}.calendar-legend .missing{background:white;border:1px dashed #a5b298}.calendar-foot{padding:12px 23px;border-top:1px solid #edf0e8;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#98a18e}.table-wrap{overflow-x:auto;padding:0 23px}.comparison-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:18px;white-space:nowrap}.comparison-table th{text-align:left;font-size:10px;font-weight:500;letter-spacing:.8px;color:#98a18e;padding:12px 10px;border-bottom:1px solid #e8ece2;background:#fafbf8}.comparison-table th:first-child{padding-left:0;background:linear-gradient(to right,white,#fafbf8)}.comparison-table td{border-bottom:1px solid #edf0e8;padding:14px 10px;color:#66745b}.comparison-table td:first-child{padding-left:0;color:#485a40;font-weight:500}.comparison-table td:last-child{text-align:right}.comparison-table th:last-child{text-align:right}.comparison-table tr:last-child td{border-bottom:0}.metric-unit{font-size:11px;color:#a3aa9a;font-weight:400;margin-left:6px}.delta{display:inline-block;font-size:12px;padding:4px 7px;border-radius:4px;background:#f0f4eb;color:#718364;min-width:56px;text-align:center}.table-foot{padding:16px 23px;border-top:1px solid #edf0e8;font-size:11px;color:#99a18f;line-height:1.7;display:flex;align-items:flex-start;gap:6px}.table-foot .icon{width:13px;height:13px;flex-shrink:0;margin-top:1px}.preparation{display:flex;align-items:center;gap:18px;background:#eef3e8;border:1px solid #e0e8d7;border-radius:var(--radius);padding:20px 24px;margin-top:20px}.preparation .icon{width:24px;height:24px;color:#829d71}.preparation h3{font-size:14px;font-weight:500;margin:0 0 5px}.preparation p{font-size:12px;color:#87977a;line-height:1.6;margin:0}.preparation .text-button{margin-left:auto;font-size:12px}.form-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:22px;align-items:start}.form-card{padding:25px;margin-bottom:18px}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:22px}.section-num{background:#edf3e7;color:#7e956d;font-size:11px;width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center}.section-title h2{font-size:15px;font-weight:600;margin:0}.section-title p{font-size:12px;color:#98a28e;margin:5px 0 0}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label,.field-label{font-size:12px;font-weight:500;color:#6b7d5f}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #dfe6d7;border-radius:7px;padding:11px 12px;color:#43533b;background:#fdfefb;min-height:41px}.field input::placeholder,.field textarea::placeholder{color:#b1baa6;font-size:12px}.field textarea{resize:vertical;min-height:88px;line-height:1.7}.field .hint,.hint{font-size:11px;color:#98a28d;line-height:1.6}.input-unit{position:relative}.input-unit input{padding-right:60px}.input-unit>span{position:absolute;right:12px;top:13px;color:#9ba58e;font-size:12px}.segmented{display:flex;gap:8px;margin-bottom:18px}.segmented button{flex:1;border:1px solid #e1e7d9;background:#fff;border-radius:7px;padding:11px 5px;color:#8b9980;font-size:13px}.segmented button.active{border-color:#78966b;background:#edf3e7;color:#4e6e3e;font-weight:500}.equivalent{display:flex;justify-content:space-between;gap:10px;padding:13px 15px;border-radius:7px;background:#f2f6ec;font-size:12px;color:#889c79;margin-top:18px}.equivalent strong{color:#5a7948;font-weight:500}.symptom-row{display:grid;grid-template-columns:1fr 180px;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0e8}.symptom-row:first-of-type{padding-top:0}.symptom-row:last-of-type{border:0}.symptom-row label{font-size:13px;color:#6d7e60}.symptom-row select{border:1px solid #e0e6d8;border-radius:6px;padding:9px;background:#fcfdf9;font-size:12px;color:#7c8c6f}.checkboxes{display:flex;flex-wrap:wrap;gap:9px 15px;margin:14px 0 20px}.checkboxes label{display:flex;align-items:center;gap:6px;font-size:12px;color:#7b8b6d}.checkboxes input{accent-color:var(--green);width:14px;height:14px}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 4px}.form-actions .hint{max-width:60%}.error{color:#a55b4b;font-size:13px;line-height:1.6;padding:11px 14px;background:#fcf1ed;border:1px solid #efd4cb;border-radius:7px;margin-bottom:14px}.error:empty{display:none}.side-note{padding:21px 22px;margin-bottom:18px}.side-note h3{font-size:14px;margin:0 0 10px;font-weight:500}.side-note p{font-size:12px;line-height:1.8;color:#8d9981;margin:0}.side-note.sage{background:#edf3e7;border-color:#dfe8d5}.side-note .icon{margin-bottom:15px;color:#89a076;width:23px;height:23px}.recent-list{list-style:none;margin:0;padding:0}.recent-list li{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0e8;padding:13px 0}.recent-list li:first-child{border-top:0}.recent-icon{width:29px;height:29px;border-radius:7px;background:#eef3e8;color:#8ca47a;display:flex;align-items:center;justify-content:center}.recent-icon .icon{width:14px;height:14px}.recent-list strong{font-size:12px;font-weight:500;display:block;color:#708161}.recent-list small{font-size:11px;display:block;color:#a0aa94;margin-top:5px}.recent-list button{margin-left:auto;border:0;background:none;color:#8a9c79;font-size:11px;padding:8px}.empty{padding:40px 24px;text-align:center;color:#9aa78f;display:flex;align-items:center;flex-direction:column;gap:12px}.empty .icon{width:28px;height:28px;stroke-width:1.1}.empty strong{font-size:14px;font-weight:500;color:#7e906f}.empty p{font-size:12px;line-height:1.7;margin:0;max-width:290px}.chart-empty{min-height:220px;justify-content:center}.visit-card{padding:20px 22px;display:flex;align-items:flex-start;gap:15px;margin-bottom:12px}.visit-marker{width:38px;height:38px;background:#edf3e7;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#8ba477;flex-shrink:0}.visit-card h3{font-size:14px;margin:0 0 7px;font-weight:500}.visit-card p{font-size:12px;margin:0;color:#9ba58f;line-height:1.7}.visit-values{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.visit-values span{font-size:11px;padding:5px 7px;border:1px solid #e8eddf;border-radius:5px;color:#8a9b79;background:#fafcf6}.visit-actions{display:flex;margin-left:auto;gap:4px}.icon-button{border:0;background:none;padding:7px;color:#9aa98d;border-radius:6px}.icon-button .icon{width:15px;height:15px}.icon-button:hover{background:#f1f5e9}.row-heading{display:flex;justify-content:space-between;align-items:center;margin:28px 0 14px}.row-heading h2{font-size:15px;font-weight:500;margin:0}.row-heading span{font-size:12px;color:#9baa8d}.notice{padding:13px 15px;background:#eff4e9;border:1px solid #e0e9d5;border-radius:8px;font-size:12px;line-height:1.7;color:#839775;margin-bottom:20px}.notice .text-button{font-size:12px}footer{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.2px;padding:22px 42px;border-top:1px solid #e9ede2;color:#aab49f}footer span{font-size:10px;letter-spacing:0}dialog{border:1px solid #dfe6d6;border-radius:16px;width:620px;max-width:calc(100vw - 32px);padding:0;box-shadow:0 25px 100px #183e2833;color:var(--ink);max-height:90vh}dialog::backdrop{background:#183e284d;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:25px 28px 17px;border-bottom:1px solid #edf0e8}.modal-head h2{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:0 0 7px}.modal-head p{font-size:12px;color:#95a18b;line-height:1.7;margin:0}.modal-content{padding:23px 28px 27px}.modal-content p{font-size:13px;line-height:1.9;color:#7c8f6d}.modal-content h3{font-size:14px;font-weight:500;color:#657c54}.modal-content .field-grid{margin-bottom:20px}.modal-content .actions{margin-top:23px;justify-content:flex-end}.metric-options{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.metric-options label{display:flex;gap:7px;align-items:center;font-size:12px;color:#7c906b}.metric-options input{accent-color:var(--green)}.download-options{display:grid;gap:10px}.download-option{padding:15px;border:1px solid #e3e9dc;border-radius:8px;background:#fbfdf8;text-align:left;display:flex;gap:13px;align-items:center}.download-option .icon{color:#92a880}.download-option strong{display:block;font-size:13px;font-weight:500;color:#6e865e}.download-option small{font-size:11px;color:#9aa98e;display:block;margin-top:5px}.download-option:hover{border-color:#9fb58e}.modal-content ol{font-size:13px;line-height:2;color:#879c75;padding-left:18px}#toast{position:fixed;bottom:28px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%) translateY(30px);opacity:0;pointer-events:none;background:var(--green);color:#fff;font-size:13px;padding:13px 20px;border-radius:8px;box-shadow:0 8px 24px #214f4122;z-index:100;transition:.2s;max-width:90vw;line-height:1.6}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.print-only{display:none}.print-subtitle{font-size:12px;color:#8c9e7c;line-height:1.7}.backup-line{margin-top:18px;padding-top:16px;border-top:1px solid #e7eddf;display:flex;gap:14px;flex-wrap:wrap}.backup-line .text-button{font-size:12px}.danger-zone{margin-top:24px;padding-top:17px;border-top:1px solid #e9ece3}
@media(min-width:1500px){:root{--sidebar:279px}.sidebar{padding:36px 28px}.topbar{padding:0 52px}main{padding:32px 52px 48px}.chart{max-height:250px}.stat{min-height:140px}}
@media(max-width:1180px){:root{--sidebar:234px}.sidebar{padding-left:16px;padding-right:16px}.topbar{padding:0 25px}main{padding:25px}.stats-grid{gap:10px}.stat{padding:17px 15px}.stat-top{font-size:11px}.chart-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:14px}.study-overview{gap:15px;padding:20px}.progress-block{min-width:205px}.page-heading .actions .btn{font-size:12px;padding:10px}.topbar-right{gap:14px}.storage-label{font-size:10px}.botanical{padding-bottom:15px}.brand>span{font-size:38px}.brand-caption{font-size:9px}.form-grid{grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);gap:16px}}
@media(max-width:980px){.storage-label{display:none}.page-heading{align-items:flex-start}h1{font-size:31px}.chart-grid{grid-template-columns:1fr}.chart{max-height:235px}.calendar{padding-top:20px;grid-template-columns:repeat(28,1fr)}.calendar-legend{padding-bottom:15px}.study-symbol{display:none}.study-overview{flex-wrap:wrap}.progress-block{width:100%;margin:2px 0 0;min-width:0}.overview-meta{gap:14px}.stat-top .icon{display:none}.stat-value{font-size:26px}.stat-note{font-size:10px}.form-grid{grid-template-columns:1fr}.form-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-aside .side-note{margin:0}footer{padding:22px 25px}.preparation .icon{display:none}.preparation{padding:18px}}
@media(max-width:720px){:root{--sidebar:0px}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:12px 18px 0;border-right:0;border-bottom:1px solid #dce5d4;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center}.brand{padding:0;gap:6px}.brand>svg{width:26px;height:29px}.brand>span{font-size:31px}.brand-caption,.study-label,.nav-label,.botanical,.version{display:none}.sidebar-bottom{display:flex;margin:0 0 0 auto;padding:0;gap:4px}.sidebar-button{font-size:0;width:34px;padding:8px;gap:0}.sidebar-button .icon{width:18px;height:18px}.sidebar nav{order:3;display:flex;gap:8px;width:100%;margin-top:6px}nav a{flex:1;padding:11px 5px;justify-content:center;border-radius:6px 6px 0 0;font-size:12px;gap:6px}nav a .icon{width:14px;height:14px}nav a.active{box-shadow:none}.workspace{margin:0}.topbar{height:54px;padding:0 19px}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 7px}.mode-switch button{font-size:11px;padding:6px 9px}main{padding:18px}#mode-banner{margin-bottom:22px}.demo-banner{font-size:11px;padding:10px 12px;align-items:flex-start}.demo-banner .text-button{font-size:11px}.demo-banner>span{gap:6px}.demo-banner>span .icon{display:none}.page-heading{flex-wrap:wrap;gap:16px;margin-bottom:21px}.page-heading p{font-size:12px}h1{font-size:32px}.eyebrow{font-size:9px}.page-heading .actions{width:100%}.page-heading .actions .btn{font-size:12px;min-height:36px}.study-overview{padding:18px;gap:12px;margin-bottom:12px}.study-overview h2{font-size:14px}.overview-meta{font-size:11px;gap:10px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}.stat{min-height:121px;padding:17px}.stat-top{font-size:11px;margin-bottom:12px}.stat-top .icon{display:block;width:14px;height:14px}.stat-value{font-size:29px}.stat-note{font-size:10px}.chart-grid{gap:16px;margin-bottom:16px}.card-head{padding:20px 18px 0}.card-head h2{font-size:14px}.card-head p{font-size:10px}.select-compact{max-width:130px;font-size:11px}.calendar{grid-template-columns:repeat(14,1fr);gap:5px;padding:22px 18px 18px}.day-cell{font-size:9px}.calendar-legend{padding:0 18px 16px}.calendar-foot{padding:12px 18px}.chart-legend{padding:2px 18px 17px;font-size:9px}.table-wrap{padding:0 18px}.comparison-table{font-size:12px}.comparison-table td{padding:12px 9px}.comparison-table th{font-size:9px;padding:10px 9px}.comparison-table .metric-unit{display:block;margin:4px 0 0}.table-foot{font-size:10px;padding:13px 18px}.preparation{flex-wrap:wrap;gap:13px;margin-top:16px}.preparation .text-button{margin-left:0}.preparation p{font-size:11px}.form-card{padding:20px}.field-grid.three{grid-template-columns:1fr 1fr}.field-grid{gap:16px}.field input,.field select,.field textarea{font-size:18px;padding:10px}.field label{font-size:12px}.symptom-row{grid-template-columns:1fr 155px}.symptom-row select{font-size:14px}.form-aside{grid-template-columns:1fr}.form-actions{align-items:flex-start}.form-actions .hint{font-size:10px;max-width:48%}.form-actions .btn{font-size:12px}.visit-card{padding:17px 15px;gap:10px}.visit-marker{width:30px;height:30px}.visit-marker .icon{width:16px;height:16px}.visit-actions{gap:0}.visit-card h3{font-size:13px}.visit-values{gap:5px}.visit-values span{font-size:10px}.modal-head{padding:22px 20px 17px}.modal-content{padding:20px}.modal-head h2{font-size:25px}.metric-options{gap:12px}.metric-options label{font-size:11px}#toast{left:50%;width:max-content;max-width:90vw;font-size:12px}footer{padding:20px 18px;font-size:8px;gap:15px}footer span{font-size:9px;text-align:right}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{background:white}.sidebar,.topbar,#mode-banner,footer,.actions,.calendar-foot,.preparation,.text-button,.no-print,#toast,dialog{display:none!important}.workspace{margin:0}main{padding:0;max-width:none;min-height:0}.print-only{display:block}.page-heading{margin-bottom:15px}.page-heading h1{font-size:29px}.card{break-inside:avoid;border-color:#d4dfc9}.chart-grid{grid-template-columns:1.5fr 1fr}.stats-grid{grid-template-columns:repeat(4,1fr)}.stat{padding:15px}.stat-value{font-size:26px}.table-wrap{overflow:visible}.calendar{grid-template-columns:repeat(14,1fr)}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.table-foot{color:#637955}.card-head p,.stat-note,.chart-legend{color:#718664}.field-grid{display:block}@page{margin:15mm;size:A4 landscape}}

/* Secondary text stays readable against the light research surfaces. */
.stat-note,.card-head p,.chart-legend,.calendar-legend,.calendar-foot,.table-foot,.hint,.field .hint,.overview-meta,.progress-labels,.page-heading p,.metric-unit,.recent-list small,.side-note p,.field-label,.modal-head p,.download-option small{color:#75836b}

/* Rails application surfaces */
.export-menu{position:relative}.export-menu summary{list-style:none;cursor:pointer}.export-menu summary::-webkit-details-marker{display:none}.export-options{position:absolute;right:0;top:45px;width:235px;background:white;box-shadow:0 10px 40px #214f4122;border:1px solid #dce5d3;border-radius:9px;z-index:30;padding:7px}.export-options a,.export-options button{display:block;font-size:13px;padding:11px 12px;width:100%;text-align:left;border:0;background:none;border-radius:5px;color:#607650}.export-options a:hover,.export-options button:hover{background:#edf3e6}.user-pill{font-size:13px;color:#4d6841;display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis}.user-pill small{display:block;font-size:10px;color:#879c77;margin-top:4px}.auth-shell{min-height:100vh;background:radial-gradient(ellipse at 10% 0%,#e8efdf,transparent 55%),#f7f9f3;padding:42px 20px}.auth-brand{width:210px;margin:0 auto 26px}.auth-brand .brand{justify-content:center}.auth-brand .brand-caption{text-align:center;margin:10px 0}.auth-main{margin:0 auto;padding:0;max-width:450px;min-height:0}.auth-card{padding:32px}.auth-card h1{font-size:31px;margin:0 0 12px;line-height:1.2}.auth-card>p{font-size:13px;line-height:1.8;color:#7e906f;margin-bottom:25px}.auth-card .field{margin-bottom:19px}.auth-card .btn.primary{width:100%;margin-top:8px}.auth-link{font-size:12px;margin-top:20px}.auth-footer{text-align:center;color:#8ca37b;font-size:12px;margin:28px 0}.study-list{display:grid;gap:16px}.study-list-card{display:flex;align-items:center;padding:25px;gap:23px}.study-list-card h2{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:8px 0}.study-list-card p{font-size:12px;color:#869b76;margin:0}.study-list-card>.badge{margin-left:auto}.study-list-card>.icon{color:#7d956c}.study-list-card:hover{border-color:#adbf9b}.onboarding{min-height:330px}.onboarding>.icon{width:40px;height:40px}.onboarding strong{font-family:Georgia,serif;font-size:25px;font-weight:400}.onboarding p{max-width:380px;font-size:14px}.onboarding .btn{margin-top:12px}.audit-card{padding:23px;margin-bottom:15px}.audit-heading{display:flex;gap:12px;align-items:center}.audit-heading h2{font-size:14px;font-weight:500;margin:0 0 6px}.audit-heading p{font-size:11px;color:#849977;margin:0}.audit-heading .badge{margin-left:auto}.audit-reason{font-size:13px;color:#6f875f;line-height:1.8;margin:17px 0}.audit-card summary{cursor:pointer;font-size:12px;color:#8ca37b}.audit-card table{white-space:normal}.audit-card td{max-width:300px;overflow-wrap:anywhere;line-height:1.8}.audit-card details .table-wrap{padding:0}.correction-card{background:#f7f9f1}.correction-card .section-num .icon{width:13px;height:13px}.field_with_errors{display:contents}.field_with_errors input,.field_with_errors select,.field_with_errors textarea{border-color:#c98f7b}.error ul{margin:8px 0 0;padding-left:18px}.error li{margin:4px 0}.recent-list a{margin-left:auto;font-size:11px}.visit-card>.icon-button{margin-left:auto}.sidebar .study-tag{line-height:1.7}.sidebar-bottom .button_to{margin:0}.actions form{margin:0}.notice{font-size:13px;color:#6e855e}.auth-shell .brand-caption{font-size:10px}.auth-shell .brand{padding:0}.stat-note,.card-head p,.chart-legend,.calendar-legend,.calendar-foot,.table-foot,.hint,.field .hint,.overview-meta,.progress-labels,.page-heading p,.metric-unit,.recent-list small,.side-note p,.field-label{color:#68785f}
@media(max-width:720px){.sidebar-bottom .sidebar-button span{display:none}.sidebar-bottom{gap:0}.sidebar-bottom .sidebar-button{width:28px;padding:6px}.sidebar nav{overflow-x:auto}.sidebar nav a{white-space:nowrap;font-size:11px;gap:4px}.sidebar-bottom .button_to{display:inline-flex}.user-pill{max-width:130px;font-size:11px}.topbar-right{gap:8px}.user-pill small{font-size:9px}.study-list-card{padding:20px;gap:12px;flex-wrap:wrap}.study-list-card h2{font-size:23px}.study-list-card .badge{margin-left:0}.study-list-card>.icon{margin-left:auto}.auth-shell{padding:30px 18px}.auth-card{padding:25px}.auth-card h1{font-size:30px}.audit-card{padding:18px}.audit-heading h2{font-size:13px}.audit-heading p{font-size:10px}.auth-main .field input{font-size:18px}.audit-card .comparison-table{font-size:11px}}
@media print{.export-menu,.user-pill,.auth-shell .auth-brand,.notice{display:none!important}.audit-card{break-inside:avoid}}

.sidebar{overflow-y:auto}.sidebar-bottom{flex-shrink:0}@media(max-width:720px){.sidebar{overflow-y:visible}}

/* Extensible protocol, patient and composition forms. */
.parameter-type-fields[hidden]{display:none!important}.parameter-card,.reference-card{padding:22px;margin-bottom:14px}.parameter-card-heading{display:flex;align-items:center;gap:13px}.parameter-card-heading>div:first-child{flex:1;min-width:0}.parameter-card-heading h3{font-size:15px;font-weight:500;line-height:1.5;margin:7px 0;color:#3f5d32;overflow-wrap:anywhere}.parameter-card-heading>.text-button{margin-left:auto;flex-shrink:0}.parameter-card-heading .tiny-label{font-size:10px;letter-spacing:1px}.parameter-card>p,.reference-card>p{font-size:13px;line-height:1.8;color:#68785f;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.reference-card .parameter-card-heading h3{flex:1}.reference-links{display:flex;gap:15px;flex-wrap:wrap;margin:14px 0}.reference-links a{white-space:normal;overflow-wrap:anywhere;font-size:13px}.comparison-table td{white-space:normal;max-width:270px;overflow-wrap:anywhere}.field .input-unit>span{pointer-events:none}.sidebar .study-label{flex-shrink:0}.sidebar nav{flex-shrink:0}.sidebar .brand{flex-shrink:0}.sidebar .botanical{padding-top:8px;padding-bottom:12px}.sidebar .botanical svg{max-height:55px}.sidebar .botanical p{margin-top:4px}.parameter-card .badge{flex-shrink:0}
@media(max-width:720px){.sidebar nav a{flex:0 0 auto;padding:11px 10px}.sidebar nav{display:flex;overflow-x:auto;scrollbar-width:thin}.parameter-card,.reference-card{padding:18px}.parameter-card-heading{gap:9px;flex-wrap:wrap}.parameter-card-heading h3{font-size:15px}.parameter-card-heading .text-button{font-size:12px}.parameter-card-heading .tiny-label{font-size:10px}.parameter-card .badge{font-size:11px}.reference-card .parameter-card-heading h3{flex-basis:75%}.field-grid .field.full{grid-column:1/-1}}
