/* Northwind Health EHR — TEST ENVIRONMENT. Dense desktop-EHR styling (activity toolbar, workspace tabs, Storyboard). */
* { box-sizing: border-box; }
body.page { margin: 0; font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: 12px; color: #1d2733; background: #e6ebf1; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #1a5a9a; }
a:hover { color: #0d3d6e; }
a:focus, button:focus, input:focus, select:focus, textarea:focus, summary:focus, [role="tab"]:focus { outline: 2px solid #f0a020; outline-offset: 1px; }
.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-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 4px 8px; z-index: 200; }
.skip-link:focus { left: 4px; }
.ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }

/* ---- environment banner + title bar ------------------------------------------------ */
.synthetic-banner { background: #fde68a; color: #7c2d12; border-bottom: 1px solid #d97706; padding: 2px 12px; text-align: center; font-size: 11px; }
.titlebar { display: flex; align-items: center; gap: 12px; background: linear-gradient(#2a5d88, #183f61); color: #fff; padding: 3px 10px; min-height: 32px; position: relative; z-index: 20; }
.org-menu { position: relative; }
.org-button { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; background: linear-gradient(#e2803a, #b85a1c); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 3px; border: 1px solid #8f4210; letter-spacing: 0.2px; user-select: none; }
.org-button::-webkit-details-marker { display: none; }
.org-static { cursor: default; }
.org-panel { position: absolute; top: 30px; left: 0; display: flex; gap: 18px; background: #fff; color: #1d2733; border: 1px solid #7f97b0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); padding: 10px 14px; min-width: 560px; }
.org-group h2 { font-size: 11px; text-transform: uppercase; color: #5a6b7c; margin: 0 0 4px; letter-spacing: 0.4px; }
.org-group ul { list-style: none; margin: 0; padding: 0; }
.org-group a { display: block; padding: 3px 4px; text-decoration: none; }
.org-group a:hover { background: #e3eefa; }
.app-name { font-weight: 600; font-size: 13px; }
.app-env { background: #fcd34d; color: #5b3a06; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 2px; margin-left: 4px; }
.session-info { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.title-btn { display: inline-flex; align-items: center; gap: 4px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 3px; padding: 2px 8px; font: inherit; cursor: pointer; }
.title-btn:hover { background: rgba(255, 255, 255, 0.15); }

/* ---- main activity toolbar --------------------------------------------------------- */
.toolbar { background: linear-gradient(#fbfcfd, #dbe3ec); border-bottom: 1px solid #9fb0c2; }
.toolbar ul { list-style: none; margin: 0; padding: 2px 6px; display: flex; flex-wrap: wrap; gap: 1px; }
.tool { position: relative; display: flex; align-items: center; gap: 5px; padding: 4px 9px; color: #1d3550; text-decoration: none; border: 1px solid transparent; border-radius: 3px; }
.tool:hover { background: #e2edf8; border-color: #a9c2dc; color: #0d2c4a; }
.tool[aria-current="page"] { background: #cfe0f2; border-color: #7fa3c8; font-weight: 600; }
.tool .ico { color: #2d6aa3; width: 16px; height: 16px; }
.tool-badge { background: #c62828; color: #fff; border-radius: 8px; font-size: 10px; font-weight: 700; padding: 0 5px; margin-left: 2px; }

/* ---- workspace tabs ---------------------------------------------------------------- */
.ws-tabs { background: #c3cfdc; border-bottom: 1px solid #8ea3b9; }
.ws-tabs ul { list-style: none; margin: 0; padding: 4px 6px 0; display: flex; gap: 2px; flex-wrap: wrap; }
.ws-tab { display: flex; align-items: center; background: linear-gradient(#e9eef4, #d4dde7); border: 1px solid #8ea3b9; border-bottom: none; border-radius: 4px 4px 0 0; }
.ws-tab a { display: flex; align-items: center; gap: 5px; padding: 4px 10px; text-decoration: none; color: #24364a; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tab a[aria-current="page"] { font-weight: 700; color: #0d2c4a; }
.ws-tab:has(a[aria-current="page"]) { background: #fff; position: relative; top: 1px; }
.ws-close-form { margin: 0; }
.ws-close { background: none; border: none; padding: 2px 5px 2px 0; cursor: pointer; color: #5a6b7c; display: flex; }
.ws-close:hover { color: #b3261e; }
.ws-close .ico { width: 12px; height: 12px; }

/* ---- page frame -------------------------------------------------------------------- */
.main { flex: 1; padding: 8px 12px 24px; background: #fff; min-width: 0; }
.activity-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; padding-bottom: 4px; color: #183f61; border-bottom: 1px solid #c6d2de; }
h2 { font-size: 13px; margin: 8px 0 6px; color: #1f4467; }
h3 { font-size: 12px; margin: 10px 0 4px; color: #1f4467; }
.statusbar { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; color: #3c4b5a; background: #d4dde7; border-top: 1px solid #a9b8c8; padding: 3px 12px; }
.page-bare .main { display: flex; flex-direction: column; align-items: center; padding-top: 40px; background: linear-gradient(#e6ebf1, #cfd9e4); }
.page-bare .activity-title { border: none; font-size: 20px; }

/* ---- login ------------------------------------------------------------------------- */
.login-panel { width: 360px; max-width: 100%; background: #fff; border: 1px solid #9fb0c2; border-radius: 4px; box-shadow: 0 4px 14px rgba(20, 40, 70, 0.18); padding: 18px 22px; }
.login-brand { text-align: center; margin-bottom: 4px; }
.login-mark { display: inline-block; background: linear-gradient(#e2803a, #b85a1c); color: #fff; font-weight: 800; padding: 6px 10px; border-radius: 4px; letter-spacing: 1px; }
.login-panel h2 { text-align: center; font-size: 15px; }
.auth-card { max-width: 420px; }

/* ---- generic blocks ---------------------------------------------------------------- */
.card { background: #fff; border: 1px solid #b9c7d5; border-radius: 3px; padding: 8px 12px; margin-bottom: 10px; }
.card h2 { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.layout-sidebar { display: grid; grid-template-columns: 230px 1fr; gap: 12px; align-items: start; }
.layout-top { display: block; }
.filters { background: #f2f5f8; border: 1px solid #b9c7d5; border-radius: 3px; padding: 6px 10px; margin-bottom: 10px; }
.filters h2 { margin-top: 0; }
.results { min-width: 0; }
.stack-form .field { margin-bottom: 8px; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 2px; font-size: 11px; color: #33475b; }
.field input[type="text"], .field input[type="password"], .field input[type="date"], .field input[type="time"], .field input:not([type]), .field select, .field textarea { width: 100%; min-width: 150px; padding: 3px 5px; border: 1px solid #8b9bab; border-radius: 2px; font: inherit; background: #fff; }
.field input[readonly] { background: #eef1f4; }
.field textarea { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
fieldset.field { border: none; padding: 0; margin: 0 0 8px; }
.radio-inline .radio, .check-group .check { display: inline-flex; align-items: center; gap: 3px; margin-right: 10px; }
.radio { display: flex; align-items: center; gap: 4px; }
.radio label, .check label { font-weight: normal; }
.field-check { display: flex; gap: 6px; align-items: flex-start; }
.field-check label { font-weight: normal; }
.hint { font-size: 11px; color: #5a6b7c; margin-top: 2px; }
.form-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }

/* ---- buttons ----------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; padding: 3px 10px; border: 1px solid #8fa1b3; background: linear-gradient(#ffffff, #e2e8ee); color: #1d2733; cursor: pointer; text-decoration: none; border-radius: 3px; line-height: 18px; }
.btn:hover { background: linear-gradient(#f4f9ff, #d6e4f2); border-color: #6f8fb0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(#3d82c4, #275f99); border-color: #1d4d7f; color: #fff; }
.btn-primary:hover { background: linear-gradient(#3477b7, #1f5287); color: #fff; }
.btn-danger { background: linear-gradient(#cf4a3f, #a3302a); border-color: #7f241e; color: #fff; }
.btn-accept .ico { color: #2e8b3e; stroke-width: 2.6; }
.btn-cancel .ico { color: #b3261e; stroke-width: 2.6; }
.btn-secondary { background: linear-gradient(#ffffff, #e5e9ed); }
.btn-link { background: none; border: none; color: #1a5a9a; text-decoration: underline; padding: 0; }
.btn-small { padding: 1px 7px; font-size: 11px; }
.btn-wide { width: 100%; justify-content: center; margin-top: 6px; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.action-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: linear-gradient(#f7f9fb, #e4eaf0); border: 1px solid #b9c7d5; border-radius: 3px; padding: 3px 5px; margin: 0 0 8px; }
.bottom-bar { position: sticky; bottom: 0; margin-top: 8px; box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08); }
.dialog-buttons { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; padding-top: 8px; border-top: 1px solid #d5dde6; }

/* ---- grids ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; background: #fff; margin-bottom: 8px; }
.data-table caption { text-align: left; font-weight: 600; padding: 3px 0; color: #1f4467; }
.data-table th, .data-table td { border: 1px solid #cdd6df; padding: 2px 6px; text-align: left; vertical-align: top; height: 22px; }
.data-table thead th { background: linear-gradient(#f3f6f9, #dbe3eb); font-weight: 600; color: #2a3d52; white-space: nowrap; }
.data-table thead th a { color: #1f3a57; text-decoration: none; }
.data-table tbody tr:nth-child(even) { background: #f7f9fb; }
.data-table tbody tr:hover { background: #eaf3fc; }
.data-table tbody th { font-weight: normal; }
.selectable tbody tr { cursor: pointer; }
.data-table tbody tr.row-highlight, .data-table tbody tr:has(input:checked) { background: #fff2bd; }
.row-unread td { font-weight: 600; }
.row-blocked { color: #7a8794; background: repeating-linear-gradient(135deg, #f4f6f8, #f4f6f8 6px, #eceff2 6px, #eceff2 12px) !important; }
.row-booked { background: #eef3f9 !important; }
.cell-warn { color: #a12622; font-weight: 600; }
.pager ul { list-style: none; display: flex; gap: 4px; padding: 0; flex-wrap: wrap; }
.pager a { display: inline-block; padding: 1px 8px; border: 1px solid #b9c7d5; background: #fff; text-decoration: none; border-radius: 2px; }
.pager a[aria-current="page"] { background: #275f99; color: #fff; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px 16px; margin: 0 0 8px; }
.details div { display: flex; gap: 6px; border-bottom: 1px dotted #cdd6df; padding: 2px 0; }
.details dt { font-weight: 600; min-width: 140px; color: #3e4c59; }
.details dd { margin: 0; }

/* ---- alerts + badges --------------------------------------------------------------- */
.alert { padding: 6px 10px; border: 1px solid; border-radius: 3px; margin: 6px 0; }
.alert[hidden] { display: none; }
.alert ul { margin: 4px 0 0 18px; padding: 0; }
.alert-error { background: #fdecea; border-color: #c2453b; color: #7f241e; }
.alert-success { background: #e7f6ec; border-color: #2f855a; color: #22543d; }
.alert-info { background: #e8f1fb; border-color: #3f78b5; color: #1f3a57; }
.badge { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; border: 1px solid #8b9bab; background: #eef2f5; white-space: nowrap; }
.badge-scheduled { background: #e3eefb; border-color: #3f78b5; }
.badge-arrived { background: #fff4d6; border-color: #d97706; }
.badge-completed, .badge-signed, .badge-done { background: #e3f4e8; border-color: #2f855a; }
.badge-no-show { background: #fdecea; border-color: #c2453b; }
.badge-canceled { background: #eee; border-color: #888; text-decoration: line-through; }
.badge-new { background: #fff4d6; border-color: #d97706; font-weight: 700; }
.badge-open { background: #e3eefb; border-color: #3f78b5; }

/* ---- tabs -------------------------------------------------------------------------- */
.tabs [role="tablist"] { display: flex; gap: 2px; border-bottom: 2px solid #2d6aa3; }
.tabs [role="tab"] { font: inherit; padding: 4px 14px; border: 1px solid #a9b8c8; border-bottom: none; background: linear-gradient(#f3f6f9, #dbe3eb); cursor: pointer; border-radius: 3px 3px 0 0; color: #24364a; }
.tabs [role="tab"][aria-selected="true"] { background: #2d6aa3; color: #fff; font-weight: 600; }
.tab-panel { background: #fff; border: 1px solid #b9c7d5; border-top: none; padding: 8px 10px; }

/* ---- patient workspace ------------------------------------------------------------- */
.workspace { display: grid; grid-template-columns: 230px 1fr; gap: 0; border: 1px solid #a9b8c8; min-height: 60vh; }
.storyboard { background: linear-gradient(#f1f5f9, #e4ebf2); border-right: 1px solid #a9b8c8; padding: 8px 10px; font-size: 11px; }
.storyboard .details { grid-template-columns: 1fr; }
.storyboard .details dt { min-width: 70px; }
.sb-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.sb-avatar { width: 42px; height: 42px; border-radius: 50%; background: #5b7fa6; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.sb-name { font-size: 14px; margin: 0; color: #0d2c4a; }
.sb-sub { margin: 0; color: #3c4b5a; }
.sb-allergy { color: #a12622; margin: 6px 0; display: flex; gap: 4px; align-items: flex-start; }
.sb-nka { color: #2a3d52; }
.sb-alert { display: flex; gap: 6px; background: #fff4cf; border: 1px solid #e0b400; border-radius: 3px; padding: 5px 6px; margin: 6px 0; }
.sb-alert .ico, .sb-allergy .ico { color: #b45309; margin-top: 2px; }
.sb-next { margin-top: 6px; }
.ws-main { min-width: 0; display: flex; flex-direction: column; }
.activity-tabs { background: #dde6ef; border-bottom: 1px solid #a9b8c8; }
.activity-tabs ul { list-style: none; margin: 0; padding: 3px 6px 0; display: flex; gap: 2px; flex-wrap: wrap; }
.activity-tabs a { display: block; padding: 4px 12px; text-decoration: none; color: #24364a; border: 1px solid transparent; border-bottom: none; border-radius: 3px 3px 0 0; }
.activity-tabs a:hover { background: #eef4fa; }
.activity-tabs a[aria-current="page"] { background: #fff; border-color: #a9b8c8; border-top: 3px solid #2d6aa3; font-weight: 600; position: relative; top: 1px; }
.activity { padding: 8px 10px; min-width: 0; }
.report { border: 1px solid #b9c7d5; border-radius: 3px; padding: 6px 10px; margin-top: 8px; background: #fbfcfd; }
.report h2 { margin-top: 2px; }
.summary h2 { border-bottom: 1px solid #cdd6df; }
.synthetic-tag { color: #b45309; font-weight: bold; }
.note-text { white-space: pre-wrap; font-family: Consolas, "Courier New", monospace; background: #f7f9fb; border: 1px solid #d5dde6; padding: 6px 8px; }
.enc-header { background: #eef3f8; border: 1px solid #c6d2de; padding: 4px 8px; border-radius: 3px; }
.nav-section { border: 1px solid #c6d2de; border-radius: 3px; padding: 4px 10px 8px; margin-bottom: 8px; }
.nav-section h2 { background: #e8eff6; margin: -4px -10px 8px; padding: 4px 10px; border-bottom: 1px solid #c6d2de; }
.sign-bar { position: sticky; bottom: 0; background: #fff; }

/* ---- windows + dialogs ------------------------------------------------------------- */
.window { border: 1px solid #7f97b0; border-radius: 3px; max-width: 720px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.window-title, .modal-title { margin: 0; background: linear-gradient(#2a5d88, #183f61); color: #fff; padding: 5px 10px; font-size: 13px; }
.window-body, .modal-body { padding: 8px 12px; }
.modal { border: 1px solid #4b6b8c; padding: 0; max-width: 560px; width: 92vw; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.modal::backdrop { background: rgba(20, 30, 45, 0.5); }
.modal-actions { display: flex; gap: 8px; margin-top: 10px; }
.interstitial .modal-title { background: linear-gradient(#d9822b, #b4621a); }
.spinner { display: flex; gap: 8px; align-items: center; padding: 8px; }
.spinner[hidden] { display: none; }
.spinner-icon { width: 16px; height: 16px; border: 3px solid #b9c7d5; border-top-color: #2d6aa3; border-radius: 50%; animation: nwspin 0.8s linear infinite; }
@keyframes nwspin { to { transform: rotate(360deg); } }

/* ---- patient lookup + lists -------------------------------------------------------- */
.lookup { background: #f2f5f8; border: 1px solid #b9c7d5; border-radius: 3px; padding: 6px 10px; margin-bottom: 8px; }
.lookup-form .field { min-width: 240px; }
.list-picker { margin-bottom: 6px; }
.list-picker h2 { display: inline; font-size: 12px; margin-right: 8px; }
.list-picker ul { display: inline-flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.list-picker a { display: inline-block; padding: 2px 8px; border: 1px solid #b9c7d5; border-radius: 10px; text-decoration: none; background: #f7f9fb; }
.list-picker a[aria-current="page"] { background: #2d6aa3; color: #fff; border-color: #2d6aa3; }
.criteria-bar { background: #f2f5f8; border: 1px solid #b9c7d5; border-radius: 3px; padding: 6px 10px; margin-bottom: 8px; }

/* ---- Book It ----------------------------------------------------------------------- */
.bookit-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: linear-gradient(#f7f9fb, #e4eaf0); border: 1px solid #b9c7d5; border-radius: 3px; padding: 5px 10px; margin-bottom: 8px; }
.bookit-top .field { margin: 0; }
.bookit-top .field input { min-width: 120px; width: 140px; }
.bookit-cols { display: grid; grid-template-columns: 240px 1fr 200px; gap: 10px; align-items: start; }
.variant-b .bookit-cols { grid-template-columns: 200px 1fr 240px; }
.visit-card, .prefs { background: #f4f7fa; border: 1px solid #b9c7d5; border-radius: 3px; padding: 6px 10px; }
.visit-card h2, .prefs h2, .results-pane h2 { margin-top: 0; }
.visit-card .field { margin-bottom: 6px; }
.visit-context { background: #fff; border: 1px solid #c6d2de; border-left: 4px solid #2d6aa3; padding: 4px 6px; margin: 6px 0; }
.reschedule-context { border-left-color: #d97706; }
.held { background: #fff; border: 1px dashed #8fa1b3; padding: 5px 6px; margin-top: 8px; min-height: 30px; }
.held.held-on { border-style: solid; border-color: #2d6aa3; background: #e8f1fb; font-weight: 600; }
.results-pane { min-width: 0; }
.solution-day h3 { background: #e8eff6; padding: 2px 6px; border: 1px solid #c6d2de; border-radius: 2px; }
.solution-grid { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px; }
.solution { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 1px; font: inherit; padding: 5px 8px; border: 1px solid #8db3d9; border-radius: 4px; background: linear-gradient(#f5faff, #dcebfa); cursor: pointer; color: #1d2733; }
.solution:hover { border-color: #2d6aa3; background: linear-gradient(#eaf4ff, #cfe2f6); }
.solution[aria-pressed="true"], .solution-select[aria-pressed="true"] { background: #2d6aa3; border-color: #1d4d7f; color: #fff; }
.sol-time { font-size: 14px; font-weight: 700; }
.sol-prov { font-weight: 600; }
.sol-meta { font-size: 11px; opacity: 0.85; }

/* ---- Snapboard --------------------------------------------------------------------- */
.snapboard { display: flex; gap: 6px; overflow-x: auto; align-items: flex-start; }
.sb-col { flex: 0 0 210px; border: 1px solid #a9b8c8; border-radius: 3px; background: #f7f9fb; }
.sb-col h2 { margin: 0; padding: 4px 8px; background: linear-gradient(#2a5d88, #183f61); color: #fff; font-size: 12px; }
.sb-col ul { list-style: none; margin: 0; padding: 4px; }
.sb-slot { border: 1px solid #c6d2de; border-radius: 3px; padding: 3px 5px; margin-bottom: 3px; background: #fff; }
.sb-open { background: #eef8ee; border-color: #9bc79b; }
.sb-tcm { border-left: 4px solid #7b4fb0; }
.sb-booked { background: #e9eef5; }
.sb-no-show { background: #fdecea; }
.sb-completed { background: #e3f4e8; }
.sb-time { font-weight: 700; }
.sb-meta { font-size: 11px; color: #4a5a6a; }

/* ---- In Basket --------------------------------------------------------------------- */
.inbasket { display: grid; grid-template-columns: 250px 1fr; gap: 10px; align-items: start; }
.ib-folders { border: 1px solid #a9b8c8; border-radius: 3px; background: #f4f7fa; }
.ib-folders ul { list-style: none; margin: 0; padding: 4px; }
.ib-folders a { display: flex; justify-content: space-between; gap: 6px; padding: 4px 6px; text-decoration: none; color: #1d3550; border-radius: 2px; }
.ib-folders a:hover { background: #e2edf8; }
.ib-folders a[aria-current="page"] { background: #cfe0f2; font-weight: 700; }
.ib-count { background: #275f99; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; min-width: 20px; text-align: center; }
.ib-filter ul { list-style: none; display: flex; gap: 4px; margin: 0 0 6px; padding: 0; }
.ib-filter a { padding: 1px 8px; border: 1px solid #b9c7d5; border-radius: 10px; text-decoration: none; }
.ib-filter a[aria-current="page"] { background: #2d6aa3; color: #fff; border-color: #2d6aa3; }
.ib-list, .scroll-list { max-height: 42vh; overflow-y: auto; border: 1px solid #c6d2de; margin-bottom: 8px; }
.ib-list .data-table, .scroll-list .data-table { margin: 0; }
.ib-list thead th, .scroll-list thead th { position: sticky; top: 0; z-index: 1; }
.ib-reading { border: 1px solid #a9b8c8; border-radius: 3px; padding: 6px 10px; min-height: 120px; background: #fbfcfd; }
.ib-meta { color: #4a5a6a; font-size: 11px; }
.ib-body p { margin: 3px 0; }

/* ---- variant B: different chrome --------------------------------------------------- */
.variant-b .titlebar { background: linear-gradient(#5b4b7a, #43355e); }
.variant-b .toolbar { background: linear-gradient(#fbfaff, #e2dcef); }
.variant-b .org-button { background: linear-gradient(#3aa08f, #23786a); border-color: #1a5a50; }

@media (max-width: 900px) {
  .layout-sidebar, .workspace, .bookit-cols, .inbasket { grid-template-columns: 1fr; }
  .storyboard { border-right: none; border-bottom: 1px solid #a9b8c8; }
  .org-panel { min-width: 0; flex-direction: column; }
}
