:root {
  --navy: #0b2e59;
  --blue: #1d4ed8;
  --blue-hover: #173fae;
  --blue-pale: #eff4fc;
  --blue-border: #cbdaf2;
  --ink: #172033;
  --muted: #64748b;
  --line: #d9e1ec;
  --canvas: #f7f9fc;
  --yellow: #f4b740;
  --danger: #b42318;
  --danger-pale: #fff4f2;
  --radius: 10px;
  --shadow: 0 12px 30px rgb(11 46 89 / 8%);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--canvas); color: var(--ink); -webkit-tap-highlight-color: rgb(29 78 216 / 16%); }
body { margin: 0; background: var(--canvas); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; touch-action: manipulation; }
button, select { cursor: pointer; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid #f4b740; outline-offset: 3px; }

.skip-link { background: var(--navy); color: #fff; left: 1rem; padding: .65rem .9rem; position: fixed; top: -5rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.wordmark { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.65rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.wordmark:hover { color: var(--navy); }
.wordmark-mark { color: var(--blue); }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 750; letter-spacing: .11em; margin: 0 0 .35rem; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.05rem; margin: .2rem 0 0; max-width: 60ch; }
.button { align-items: center; background: #fff; border: 1px solid var(--blue-border); border-radius: 7px; color: var(--navy); display: inline-flex; font-weight: 700; justify-content: center; min-height: 2.7rem; padding: .55rem .85rem; text-decoration: none; }
.button:hover { background: var(--blue-pale); color: var(--navy); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); color: #fff; }
.button-secondary { background: var(--blue-pale); border-color: var(--blue-border); }
.button-quiet { background: transparent; border-color: transparent; color: var(--blue); }
.button-quiet:hover { background: var(--blue-pale); }
.button-wide { width: 100%; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner, .page-shell { margin: 0 auto; max-width: 1180px; padding-left: 1.5rem; padding-right: 1.5rem; }
.site-header-inner { align-items: center; display: flex; justify-content: space-between; min-height: 4.6rem; }
.account-nav { align-items: center; display: flex; gap: .4rem; }
.account-email { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav form { margin: 0; }
.page-shell { padding-bottom: 5rem; padding-top: 3.75rem; }
.library-intro { max-width: 760px; }
.library-intro h1, .decision-detail h1, .auth-card h1 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; margin: 0; text-wrap: balance; }
.archive-coverage { align-items: center; background: var(--blue-pale); border: 1px solid var(--blue-border); border-radius: 999px; color: #29466b; display: inline-flex; font-size: .84rem; font-weight: 700; margin: 1rem 0 -.7rem; padding: .35rem .7rem; }
.archive-coverage[hidden] { display: none; }

.notice { border: 1px solid var(--blue-border); border-radius: var(--radius); color: #29466b; font-size: .9rem; margin: 1.8rem 0; padding: .85rem 1rem; }
.notice-info { background: var(--blue-pale); }
.notice-error { background: var(--danger-pale); border-color: #f5c5c1; color: var(--danger); }
.notice .button { float: right; margin: -.45rem -.5rem -.45rem .75rem; }

.search-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgb(11 46 89 / 5%); margin-top: 2.3rem; padding: 1.3rem 1.35rem 1.2rem; }
.search-form { display: grid; gap: .65rem; grid-template-columns: minmax(0, 1fr) auto; }
.query-field { align-items: center; border: 1px solid #98a9c0; border-radius: 8px; display: flex; min-height: 2.9rem; padding: 0 .8rem; }
.query-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(29 78 216 / 14%); }
.query-field svg { fill: none; flex: 0 0 auto; height: 1.1rem; margin-right: .6rem; stroke: var(--muted); stroke-width: 1.8; width: 1.1rem; }
.query-field input { border: 0; color: var(--ink); min-width: 0; outline: 0; padding: .5rem 0; width: 100%; }
.query-field input::placeholder { color: #7f8da1; }
.search-help { color: var(--muted); font-size: .8rem; grid-column: 1 / -1; margin: -.15rem 0 0; }
kbd { background: #e6ecf4; border-radius: 3px; color: var(--navy); font-family: ui-monospace, monospace; padding: .08rem .25rem; }
.filter-row { align-items: end; border-top: 1px solid #edf1f6; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.05rem; padding-top: 1rem; }
.filter-row label:not(.saved-filter) { display: grid; gap: .2rem; }
.filter-row label > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.filter-row select, .filter-row input { background: #fff; border: 1px solid var(--blue-border); border-radius: 6px; color: var(--navy); min-height: 2.4rem; padding: .35rem .55rem; }
.filter-row select { padding-right: 2rem; }
.filter-row input:focus, .case-tag-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(29 78 216 / 14%); outline: 0; }
.case-tag-filter { flex: 1 1 16rem; min-width: min(100%, 16rem); }
.case-tag-filter input { min-width: 0; width: 100%; }
.saved-filter { align-items: center; color: var(--navy); display: flex; font-size: .875rem; font-weight: 650; gap: .4rem; min-height: 2.4rem; }
.saved-filter input, .check-row input { accent-color: var(--blue); block-size: 1rem; inline-size: 1rem; }
.clear-filters { font-size: .875rem; min-height: 2.4rem; }

.results { max-width: 980px; padding-top: 2.6rem; }
.results-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.results-heading h2 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.7rem; margin: 0; }
.result-count { color: var(--muted); font-size: .875rem; margin: 0; }
.results-list { display: grid; gap: .85rem; }
.decision-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 1rem; overflow: hidden; padding: 1.25rem 1.3rem; position: relative; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.decision-card:hover { border-color: #a8bddb; box-shadow: var(--shadow); transform: translateY(-1px); }
.decision-card-main { flex: 1 1 0; min-width: 0; position: relative; z-index: 1; }
.decision-court { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .06em; margin: 0 0 .3rem; text-transform: uppercase; }
.decision-card h3 { font-family: Newsreader, Georgia, serif; font-size: 1.45rem; line-height: 1.1; margin: 0; }
.decision-link { color: var(--navy); text-decoration: none; }
.decision-link:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.decision-meta, .decision-source { color: var(--muted); font-size: .82rem; margin: .45rem 0 0; }
.decision-snippet { color: #3c4d64; font-size: .94rem; margin: .65rem 0 0; max-width: 78ch; }
.decision-snippet mark { background: #fff1bc; color: inherit; padding: 0 .08em; }
.case-tag-form { align-items: end; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; max-width: 42rem; }
.case-tag-form[hidden] { display: none; }
.case-tag-form label { display: grid; flex: 1 1 14rem; gap: .2rem; min-width: 0; }
.case-tag-form label > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.case-tag-form input { background: #fff; border: 1px solid var(--blue-border); border-radius: 6px; color: var(--ink); min-height: 2.4rem; min-width: 0; padding: .35rem .55rem; width: 100%; }
.case-tag-form .button { font-size: .8rem; min-height: 2.4rem; padding: .35rem .6rem; }
.case-tag-error { color: var(--danger); flex-basis: 100%; font-size: .8rem; margin: 0; }
.decision-watermark { color: #edf3fb; font-family: Newsreader, Georgia, serif; font-size: 7.8rem; font-weight: 700; line-height: .8; pointer-events: none; position: absolute; right: .7rem; top: .7rem; }
.card-actions { align-items: flex-end; display: flex; flex: 0 0 auto; flex-direction: column; gap: .35rem; position: relative; z-index: 1; }
.icon-button { background: #fff; border: 1px solid transparent; border-radius: 6px; color: var(--navy); cursor: pointer; font-size: 1.35rem; height: 2.25rem; width: 2.25rem; }
.icon-button:hover, .icon-button[aria-pressed="true"] { background: #fff7dc; border-color: #f6d87d; }
.copy-button { font-size: .8rem; min-height: 2.25rem; padding: .35rem .5rem; }
.empty-state { border: 1px dashed var(--blue-border); border-radius: var(--radius); color: var(--muted); margin-top: 1rem; padding: 2.5rem 1rem; text-align: center; }
.empty-state h2 { color: var(--navy); font-family: Newsreader, Georgia, serif; margin: 0; }
.load-more { display: flex; margin: 1.25rem auto 0; }

.back-link { color: var(--blue); display: inline-block; font-size: .9rem; font-weight: 700; margin-bottom: 1.5rem; text-decoration: none; }
.detail-heading { align-items: flex-start; display: flex; gap: 2rem; justify-content: space-between; margin-top: 2.2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.detail-case-tag-form { flex: 1 1 100%; justify-content: flex-end; margin-top: 0; max-width: 100%; }
.detail-case-tag-form label { flex-basis: min(100%, 19rem); }
.decision-layout { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); margin-top: 1.65rem; }
.decision-document { min-width: 0; padding: 1.5rem 1.5rem 1.5rem 0; }
.decision-text { background: #fff; border: 1px solid #e6ebf2; border-radius: var(--radius); box-shadow: 0 8px 24px rgb(11 46 89 / 6%); font: .9rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 70vh; overflow: auto; padding: clamp(1rem, 3vw, 2rem); white-space: pre-wrap; }
.decision-metadata { border-left: 1px solid var(--line); padding: 1.5rem 0 1.5rem 1.5rem; }
.decision-metadata h2 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.35rem; margin: 0; }
.decision-metadata-list { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
.decision-metadata-list div { display: grid; gap: .1rem; }
.decision-metadata-list dt { color: var(--navy); font-size: .8rem; font-weight: 800; }
.decision-metadata-list dd { color: #3c4d64; font-size: .9rem; margin: 0; overflow-wrap: anywhere; }
.decision-sources { border-top: 1px solid #e6ebf2; margin-top: 1.5rem; padding-top: 1.2rem; }
.decision-sources h2 { font-size: 1.05rem; }
.decision-sources ul { display: grid; gap: .45rem; margin: .65rem 0 0; padding-left: 1.1rem; }
.decision-sources a { font-size: .86rem; overflow-wrap: anywhere; text-underline-offset: 2px; }

.auth-shell { align-items: center; background: linear-gradient(145deg, #eff4fc 0%, #fff 55%); display: flex; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { background: #fff; border: 1px solid var(--blue-border); border-radius: 14px; box-shadow: var(--shadow); max-width: 460px; padding: clamp(1.5rem, 6vw, 3rem); width: 100%; }
.auth-card .wordmark { display: inline-block; margin-bottom: 3.5rem; }
.auth-card h1 { font-size: clamp(2.25rem, 8vw, 3.2rem); }
.login-form { display: grid; gap: .45rem; margin-top: 1.8rem; }
.login-form label:not(.check-row) { color: var(--navy); font-size: .875rem; font-weight: 700; margin-top: .55rem; }
.login-form input[type="email"], .login-form input[type="password"] { border: 1px solid #98a9c0; border-radius: 7px; min-height: 2.8rem; padding: .55rem .65rem; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(29 78 216 / 14%); outline: 0; }
.check-row { align-items: center; color: var(--muted); display: flex; font-size: .875rem; gap: .5rem; margin: .65rem 0 .35rem; }
.auth-help { color: var(--muted); font-size: .8rem; margin: 1.4rem 0 0; text-align: center; }
.auth-help a { font-weight: 700; text-underline-offset: 2px; }
.test-login { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.test-login-label { color: var(--muted); display: block; font-size: .72rem; font-weight: 750; letter-spacing: .08em; margin-bottom: .45rem; text-align: center; text-transform: uppercase; }
.toast { background: var(--navy); border-radius: 7px; bottom: 1.25rem; box-shadow: var(--shadow); color: #fff; left: 50%; max-width: calc(100% - 2rem); padding: .7rem 1rem; position: fixed; transform: translateX(-50%); z-index: 5; }
.notice-warning { background: #fffaf0; border-color: #f1d69a; color: #755515; }
.admin-shell { max-width: 1180px; }
.admin-grid { align-items: start; display: grid; gap: 1.25rem; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); margin-top: 2.2rem; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgb(11 46 89 / 5%); padding: 1.35rem; }
.admin-card-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 1.3rem; }
.admin-card h2 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.7rem; margin: 0; }
.form-row { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.form-field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.form-field label { color: var(--navy); font-size: .82rem; font-weight: 750; }
.field-hint { color: var(--muted); font-weight: 500; }
.form-field input, .form-field select { background: #fff; border: 1px solid #98a9c0; border-radius: 7px; color: var(--ink); min-height: 2.7rem; padding: .5rem .6rem; width: 100%; }
.form-field input:focus, .form-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(29 78 216 / 14%); outline: 0; }
.form-footnote { color: var(--muted); font-size: .78rem; margin: .8rem 0 0; }
.muted { color: var(--muted); }
.status-dot, .job-status { border-radius: 999px; display: inline-flex; font-size: .72rem; font-weight: 750; padding: .25rem .55rem; white-space: nowrap; }
.status-idle, .status-completed { background: #e8f7ef; color: #17663b; }
.status-running { background: #fff3d6; color: #77540c; }
.status-queued { background: var(--blue-pale); color: var(--blue); }
.status-failed { background: var(--danger-pale); color: var(--danger); }
.jobs-list { display: grid; gap: .6rem; }
.job-row { align-items: center; border-top: 1px solid #edf1f6; display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr) auto auto; padding: .85rem 0; }
.job-row:first-child { border-top: 0; padding-top: 0; }
.job-row strong { color: var(--navy); font-size: .9rem; }
.job-row p { color: var(--muted); font-size: .78rem; margin: .15rem 0 0; }
.job-log { font-size: .78rem; font-weight: 700; }
.coverage-card { margin-top: 1.25rem; }
.coverage-table-wrap { margin-top: 1rem; overflow-x: auto; }
.table-scroll-hint { color: var(--muted); display: none; font-size: .78rem; margin: .55rem 0 0; }
.coverage-table { border-collapse: collapse; min-width: 760px; text-align: left; width: 100%; }
.coverage-table th { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .03em; padding: 0 0 .55rem; text-transform: uppercase; }
.coverage-table td { border-bottom: 1px solid #edf1f6; font-size: .84rem; padding: .75rem .4rem .75rem 0; vertical-align: middle; }
.coverage-table tr:last-child td { border-bottom: 0; }
.coverage-slice { color: var(--navy); font-weight: 750; }
.coverage-subtle { color: var(--muted); display: block; font-size: .76rem; font-weight: 500; margin-top: .1rem; }
.coverage-progress { align-items: center; display: flex; gap: .55rem; min-width: 11rem; }
.coverage-progress progress { accent-color: var(--blue); block-size: .55rem; inline-size: 7.5rem; }
.coverage-progress strong { color: var(--navy); font-size: .8rem; }
.coverage-alert { color: var(--danger); font-size: .78rem; font-weight: 700; }
.coverage-pending { white-space: nowrap; }
.pending-panel { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.pending-panel[hidden] { display: none; }
.pending-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.pending-heading h3 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.2rem; margin: 0; }
.pending-list { display: grid; gap: .5rem; margin-top: .85rem; }
.pending-row { align-items: center; border-top: 1px solid #edf1f6; display: flex; gap: .8rem; justify-content: space-between; padding: .7rem 0; }
.pending-row strong { color: var(--navy); font-size: .86rem; }
.pending-row p { color: var(--muted); font-size: .77rem; margin: .12rem 0 0; }
.pending-status { background: var(--blue-pale); border-radius: 999px; color: var(--blue); font-size: .72rem; font-weight: 750; padding: .22rem .5rem; white-space: nowrap; }
.pending-status-failed { background: var(--danger-pale); color: var(--danger); }
.admin-secondary { margin-top: 1.25rem; }
.compact-form { border-bottom: 1px solid #edf1f6; margin-bottom: 1rem; padding-bottom: 1rem; }
.users-list, .audit-list, .organizations-list, .review-list { display: grid; gap: .5rem; }
.user-row, .audit-row { align-items: center; border-top: 1px solid #edf1f6; display: flex; font-size: .84rem; gap: .7rem; justify-content: space-between; padding: .7rem 0; }
.user-row { align-items: flex-start; }
.user-summary { display: grid; gap: .12rem; min-width: 0; }
.user-email { color: var(--navy); font-weight: 750; overflow-wrap: anywhere; }
.user-meta { color: var(--muted); font-size: .76rem; }
.user-actions { align-items: center; display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.user-actions select { background: #fff; border: 1px solid var(--blue-border); border-radius: 6px; color: var(--navy); min-height: 2.4rem; padding: .3rem .45rem; }
.review-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; }
.button-danger { background: var(--danger-pale); border-color: #f5c5c1; color: var(--danger); }
.button-danger:hover { background: #fee4e2; color: #8d1d14; }
.organizations-section { border-top: 1px solid #edf1f6; margin-top: 1rem; padding-top: 1rem; }
.organizations-section h3 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.3rem; margin: 0; }
.organization-form { margin-top: .8rem; }
.organization-form > label { color: var(--navy); display: block; font-size: .82rem; font-weight: 750; margin-bottom: .3rem; }
.organization-form > div { display: flex; gap: .45rem; }
.organization-form input { background: #fff; border: 1px solid #98a9c0; border-radius: 7px; color: var(--ink); min-height: 2.5rem; min-width: 0; padding: .45rem .55rem; width: 100%; }
.organization-form input:focus, .user-actions select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(29 78 216 / 14%); outline: 0; }
.organization-row { align-items: center; border-top: 1px solid #edf1f6; display: flex; font-size: .84rem; gap: .65rem; justify-content: space-between; padding: .65rem 0; }
.organization-row strong { color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.organization-member-count { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.form-error { color: var(--danger); }
.confirm-dialog { border: 1px solid var(--blue-border); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); max-width: min(31rem, calc(100% - 2rem)); padding: 0; }
.confirm-dialog::backdrop { background: rgb(11 46 89 / 42%); }
.confirm-dialog form { padding: 1.35rem; }
.confirm-dialog h2 { color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 1.7rem; margin: 0; text-wrap: balance; }
.confirm-dialog p:not(.eyebrow):not(.form-footnote) { color: #3c4d64; margin: .7rem 0 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; margin-top: 1.2rem; }
.audit-row { align-items: flex-start; display: grid; grid-template-columns: minmax(0, 1fr); }
.audit-row strong { color: var(--navy); }.audit-row span, .audit-row time { color: var(--muted); font-size: .78rem; }
.audit-filters { align-items: end; display: grid; gap: .65rem; grid-template-columns: 1fr 1fr 1fr auto; margin-bottom: 1rem; }
.audit-filters label { color: var(--navy); display: grid; font-size: .78rem; font-weight: 700; gap: .25rem; }
.audit-filters input, .audit-filters select { border: 1px solid #98a9c0; border-radius: 7px; min-height: 2.5rem; padding: .4rem; }
.job-actions { align-items: center; display: flex; gap: .45rem; }.job-actions .button { white-space: nowrap; }

@media (max-width: 680px) {
  .site-header-inner, .page-shell { padding-left: 1rem; padding-right: 1rem; }
  .site-header-inner { min-height: 4.1rem; }
  .account-email { display: none; }
  .page-shell { padding-top: 2.25rem; }
  .search-form { grid-template-columns: 1fr; }
  .search-form .button { width: 100%; }
  .filter-row { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .filter-row label:not(.saved-filter) { min-width: 0; }
  .filter-row select, .filter-row input { width: 100%; }
  .filter-row .saved-filter input { width: 1rem; }
  .case-tag-filter { grid-column: 1 / -1; }
  .saved-filter, .clear-filters { grid-column: 1 / -1; }
  .decision-card { padding: 1rem; }
  .decision-card h3 { font-size: 1.25rem; padding-right: 1.8rem; }
  .card-actions { align-items: center; flex-direction: row; position: absolute; right: .6rem; top: .45rem; }
  .card-actions .copy-button { bottom: .7rem; position: absolute; right: 0; white-space: nowrap; }
  .decision-snippet { margin-bottom: 1.85rem; }
  .detail-heading { display: block; }
  .detail-actions { justify-content: flex-start; margin-top: 1.2rem; }
  .detail-case-tag-form { justify-content: stretch; }
  .detail-case-tag-form label { flex-basis: 100%; }
  .decision-layout { grid-template-columns: 1fr; }
  .decision-document { padding: 1.1rem 0 0; }
  .decision-text { font-size: .8rem; max-height: 58vh; padding: .9rem; }
  .decision-metadata { border-left: 0; border-top: 1px solid var(--line); margin-top: 1.1rem; padding: 1.25rem 0 0; }
  .admin-grid { grid-template-columns: 1fr; }
  .coverage-table-wrap { margin-left: -.1rem; margin-right: -.1rem; }
  .table-scroll-hint { display: block; }
  .pending-row { align-items: flex-start; flex-direction: column; }
  .job-row { grid-template-columns: minmax(0, 1fr) auto; }
  .job-log { grid-column: 1 / -1; }
  .audit-filters { grid-template-columns: 1fr; }
  .job-actions { grid-column: 1 / -1; }
  .user-actions { justify-content: flex-start; }
  .user-row { flex-direction: column; }
  .organization-form > div { align-items: stretch; flex-direction: column; }
  .organization-form .button { width: 100%; }
  .dialog-actions .button { flex: 1 1 10rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
