/* Original pharmacy-green palette; not an asserted apteekki.fi brand match. */
:root {
 --primary:#367c2b; --primary-dark:#24551d; --ink:#203d25; --muted:#536856;
 --focus:#1c641e; --border:#dce6d9; --border-strong:#adc7a4;
 --green-pale:#edf6e7; --surface-soft:#f5f9f2; --background:#f8faf6; --surface:#fff;
 --urgent:#a83232; --urgent-pale:#fbeeed; --caution:#805320; --caution-pale:#fcf7ee;
 --shadow:#24432020; --overlay:#143f2066;
}
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--background);font-synthesis:none;line-height:1.5;font-size:var(--font-body);}
*{box-sizing:border-box}body{margin:0}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}:focus-visible{outline:3px solid var(--focus)}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}h1,h2,h3,p{margin-top:0}h1{font-size:1.875rem;line-height:1.25;font-weight:650;letter-spacing:-.6px;margin-bottom:12px}h2{font-size:1.25rem;font-weight:620}h3{font-size:1.0625rem}p{margin-bottom:16px}small,.small{font-size:var(--font-secondary)}small{display:block;color:var(--muted);margin-top:5px}hr{border:0;border-top:1px solid var(--border);margin:22px 0}.muted{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:192px;background:var(--surface);border-right:1px solid var(--border);padding:30px 15px;display:flex;flex-direction:column;z-index:10}.brand{display:block;font-size:1.4375rem;font-weight:700;padding:0 10px 40px}.brand-icon{color:var(--primary);font-size:1.5rem;vertical-align:middle}.brand-sub{display:block;font-size:var(--font-secondary);letter-spacing:1.4px;color:var(--muted);margin:7px 0 0 29px}nav{display:grid;gap:6px}nav a{padding:12px 10px;border-radius:5px;font-size:var(--font-body);font-weight:550;color:var(--muted);white-space:nowrap}nav a span{display:inline-block;width:23px;font-size:1.125rem;vertical-align:middle}nav a:hover{background:var(--surface-soft)}nav a[aria-current]{background:var(--green-pale);color:var(--primary)}.sidebar-note{margin-top:auto;padding:16px 10px 0;border-top:1px solid var(--border);font-size:var(--font-secondary);color:var(--muted)}.sidebar-note p{font-size:var(--font-secondary);margin:8px 0}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--primary);margin-right:5px}.workspace{margin-left:192px}.topbar{height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 38px;font-size:var(--font-body);color:var(--muted)}.local-tag{font-size:var(--font-secondary);letter-spacing:1px;color:var(--primary);border:1px solid var(--border);border-radius:4px;padding:5px 9px}.dev-banner{background:var(--surface-soft);border-bottom:1px solid var(--border);padding:8px 38px;font-size:var(--font-secondary);color:var(--muted)}main{padding:38px;max-width:1560px;margin:auto;min-height:calc(100vh - 164px)}footer{font-size:var(--font-secondary);color:var(--muted);padding:15px 38px 25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}.page-heading .muted{max-width:760px;margin:0}.eyebrow{font-size:var(--font-secondary);letter-spacing:1.7px;color:var(--muted);font-weight:700;margin-bottom:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid transparent;border-radius:5px;padding:11px 17px;font-size:var(--font-body);font-weight:600;white-space:nowrap;min-height:42px}.primary{background:var(--primary);color:var(--surface)}.primary:hover{background:var(--primary-dark)}.secondary{background:var(--surface);color:var(--primary);border-color:var(--border-strong)}.secondary:hover{background:var(--surface-soft)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:7px;margin-bottom:22px}.empty{text-align:center;padding:55px 25px;color:var(--muted)}.empty h2{color:var(--ink);margin:17px 0 10px}.empty-icon{margin:auto;border:1px solid var(--border);border-radius:12px;width:60px;height:60px;font-size:2rem;color:var(--primary);display:grid;place-items:center;background:var(--green-pale)}.empty p{margin-bottom:24px;font-size:var(--font-body)}.section-title{font-size:1.0625rem;margin:32px 0 16px}.tools{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tool{padding:25px;position:relative}.tool-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:7px;background:var(--green-pale);color:var(--primary);font-size:1.5rem;margin-bottom:18px}.tool .badge{position:absolute;right:22px;top:30px}.tool h3{margin-bottom:8px}.tool p{color:var(--muted);font-size:var(--font-body);max-width:460px;min-height:42px}.text-link{font-size:var(--font-body);font-weight:600;text-decoration:underline;text-underline-offset:3px}.subdued{background:var(--surface-soft);color:var(--muted)}.badge{display:inline-block;width:fit-content;font-size:var(--font-secondary);font-weight:650;padding:4px 7px;border-radius:4px;background:var(--surface-soft);color:var(--muted);line-height:1.5}.badge.available{color:var(--primary);background:var(--green-pale)}.badge.urgent{color:var(--urgent);background:var(--urgent-pale)}.badge.high{color:var(--caution);background:var(--caution-pale)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.metric{padding:22px 20px}.metric p{font-size:var(--font-secondary);color:var(--muted);margin-bottom:12px}.metric strong{font-size:1.875rem;font-weight:650;letter-spacing:-1px;display:block}.metric strong.unknown{font-size:1.3125rem;letter-spacing:0;padding:7px 0}.metric small{font-size:var(--font-secondary);margin-top:8px}.next-step{padding:25px;display:flex;align-items:center;justify-content:space-between;gap:25px}.next-step p{font-size:var(--font-body);color:var(--muted);margin:0}.next-step h2{font-size:1.125rem;margin-bottom:6px}.disclosure{padding:18px 22px;font-size:var(--font-body);color:var(--muted)}summary{cursor:pointer;font-weight:600;color:var(--ink);padding:3px 0}details[open]>summary{margin-bottom:20px}.notice{padding:13px 16px;border-left:3px solid var(--border-strong);background:var(--surface-soft);font-size:var(--font-body);line-height:1.6;margin:14px 0}.notice.error{border-color:var(--caution);background:var(--caution-pale);color:var(--caution)}.steps{display:flex;gap:35px;list-style:none;padding:0;margin:28px 0;color:var(--muted);font-size:var(--font-body)}.steps li{display:flex;align-items:center;gap:9px}.steps .active{color:var(--primary);font-weight:700}.upload-panel{display:grid;grid-template-columns:1fr 280px;padding:24px;gap:28px}.dropzone{border:1px dashed var(--border-strong);border-radius:6px;background:var(--surface-soft);text-align:center;padding:30px 20px}.dropzone.dragging{background:var(--green-pale);border:2px solid var(--primary)}.upload-icon{font-size:1.875rem;color:var(--primary);margin:0 auto 5px}.dropzone h2{margin-bottom:4px;font-size:1.25rem}.dropzone p{font-size:var(--font-body);color:var(--muted)}.dropzone .small{font-size:var(--font-secondary);margin:17px 0 0}.file-picker{position:relative;overflow:hidden;cursor:pointer}.file-picker input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.file-picker:focus-within{outline:3px solid var(--focus);outline-offset:3px}.input-contract{padding:14px 5px;color:var(--muted);font-size:var(--font-body)}.input-contract h3{color:var(--ink);font-size:var(--font-body)}.input-contract p{margin-bottom:10px}.selected-files{padding:23px}.selected-files h2{font-size:1.0625rem}.file-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:12px 0;gap:20px;font-size:var(--font-body)}.file-row strong{overflow-wrap:anywhere}.icon-button{border:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:1.5625rem;width:34px;height:34px;border-radius:5px;line-height:1}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:23px}.job-progress{display:flex;align-items:center;gap:22px;padding:24px}.job-progress h2{margin:0 0 3px;font-size:1.125rem}.job-progress p{margin:0;font-size:var(--font-body);color:var(--muted)}.spinner{width:25px;height:25px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--primary);animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.validation{padding:15px 22px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:var(--font-secondary);text-align:left}th{font-size:var(--font-secondary);letter-spacing:.3px;color:var(--muted);background:var(--surface-soft);font-weight:650;padding:14px 12px;border-bottom:1px solid var(--border)}td{padding:16px 12px;border-bottom:1px solid var(--border);vertical-align:top;line-height:1.6}td small{font-size:var(--font-secondary)}tr:last-child td{border-bottom:0}.file-table td:first-child{width:29%;overflow-wrap:anywhere}.file-table td:nth-child(2){width:22%}.file-table td small{max-width:540px}.actions-panel{overflow:hidden}.filters{display:grid;grid-template-columns:1.4fr 1fr .8fr 1.2fr .8fr;gap:12px;padding:20px}label{display:block;color:var(--muted);font-size:var(--font-secondary);font-weight:600}input,select,textarea{color:var(--ink);background:var(--surface);border:1px solid var(--border-strong);border-radius:4px;padding:9px 10px;min-width:0}label input,label select{display:block;width:100%;margin-top:6px;font-size:var(--font-secondary)}select{max-width:100%}input[type=checkbox]{width:15px;height:15px;accent-color:var(--primary);margin:0}.check{display:flex;align-items:center;gap:8px;font-weight:400}.table-toolbar{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.row-count{font-size:var(--font-secondary);color:var(--muted);padding:12px 20px;margin:0}.action-table th:first-child{width:23%}.action-table th:nth-child(2){width:34%}.action-table th:nth-child(3){width:14%}.action-table th:nth-child(4){width:13%}.product-link{border:0;padding:0;text-align:left;background:none;font-size:var(--font-body);color:var(--primary);font-weight:650;text-decoration:underline;text-underline-offset:3px}.action-table td .badge{margin-top:9px;font-size:var(--font-secondary)}.action-label{font-size:var(--font-secondary);font-weight:650}.reason{font-size:var(--font-secondary);color:var(--muted);margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.quantities{white-space:nowrap}.reference-panel{padding:26px}.reference-panel>.badge{margin-bottom:18px}.reference-panel p{font-size:var(--font-body);color:var(--muted)}.reference-panel textarea{display:block;width:100%;margin:10px 0 16px;font-size:var(--font-body)}.facts{display:flex;gap:32px;flex-wrap:wrap;margin:18px 0}.facts div{min-width:100px}.facts dt{font-size:var(--font-secondary);color:var(--muted)}.facts dd{margin:5px 0 0;font-size:var(--font-body);font-weight:600}.reference-panel code{display:block;overflow-wrap:anywhere;font-size:var(--font-secondary);background:var(--surface-soft);padding:14px}.reference-panel details{margin-top:25px;font-size:var(--font-body)}.reference-panel details p{margin-top:15px}dialog{border:1px solid var(--border);border-radius:9px;padding:0;max-width:min(870px,94vw);width:870px;max-height:90vh;color:var(--ink)}dialog::backdrop{background:var(--overlay)}.dialog-heading{padding:26px 28px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:25px;background:var(--surface-soft);position:sticky;top:0;z-index:1}.dialog-heading h2{margin-bottom:12px}.dialog-body{padding:26px 28px;font-size:var(--font-body)}.dialog-body h3{margin-top:25px}.dialog-body h3:first-child{margin-top:0}.dialog-body .source{overflow-wrap:anywhere;font-size:var(--font-secondary);color:var(--muted)}.detail-metrics{display:flex;gap:35px;padding:18px;background:var(--surface-soft);font-size:var(--font-secondary)}.detail-metrics strong{display:block;font-size:1.1875rem;margin-top:6px}.dialog-body table td:last-child{font-size:var(--font-secondary)}.dialog-body table th:nth-child(4){width:48%}.loading{padding:40px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:calc(50% + 70px);transform:translateX(-50%);max-width:600px;background:var(--primary-dark);color:var(--surface);border-radius:5px;font-size:var(--font-body);z-index:100;box-shadow:0 4px 20px var(--shadow)}#toast:not(:empty){padding:14px 20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-50px;left:220px;z-index:100;background:var(--surface);padding:10px}.skip:focus{top:5px}
@media(max-width:1180px){main{padding:28px}.topbar,.dev-banner{padding-left:28px;padding-right:28px}h1{font-size:1.625rem}.metric{padding:18px 13px}.metric strong{font-size:1.625rem}.metric strong.unknown{font-size:1.125rem}.filters{grid-template-columns:repeat(4,1fr)}.search-label{grid-column:1/-1}.upload-panel{grid-template-columns:1fr 230px}.action-table{min-width:740px}.page-heading{align-items:flex-start}.next-step{align-items:flex-start}.table-toolbar{font-size:var(--font-secondary)}}@media(max-width:850px){.sidebar{width:160px;padding:25px 9px}.workspace{margin-left:160px}.brand{font-size:1.3125rem;padding-left:8px}.brand-sub{font-size:var(--font-secondary);margin-left:0}nav a{font-size:var(--font-secondary);padding:11px 7px}main{padding:22px}.page-heading{flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,1fr)}.tools{grid-template-columns:1fr}.upload-panel{grid-template-columns:1fr}.input-contract{padding:4px}.steps{gap:18px;font-size:var(--font-secondary)}.next-step{flex-wrap:wrap}.table-toolbar{flex-wrap:wrap}.filters{grid-template-columns:repeat(2,1fr)}.dev-banner{font-size:var(--font-secondary);padding:8px 20px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

.session-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 28px;background:var(--surface);border-bottom:1px solid var(--border);font-size:var(--font-secondary);color:var(--muted)}
.session-controls .button{font-size:var(--font-secondary);padding:7px 10px;min-height:35px}
#session-warning:not(:empty){padding:14px 28px;background:var(--caution-pale);color:var(--caution);font-size:var(--font-body);border-bottom:1px solid var(--border)}
.plain-button{background:none;border:0;color:var(--primary);padding:0}
@media(max-width:850px){.session-controls{flex-wrap:wrap;padding:12px 20px}}
@media print{.session-controls,#session-warning{display:none}}
/* Compact tables still use readable text on smaller laptops. */
table{font-size:var(--font-body)}th{font-size:var(--font-secondary)}td small,.reason{font-size:var(--font-secondary)}.action-label{font-size:var(--font-secondary)}.action-table td .badge{font-size:var(--font-secondary)}.metric small{font-size:var(--font-secondary)}.metric p{font-size:var(--font-body)}
.brand{white-space:nowrap;font-size:1.3125rem}.brand-sub{white-space:normal;font-size:var(--font-secondary);margin-left:0}.brand-icon{font-size:1.25rem}
main:focus{outline:none}
/* Shared result browsing: bounded DOM, raw-value sorting and visible focus. */
.result-scroll{max-height:65vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.result-scroll table{min-width:1150px;border-collapse:separate;border-spacing:0}
.result-scroll th{position:sticky;top:0;z-index:2;white-space:nowrap;border-bottom:1px solid var(--border-strong)}
.result-scroll .action-table th{width:auto}
.result-scroll th:first-child{min-width:240px;max-width:330px}
.result-scroll td:first-child{min-width:240px;max-width:330px;overflow-wrap:anywhere}
.result-scroll td{padding:12px;min-width:105px}
.result-scroll td[data-key=action]{min-width:240px;max-width:330px}
.result-scroll .reason{display:block;overflow:visible;font-size:var(--font-secondary)}
.result-scroll td.numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.sort-button{border:0;background:transparent;color:var(--ink);font-size:var(--font-body);padding:4px 0;text-align:left;font-weight:650}
th[aria-sort=ascending],th[aria-sort=descending]{background:var(--green-pale)}
.sort-button span{margin-left:6px;color:var(--primary-dark)}
.result-scroll tbody tr:hover{background:var(--surface-soft)}
.filters{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.search-label{min-width:225px}.filters input,.filters select{font-size:var(--font-body)}.filters label{font-size:var(--font-secondary)}
.table-toolbar{flex-wrap:wrap}.table-empty{padding:24px;color:var(--muted)}
.pagination label{display:flex;align-items:center;gap:10px}.pagination select{width:auto;margin:0}
.product-link{font-size:var(--font-body);line-height:1.5}.badge{font-size:var(--font-secondary)}.row-count{font-size:var(--font-body);line-height:1.6}
.dialog-body{font-size:var(--font-body)}.dialog-body th{white-space:normal}.dialog-body td p{margin:8px 0}.dialog-body .facts dd{overflow-wrap:anywhere}
.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.summary-scope{font-size:var(--font-body);color:var(--muted)}
@media(max-width:1180px){.result-scroll{max-height:60vh}.filters .search-label{grid-column:1/-1}}
.result-scroll th:first-child{left:0;z-index:4;background:var(--surface-soft)}
.result-scroll td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);border-right:1px solid var(--border)}
.result-scroll td[data-key=action]{min-width:180px;max-width:240px}
.metric strong.money{font-size:1.3125rem;letter-spacing:0}
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0}
/* Dedicated wide report, shared by OTC and prescription. */
.report-layout .sidebar,.report-layout .topbar,.report-layout .dev-banner{display:none}
.report-layout .workspace{margin-left:0}
.report-layout main{max-width:none;width:100%;padding:18px 24px}
.report-layout .session-controls{padding:10px 24px}
.report-layout .page-heading{margin-bottom:14px}
.report-window-tools{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;align-items:center}
.report-window-tools .window-note{font-size:var(--font-body);color:var(--muted)}
.report-layout .metric{padding:12px 18px;margin-bottom:12px}
.report-layout .metric strong{font-size:1.5rem}.report-layout .metric p{margin-bottom:8px}
.report-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:12px;border-bottom:1px solid var(--border)}
.report-tabs button{border:1px solid var(--border-strong);border-radius:4px;background:var(--surface);color:var(--primary-dark);padding:10px 12px;text-align:left;font-size:var(--font-body);line-height:1.3;max-width:100%}
.report-tabs button[aria-selected=true]{background:var(--primary);color:var(--surface);border-color:var(--primary)}
.tab-count{display:inline-block;margin-left:5px;font-weight:700}
.tab-description{font-size:var(--font-body);margin:0;padding:12px 20px;background:var(--surface-soft)}
.report-layout .result-scroll table{min-width:100%}
.report-layout .result-scroll td[data-key=explanation]{min-width:290px;max-width:470px;white-space:normal}
.alert-explanation{margin:0;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.report-layout .result-scroll{max-height:70vh}
.report-layout .result-scroll td:first-child,.report-layout .result-scroll th:first-child{min-width:230px;max-width:330px}
.report-layout .result-scroll td{min-width:95px}
.report-layout .filters{padding:14px 20px}
@media(max-width:1180px){.report-layout main{padding:14px}.report-layout .session-controls{padding:10px 14px}.report-tabs{gap:5px}.report-tabs button{font-size:var(--font-body);padding:9px}.report-layout .result-scroll{max-height:70vh}}
.report-summary{margin:0 0 16px;border:1px solid var(--border);border-radius:5px;padding:12px 16px;background:var(--surface)}
.report-summary>summary{font-weight:400;font-size:var(--font-body);line-height:1.7}.report-summary>summary span{color:var(--primary);text-decoration:underline}
.report-summary[open]>summary{margin-bottom:16px}.report-summary .metrics{margin-bottom:0}
.report-layout .filters .search-label{grid-column:auto}
@media(max-width:650px){.report-layout .filters .search-label{grid-column:1/-1}}
/* Compact report frame: controls collapse without reserving blank space. */
[hidden]{display:none!important}
.report-layout{height:100dvh;overflow:hidden}
.report-layout .workspace{height:100%;display:flex;flex-direction:column;min-height:0}
.report-layout footer,.report-layout #session-policy{display:none}
.report-layout .session-controls{flex:none;justify-content:flex-end;padding:2px 12px;min-height:30px}
.report-layout .session-controls .button{min-height:26px;padding:2px 9px;font-size:var(--font-secondary);border-color:var(--border-strong)}
.report-layout #session-warning:empty{display:none}
.report-layout main{flex:1;min-height:0;margin:0;padding:4px 12px;display:flex;flex-direction:column;gap:4px}
.report-window-tools{flex:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;min-height:36px}
.report-title{font-size:1.0625rem;letter-spacing:0;line-height:1.3;margin:0 auto 0 0;font-weight:650}
.report-window-tools .button{min-height:32px;padding:5px 9px;font-size:var(--font-body);gap:4px}
.report-more{position:relative;margin-left:auto}
#report-more-panel{position:absolute;right:0;top:calc(100% + 6px);width:max-content;max-width:90vw;padding:8px;display:grid;gap:8px;background:var(--surface);border:1px solid var(--border-strong);border-radius:5px;box-shadow:0 4px 15px var(--shadow);z-index:15}
#report-more-panel .destructive-action{margin-top:8px;border-top:1px solid var(--border-strong)}
#report-general{flex:none;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:5px;font-size:var(--font-body)}
#report-general>p:last-child{margin-bottom:0}
.report-layout main.general-open{overflow-y:auto;display:block}
.report-layout main.general-open>.report-window-tools,.report-layout main.general-open>#report-general{margin-bottom:8px}
.report-layout main.general-open>.report-table-panel{height:75vh;min-height:400px}
.report-layout main>.notice{flex:none;margin:0;padding:6px 12px}
.report-table-panel{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;overflow:visible}
.report-tabs{flex:none;padding:5px;gap:4px}
.report-tabs button{font-size:var(--font-body);padding:5px 8px;line-height:18px}
#report-panel,.tab-table,.tab-table>div{display:flex;flex-direction:column;flex:1;min-height:0}
.compact-table-controls{flex:none;margin:0}
.table-quickbar{display:flex;gap:12px;align-items:center;padding:5px 10px;min-height:42px}
.table-quickbar .search-label{flex:1;min-width:180px;max-width:400px}
.table-quickbar input{margin:0;padding:5px 9px;font-size:var(--font-body);min-height:32px}
.table-quickbar .button{min-height:32px;padding:5px 10px;font-size:var(--font-body)}
.table-quickbar .row-count{padding:0;margin:0;white-space:nowrap;font-size:var(--font-body);line-height:1.3}
.table-quickbar [data-reset]{margin-left:auto;white-space:nowrap}
#extra-filters .filters{padding:8px 10px}
#extra-filters .table-toolbar{padding:6px 10px}
.sort-description{padding:4px 10px;margin:0;font-size:var(--font-body);color:var(--muted)}
.report-layout .result-scroll{flex:1;min-height:100px;max-height:none;overflow:auto;overscroll-behavior:contain}
.report-layout .pagination{flex:none;padding:3px 10px;gap:10px;min-height:36px}
.report-layout .pagination .button{min-height:28px;padding:3px 9px}
.report-layout .pagination select{padding:3px 8px;font-size:var(--font-body)}
.report-layout .pagination label{font-size:var(--font-secondary)}
@media(max-width:850px){.report-window-tools{gap:5px}.report-title{flex-basis:100%}.table-quickbar{flex-wrap:wrap}.report-layout main{overflow:auto}.report-table-panel{min-height:60vh}.table-quickbar .search-label{max-width:none}}
.report-tabs{padding:3px}
.report-tabs button{padding:4px 8px}
.report-layout .pagination{padding-top:2px;padding-bottom:2px}

/* Readability contract: body/table 1rem, supplementary text at least .875rem.
   Respect the browser default and text enlargement; never scale the page. */
:root{--font-body:1rem;--font-secondary:.875rem;--font-title:1.25rem;font-size:100%;line-height:1.5}
body,input,select,textarea,button{font-size:var(--font-body)}
small,.small,.muted,label,.eyebrow,.badge,.row-count{font-size:var(--font-secondary)}
.button,.text-link,.plain-button,.sort-button,.product-link,nav a{font-size:var(--font-body)}
table,.result-scroll table,.dialog-body table{font-size:var(--font-body)}
.result-scroll th,.result-scroll td{font-size:var(--font-body);line-height:1.5}
.result-scroll td small,.reason,.dialog-body small,.report-summary>summary{font-size:var(--font-secondary);line-height:1.5}
.report-layout .result-scroll .reason{font-size:var(--font-body)}
.report-layout .result-scroll td[data-key=action]{min-width:16rem}
.report-layout .result-scroll td[data-key=explanation]{min-width:19rem;max-width:32rem}
.report-layout .result-scroll th:first-child,.report-layout .result-scroll td:first-child{min-width:16rem;max-width:24rem}
.report-layout main,.report-table-panel,#report-panel,.tab-table,.tab-table>div{min-width:0}
.report-window-tools .button,.table-quickbar .button,.report-tabs button,.pagination .button{font-size:var(--font-body);line-height:1.5}
.report-title{font-size:var(--font-title)}
.report-tabs{position:relative}
.report-table-panel{container-type:inline-size}
@container (max-width:64rem){
 .report-tabs{flex-wrap:nowrap;overflow-x:auto;flex:none;scroll-padding-inline:.5rem}
 .report-tabs button{flex:none;max-width:none;white-space:nowrap}
}
.report-tabs button{padding:.375rem .625rem}
.report-layout .session-controls .button{font-size:var(--font-secondary);padding:.25rem .5rem}
.table-quickbar{flex-wrap:wrap;gap:.5rem}
.table-quickbar input,.filters input,.filters select{font-size:var(--font-body)}
.table-quickbar .row-count,.pagination label,.sort-description{font-size:var(--font-secondary)}
.report-layout .pagination{flex-wrap:wrap;justify-content:space-between;gap:.375rem;font-size:var(--font-secondary)}
.report-layout .pagination select{font-size:var(--font-body)}
.report-layout .pagination .button{padding:.25rem .5rem}
#report-general{font-size:var(--font-body);overflow-wrap:anywhere}
#report-general table{min-width:36rem}
#report-general .report-source-dates{overflow-x:auto}
#report-general .metrics{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}
#report-general .page-heading{flex-wrap:wrap}
#report-more-panel{max-width:min(26rem,calc(100vw - 1.5rem))}
#report-more-panel .button{white-space:normal;text-align:left}
.report-layout #toast{left:50%;max-width:calc(100vw - 2rem);width:max-content}
.dialog-heading{padding:1rem;gap:1rem}.dialog-heading>div{min-width:0}.dialog-heading h2{overflow-wrap:anywhere}
.dialog-body{padding:1rem;font-size:var(--font-body)}.dialog-body .table-wrap{max-width:100%}
.icon-button{flex-shrink:0;min-width:2.25rem;min-height:2.25rem}
.facts{gap:1rem}.facts>div{max-width:100%}.facts dd{overflow-wrap:anywhere}
@media(max-width:64rem){
 .report-tabs{flex-wrap:nowrap;overflow-x:auto;flex:none;scroll-padding-inline:.5rem}
 .report-tabs button{flex:none;max-width:none;white-space:nowrap}
 .report-layout .report-window-tools{gap:.375rem}
 .report-layout .report-title{flex-basis:100%}
 .report-layout .report-table-panel{min-height:0}
 .report-layout main{overflow:visible}
 .report-layout main.general-open{overflow-y:auto}
 .report-window-tools .button{white-space:normal}
 .report-layout .result-scroll th:first-child,.report-layout .result-scroll td:first-child{position:static;min-width:14rem;max-width:18rem}
 .report-layout .result-scroll th:first-child{position:sticky;top:0;left:auto;z-index:2}
}
@media(max-width:48rem){
 .report-layout main{padding:.25rem .5rem}
 .report-layout .session-controls{padding:.25rem .5rem;flex-wrap:wrap}
 .report-window-tools .report-title{margin:.25rem 0}
 .report-window-tools .button{padding:.375rem .5rem}
 .table-quickbar{padding:.375rem;align-items:center}
 .table-quickbar .search-label{flex-basis:100%;max-width:none;min-width:0}
 .table-quickbar [data-reset]{margin-left:0}
 #extra-filters .filters{grid-template-columns:repeat(auto-fit,minmax(10rem,1fr))}
 .report-layout .result-scroll{min-height:8rem}
 .report-layout .pagination{padding:.375rem;justify-content:flex-start}
 .report-layout .pagination label{gap:.375rem}
 .report-more{position:static}
 #report-more-panel{right:.5rem;top:auto}
 .report-layout main.general-open>.report-table-panel{height:80vh}
 .report-layout footer{display:none}
 body:not(.report-layout) .sidebar{position:static;width:auto;padding:.75rem}
 body:not(.report-layout) .sidebar nav{display:flex;flex-wrap:wrap}
 body:not(.report-layout) .sidebar .brand{padding:0 0 .75rem}
 body:not(.report-layout) .sidebar-note{display:none}
 body:not(.report-layout) .workspace{margin-left:0}
 main{padding:1rem;min-width:0}.topbar,.dev-banner{height:auto;padding:.75rem;flex-wrap:wrap}
 .metrics{grid-template-columns:1fr}.detail-metrics{flex-wrap:wrap;gap:1rem}
 footer{padding:1rem}.session-controls{flex-wrap:wrap;padding:.75rem}
 .print-page main{width:100%;padding:1rem;overflow-x:auto}
 .print-controls{flex-wrap:wrap;gap:.75rem}
}

/* Fitted report columns, 100% zoom. Content wraps; no clipped table overflow. */
.report-layout .result-scroll{position:relative}
.report-layout .result-scroll col.column-name{width:24%}
.report-layout .result-scroll col.column-explanation,.report-layout .result-scroll col.column-action{width:25%}
.report-layout .result-scroll col.column-code{width:12%}
.report-layout .result-scroll col.column-stock{width:8.5%}
.report-layout .result-scroll col.column-sales{width:18.5%}
.report-layout .result-scroll col.column-priority{width:11%}
.report-layout .result-scroll table{table-layout:fixed;width:100%;min-width:0}
.report-layout .result-scroll th,.report-layout .result-scroll td,
.report-layout .result-scroll th:first-child,.report-layout .result-scroll td:first-child,
.report-layout .result-scroll td[data-key=action],.report-layout .result-scroll td[data-key=explanation]{
 min-width:0;max-width:none;width:auto;padding:.625rem .5rem;white-space:normal;
 font-size:1rem;line-height:1.35;overflow-wrap:anywhere
}
.report-layout .result-scroll td:first-child{position:static}
.report-layout .result-scroll th:first-child{left:auto}
.report-layout .result-scroll .product-link{line-height:1.35}
.report-layout .result-scroll td.numeric{white-space:normal}
.report-layout .result-scroll p{margin:0}
.report-layout .result-scroll .reason{display:block;overflow:visible;-webkit-line-clamp:unset}
.report-layout .result-scroll .row-explanation{margin-top:.375rem}
.row-explanation summary{font-size:.875rem;color:var(--primary);text-decoration:underline;line-height:1.35}
.row-explanation[open]>summary{margin-bottom:.375rem}
.sales-title{display:block}.sales-sort{display:flex;gap:.375rem;flex-wrap:wrap}
.sales-sort .sort-button{font-size:1rem;white-space:nowrap}
.sales-values{font-variant-numeric:tabular-nums}
.sales-values>span{display:inline-block}
.sort-button[aria-pressed=true]{color:var(--primary);text-decoration:underline}
@container (max-width:48rem){
 .report-layout .result-scroll table,.report-layout .result-scroll tbody{display:block}
 .report-layout .result-scroll colgroup{display:none}
 .report-layout .result-scroll thead{display:block;position:static;z-index:3;background:var(--surface-soft)}
 .report-layout .result-scroll thead tr{display:flex;flex-wrap:wrap;gap:.25rem}
 .report-layout .result-scroll th,.report-layout .result-scroll th:first-child{display:block;position:static;padding:.25rem .375rem;border:0}
 .report-layout .result-scroll th .sort-button{font-size:1rem}
 .report-layout .result-scroll tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:.625rem;border-bottom:1px solid var(--border-strong);gap:.375rem .625rem}
 .report-layout .result-scroll td,.report-layout .result-scroll td:first-child{display:block;border:0;padding:0;min-width:0}
 .report-layout .result-scroll td::before{content:attr(data-label);display:block;font-size:.875rem;color:var(--muted);margin-bottom:.125rem}
 .report-layout .result-scroll td[data-key=name],.report-layout .result-scroll td[data-key=explanation],.report-layout .result-scroll td[data-key=action]{grid-column:1/-1}
 .report-layout .result-scroll td[data-key=name]::before{display:none}
 .report-layout .result-scroll td.numeric{text-align:left}
 .report-layout .result-scroll th[data-column=sales]{display:flex;align-items:center;gap:.5rem}
}

.report-layout .result-scroll th .sort-button{max-width:100%;overflow-wrap:anywhere;word-break:normal}
.sales-values{display:flex;gap:.125rem;flex-wrap:wrap}

/* Session-memory text preference. Screen only; print typography stays unchanged. */
.report-text-controls{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;font-size:1rem}
.report-text-controls .button{font-size:1rem;padding:.25rem .5rem}
.report-text-controls output{min-width:3rem;text-align:center;font-variant-numeric:tabular-nums}
.report-text-controls button:disabled{cursor:default}
.report-layout .session-controls .button,#detail .icon-button{font-size:1rem}
@media screen{
 body[data-report-text="10"]{--report-text-size:.625rem}
 body[data-report-text="11"]{--report-text-size:.6875rem}
 body[data-report-text="12"]{--report-text-size:.75rem}
 body[data-report-text="13"]{--report-text-size:.8125rem}
 body[data-report-text="14"]{--report-text-size:.875rem}
 body[data-report-text="15"]{--report-text-size:.9375rem}
 body[data-report-text="16"]{--report-text-size:1rem}
 body[data-report-text="17"]{--report-text-size:1.0625rem}
 body[data-report-text="18"]{--report-text-size:1.125rem}
 body[data-report-text="19"]{--report-text-size:1.1875rem}
 body[data-report-text="20"]{--report-text-size:1.25rem}
 .report-layout .result-scroll,#detail{
  --font-body:var(--report-text-size,1rem);--font-secondary:var(--report-text-size,1rem);
  font-size:var(--report-text-size,1rem);line-height:1.4
 }
 .report-layout .result-scroll th,.report-layout .result-scroll td,
 .report-layout .result-scroll th:first-child,.report-layout .result-scroll td:first-child,
 .report-layout .result-scroll td[data-key=action],.report-layout .result-scroll td[data-key=explanation],
 .report-layout .result-scroll th .sort-button,.report-layout .result-scroll .product-link,
 .report-layout .result-scroll .row-explanation summary,.report-layout .result-scroll td::before{
  font-size:var(--report-text-size,1rem);line-height:1.4
 }
 #detail h2{font-size:1.25em}#detail h3{font-size:1.125em}
}

