:root {
  --ink: #13232d;
  --muted: #596b76;
  --navy: #15394f;
  --blue: #2c6b8c;
  --pale: #edf4f7;
  --paper: #fbfaf7;
  --line: #c8d2d8;
  --white: #fff;
  --alert: #8c4f18;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #e9eef0;
  font-size: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f4f7f8 0, #e8edef 100%); }
body.large-text { font-size: 21px; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--white); padding: .7rem 1rem; }
.site-header { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.6rem clamp(1rem, 4vw, 4rem); background: var(--navy); color: var(--white); }
.header-brand { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); min-width: 0; }
.brand-logo { display: block; flex: 0 0 auto; width: clamp(190px, 22vw, 315px); aspect-ratio: 1183 / 311; border-radius: .65rem; background: #ffffff; box-shadow: 0 7px 22px rgba(0, 0, 0, .2); color-scheme: light; forced-color-adjust: none; }
.brand-logo-image { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.brand-logo-text { display: none; width: 100%; height: 100%; align-items: center; gap: .55rem; padding: .35rem .55rem; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.35rem; height: 2.35rem; border: 3px solid #52c9f5; border-radius: .55rem; color: #ffffff; font-size: 1.45rem; font-weight: 950; line-height: 1; transform: rotate(-8deg); }
.brand-name { color: #ffffff; font-size: clamp(.95rem, 1.8vw, 1.45rem); font-weight: 850; letter-spacing: -.035em; }
.brand-name strong { color: #52c9f5; font-weight: 650; }
.site-header h1 { margin: .1rem 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.eyebrow { margin: 0 0 .25rem; font-weight: 800; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.site-header .eyebrow, .site-header .muted { color: #c4d8e3; }
.muted { color: var(--muted); }
.header-tools { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.secure-badge { display: inline-flex; align-items: center; border: 1px solid #8bb4c8; border-radius: 999px; padding: .55rem .8rem; font-size: .85rem; }
.tabs { display: flex; gap: .35rem; padding: .7rem clamp(1rem, 4vw, 4rem); background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; overflow-x: auto; }
.tab, button { border: 0; border-radius: .55rem; padding: .7rem 1rem; background: var(--navy); color: var(--white); font-weight: 750; }
.tab { background: transparent; color: var(--ink); white-space: nowrap; }
.tab:hover, .tab.active { background: var(--navy); color: var(--white); }
.secondary { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
main { max-width: 1500px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.5rem); }
.view { display: none; }
.view.active { display: block; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.08; margin: .15rem 0 .8rem; }
h3 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 .75rem; }
p { line-height: 1.5; }
.hero-panel, .panel, .document-card, .tool-card { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 10px 26px rgba(22, 47, 61, .06); }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 1.5rem; padding: clamp(1.2rem, 3vw, 2.3rem); align-items: end; }
.source-note { border-left: 5px solid var(--blue); background: var(--pale); padding: 1rem; line-height: 1.45; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat { background: var(--navy); color: var(--white); padding: 1rem; border-radius: .75rem; }
.stat strong { display: block; font-size: 2rem; line-height: 1; }
.stat span { color: #cde0e9; font-size: .85rem; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { padding: 1.3rem; margin: 1rem 0; }
.theory-label { display: inline-block; max-width: 430px; padding: .55rem .8rem; border: 1px solid var(--alert); border-radius: 999px; color: var(--alert); font-weight: 800; text-align: center; }
.theory-warning { margin-bottom: 1rem; border-left-color: var(--alert); }
.theory-lead { padding: clamp(1.35rem, 3vw, 2.4rem); border: 1px solid var(--line); border-left: 9px solid var(--blue); border-radius: .9rem; background: var(--paper); box-shadow: 0 10px 26px rgba(22, 47, 61, .06); }
.theory-lead > p:not(.eyebrow) { max-width: 1100px; font-size: 1.12rem; line-height: 1.65; }
.theory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.theory-card { position: relative; margin: 0; padding-left: 4.8rem; min-height: 12rem; }
.theory-number { position: absolute; top: 1.15rem; left: 1.15rem; margin: 0; color: var(--blue); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.theory-review { margin-top: 1rem; align-items: start; }
.theory-review .panel { margin: 0; }
.check-list { padding-left: 1.35rem; }
.check-list li { margin: .55rem 0; line-height: 1.4; }
.upload-panel { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(320px, 1.3fr); gap: 1.4rem; align-items: start; }
form { display: grid; gap: .8rem; }
label { font-weight: 750; display: grid; gap: .35rem; }
input, select, textarea { width: 100%; background: var(--white); color: var(--ink); border: 2px solid #9aabb5; border-radius: .45rem; padding: .7rem .8rem; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus, button:focus { outline: 4px solid #f1c453; outline-offset: 2px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1rem; }
.section-heading > p { max-width: 650px; color: var(--muted); }
.timeline-list { display: grid; gap: .8rem; }
.visit-list { display: grid; gap: .85rem; margin-top: 1rem; }
.visit-card { display: grid; grid-template-columns: minmax(170px, .24fr) minmax(0, 1fr); gap: 1.2rem; padding: 1.15rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-left: 7px solid var(--blue); border-radius: .8rem; }
.visit-date { color: var(--navy); font-size: 1.05rem; font-weight: 900; line-height: 1.3; }
.visit-card h3 { margin: .55rem 0 .2rem; }
.visit-location { margin: .2rem 0 .5rem; color: var(--muted); font-weight: 750; }
.visit-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: .75rem; }
.visit-link { display: inline-block; border-radius: .5rem; padding: .6rem .85rem; color: var(--white); background: var(--navy); font-weight: 800; text-decoration: none; }
.timeline-visit { scroll-margin-top: 5.8rem; padding: 1.2rem; background: color-mix(in srgb, var(--pale) 72%, transparent); border: 1px solid var(--line); border-radius: .9rem; transition: border-color .25s, box-shadow .25s; }
.timeline-visit-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .9rem; padding-bottom: .8rem; border-bottom: 2px solid var(--line); }
.timeline-visit-header h3 { margin-bottom: .15rem; font-size: 1.45rem; }
.timeline-group-events { display: grid; gap: .8rem; }
.timeline-visit.visit-highlight { border-color: #d38b29; box-shadow: 0 0 0 5px rgba(211, 139, 41, .22); }
.timeline-item { display: grid; grid-template-columns: minmax(150px, .22fr) minmax(0, 1fr); gap: 1.2rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-left: 7px solid var(--blue); border-radius: .7rem; }
.timeline-date { font-weight: 850; color: var(--navy); }
.status { display: inline-block; margin-top: .45rem; padding: .2rem .5rem; border-radius: 999px; background: var(--pale); color: var(--navy); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.tab-count { display: inline-grid; place-items: center; min-width: 1.55rem; min-height: 1.55rem; margin-left: .25rem; padding: 0 .35rem; border-radius: 999px; background: #e8b94e; color: #172633; font-size: .72rem; }
.search-label { max-width: 850px; margin-bottom: 1rem; }
.document-list { display: grid; gap: .8rem; }
.document-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.document-card h3 { margin-bottom: .35rem; }
.document-actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; }
.count-badge { display: inline-block; border-radius: 999px; background: var(--pale); color: var(--navy); padding: .25rem .55rem; font-size: .78rem; font-weight: 800; }
.meta-row { display: flex; gap: .55rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.meta-pill { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem; }
.imaging-layout { display: grid; grid-template-columns: minmax(260px, .32fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.series-list { display: grid; gap: .55rem; max-height: 72vh; overflow: auto; padding-right: .25rem; }
.series-button { text-align: left; background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: .8rem; }
.series-button.active { border: 3px solid var(--blue); background: var(--pale); }
.series-button strong { display: block; }
.series-button span { display: block; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.viewer { background: #071016; color: var(--white); min-height: 65vh; border-radius: .8rem; padding: 1rem; position: sticky; top: 5.2rem; }
.viewer.empty { display: grid; place-items: center; }
.viewer-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.viewer img { display: block; width: 100%; max-height: 58vh; object-fit: contain; background: #000; margin: .7rem 0; }
.viewer-controls { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: center; }
.viewer input[type="range"] { padding: 0; border: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tool-card { padding: 1.2rem; }
.tool-card a { display: inline-block; margin-top: .6rem; color: var(--white); background: var(--navy); padding: .65rem .9rem; border-radius: .5rem; font-weight: 800; text-decoration: none; }
dialog { width: min(1400px, 95vw); max-height: 92vh; border: 0; border-radius: .9rem; padding: 1.2rem; color: var(--ink); }
dialog::backdrop { background: rgba(5, 17, 24, .82); }
.dialog-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.dialog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: 1rem; margin-top: 1rem; }
.document-preview { min-height: 60vh; background: #e6ecef; display: grid; place-items: center; border-radius: .5rem; overflow: hidden; }
.document-preview iframe, .document-preview img { width: 100%; height: 70vh; object-fit: contain; border: 0; }
pre { white-space: pre-wrap; word-break: break-word; max-height: 68vh; overflow: auto; background: #f3f5f5; padding: 1rem; border: 1px solid var(--line); font: 1rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.context-panel { margin-top: 1rem; border-top: 2px solid var(--line); padding-top: 1rem; }
.mri-context { margin-top: 1rem; border-top: 1px solid #527080; padding-top: 1rem; }
.mri-context .comment { color: var(--ink); }
.mri-context .muted, .mri-context .empty-note { color: #c7d7df; }
.context-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.comment-list { display: grid; gap: .7rem; margin: .8rem 0; }
.comment { padding: .8rem 1rem; border-left: 5px solid var(--blue); background: var(--pale); }
.comment p { margin: 0 0 .35rem; white-space: pre-wrap; }
.comment small { color: var(--muted); }
.empty-note { color: var(--muted); font-style: italic; }
.timeline-context { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.timeline-context summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.timeline-context form { margin-top: .7rem; }
.need-filters { display: flex; gap: .55rem; margin: 1rem 0; flex-wrap: wrap; }
.need-filter.active { background: var(--navy); color: var(--white); }
.need-list { display: grid; gap: .75rem; }
.need-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .8rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-left: 7px solid var(--alert); border-radius: .7rem; }
.need-item.done { border-left-color: #39704d; opacity: .82; }
.need-item.done .need-text { text-decoration: line-through; }
.need-state { width: 1.45rem; height: 1.45rem; margin-top: .2rem; }
.need-text { margin: 0 0 .35rem; line-height: 1.45; font-weight: 750; }
.need-meta { color: var(--muted); font-size: .82rem; }
.inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.inline-form .muted { grid-column: 1 / -1; margin: 0; }
a { color: #145f8a; }
.user-list { display: grid; gap: .65rem; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row strong, .user-row span { display: block; }
.user-row > div > span { color: var(--muted); margin-top: .15rem; }
.auth-page { display: grid; place-items: center; padding: 1rem; background: linear-gradient(145deg, var(--navy), #0b2637 55%, #315f73); }
.auth-shell { width: min(620px, 100%); padding: 0; }
.auth-card { background: var(--paper); border-radius: 1rem; padding: clamp(1.4rem, 5vw, 2.6rem); box-shadow: 0 28px 70px rgba(0, 0, 0, .3); }
.auth-card h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); margin: .15rem 0 .6rem; line-height: 1; }
.auth-theme-row { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.auth-top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.auth-brand-logo { display: block; width: min(290px, 66%); aspect-ratio: 1183 / 311; border-radius: .55rem; background: #ffffff; color-scheme: light; forced-color-adjust: none; }
.auth-card form { margin-top: 1.2rem; }
.auth-note { color: var(--muted); font-size: .9rem; margin: 1.1rem 0 0; }
.hipaa-login-notice { margin: 1rem 0; padding: 1rem; border: 1px solid #b67528; border-left: 6px solid #b67528; border-radius: .55rem; background: #fff7e8; color: #38230b; }
.hipaa-login-notice p { margin: .45rem 0 0; font-size: .9rem; }
.site-footer { max-width: 1500px; margin: 0 auto 2rem; }
.hipaa-footer { padding: 1.1rem clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 5px solid var(--blue); background: var(--paper); color: var(--ink); }
.hipaa-footer p { margin: .35rem 0 0; font-size: .85rem; line-height: 1.45; }
.hipaa-qualification { color: var(--muted); }
.brand-credit { margin-top: .75rem !important; color: var(--muted); font-size: .76rem !important; text-align: right; }
.brand-credit a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: .2em; }
.brand-credit a:hover { color: var(--blue); }
.auth-footer { margin-top: 1rem; border-radius: .7rem; }
.form-error { background: #fff0e4; color: #742e00; border-left: 5px solid #b9510c; padding: .8rem 1rem; font-weight: 750; }

/* High-contrast dark theme. Dark is the default selected by theme.js. */
html[data-portal-theme="dark"] {
  --ink: #ffffff;
  --muted: #c9d0d4;
  --navy: #52c9f5;
  --blue: #52c9f5;
  --pale: #10232c;
  --paper: #090909;
  --line: #4b5155;
  --alert: #ffb86b;
  color: var(--ink);
  background: #000000;
}
html[data-portal-theme="dark"] body {
  color: var(--ink);
  background: #000000;
}
html[data-portal-theme="dark"] .site-header {
  color: #ffffff;
  background: #050505;
  border-bottom: 2px solid var(--blue);
}
html[data-portal-theme="dark"] .brand-logo,
html[data-portal-theme="dark"] .auth-brand-logo {
  background-color: #050505;
  background-image: none;
  border: 1px solid #2f6c86;
}
html[data-portal-theme="dark"] .brand-logo-text { display: flex; }
html[data-portal-theme="dark"] .brand-logo-image { display: none; }
html[data-portal-theme="dark"] .site-header .eyebrow,
html[data-portal-theme="dark"] .site-header .muted { color: #bfeaff; }
html[data-portal-theme="dark"] .secure-badge { border-color: var(--blue); color: #ffffff; }
html[data-portal-theme="dark"] .tabs { background: #050505; border-bottom-color: var(--line); }
html[data-portal-theme="dark"] .tab { background: transparent; color: #ffffff; }
html[data-portal-theme="dark"] .tab:hover,
html[data-portal-theme="dark"] .tab.active,
html[data-portal-theme="dark"] .need-filter.active,
html[data-portal-theme="dark"] button:not(.secondary):not(.tab):not(.series-button):not(.need-filter) {
  background: var(--blue);
  color: #001018;
}
html[data-portal-theme="dark"] .secondary {
  background: #090909;
  color: var(--blue);
  border-color: #6c7479;
}
html[data-portal-theme="dark"] .secondary:hover { background: #14262f; }
html[data-portal-theme="dark"] .skip-link:focus {
  color: #001018;
  background: var(--blue);
}
html[data-portal-theme="dark"] .hero-panel,
html[data-portal-theme="dark"] .panel,
html[data-portal-theme="dark"] .document-card,
html[data-portal-theme="dark"] .tool-card,
html[data-portal-theme="dark"] .theory-lead,
html[data-portal-theme="dark"] .visit-card,
html[data-portal-theme="dark"] .timeline-visit,
html[data-portal-theme="dark"] .hipaa-footer,
html[data-portal-theme="dark"] .timeline-item,
html[data-portal-theme="dark"] .need-item,
html[data-portal-theme="dark"] .series-button,
html[data-portal-theme="dark"] .auth-card {
  color: #ffffff;
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .58);
}
html[data-portal-theme="dark"] .source-note,
html[data-portal-theme="dark"] .comment,
html[data-portal-theme="dark"] .series-button.active {
  color: #ffffff;
  background: var(--pale);
}
html[data-portal-theme="dark"] .theory-label { color: #ffca8c; border-color: var(--alert); }
html[data-portal-theme="dark"] .hipaa-login-notice {
  color: #ffe8c7;
  background: #26190b;
  border-color: #d8994d;
}
html[data-portal-theme="dark"] .visit-link { color: #001018; background: var(--blue); }
html[data-portal-theme="dark"] .timeline-visit { background: #071116; }
html[data-portal-theme="dark"] .timeline-visit.visit-highlight { border-color: #ffd27f; box-shadow: 0 0 0 5px rgba(255, 210, 127, .22); }
html[data-portal-theme="dark"] .stat {
  color: #ffffff;
  background: #0d1b22;
  border: 1px solid #3b809d;
}
html[data-portal-theme="dark"] .stat span { color: #ccefff; }
html[data-portal-theme="dark"] input,
html[data-portal-theme="dark"] select,
html[data-portal-theme="dark"] textarea {
  color: #ffffff;
  background: #101010;
  border-color: #7e878c;
}
html[data-portal-theme="dark"] input::placeholder,
html[data-portal-theme="dark"] textarea::placeholder { color: #aeb6ba; opacity: 1; }
html[data-portal-theme="dark"] input:focus,
html[data-portal-theme="dark"] select:focus,
html[data-portal-theme="dark"] textarea:focus,
html[data-portal-theme="dark"] button:focus,
html[data-portal-theme="dark"] a:focus {
  outline-color: #ffd75f;
}
html[data-portal-theme="dark"] .timeline-date,
html[data-portal-theme="dark"] .visit-date,
html[data-portal-theme="dark"] .timeline-context summary,
html[data-portal-theme="dark"] .eyebrow { color: var(--blue); }
html[data-portal-theme="dark"] .status,
html[data-portal-theme="dark"] .count-badge {
  color: #aee6ff;
  background: #122832;
  border: 1px solid #356d85;
}
html[data-portal-theme="dark"] .tab-count {
  color: #101010;
  background: #ffd75f;
}
html[data-portal-theme="dark"] .meta-row,
html[data-portal-theme="dark"] .need-meta,
html[data-portal-theme="dark"] .series-button span,
html[data-portal-theme="dark"] .comment small,
html[data-portal-theme="dark"] .empty-note,
html[data-portal-theme="dark"] .muted,
html[data-portal-theme="dark"] .user-row > div > span,
html[data-portal-theme="dark"] .auth-note { color: var(--muted); }
html[data-portal-theme="dark"] .need-item.done { border-left-color: #74d99a; }
html[data-portal-theme="dark"] .viewer { background: #05080a; border: 1px solid var(--line); }
html[data-portal-theme="dark"] .mri-context .comment { color: #ffffff; }
html[data-portal-theme="dark"] .mri-context .muted,
html[data-portal-theme="dark"] .mri-context .empty-note { color: var(--muted); }
html[data-portal-theme="dark"] dialog { color: #ffffff; background: #090909; border: 1px solid var(--line); }
html[data-portal-theme="dark"] .document-preview { background: #151719; }
html[data-portal-theme="dark"] pre { color: #ffffff; background: #101010; border-color: var(--line); }
html[data-portal-theme="dark"] a { color: #77d8ff; }
html[data-portal-theme="dark"] .tool-card a {
  color: #001018;
  background: var(--blue);
}
html[data-portal-theme="dark"] .auth-page { background: #000000; }
html[data-portal-theme="dark"] .form-error {
  color: #ffd7c2;
  background: #35150a;
  border-left-color: #ff9451;
}

@media (max-width: 900px) {
  .site-header, .section-heading { align-items: start; }
  .site-header { flex-direction: column; }
  .hero-panel, .two-column, .upload-panel, .imaging-layout, .dialog-grid, .tool-grid, .theory-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .viewer { position: static; }
  .series-list { max-height: none; }
}
@media (max-width: 620px) {
  :root { font-size: 17px; }
  .site-header, .section-heading { display: block; }
  .header-brand { display: block; }
  .brand-logo { width: min(310px, 100%); margin-bottom: 1rem; }
  .auth-top-row { align-items: stretch; flex-direction: column; }
  .auth-brand-logo { width: 100%; }
  .header-tools { justify-content: start; margin-top: 1rem; }
  .timeline-item, .visit-card, .document-card, .need-item, .inline-form { grid-template-columns: 1fr; }
  .timeline-visit-header { display: block; }
  .timeline-visit-header .secondary { margin-top: .7rem; }
  .document-actions { justify-content: flex-start; }
  .user-row { align-items: start; flex-direction: column; }
  .viewer-controls { grid-template-columns: 1fr 1fr; }
}
