:root {
    --canvas: #f6f5f1;
    --surface: #ffffff;
    --ink: #202a35;
    --muted: #6d7580;
    --line: #e6e5df;
    --line-strong: #d4d7da;
    --sidebar: #202934;
    --gold: #c6a15b;
    --gold-ink: #7c5a20;
    --gold-soft: #f8f1e4;
    --green: #247655;
    --green-soft: #edf7f1;
    --red: #a83c35;
    --red-soft: #fcf0ed;
    --radius: 14px;
    --shadow: 0 3px 18px rgb(28 38 48 / 3%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #977331; outline-offset: 4px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(198 161 91 / 28%); outline-offset: 1px; border-color: #967339; }
input, select, textarea { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); padding: 10px 12px; min-height: 44px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #858b92; opacity: 1; }
textarea { display: block; resize: vertical; min-height: 72px; }
select { padding-right: 30px; }
input[type="date"] { min-width: 0; }
input[disabled], textarea[disabled], select[disabled] { background: #f4f4f1; }
label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-weight: 600; font-size: 13px; color: #3a4652; }
fieldset { min-width: 0; }
form { margin: 0; }
figure, ul, ol, dl, p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.3; letter-spacing: -.025em; }
h1 { font-size: clamp(27px, 2.5vw, 36px); font-weight: 680; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
strong { font-weight: 650; }
svg { display: block; }
[hidden] { display: none !important; }
.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: fixed; top: 12px; left: 12px; padding: 10px 20px; background: var(--surface); color: var(--ink); border: 2px solid var(--gold); border-radius: 8px; z-index: 100; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: var(--sidebar); color: #e1e4e7; display: flex; flex-direction: column; padding: 35px 19px 19px; z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; flex: 0 0 43px; height: 43px; align-items: center; justify-content: center; border: 1px solid rgb(198 161 91 / 70%); border-radius: 10px; background: rgb(198 161 91 / 9%); color: #e8c98e; font-size: 15px; font-weight: 700; letter-spacing: -.03em; }
.brand-copy { font-size: 20px; font-weight: 650; line-height: 1.05; letter-spacing: -.04em; }
.brand-copy > span { display: block; margin-top: 4px; color: #d0b37d; font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.sidebar-label { margin: 49px 13px 12px; text-transform: uppercase; font-size: 9px; letter-spacing: .15em; font-weight: 650; color: #9da7b4; }
.nav-links { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 9px; color: #c1cad3; font-size: 14px; font-weight: 550; transition: background .15s, color .15s; position: relative; }
.nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-link:hover { text-decoration: none; background: rgb(255 255 255 / 5%); color: #fff; }
.nav-link.is-active { background: #353b3e; color: #efd49e; }
.nav-link.is-active::before { content: ""; width: 3px; height: 18px; background: var(--gold); position: absolute; left: 0; border-radius: 0 4px 4px 0; }
.sidebar-bottom { margin-top: auto; padding-top: 55px; }
.workspace-note { margin: 0 10px 26px; font-size: 10px; line-height: 1.6; color: #a4afba; }
.workspace-dot { display: inline-block; height: 5px; width: 5px; margin-right: 5px; vertical-align: 2px; border-radius: 50%; background: var(--gold); }
.account { display: flex; gap: 10px; align-items: center; padding: 19px 5px 0; border-top: 1px solid rgb(255 255 255 / 10%); }
.account-avatar { flex: 0 0 33px; height: 33px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #394450; color: #f2d7a4; font-size: 13px; font-weight: 600; }
.account > div { flex: 1; min-width: 0; }
.account strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #e8edf2; font-size: 12px; white-space: nowrap; }
.account div > span { display: block; font-size: 10px; color: #9ca7b2; }
.logout-button { border: 0; border-radius: 5px; width: 30px; height: 34px; color: #a9b4bf; background: transparent; display: grid; place-items: center; }
.logout-button:hover { background: rgb(255 255 255 / 7%); color: #fff; }
.logout-button svg { width: 20px; height: 20px; }
.workspace { margin-left: 232px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 71px; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 0 38px; border-bottom: 1px solid var(--line); background: var(--canvas); position: sticky; top: 0; z-index: 20; }
.topbar-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #74808a; }
.topbar-divider { display: inline-block; padding: 0 12px; color: #b3b6b6; }
.today-label { font-size: 12px; color: var(--muted); letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.main-content { padding: 38px; width: 100%; max-width: 1600px; margin: 0 auto; flex: 1; outline: none; }
.workspace-footer { padding: 18px 38px 23px; font-size: 10px; color: #858c92; display: flex; justify-content: space-between; gap: 20px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading .button { flex-shrink: 0; }
.eyebrow { font-size: 9px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 8px; }
.page-description { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 720px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 17px; border-radius: 8px; font-size: 12px; font-weight: 650; border: 1px solid transparent; text-decoration: none; line-height: 1.45; transition: background .15s, border .15s, box-shadow .15s; text-align: center; }
.button:hover { text-decoration: none; }
.button-primary { background: var(--gold); color: #222b35; border-color: var(--gold); box-shadow: 0 2px 3px rgb(124 90 32 / 5%); }
.button-primary:hover { background: #b99551; border-color: #b99551; }
.button-primary > span[aria-hidden] { font-size: 16px; line-height: 1; font-weight: 400; }
.button-secondary { background: #fff; border-color: #dcdedb; color: #43515d; }
.button-secondary:hover { background: #f5f5f1; border-color: #c3c8c7; }
.button-quiet { background: transparent; color: #626e7a; border-color: transparent; }
.button-quiet:hover { background: #f2f3f0; color: var(--ink); }
.button-small { min-height: 34px; font-size: 11px; padding: 7px 11px; }
.button-full { width: 100%; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.text-link { color: var(--gold-ink); font-size: 12px; font-weight: 650; }
.text-link span { margin-left: 5px; }
.muted { color: var(--muted); }
.break-anywhere { overflow-wrap: anywhere; }
.meta-dot { display: inline-block; margin: 0 7px; color: #a6a9ab; font-weight: 400; }
.flash { padding: 13px 17px; border-radius: 9px; border: 1px solid; margin-bottom: 24px; font-size: 13px; overflow-wrap: anywhere; }
.flash-success { background: var(--green-soft); color: #25674d; border-color: #d0e9da; }
.flash-error { background: var(--red-soft); color: #9a3b34; border-color: #f1d4cf; }
.flash-warning { background: #fcf5e5; color: #84601c; border-color: #ead8ae; }
.flash-info { background: #eef4fa; color: #3d638a; border-color: #d4e2f1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); padding: 21px 23px 17px; border-radius: 12px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.stat-card:hover { text-decoration: none; border-color: #b9bcb7; transform: translateY(-2px); }
.stat-label { display: block; font-size: 11px; font-weight: 550; color: #65707c; }
.stat-card > strong { display: block; font-size: 36px; line-height: 1.2; letter-spacing: -.045em; margin: 14px 0 15px; font-weight: 630; font-variant-numeric: tabular-nums; }
.stat-caption { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #7f8790; }
.stat-caption > span { font-size: 15px; }
.stat-gold { background: #faf5eb; border-color: #e8d9bb; }
.stat-gold > strong { color: #8a6526; }
.stat-gold .stat-caption, .stat-gold .stat-label { color: #887245; }
.stat-attention { background: #fff9f7; border-color: #ecd9d2; }
.stat-attention > strong { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 95px; }
.panel-heading { padding: 23px 25px 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.panel-heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
.panel-heading h2 { font-size: 17px; }
.panel-body { padding: 0 25px 25px; }
.subtle-label { font-size: 10px; color: #8a9198; text-align: right; }
.heading-with-count { display: flex; align-items: center; gap: 11px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 24px; padding: 0 8px; font-weight: 600; font-size: 10px; color: #64717d; background: #f0f2f3; border-radius: 7px; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 35px 30px 45px; color: var(--muted); max-width: 560px; margin: 0 auto; }
.empty-state h3 { margin-bottom: 9px; color: #48545f; font-size: 14px; letter-spacing: -.01em; }
.empty-state p { font-size: 12px; line-height: 1.8; max-width: 380px; margin: 0 auto; }
.empty-state .text-link { display: inline-block; margin-top: 20px; }
.empty-symbol { width: 41px; height: 41px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-soft); color: #53876a; border: 1px solid #e0efe4; font-size: 18px; margin: 0 auto 20px; }
.empty-symbol.light { background: #f7f4ee; color: #a58c61; border-color: #ede5d7; font-size: 16px; font-weight: 550; }
.empty-state.compact { padding: 24px 26px 35px; }
.empty-state.horizontal { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 24px; max-width: none; }
.empty-state.horizontal p { max-width: 600px; margin: 0; }
.empty-state.horizontal .button-group { flex-shrink: 0; }
.task-list { padding: 0 25px; list-style: none; }
.task-row { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-top: 1px solid #edf0ee; }
.task-check-form { flex-shrink: 0; padding-top: 2px; }
.complete-button { border: 1.5px solid #c9d1ce; width: 21px; height: 21px; border-radius: 6px; background: #fff; color: transparent; font-size: 12px; padding: 0; display: grid; place-items: center; }
.complete-button:hover { color: var(--green); background: #edf7f1; border-color: #679c7c; }
.task-content { flex: 1; min-width: 0; }
.row-title { font-size: 13px; line-height: 1.5; font-weight: 650; color: #2e3a47; overflow-wrap: anywhere; }
.task-content > p { font-size: 10px; color: #818994; margin-top: 3px; overflow-wrap: anywhere; }
.task-content p.task-note { color: #6e7782; font-size: 11px; margin-top: 8px; line-height: 1.7; }
.task-edit-link { display: inline-block; margin-left: 12px; font-weight: 550; font-size: 10px; }
.task-add-details { scroll-margin-top: 95px; }
.due-tag { display: inline-flex; flex-shrink: 0; align-items: center; border-radius: 5px; padding: 4px 7px; font-size: 9px; line-height: 1.5; color: #657480; background: #f0f4f6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.due-tag.overdue { background: #fcf0ed; color: #a6503f; }
.review-list { list-style: none; padding: 0 25px 5px; }
.review-list > li { padding: 17px 0; border-top: 1px solid #edf0ee; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.review-list strong { font-size: 13px; overflow-wrap: anywhere; }
.review-list p { color: #7a8490; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.review-list .button { flex-shrink: 0; }
.timeline { list-style: none; padding: 0 25px 12px; }
.timeline > li { display: flex; position: relative; gap: 15px; padding: 15px 0 15px 23px; border-top: 1px solid #edf0ee; }
.timeline-dot { position: absolute; top: 23px; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #d8c395; box-shadow: 0 0 0 4px #fbf8f0; }
.timeline > li > div { flex: 1; min-width: 0; }
.timeline > li > div > p { color: #697581; font-size: 11px; margin-top: 3px; line-height: 1.8; overflow-wrap: anywhere; }
.timeline time { color: #8c939c; font-size: 10px; font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 3px; }
.directory-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr); gap: 24px; align-items: start; }
.editor-panel { position: sticky; top: 95px; }
.filter-bar { padding: 0 25px 22px; display: flex; gap: 10px; align-items: flex-end; }
.filter-bar .field { margin: 0; }
.filter-bar .search-field { flex: 1; min-width: 0; }
.filter-bar input, .filter-bar select { min-height: 39px; padding: 9px 10px; font-size: 12px; }
.filter-bar .button { min-height: 39px; padding: 9px 12px; }
.directory-list { list-style: none; margin: 0; padding: 0 25px 8px; }
.directory-list > li { display: flex; align-items: center; gap: 15px; padding: 22px 0; border-top: 1px solid #edf0ee; }
.directory-item-main { flex: 1; min-width: 0; }
.directory-item-main .muted { font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.row-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.book-spine { display: grid; place-items: center; flex: 0 0 38px; height: 50px; border-radius: 2px 6px 6px 2px; background: #eee5d4; color: #887049; border-left: 4px solid #d8c7a9; font-size: 18px; font-family: Georgia, serif; box-shadow: 1px 2px 3px rgb(80 58 25 / 6%); }
.inline-links { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 9px; }
.inline-links a { font-size: 10px; color: var(--gold-ink); font-weight: 550; }
.contact-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: #edf0f3; color: #6f7c8b; font-size: 14px; font-weight: 600; }
.form-stack { display: grid; gap: 18px; }
.field { min-width: 0; }
.required-label { text-transform: uppercase; letter-spacing: .06em; font-size: 8px; color: #92969c; font-weight: 500; }
.field-help { color: #7d858e; font-size: 10px; line-height: 1.65; margin-top: 7px; font-weight: 400; }
.archive-section { border-top: 1px solid var(--line); padding: 16px 25px 21px; }
.archive-section .button { padding: 6px 0; min-height: 30px; font-size: 11px; }
.archive-section .button:hover { background: transparent; text-decoration: underline; }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 5px 8px; font-size: 9px; line-height: 1.3; font-weight: 650; white-space: nowrap; }
.status-new { color: #626d7d; background: #edf0f4; }
.status-contacted { color: #4d71a0; background: #edf3fc; }
.status-accepted { color: #7e6198; background: #f2edf7; }
.status-reading { color: #407c81; background: #eaf5f4; }
.status-review_received { color: #9a762e; background: #fcf4df; }
.status-completed { color: #3a7956; background: #eaf5ed; }
.status-closed, .badge-muted { color: #7c7d7b; background: #f0f0ec; }
.new-case-panel { margin-bottom: 24px; }
.new-case-panel > summary { list-style: none; cursor: pointer; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.new-case-panel > summary::-webkit-details-marker { display: none; }
.new-case-panel > summary .eyebrow { display: block; margin-bottom: 4px; font-size: 8px; }
.new-case-panel > summary strong { font-size: 16px; }
.details-toggle { color: #ac9568; display: grid; place-items: center; border: 1px solid #e4d9c3; height: 27px; width: 27px; border-radius: 6px; font-size: 20px; font-weight: 300; }
.new-case-panel[open] .details-toggle { transform: rotate(45deg); }
.new-case-panel[open] > summary { padding-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.new-case-note { margin-top: 18px; }
.form-footer { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-footer .field-help { margin: 0; max-width: 65%; }
.form-footer .button { flex-shrink: 0; }
.setup-notice p { color: var(--muted); font-size: 12px; margin: 8px 0 19px; }
.case-filters { gap: 12px; flex-wrap: wrap; }
.case-filters > .field:not(.search-field) { flex: 0 1 160px; }
.case-filters > .search-field { flex: 1 1 190px; }
.case-filters label { font-size: 10px; color: #7c8591; }
.filter-reset { padding: 8px 0; }
.table-scroll { position: relative; overflow-x: auto; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 780px; }
.data-table th { background: #f8f9f6; color: #7b8490; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 15px; font-weight: 650; border-top: 1px solid #eef0eb; border-bottom: 1px solid #eef0eb; }
.data-table td { padding: 20px 15px; font-size: 12px; border-bottom: 1px solid #edf0ec; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 25px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 25px; width: 50px; }
.data-table tbody tr:hover { background: #fcfcfa; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .row-title { font-size: 12px; }
.cell-secondary { display: block; margin-top: 4px; font-size: 10px; color: #838b95; line-height: 1.5; overflow-wrap: anywhere; }
.book-cell { display: inline-block; max-width: 240px; font-size: 12px; line-height: 1.5; color: #596674; overflow-wrap: anywhere; }
.task-count { font-size: 10px; color: #667481; white-space: nowrap; }
.request-label { color: #9a6e34; }
.table-open { display: grid; place-items: center; width: 30px; height: 30px; color: #8c9aa4; border-radius: 5px; font-size: 17px; }
.table-open:hover { text-decoration: none; background: var(--gold-soft); color: var(--gold-ink); }
.pagination { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 25px; }
.pagination > span { font-size: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 11px; color: #7a8590; }
.case-page-heading { margin-bottom: 23px; }
.case-page-heading .page-description { font-size: 15px; }
.case-status-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.case-status-heading .badge { font-size: 11px; padding: 8px 11px; }
.section-nav { display: flex; gap: 27px; margin-bottom: 26px; border-bottom: 1px solid #dedfd8; }
.section-nav > a { padding: 0 0 12px; font-size: 12px; color: #6f7b86; }
.section-nav > a:first-child { color: var(--gold-ink); border-bottom: 2px solid var(--gold); font-weight: 600; }
.section-nav > a > span { display: inline-block; margin-left: 5px; font-size: 9px; padding: 1px 5px; border-radius: 4px; background: #ede7da; }
.case-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 24px; }
.case-main, .case-aside { min-width: 0; display: grid; gap: 24px; }
.case-main { display: contents; }
.case-main > .panel { grid-column: 1; }
.case-aside { grid-column: 2; grid-row: 1 / span 3; gap: 20px; }
.case-aside .panel-heading { padding: 21px 22px 18px; }
.case-aside .panel-heading h2 { font-size: 14px; }
.case-aside .panel-body { padding: 0 22px 22px; }
.contact-summary-top { display: flex; align-items: center; gap: 11px; }
.contact-summary-top > div { min-width: 0; }
.contact-summary-top strong { font-size: 13px; overflow-wrap: anywhere; }
.detail-list { margin: 20px 0; font-size: 11px; display: grid; gap: 13px; }
.detail-list dt { color: #9298a0; font-size: 9px; margin-bottom: 3px; }
.detail-list dd { margin: 0; color: #55616f; }
.stacked-links { display: grid; gap: 9px; margin-top: 18px; }
.stacked-links a { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.book-summary h3 { font-size: 15px; overflow-wrap: anywhere; }
.book-summary .muted { font-size: 11px; margin-top: 6px; }
.inline-details { padding: 18px 25px; border-top: 1px solid #edf0ee; }
.inline-details > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; font-size: 11px; font-weight: 650; color: #7c6231; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > summary { margin-bottom: 20px; }
.inline-details > .form-stack { margin-top: 5px; }
.inline-details .task-list { padding: 0; }
.completed-tasks > summary { color: #7c8790; font-weight: 500; }
.completed-mark { display: grid; place-items: center; width: 21px; height: 21px; flex-shrink: 0; border-radius: 50%; color: #5c9472; background: #edf6ef; font-size: 12px; }
.is-complete .task-content > strong { font-size: 12px; color: #7c858a; font-weight: 500; }
.is-complete .task-content > p { font-size: 9px; }
.plain-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.form-section-heading { padding-top: 23px; margin-top: 6px; border-top: 1px solid #e9ece7; scroll-margin-top: 95px; }
.form-section-heading h3 { font-size: 13px; }
.form-section-heading p { color: #89919b; margin-top: 5px; font-size: 10px; line-height: 1.6; }
.review-context { align-self: end; padding: 3px 0 7px; }
.case-edit-form .form-footer { padding-top: 8px; }
.review-summary .muted { font-size: 12px; line-height: 1.75; }
.review-summary .field-help { margin: 9px 0 13px; }
.review-summary .button { font-size: 11px; padding-left: 10px; padding-right: 10px; }
.review-summary.is-verified { border-color: #d1e3d6; }
.review-summary.is-verified h2 { color: #4f7a59; }
.verified-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; background: #f0f7f1; padding: 13px; border-radius: 7px; color: #52785c; }
.verified-note > span { font-size: 15px; line-height: 1.3; }
.verified-note strong { font-size: 10px; }
.verified-note p { font-size: 9px; margin-top: 3px; color: #7c9680; }
.history-add { padding: 0 25px 24px; display: flex; align-items: flex-end; gap: 12px; }
.history-add .field { flex: 1; }
.history-add label { font-size: 11px; color: #7d8790; }
.history-add .button { flex-shrink: 0; font-size: 11px; }
.case-timeline > li { padding-top: 17px; padding-bottom: 17px; }
.case-timeline > li > div > p { color: #5c6773; font-size: 12px; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: baseline; color: #8d949b; font-size: 9px; margin-top: 8px; }
.timeline-meta time { padding: 0; font-size: 9px; }
.case-record-meta { padding: 0 6px; font-size: 9px; color: #939aa2; line-height: 1.9; }
.case-archive-form { margin-top: -10px; }
.case-archive-form .button { font-size: 10px; color: #939ba4; }
.archive-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; background: #eeefe9; border: 1px solid #dfe2d7; border-radius: 10px; margin-bottom: 24px; color: #657059; }
.archive-banner strong { font-size: 12px; }
.archive-banner p { font-size: 11px; margin-top: 3px; }
.archive-banner form { flex-shrink: 0; }
.login-page { min-height: 100vh; background: radial-gradient(ellipse at 25% 12%, #354049, #202934 65%); display: grid; place-items: center; padding: 40px 20px; }
.login-shell { width: 100%; max-width: 430px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 34px; color: #fff; }
.login-brand .brand-mark { width: 46px; height: 46px; }
.login-brand h1 { color: #f7f5ef; font-size: 25px; letter-spacing: -.035em; }
.login-brand p { color: #b2b8bd; font-size: 11px; margin-top: 4px; }
.login-brand > div > .eyebrow { color: #d0b37d; font-size: 9px; margin: 0; }
.login-brand > div > p:last-child { color: #f7f5ef; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.login-card { padding: 34px; background: #fff; border: 1px solid #e7e2d7; border-radius: 17px; box-shadow: 0 14px 50px rgb(0 0 0 / 16%); }
.login-card h1 { font-size: 27px; margin-bottom: 10px; }
.login-card h2 { font-size: 25px; margin-bottom: 10px; }
.login-card > .muted, .login-card p.muted { font-size: 12px; margin-bottom: 25px; }
.login-card .form-stack { gap: 20px; }
.login-card .button { margin-top: 4px; }
.login-card .flash { margin-top: 20px; margin-bottom: 20px; }
.login-card label { font-size: 12px; }
.login-footer { text-align: center; color: #9ea8b0; font-size: 10px; margin-top: 25px; }
@media (min-width: 1600px) {
    .main-content { padding: 46px 52px; }
    .topbar, .workspace-footer { padding-left: 52px; padding-right: 52px; }
}
@media (max-width: 1240px) {
    .sidebar { width: 207px; padding-left: 14px; padding-right: 14px; }
    .workspace { margin-left: 207px; }
    .main-content { padding: 30px 26px; }
    .topbar, .workspace-footer { padding-left: 26px; padding-right: 26px; }
    .stats-grid { gap: 12px; }
    .stat-card { padding: 19px 17px 16px; }
    .stat-label { font-size: 10px; }
    .stat-caption { font-size: 9px; }
    .dashboard-grid { grid-template-columns: 1.3fr 1fr; gap: 18px; }
    .directory-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 18px; }
    .directory-list > li { gap: 11px; flex-wrap: wrap; }
    .directory-list > li > .button { margin-left: 49px; margin-top: -5px; padding-left: 0; min-height: 24px; }
    .directory-item-main { flex-basis: calc(100% - 49px); }
    .case-workspace { grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; }
    .panel-heading, .new-case-panel > summary { padding-left: 20px; padding-right: 20px; }
    .panel-body, .task-list, .review-list, .timeline, .directory-list { padding-left: 20px; padding-right: 20px; }
    .filter-bar, .inline-details, .history-add { padding-left: 20px; padding-right: 20px; }
    .history-add { display: grid; }
    .history-add .button { justify-self: end; }
    .empty-state.horizontal { display: block; }
    .empty-state.horizontal .button-group { margin-top: 18px; }
}
@media (max-width: 1000px) {
    .sidebar { position: relative; width: auto; padding: 20px 26px 15px; flex-direction: row; align-items: center; flex-wrap: wrap; overflow: visible; gap: 22px; }
    .brand { padding: 0; gap: 10px; }
    .brand-mark { flex-basis: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
    .brand-copy { font-size: 17px; }
    .brand-copy > span { font-size: 14px; margin-top: 3px; }
    .sidebar-label, .workspace-note { display: none; }
    .sidebar-bottom { margin-left: auto; margin-top: 0; padding-top: 0; order: 1; }
    .account { padding: 0; border: 0; }
    .account > div { min-width: 80px; max-width: 170px; }
    .nav-links { width: 100%; display: flex; gap: 6px; order: 2; }
    .nav-link { justify-content: center; flex: 1; padding: 10px 12px; font-size: 12px; gap: 9px; }
    .nav-link svg { width: 17px; height: 17px; }
    .nav-link.is-active::before { display: none; }
    .workspace { margin-left: 0; }
    .topbar { min-height: 55px; }
    .main-content { padding-top: 30px; }
    .case-workspace { grid-template-columns: minmax(0, 1fr) 270px; }
    .panel, .editor-panel { scroll-margin-top: 76px; }
    .editor-panel { top: 76px; }
    html { scroll-padding-top: 76px; }
}
@media (max-width: 760px) {
    .sidebar { padding: 18px 20px 13px; gap: 18px; }
    .main-content { padding: 27px 20px; }
    .topbar { padding-left: 20px; padding-right: 20px; min-height: 50px; }
    .workspace-footer { padding: 13px 20px 22px; font-size: 9px; }
    .workspace-footer > span { max-width: 180px; text-align: right; }
    .topbar-label { font-size: 9px; }
    .topbar-divider { padding: 0 7px; }
    .today-label { font-size: 10px; }
    .page-heading { margin-bottom: 23px; align-items: flex-start; }
    h1 { font-size: 29px; }
    .page-description { font-size: 12px; max-width: 430px; }
    .page-heading > .button { min-height: 37px; padding: 9px 12px; font-size: 10px; margin-top: 24px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 23px; }
    .stat-card { padding: 18px; }
    .stat-label { font-size: 11px; }
    .stat-card > strong { font-size: 32px; margin: 10px 0 12px; }
    .stat-caption { font-size: 10px; }
    .dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; }
    .directory-grid { grid-template-columns: 1fr; gap: 22px; }
    .editor-panel { position: static; }
    .directory-list > li { flex-wrap: nowrap; }
    .directory-item-main { flex: 1; }
    .directory-list > li > .button { margin: 0; padding-left: 10px; min-height: 34px; }
    .case-workspace { grid-template-columns: 1fr; gap: 22px; }
    .case-aside { grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .case-main > #activities { grid-row: 1; }
    .case-main > #case-details { grid-row: 2; }
    .case-main > #history { grid-row: 4; }
    .review-summary { grid-column: 1 / -1; }
    .case-record-meta { align-self: center; padding-left: 2px; }
    .case-archive-form { margin-top: 0; align-self: center; }
    .case-page-heading { display: block; }
    .case-status-heading { justify-content: flex-start; margin-top: 17px; }
    .case-status-heading .badge { font-size: 10px; padding: 7px 10px; }
    .form-grid-three { grid-template-columns: 1fr; gap: 17px; }
    .case-filters > .search-field { flex: 1 1 100%; }
    .case-filters > .field:not(.search-field) { flex: 1 1 100px; }
    .section-nav { gap: 22px; }
    .section-nav > a { font-size: 11px; }
    .history-add { display: flex; }
    .timeline.dashboard-timeline > li { flex-wrap: wrap; gap: 3px; }
    .dashboard-timeline > li > div { flex-basis: 100%; }
    .dashboard-timeline > li > time { margin-top: 2px; }
}
@media (max-width: 480px) {
    body { font-size: 13px; }
    input, select, textarea { font-size: 16px; }
    .filter-bar input, .filter-bar select { font-size: 14px; }
    .sidebar { padding-left: 16px; padding-right: 16px; }
    .account > div { display: none; }
    .account-avatar { flex-basis: 30px; height: 30px; font-size: 11px; }
    .account { gap: 5px; }
    .nav-link { padding: 9px 4px; font-size: 11px; border-radius: 7px; }
    .nav-link svg { display: none; }
    .main-content { padding: 25px 15px; }
    .topbar, .workspace-footer { padding-left: 16px; padding-right: 16px; }
    .topbar-label { font-size: 8px; }
    .today-label { font-size: 9px; }
    .page-heading { display: block; }
    h1 { font-size: 28px; }
    .page-heading > .button { margin-top: 18px; min-height: 40px; font-size: 11px; }
    .page-description { margin-top: 8px; }
    .eyebrow { font-size: 8px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 16px 14px; border-radius: 10px; }
    .stat-label { font-size: 10px; }
    .stat-caption { font-size: 8px; }
    .stat-card > strong { font-size: 31px; }
    .panel { border-radius: 12px; }
    .panel-heading { padding: 20px 18px 18px; gap: 12px; }
    .panel-heading h2 { font-size: 16px; }
    .subtle-label { font-size: 8px; max-width: 80px; }
    .panel-body, .task-list, .review-list, .timeline, .directory-list { padding-left: 18px; padding-right: 18px; }
    .task-row { gap: 10px; flex-wrap: wrap; }
    .task-row .due-tag { margin-left: 31px; margin-top: -7px; }
    .task-row .task-content { flex-basis: calc(100% - 31px); }
    .row-title { font-size: 12px; }
    .task-content > p { font-size: 10px; }
    .filter-bar { flex-wrap: wrap; padding-left: 18px; padding-right: 18px; gap: 8px; }
    .filter-bar .search-field { flex-basis: 100%; }
    .filter-bar > .field:not(.search-field) { flex: 1; }
    .directory-list > li { flex-wrap: wrap; }
    .directory-item-main { flex-basis: calc(100% - 49px); }
    .directory-list > li > .button { margin-left: 49px; margin-top: -5px; padding-left: 0; min-height: 25px; }
    .form-grid { grid-template-columns: 1fr; gap: 17px; }
    .form-footer { display: block; }
    .form-footer .field-help { max-width: 100%; margin: 0 0 14px; }
    .form-footer .button { width: 100%; }
    .new-case-panel > summary { padding: 20px 18px; }
    .new-case-panel > summary strong { font-size: 15px; }
    .case-filters > .field:not(.search-field) { flex-basis: calc(50% - 8px); }
    .case-filters > .field:nth-last-of-type(1) { flex-basis: calc(50% - 8px); }
    .case-filters .button { flex: 1; }
    .filter-reset { font-size: 11px; padding-right: 5px; }
    .pagination { display: block; padding: 15px 18px; }
    .pagination .button-group { margin-top: 10px; }
    .section-nav { justify-content: space-between; gap: 10px; }
    .section-nav > a { font-size: 10px; }
    .case-aside { grid-template-columns: 1fr; }
    .review-summary { grid-column: auto; }
    .case-main { gap: 22px; }
    .inline-details, .history-add { padding-left: 18px; padding-right: 18px; }
    .history-add { display: grid; }
    .history-add .button { justify-self: end; }
    .review-context { padding-bottom: 0; }
    .archive-banner { display: block; padding: 16px 18px; }
    .archive-banner form { margin-top: 13px; }
    .case-archive-form { margin-top: -10px; }
    .empty-state { padding: 28px 22px 35px; }
    .empty-state.horizontal { padding: 22px 18px; }
    .empty-state.horizontal .button-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .empty-state.horizontal .button { font-size: 10px; padding-left: 9px; padding-right: 9px; }
    .login-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
}
@media print {
    .sidebar, .topbar, .workspace-footer, .button, .case-archive-form, .filter-bar, .task-check-form, .history-add, .new-case-panel, .section-nav { display: none !important; }
    .workspace { margin: 0; }
    .main-content { padding: 0; max-width: none; }
    .panel, .stat-card { box-shadow: none; break-inside: avoid; border-color: #ddd; }
    .case-workspace, .dashboard-grid, .directory-grid { display: block; }
    .panel { margin-bottom: 16px; }
    .case-aside { display: block; }
    body { background: #fff; color: #000; }
}