/* Customer forest C — isolated from login, maintenance and printable reports. */
body.customer-page {
 --primary:#145c38; --primary-dark:#0b3523; --ink:#182d22; --muted:#506459;
 --focus:#167344; --border:#dce7df; --border-strong:#9cb8a6;
 --green-pale:#eaf5ee; --surface-soft:#f4f8f5; --background:#eff5f1;
 background:var(--background); color:var(--ink);
}
.customer-page .sidebar {width:232px;padding:25px 16px;background:linear-gradient(165deg,#0b3523,#061c13);border:0;color:#edf8f0}
.customer-page .brand {padding:0 12px 27px;color:#fff}
.customer-page .brand svg {display:block;width:164px;max-width:100%;height:auto}
.customer-page .brand-sub {margin:8px 0 0;color:#bed8c7;letter-spacing:1px;font-size:.75rem}
.customer-page .sidebar nav a {color:#e1eee5;font-size:.9375rem;padding:10px 12px;border-radius:8px;white-space:normal}
.customer-page .sidebar nav a:hover {background:#ffffff12}
.customer-page .sidebar nav a[aria-current] {background:#23553b;color:#fff;box-shadow:inset 3px 0 #a7e8b6}
.customer-page .sidebar a:focus-visible {outline-color:#a7e8b6}
.customer-page .sidebar-note {border-color:#ffffff26;color:#bed8c7;padding:16px 10px 0;font-size:.8125rem}
.customer-page .sidebar-note p {font-size:.8125rem}
.customer-page .sidebar-note a {color:#d6f2df;text-decoration:underline}
.customer-page .sidebar .status-dot {background:#a7e8b6}
.customer-page .workspace {margin-left:232px;min-width:0}
.customer-page .topbar {padding:0 clamp(20px,3vw,40px);height:60px;color:#244733;gap:12px}
.customer-page .local-tag {color:#315b42;border-radius:999px;letter-spacing:.04em;font-size:.75rem}
.customer-page .dev-banner {padding:7px clamp(20px,3vw,40px);font-size:.8125rem}
.customer-page main {max-width:1900px;padding:28px clamp(20px,3vw,40px)}
.customer-page .page-heading {margin-bottom:23px;gap:16px}
.customer-page h1 {font-size:clamp(1.65rem,2.3vw,2.25rem);font-weight:650;letter-spacing:-.035em;line-height:1.2}
.customer-page .eyebrow {font-size:.8125rem;letter-spacing:.1em;color:#40674f}
.customer-page .panel {border-radius:10px;box-shadow:0 3px 12px #123c2410}
.customer-page .button {border-radius:7px;gap:8px;min-height:42px}
.customer-page .primary {background:#145c38;border-color:#145c38;box-shadow:0 2px 3px #123c2415}
.customer-page .primary:hover {background:#0b3523}
.customer-page .secondary {color:#145c38;background:#fff;border-color:#a9c0b1}
.customer-page .secondary:hover {background:#edf5ef}
.customer-page .button:disabled {cursor:not-allowed}
.customer-page .empty {padding:30px 24px}
.customer-page .empty-icon {background:#edf6ef;border-color:#c8ded0;border-radius:14px;width:48px;height:48px}
.customer-page .empty h2 {margin-top:13px}
.customer-page .empty p {margin-bottom:16px}
.customer-page .tools {gap:20px}
.customer-page .tool {padding:24px;border-top:3px solid #145c38}
.customer-page .tool.subdued {border-top-color:#b4c6bb}
.customer-page .tool-icon {background:#e8f4ec;border-radius:10px;margin-bottom:16px}
.customer-page .tool h3 {font-size:1.25rem}
.customer-page .tool .badge {top:24px}
.customer-page .steps {gap:24px;flex-wrap:wrap;margin:20px 0}
.customer-page .steps .active {color:#145c38}
.customer-page .upload-panel {grid-template-columns:minmax(0,1fr) minmax(235px,.45fr);gap:24px}
.customer-page .dropzone {background:#f4faf6;border:1.5px dashed #92b59f;border-radius:10px;padding:32px 20px}
.customer-page .dropzone.dragging {background:#e2f2e7;border-color:#145c38}
.customer-page .input-contract {padding:12px 4px}
.customer-page .selected-files h2 {font-size:1.125rem}
.customer-page .file-row {padding:12px 2px}
.customer-page .icon-button {min-width:36px;min-height:36px;border-radius:7px}
.customer-page input,.customer-page select,.customer-page textarea {border-radius:6px}
.customer-page .job-progress {border-left:4px solid #145c38}
.customer-page .notice.error {color:#805320;border-color:#805320;background:#fcf7ee}
.customer-page .badge.urgent {color:#a83232;background:#fbeeed}
.customer-page .badge.high {color:#805320;background:#fcf7ee}
.customer-page .table-wrap {max-width:100%}
.customer-page td {font-variant-numeric:tabular-nums}
.customer-page .form-actions {flex-wrap:wrap}
.customer-page footer {padding:16px clamp(20px,3vw,40px);font-size:.8125rem}
.customer-page dialog {box-shadow:0 22px 80px #061c1333;border-radius:12px}
/* The full-window report keeps its existing row density, columns, paging and font controls. */
.customer-page.report-layout .workspace {margin-left:0}
.customer-page.report-layout main {padding:0 12px 6px;max-width:none;gap:5px}
.customer-page.report-layout .report-window-tools {background:#0b3523;color:#f1f9f3;margin:0 -12px;padding:9px 14px;gap:8px}
.customer-page.report-layout .report-window-title {color:#f1f9f3;letter-spacing:-.015em}
.customer-page.report-layout .report-window-tools .button {min-height:34px;border-color:#719781;color:#fff;background:#ffffff09}
.customer-page.report-layout .report-window-tools .button:hover {background:#ffffff20}
.customer-page.report-layout .report-window-tools :focus-visible {outline-color:#a7e8b6}
.customer-page.report-layout .report-window-tools .primary {background:#e2f2e7;color:#0b3523;border-color:#e2f2e7}
.customer-page.report-layout #report-more-panel {background:#fff;color:#173d29;border-color:#a9c0b1;padding:10px}
.customer-page.report-layout #report-more-panel .report-more-action {
 width:100%;min-height:58px;padding:9px 11px;display:flex;flex-direction:column;align-items:flex-start;
 justify-content:center;gap:2px;text-align:left;white-space:normal;color:#145c38;background:#fff;border-color:#a9c0b1;
}
.customer-page.report-layout #report-more-panel .report-more-action:hover {background:#edf6ef}
.customer-page.report-layout #report-more-panel .report-more-action:focus-visible {outline-color:#145c38;outline-offset:2px}
.customer-page.report-layout #report-more-panel .report-more-label {font-weight:650;line-height:1.35}
.customer-page.report-layout #report-more-panel .report-more-description {display:block;color:#536856;font-size:.875rem;font-weight:400;line-height:1.35}
.customer-page.report-layout #report-more-panel .destructive-action {color:#a83232;background:#fbeeed;border-color:#d8aaaa}
.customer-page.report-layout #report-more-panel .destructive-action:hover {background:#f7dfdd}
.customer-page.report-layout #report-more-panel .destructive-action .report-more-description {color:#7b3d3d}
.customer-page.report-layout .report-table-panel {border-radius:8px;box-shadow:none}
.customer-page.report-layout .report-tabs {background:#f3f8f4}
.customer-page.report-layout .report-tab[aria-selected=true] {color:#0b3523;background:#e1f0e6;border-color:#145c38}
.customer-page.report-layout th {background:#eef5f0;color:#31513e}
.customer-page.report-layout .result-scroll tbody tr:nth-child(even) {background:#f9fbf9}
.customer-page.report-layout .result-scroll tbody tr:hover {background:#edf6f0}
.customer-page.report-layout .product-link {color:#145c38}
.customer-page.report-layout .report-summary {border-color:#dce7df;background:#fff}
.customer-page.report-layout .report-compact-header {background:#fff}
@media(min-width:2000px){.customer-page:not(.report-layout) main{padding-top:36px}.customer-page .tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.customer-page .sidebar{width:202px;padding-inline:10px}.customer-page .workspace{margin-left:202px}.customer-page .brand svg{width:154px}.customer-page .upload-panel{grid-template-columns:1fr}.customer-page .input-contract{border-top:1px solid var(--border)}.customer-page .tools{gap:14px}.customer-page .tool{padding:20px}}
@media(max-width:760px){
 .customer-page:not(.report-layout) #toast{left:50%;width:max-content;max-width:calc(100vw - 2rem);overflow-wrap:anywhere}
 .customer-page:not(.report-layout) .sidebar{position:relative;width:100%;padding:13px 16px 10px}
 .customer-page .brand{padding:0 0 12px;display:flex;align-items:center;gap:18px}
 .customer-page .brand svg{width:130px;flex-shrink:0}.customer-page .brand-sub{margin:0;font-size:.6875rem;letter-spacing:.06em}
 .customer-page .sidebar nav{display:flex;flex-wrap:wrap;gap:3px}
 .customer-page .sidebar nav a{font-size:.8125rem;padding:8px;min-height:36px}
 .customer-page .sidebar nav a span{width:16px;font-size:.875rem}
 .customer-page .sidebar-note{display:none}
 .customer-page .workspace{margin-left:0}
 .customer-page .topbar{height:auto;min-height:48px;padding:10px 16px;flex-wrap:wrap;font-size:.875rem}
 .customer-page .dev-banner{padding:7px 16px}
 .customer-page main{padding:22px 16px;min-height:0}
 .customer-page .page-heading{align-items:flex-start;flex-wrap:wrap}
 .customer-page .page-heading .button{white-space:normal}
 .customer-page .tools{grid-template-columns:1fr}
 .customer-page .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customer-page .upload-panel,.customer-page .selected-files{padding:18px}
 .customer-page .steps{gap:10px 16px;font-size:.875rem}
 .customer-page .form-actions .button{white-space:normal;text-align:center}
 .customer-page .job-progress{padding:20px 16px;gap:14px}
 .customer-page .filters{grid-template-columns:1fr}
 .customer-page .next-step{flex-wrap:wrap}
 .customer-page .file-row{gap:10px}
 .customer-page footer{padding:16px}
 .customer-page.report-layout .report-window-tools{padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){.customer-page .spinner{animation:none}}
.customer-page.report-layout .report-title {color:#f1f9f3;font-size:1.375rem;line-height:1.2;letter-spacing:-.02em}
.customer-page.report-layout .report-tabs [role=tab][aria-selected=true] {background:#145c38;color:#fff;border-color:#145c38}
.otc-upload-fields {padding:24px}
.otc-upload-fields [data-otc-mode][aria-pressed=true] {background:var(--green-pale);border-color:var(--primary);color:var(--primary)}
.otc-bulk-upload .file-row {gap:12px;flex-wrap:wrap}
.otc-bulk-upload .file-row>span {min-width:0;overflow-wrap:anywhere}
.otc-upload-group {border:0;padding:0;margin:24px 0;min-width:0}
.otc-upload-group legend {font-size:1.0625rem;font-weight:650;margin-bottom:12px;color:var(--primary)}
.otc-role-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.otc-role-card {padding:18px;border:1px solid var(--border);border-radius:6px;background:var(--surface);min-width:0;overflow-wrap:anywhere}
.otc-role-card.dragging {outline:2px solid var(--primary);background:var(--green-pale)}
.otc-role-card h3 {margin-bottom:8px}
.otc-role-card p {font-size:var(--font-body);margin-bottom:10px}
.otc-slot-filename {min-height:1.6em}
.otc-slot-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.otc-slot-actions .button {min-height:38px;padding:8px 12px}
.otc-slot-detection {border-top:1px solid var(--border);margin-top:16px;padding-top:14px}
.otc-slot-note {color:var(--caution)}
.otc-upload-fields #upload:disabled {cursor:not-allowed}
@media(max-width:760px){.otc-role-grid{grid-template-columns:1fr}.otc-upload-fields{padding:18px}.otc-role-card{padding:15px}}
@media(max-width:760px){
 .customer-page.report-layout .report-window-tools {gap:5px;padding:8px 12px}
 .customer-page.report-layout .report-title {font-size:1.125rem;margin-bottom:3px}
 .customer-page.report-layout .report-window-tools .button {font-size:.8125rem;min-height:32px;padding:4px 7px}
 .customer-page.report-layout .report-text-controls {font-size:.8125rem}
 .customer-page.report-layout .table-quickbar {gap:5px;padding:6px}
 .customer-page.report-layout .table-quickbar input {font-size:.875rem;padding:6px 8px}
 .customer-page.report-layout .table-quickbar .button {font-size:.8125rem;min-height:32px;padding:4px 7px}
 .customer-page.report-layout .table-quickbar .row-count {font-size:.75rem}
 .customer-page.report-layout .pagination {gap:4px}
 .customer-page.report-layout .pagination .button,.customer-page.report-layout .pagination label,.customer-page.report-layout .pagination select {font-size:.75rem;min-height:30px}
 .customer-page.report-layout .result-scroll thead th {padding:3px 6px}
 .customer-page.report-layout .result-scroll thead button {font-size:.8125rem}
}

/* Prescription visualization; existing no-store asset contract. */
:host{display:block;color:#e9f7f0;font-family:Inter,"Segoe UI",Arial,sans-serif;margin:0 0 24px;--mint:#a1e7c5;--muted:#abc5b9}:host *{box-sizing:border-box}:host [hidden]{display:none!important}:host .neural-card{overflow:hidden;border:1px solid #315d4c;border-radius:22px;background:radial-gradient(ellipse at 20% 50%,#205a483c,transparent 65%),linear-gradient(125deg,#102e25,#0b211c);box-shadow:0 14px 34px #0a2c1720;padding:26px 30px}:host .neural-top{display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid #ffffff14;padding-bottom:17px}:host .eyebrow{font-size:10px;letter-spacing:.17em;font-weight:650;color:var(--muted)}:host .live-state{display:flex;gap:9px;align-items:center;font-size:13px;margin:9px 0 0}:host .beacon{width:7px;height:7px;background:#b6e8ce;border-radius:50%;box-shadow:0 0 12px #87d6aa55}:host .expand{font:inherit;font-size:12px;color:#d5efe2;background:#ffffff08;border:1px solid #ffffff29;padding:10px 14px;border-radius:8px;cursor:pointer;min-height:40px;white-space:nowrap}:host .expand:hover{background:#ffffff14}:host .expand:focus-visible,:host summary:focus-visible{outline:3px solid #c7ed9c;outline-offset:4px}:host .neural-body{display:grid;grid-template-columns:minmax(0,2.8fr) minmax(230px,.9fr);gap:22px;align-items:center;padding:22px 0 14px}:host .visual{min-width:0}:host .diagram svg{display:block;width:100%;height:220px;overflow:visible}:host .expanded .diagram svg{height:310px}:host .edge{stroke:#6fb89b;stroke-width:1;opacity:.28}:host .edge.lit{stroke:#b8e9b5;stroke-width:1.5;opacity:.55;filter:drop-shadow(0 0 2px #75c59a55)}:host .neuron{fill:url(#rx-node-depth);stroke:#9cd9ba;stroke-width:1.1}:host .neuron.accent{fill:#c3e8cf;stroke:#e0f2c8;filter:drop-shadow(0 1px 3px #9fd6a644)}:host .signal{fill:#d8f3ae}:host .layer-label{fill:#b1d4c1;font-size:14px;font-weight:600;letter-spacing:.7px}:host .illustration{text-align:center;font-size:10px;line-height:1.6;color:#acc3b7;margin:10px 0 0}:host .reading h2{font-size:clamp(20px,2.4vw,29px);font-weight:500;line-height:1.25;letter-spacing:-.025em;margin:13px 0;overflow-wrap:anywhere}:host .stage-note{color:#b7cbbf;font-size:12px;line-height:1.7;max-width:36ch}:host .measurements{display:flex;gap:28px;margin-top:24px}:host .measurements>div{display:flex;flex-direction:column;gap:7px}:host .metric{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:#e8f7e2}:host .metric-label{font-size:10px;line-height:1.5;color:var(--muted);max-width:18ch}:host .history{border-top:1px solid #ffffff1c;padding-top:15px;margin-top:16px}:host .history summary{cursor:pointer;font-size:12px;color:#d2e3d9;min-height:28px}:host .history summary span{border:1px solid #638d75;padding:1px 6px;border-radius:5px;font-size:10px;margin-left:6px}:host .history ol{list-style:none;padding:0;margin:12px 0;display:grid;gap:0}:host .history li{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #ffffff0b;padding:9px 0;font-size:12px;color:#c2d5ca}:host .history li time{white-space:nowrap;color:#b5dbba;font-variant-numeric:tabular-nums}:host .history li[data-current=true]{color:#ecf8e3}:host .history p,:host .architecture p{font-size:11px;line-height:1.8;color:var(--muted);margin-bottom:0}:host .architecture{border:1px solid #ffffff20;background:#ffffff04;border-radius:10px;padding:16px;font-size:12px}:host .connection{font-size:12px;line-height:1.65;color:#ffe7b6}:host .neural-card[data-state=unknown] .beacon{background:#e8cb91;box-shadow:none}:host .neural-card[data-state=failed] .beacon{background:#f5b6b1;box-shadow:none}:host .neural-card[data-state=done] .beacon{background:#b7e2ad;box-shadow:none}@media(max-width:700px){:host .neural-card{padding:20px;border-radius:17px}:host .neural-body{grid-template-columns:1fr;gap:16px;padding-top:16px}:host .reading{order:-1}:host .reading h2{font-size:25px}:host .stage-note{max-width:100%}:host .measurements{margin-top:18px;gap:38px}:host .diagram svg{height:180px}:host .expanded .diagram svg{height:230px}:host .neural-top{align-items:flex-start}:host .expand{white-space:normal;font-size:11px;max-width:130px}:host .layer-label{font-size:20px;letter-spacing:.4px}:host .neuron{r:7.5px}:host .neuron.accent{r:9px}:host .illustration{font-size:10px}:host .history li{font-size:11px}:host .metric{font-size:25px}}@media(prefers-reduced-motion:reduce){:host .signal{display:none}}:host([hidden]){display:none}:host .reading h2{min-height:3.75em}

#rx-neural-browser-banner{margin:16px 32px;border-left:4px solid #39745b;color:#163e2c;background:#edf4e8;padding:12px 16px;font-size:13px;line-height:1.6}#rx-neural-browser-host{margin:16px 32px 0}#rx-neural-browser-host[hidden],#rx-neural-browser-banner[hidden]{display:none}@media(max-width:700px){#rx-neural-browser-host,#rx-neural-browser-banner{margin:12px 16px}}
