:root {
  --navy-950: #071e36;
  --navy-900: #0b3156;
  --navy-800: #12456f;
  --navy-700: #1c5d8b;
  --navy-100: #e7f0f7;
  --navy-50: #f3f7fa;
  --green-800: #0f684b;
  --green-700: #167a58;
  --green-600: #1b956b;
  --green-100: #dcf2e8;
  --green-50: #f0faf5;
  --amber-800: #764c00;
  --amber-100: #fff0c6;
  --amber-50: #fff9e9;
  --red-800: #831e30;
  --red-700: #ad2e43;
  --red-100: #fce5e9;
  --red-50: #fff4f5;
  --ink: #172434;
  --muted: #5b6875;
  --border: #d7e0e7;
  --border-strong: #bac8d3;
  --canvas: #f5f7f9;
  --surface: #fff;
  --shadow-sm: 0 1px 2px rgba(7, 30, 54, .06), 0 8px 24px rgba(7, 30, 54, .06);
  --shadow-md: 0 18px 48px rgba(7, 30, 54, .12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1160px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; overflow-x: clip; scroll-behavior: smooth; }
body { min-width: 0; margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.65 var(--font); overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(27, 149, 107, .36); outline-offset: 2px; }
[hidden] { display: none !important; }
.shell { width: min(var(--shell), calc(100% - 40px)); min-width: 0; margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 13px; color: #fff; background: var(--navy-900); border-radius: var(--radius-sm); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header, .admin-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner, .admin-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 14px; color: var(--navy-900); text-decoration: none; }
.brand:hover { color: var(--navy-900); }
.brand-logo-wrap { flex: 0 0 auto; width: 126px; height: 48px; display: grid; place-items: center; padding-right: 14px; border-right: 1px solid var(--border); }
.brand-logo { width: 100%; max-height: 42px; object-fit: contain; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.22; }
.brand-copy strong { font-size: 16px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.header-actions, .admin-nav { min-width: 0; display: flex; align-items: center; gap: 18px; }
.header-link, .admin-nav a { font-weight: 720; text-decoration: none; }
.language-switch { display: inline-flex; align-items: center; gap: 4px; padding: 5px; background: var(--navy-50); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; }
.language-switch a { min-width: 34px; padding: 2px 6px; border-radius: 999px; text-align: center; text-decoration: none; }
.language-switch a.active { color: #fff; background: var(--navy-900); font-weight: 800; }
.confidential-bar { color: #e0eaf2; background: var(--navy-900); }
.confidential-inner { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.confidential-inner svg { flex: 0 0 18px; width: 18px; fill: #8ee0bd; }
.confidential-inner p { margin: 7px 0; font-size: 13px; }
.flash-stack { margin-top: 16px; }
.flash { margin-bottom: 8px; padding: 12px 15px; background: var(--navy-100); border: 1px solid #bdd0df; border-radius: var(--radius-sm); }
.flash-success { background: var(--green-100); border-color: #aadbc7; }
.flash-error, .flash-danger { color: var(--red-800); background: var(--red-100); border-color: #efb7c1; }

.hero { padding: 64px 0 54px; background: radial-gradient(circle at 82% 22%, rgba(27, 149, 107, .14), transparent 28%), linear-gradient(135deg, #fbfcfd, #edf5f2); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); align-items: center; gap: clamp(34px, 7vw, 84px); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--green-700); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 710px; margin: 0; color: var(--navy-950); font-size: clamp(36px, 5vw, 58px); line-height: 1.1; letter-spacing: -.035em; }
.hero-lead { max-width: 720px; margin: 21px 0 0; color: #425365; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; }
.hero-actions, .page-actions, .form-actions, .case-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.principles-card { padding: 29px; background: rgba(255,255,255,.9); border: 1px solid rgba(186,200,211,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.principles-card h2 { margin: 0 0 18px; color: var(--navy-900); font-size: 18px; }
.principles-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.principles-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: start; }
.principles-list span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--green-700); border-radius: 50%; font-weight: 850; }
.principles-list strong { display: block; color: var(--navy-950); }
.principles-list small { display: block; margin-top: 1px; color: var(--muted); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; color: var(--navy-900); background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; font-weight: 760; line-height: 1.3; text-align: center; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { color: var(--navy-900); border-color: var(--navy-700); transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.button-primary:hover { color: #fff; background: var(--navy-800); }
.button-submit { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.button-submit:hover { color: #fff; background: var(--green-800); }
.button-danger { color: #fff; background: var(--red-700); border-color: var(--red-700); }
.button-danger:hover { color: #fff; background: var(--red-800); }
.button-small { min-height: 34px; padding: 5px 10px; font-size: 12.5px; }
.button-full { width: 100%; }
.text-button { padding: 0; color: var(--navy-700); background: transparent; border: 0; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }

.emergency-banner { margin-top: 34px; display: flex; gap: 18px; padding: 22px 24px; color: #5e1825; background: var(--red-50); border: 1px solid #efb4bf; border-radius: var(--radius); }
.emergency-icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--red-700); border-radius: 50%; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.emergency-banner h2 { margin: 0 0 4px; font-size: 17px; }
.emergency-banner p { margin: 0; }
.emergency-banner strong { white-space: nowrap; }

.form-section { margin-top: 54px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2, .page-heading h1 { margin: 0; color: var(--navy-950); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.section-heading p, .page-heading p { max-width: 760px; margin: 9px 0 0; color: var(--muted); font-size: 16px; }
.mailbox-form, .card { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.mailbox-form { padding: clamp(24px, 5vw, 46px); }
.form-block + .form-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.form-block h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 20px; }
.form-block > p { margin: 0 0 20px; color: var(--muted); }
.field-grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-weight: 680; }
.field-label { line-height: 1.35; }
.required-mark { color: var(--red-700); }
.field-hint, .field > small { color: var(--muted); font-size: 12px; font-weight: 470; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: none; }
.field input, .field select { min-height: 46px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(27,149,107,.16); }
.field [aria-invalid="true"] { border-color: var(--red-700); }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.choice-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 15px; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; }
.choice-card:hover { border-color: var(--navy-700); }
.choice-card:has(input:checked) { background: var(--green-50); border-color: var(--green-600); box-shadow: 0 0 0 2px rgba(27,149,107,.12); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { color: var(--navy-950); line-height: 1.35; }
.choice-card small { color: var(--muted); line-height: 1.4; }
.choice-indicator { width: 19px; height: 19px; margin-bottom: 6px; background: #fff; border: 2px solid var(--border-strong); border-radius: 50%; }
.choice-card input:checked + .choice-indicator { border: 6px solid var(--green-700); }
.choice-card input:focus-visible + .choice-indicator { box-shadow: 0 0 0 3px rgba(27,149,107,.25); }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); }
.check-card { padding: 15px 16px; background: var(--navy-50); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.confidential-option { margin-top: 18px; color: var(--navy-900); background: #edf5fa; border-color: #c4d8e6; }
.anonymous-panel { margin-top: 18px; padding: 19px; background: var(--navy-50); border: 1px solid var(--border); border-radius: var(--radius); }
.anonymous-panel h4 { margin: 0 0 13px; color: var(--navy-900); font-size: 16px; }
.anonymous-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.consent-box { margin-top: 24px; padding: 17px; background: var(--green-50); border: 1px solid #b6ddcd; border-radius: var(--radius-sm); }
.privacy-inline { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.field-error { margin: 2px 0 0; color: var(--red-700); font-size: 12.5px; font-weight: 720; }
.error-summary { margin-bottom: 22px; padding: 15px 17px; color: var(--red-800); background: var(--red-50); border: 1px solid #efb4bf; border-left: 4px solid var(--red-700); border-radius: var(--radius-sm); }
.error-summary strong { display: block; }
.error-summary ul { margin: 7px 0 0; padding-left: 20px; }
.form-actions { align-items: center; justify-content: flex-end; }
.form-actions p { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 12.5px; }

.page { padding: 52px 0 20px; }
.page-heading { margin-bottom: 24px; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.card { padding: clamp(22px, 4vw, 32px); }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--green-700); background: var(--green-100); border-radius: 50%; font-size: 38px; font-weight: 900; }
.secret-warning { margin: 24px 0; padding: 18px; color: var(--amber-800); background: var(--amber-50); border: 1px solid #e7c468; border-radius: var(--radius); }
.secret-warning h2 { margin: 0 0 4px; font-size: 18px; }
.secret-warning p { margin: 0; }
.credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.credential { min-width: 0; padding: 18px; background: var(--navy-50); border: 1px solid var(--border); border-radius: var(--radius); text-align: left; }
.credential span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.credential code { display: block; margin: 7px 0 11px; color: var(--navy-950); font: 800 clamp(17px, 3vw, 24px)/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.copy-status { min-height: 22px; margin: 12px 0 0; color: var(--green-700); font-weight: 720; text-align: center; }
.lookup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); gap: 23px; align-items: start; }
.lookup-card .field + .field { margin-top: 17px; }
.lookup-card .button { margin-top: 22px; }
.help-card { color: #dce7ef; background: var(--navy-900); border-color: var(--navy-900); }
.help-card h2 { margin: 0 0 7px; color: #fff; font-size: 18px; }
.help-card p { margin: 0; }
.help-card a { color: #99e6c6; }
.help-card hr { margin: 21px 0; border: 0; border-top: 1px solid rgba(255,255,255,.2); }
.privacy-sections { display: grid; gap: 16px; }
.privacy-section h2 { margin: 0 0 8px; color: var(--navy-900); font-size: 19px; }
.privacy-section p, .privacy-section ul { margin: 0; }
.privacy-section p + p { margin-top: 9px; }
.privacy-section ul { padding-left: 20px; }
.privacy-emergency { color: var(--red-800); background: var(--red-50); border-color: #efb4bf; }

.case-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.case-heading h1 { margin: 0; color: var(--navy-950); font-size: clamp(27px, 4vw, 39px); }
.case-heading p { margin: 4px 0 0; color: var(--muted); }
.status-badge { max-width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; color: var(--navy-800); background: var(--navy-100); border: 1px solid #c3d5e3; border-radius: 999px; font-size: 12px; font-weight: 820; line-height: 1.25; text-align: center; }
.status-pending, .status-new, .status-received { color: var(--amber-800); background: var(--amber-100); border-color: #e5c36c; }
.status-processing, .status-in_progress { color: var(--navy-800); background: var(--navy-100); border-color: #bfd2e0; }
.status-replied, .status-responded { color: var(--green-800); background: var(--green-100); border-color: #acd9c7; }
.status-closed { color: #495766; background: #edf0f2; border-color: #ccd4da; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .72fr); gap: 22px; align-items: start; }
.case-main, .case-sidebar { min-width: 0; display: grid; gap: 18px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-heading h2 { margin: 0; color: var(--navy-950); font-size: 20px; }
.card-heading small { color: var(--muted); }
.message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { min-width: 0; margin: 0; font-weight: 680; text-align: right; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 24px 31px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; z-index: 1; top: 6px; left: 2px; width: 14px; height: 14px; background: var(--navy-700); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); }
.timeline-item.is-reply .timeline-dot { background: var(--green-700); }
.timeline-item.is-internal .timeline-dot { background: var(--amber-800); }
.timeline-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.timeline-meta strong { color: var(--navy-950); }
.timeline-meta time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.timeline-content { margin: 0; white-space: pre-wrap; }
.timeline-private { margin-top: 5px; color: var(--amber-800); font-size: 12px; font-weight: 700; }
.reply-form .field + .field, .admin-action-form .field + .field { margin-top: 14px; }
.reply-form .button, .admin-action-form .button { margin-top: 16px; }
.legal-hold { color: var(--red-800); background: var(--red-50); border-color: #efb4bf; }
.legal-hold h2 { margin: 0 0 6px; font-size: 18px; }
.legal-hold p { margin: 0; }

.admin-body { background: #f2f5f7; }
.admin-header { box-shadow: 0 1px 0 rgba(7,30,54,.03); }
.admin-identity { color: var(--muted); font-size: 13px; }
.admin-page { padding: 38px 0 30px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.admin-title h1 { margin: 0; color: var(--navy-950); font-size: clamp(28px, 4vw, 39px); }
.admin-title p { margin: 4px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat-card { min-width: 0; padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow-sm); }
.stat-card:hover { color: var(--ink); border-color: var(--navy-700); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 3px; color: var(--navy-950); font-size: 30px; line-height: 1.2; }
.stat-card.active { border-color: var(--green-600); box-shadow: 0 0 0 2px rgba(27,149,107,.13); }
.filters { display: flex; align-items: end; gap: 12px; margin-bottom: 17px; padding: 17px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.filters .field { flex: 1 1 180px; }
.filters .search-field { flex: 2 1 280px; }
.table-wrap { min-width: 0; overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.case-table { width: 100%; min-width: 790px; border-collapse: collapse; }
.case-table th, .case-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.case-table th { color: var(--muted); background: var(--navy-50); font-size: 12px; letter-spacing: .03em; }
.case-table tbody tr:last-child td { border-bottom: 0; }
.case-table a { color: var(--navy-900); font-weight: 780; }
.case-subject { max-width: 360px; }
.case-subject small { display: block; margin-top: 2px; color: var(--muted); }
.empty-state { padding: 36px 20px; color: var(--muted); text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.empty-state h2 { margin: 0 0 5px; color: var(--navy-900); font-size: 19px; }
.empty-state p { margin: 0; }
.login-shell { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 44px 20px; }
.login-card { width: min(470px, 100%); padding: clamp(25px, 5vw, 38px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.login-card h1 { margin: 0; color: var(--navy-950); font-size: 30px; }
.login-card > p { margin: 8px 0 23px; color: var(--muted); }
.login-card .button { margin-top: 19px; }
.login-note { margin: 18px 0 0; padding: 13px; color: var(--muted); background: var(--navy-50); border-radius: var(--radius-sm); font-size: 12.5px; }
.sent-mark { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--green-700); border-radius: 50%; font-size: 27px; font-weight: 900; }

.site-footer { margin-top: 68px; padding: 35px 0; color: #d7e2eb; background: var(--navy-950); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 4px 0 0; color: #aebfcd; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; }
.footer-links a { color: #fff; font-size: 13px; }
.footer-links span { color: #aebfcd; font-size: 12px; }

@media (max-width: 900px) {
  .hero-grid, .case-layout { grid-template-columns: 1fr; }
  .principles-card { max-width: 620px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell, .narrow { width: min(100% - 28px, var(--shell)); }
  .header-inner, .admin-header-inner { min-height: 72px; align-items: center; gap: 10px; }
  .brand { gap: 9px; }
  .brand-logo-wrap { width: 92px; height: 40px; padding-right: 9px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .header-actions, .admin-nav { gap: 8px; }
  .header-link { display: none; }
  .admin-identity { display: none; }
  .admin-nav a { font-size: 12px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .emergency-banner { align-items: flex-start; padding: 18px; }
  .emergency-icon { flex-basis: 40px; height: 40px; }
  .form-section { margin-top: 42px; }
  .mailbox-form { padding: 22px 18px; border-radius: var(--radius); }
  .two-col, .three-col, .credentials, .lookup-layout { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions p { flex-basis: auto; }
  .form-actions .button { width: 100%; }
  .page { padding-top: 38px; }
  .case-heading, .admin-title { align-items: flex-start; flex-direction: column; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters .field { width: 100%; flex-basis: auto; }
  .filters .button { width: 100%; }
  .table-wrap { overflow: visible; }
  .case-table, .case-table tbody { width: 100%; min-width: 0; display: block; }
  .case-table thead { display: none; }
  .case-table tbody { display: grid; gap: 10px; }
  .case-table tbody tr { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 13px 14px; border-bottom: 1px solid var(--border); }
  .case-table tbody tr:last-child { border-bottom: 0; }
  .case-table td { min-width: 0; display: block; padding: 0; border: 0; }
  .case-table td:nth-child(1) { grid-column: 1; grid-row: 1; color: var(--muted); font-size: 12px; }
  .case-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .case-table td:nth-child(3), .case-table td:nth-child(4) { display: none; }
  .case-table td:nth-child(5) { grid-column: 2; grid-row: 1; }
  .case-subject { max-width: none; }
  .case-subject a { display: block; overflow-wrap: anywhere; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .language-switch { padding: 4px; }
  .language-switch a { min-width: 30px; padding-inline: 4px; }
  .confidential-inner { text-align: left; }
  .hero-actions .button { width: 100%; }
  .principles-card { padding: 22px 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 25px; }
  .card { padding: 19px 16px; border-radius: var(--radius); }
  .timeline-meta { align-items: flex-start; flex-direction: column; gap: 1px; }
  .detail-list > div { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { text-align: left; }
  .site-footer { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
