:root {
  color: #25232b;
  background: #f5f4f7;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  --ink: #26232e;
  --muted: #7c7886;
  --line: #e9e6ed;
  --panel: #ffffff;
  --purple: #6e5bec;
  --purple-dark: #5744db;
  --purple-soft: #efedff;
  --green: #2ab680;
  --green-soft: #e7f8f1;
  --blue: #4285e4;
  --blue-soft: #eaf3ff;
  --danger: #d64b5f;
  --shadow: 0 10px 35px rgba(31, 25, 48, 0.06);
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: #f7f6f9; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, tr:focus-visible { outline: 3px solid rgba(110, 91, 236, .24); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 242px; display: flex; flex-direction: column; color: #b9b4c7; background: #24212b; }
.brand { height: 82px; display: flex; align-items: center; gap: 12px; padding: 0 25px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: white; border-radius: 12px; background: linear-gradient(145deg, #8b7cff, #6551e3); font-family: Arial, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.08em; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { color: #fff; font-family: Arial, sans-serif; font-size: 15px; letter-spacing: .14em; }
.brand-copy small { color: #8c879a; font-family: Arial, sans-serif; font-size: 7.5px; letter-spacing: .18em; }
.nav { display: grid; gap: 5px; padding: 28px 14px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 14px; color: #a9a4b6; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; font-weight: 500; }
.nav-item svg { width: 19px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: #6c58e8; box-shadow: 0 8px 18px rgba(87, 66, 213, .22); }
.sidebar-scope { margin: auto 14px 17px; display: flex; gap: 11px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.035); }
.scope-icon { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; color: #a99cff; border-radius: 8px; background: rgba(121, 99, 241, .14); }
.scope-icon svg { width: 16px; }
.sidebar-scope div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sidebar-scope small { color: #777184; font-size: 10px; }
.sidebar-scope strong { overflow: hidden; color: #d9d5e0; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { padding: 0 27px 26px; color: #716c7c; font-size: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #36c88c; box-shadow: 0 0 0 3px rgba(54,200,140,.1); }

.workspace { min-height: 100vh; margin-left: 242px; }
.topbar { position: sticky; top: 0; z-index: 12; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid #ebe9ee; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.topbar-title { color: #494551; font-size: 14px; font-weight: 600; }
.actor-switcher { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; color: var(--purple-dark); border-radius: 11px; background: var(--purple-soft); font-size: 13px; font-weight: 700; }
.actor-switcher label { position: relative; display: flex; flex-direction: column; gap: 1px; }
.actor-switcher label > span { display: flex; align-items: center; gap: 7px; color: #3c3943; font-size: 12px; font-weight: 600; }
.actor-switcher select { max-width: 210px; padding: 0 22px 0 0; color: #898590; border: 0; background: transparent; font-size: 10px; appearance: auto; cursor: pointer; }
.role-badge { padding: 2px 6px; border-radius: 20px; font-size: 8px; font-style: normal; font-weight: 600; }
.role-badge.purple { color: #6754da; background: #efedff; }
.role-badge.blue { color: #3975c7; background: #eaf3ff; }
.role-badge.green { color: #218862; background: #e8f8f2; }
.mobile-menu { display: none !important; }

.main-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 36px 42px 54px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 7px; color: var(--purple); font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
.page-head h1, .intake-head h1 { margin-bottom: 8px; color: var(--ink); font-size: 28px; line-height: 1.2; letter-spacing: -.045em; }
.page-head p:not(.eyebrow), .intake-head > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; color: white; border-radius: 9px; background: var(--purple); box-shadow: 0 7px 16px rgba(101, 80, 222, .18); font-size: 12px; font-weight: 600; transition: .2s ease; }
.primary-button:hover { background: var(--purple-dark); transform: translateY(-1px); }
.primary-button svg { width: 17px; }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.secondary-button, .back-button { display: inline-flex; align-items: center; gap: 7px; color: #66616e; background: transparent; font-size: 12px; font-weight: 600; }
.secondary-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.secondary-button:hover { border-color: #cec7e5; color: var(--purple); }
.secondary-button svg, .back-button svg { width: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 17px; }
.stat-card { min-height: 123px; display: flex; align-items: center; gap: 15px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow); }
.stat-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.stat-icon svg { width: 21px; }
.accent-purple .stat-icon { color: #715de8; background: #efedff; }
.accent-green .stat-icon { color: #22996d; background: #e8f8f2; }
.accent-blue .stat-icon { color: #387bcf; background: #eaf3ff; }
.stat-card > div { min-width: 0; }
.stat-card small { display: block; margin-bottom: 3px; color: #86818e; font-size: 10px; font-weight: 500; }
.stat-card strong { display: block; color: #302d36; font-family: Arial, "Noto Sans KR", sans-serif; font-size: 24px; line-height: 1.15; }
.stat-card strong em { margin-left: 3px; color: #4d4954; font-family: "Noto Sans KR", sans-serif; font-size: 11px; font-style: normal; font-weight: 600; }
.stat-card p { margin: 5px 0 0; color: #aaa6af; font-size: 9px; }

.panel { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.overview-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 17px; margin-bottom: 17px; }
.chart-panel, .security-panel { min-height: 194px; padding: 21px 23px; }
.panel-head, .table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel h2 { margin-bottom: 4px; color: #37333e; font-size: 14px; letter-spacing: -.02em; }
.panel-head p, .table-heading p { margin: 0; color: #99959f; font-size: 9.5px; }
.soft-badge { padding: 4px 8px; color: #7e778d; border-radius: 20px; background: #f4f2f6; font-size: 8px; font-weight: 600; }
.soft-badge.secure { color: #267d5f; background: var(--green-soft); }
.bar-chart { display: grid; gap: 13px; margin-top: 24px; }
.bar-row { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 11px; color: #716c78; font-size: 10px; }
.bar-row strong { color: #47424f; font-size: 10px; text-align: right; }
.bar-track { height: 7px; overflow: hidden; border-radius: 20px; background: #f0eef3; }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a7af0, #6a56e1); }
.security-panel { position: relative; display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 15px; background: linear-gradient(135deg, #fff, #fbfaff); }
.security-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--purple); border-radius: 12px; background: var(--purple-soft); grid-row: span 2; }
.security-icon svg { width: 20px; }
.security-panel h2 { margin-top: 9px; }
.security-panel p { max-width: 330px; margin-bottom: 0; color: #96919c; font-size: 9.5px; line-height: 1.65; }
.security-panel ul { grid-column: 1 / -1; display: flex; gap: 19px; margin: 23px 0 0; padding: 13px 0 0; color: #66616d; border-top: 1px solid #efedf2; list-style: none; font-size: 9px; }
.security-panel li { display: flex; align-items: center; gap: 5px; }
.security-panel li svg { width: 12px; color: var(--green); stroke-width: 2.5; }

.table-panel { overflow: hidden; }
.table-heading { padding: 21px 23px 15px; }
.result-count { min-width: 37px; padding: 4px 8px; color: var(--purple); border-radius: 20px; background: var(--purple-soft); font-size: 9px; font-weight: 700; text-align: center; }
.filter-row { display: flex; gap: 8px; padding: 0 23px 16px; }
.search-field { width: 300px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfafc; }
.search-field:focus-within { border-color: #bcb3ef; background: #fff; box-shadow: 0 0 0 3px rgba(110, 91, 236, .07); }
.search-field svg { flex: 0 0 auto; width: 15px; color: #9e99a5; }
.search-field input { width: 100%; padding: 0; color: #4a4651; border: 0; outline: 0; background: transparent; font-size: 10px; }
.search-field input::placeholder { color: #aaa6af; }
.filter-select { height: 36px; padding: 0 28px 0 11px; color: #6f6a76; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.table-wrap { overflow-x: auto; border-top: 1px solid #efedf2; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th { height: 36px; padding: 0 16px; color: #9c98a2; background: #faf9fb; font-size: 8.5px; font-weight: 600; text-align: left; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { width: 45px; padding-right: 18px; }
td { height: 66px; padding: 8px 16px; border-top: 1px solid #f0eef2; color: #55505d; font-size: 10px; }
tbody tr { cursor: pointer; transition: background .16s; }
tbody tr:hover { background: #faf9ff; }
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-avatar { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; color: #6b57df; border-radius: 10px; background: #efedff; font-size: 11px; font-weight: 700; }
.customer-cell div { display: flex; flex-direction: column; gap: 3px; }
.customer-cell strong, .cell-main { color: #3f3b46; font-size: 10.5px; font-weight: 600; }
.customer-cell small, .cell-sub { display: block; color: #9b97a1; font-size: 8.5px; font-weight: 400; }
.cell-sub { margin-top: 3px; }
.service-chip { padding: 4px 9px; color: #5c5680; border-radius: 20px; background: #f2f0f7; font-size: 8.5px; font-weight: 600; }
.consent-badge { display: inline-flex; align-items: center; gap: 4px; color: #248362; font-size: 8.5px; font-weight: 600; }
.consent-badge svg { width: 12px; stroke-width: 2.5; }
.row-button { width: 28px; height: 28px; display: grid; place-items: center; color: #a09ba6; border-radius: 8px; background: transparent; }
.row-button:hover { color: var(--purple); background: var(--purple-soft); }
.row-button svg { width: 14px; }
.empty-state { min-height: 230px; display: grid; place-items: center; align-content: center; color: #aaa5b0; text-align: center; border-top: 1px solid var(--line); }
.empty-state > span { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: #f3f1f5; }
.empty-state h3 { margin-bottom: 4px; color: #5f5a65; font-size: 13px; }
.empty-state p { margin: 0; font-size: 10px; }
.empty-mini { color: #aaa5b0; font-size: 10px; }

.intake-page { max-width: 800px; margin: 0 auto; }
.intake-head { position: relative; padding-top: 10px; text-align: center; }
.intake-head .back-button { position: absolute; top: 7px; left: 0; }
.stepper { max-width: 570px; display: flex; align-items: flex-start; justify-content: center; margin: 32px auto 28px; }
.stepper i { flex: 1; height: 1px; margin: 16px 9px 0; background: #dedbe3; }
.step { min-width: 74px; display: grid; place-items: center; gap: 6px; color: #aaa6b0; font-size: 9px; }
.step span { width: 32px; height: 32px; display: grid; place-items: center; color: #aaa5b0; border: 1px solid #ddd9e2; border-radius: 50%; background: #fff; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; }
.step span svg { width: 14px; }
.step strong { font-weight: 600; }
.step.active { color: var(--purple); }
.step.active span { color: #fff; border-color: var(--purple); background: var(--purple); box-shadow: 0 5px 13px rgba(99, 79, 220, .19); }
.intake-card { min-height: 440px; padding: 31px 38px 27px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.form-section { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #efedf1; }
.section-number { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--purple); border-radius: 10px; background: var(--purple-soft); font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; }
.form-section h2 { margin-bottom: 4px; color: #38343f; font-size: 15px; letter-spacing: -.03em; }
.form-section p { margin: 0; color: #99949e; font-size: 9.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field > span { color: #595560; font-size: 10.5px; font-weight: 600; }
.field > span em, .consent-copy em { color: #e05d6f; font-style: normal; }
.field > span small { color: #9d98a3; font-size: 8px; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 0 13px; color: #433f49; border: 1px solid #dfdce3; border-radius: 9px; outline: none; background: #fff; font-size: 11px; transition: .16s; }
.field input, .field select { height: 43px; }
.field textarea { padding-top: 11px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #bbb7bf; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9e91ea; box-shadow: 0 0 0 3px rgba(110,91,236,.07); }
.field > small, .consent-box > small { min-height: 0; color: var(--danger); font-size: 9px; }
.field > small:empty, .consent-box > small:empty { display: none; }
.has-error input, .has-error select, .has-error .choice span, .consent-box.has-error { border-color: #e48d9a; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.choice input, .chip-choices input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { height: 48px; display: grid; place-items: center; color: #77727e; border: 1px solid #e3e0e6; border-radius: 9px; background: #fff; font-size: 10px; font-weight: 600; cursor: pointer; }
.choice span:hover, .choice input:focus-visible + span { border-color: #b4a9ed; }
.choice input:checked + span { color: var(--purple); border-color: var(--purple); background: var(--purple-soft); box-shadow: 0 0 0 1px var(--purple); }
.chip-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-choices span { display: inline-flex; align-items: center; min-height: 31px; padding: 0 13px; color: #77727e; border: 1px solid #e3e0e6; border-radius: 20px; background: #fff; font-size: 9px; cursor: pointer; }
.chip-choices input:checked + span { color: var(--purple); border-color: #aa9fed; background: var(--purple-soft); font-weight: 600; }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid #efedf1; }
.form-actions .next, .form-actions .submit { min-width: 125px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px auto 0; color: #9a96a0; }
.privacy-note > svg { width: 17px; color: #8c85a2; }
.privacy-note strong { display: block; margin-bottom: 2px; color: #716c77; font-size: 9px; }
.privacy-note p { margin: 0; font-size: 8px; }
.assignment-card { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px; border-radius: 10px; background: #f7f6fa; }
.assignment-card > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--purple); border-radius: 10px; background: #fff; }
.assignment-card svg { width: 17px; }
.assignment-card div { display: flex; flex-direction: column; gap: 2px; }
.assignment-card small { color: #99949e; font-size: 8px; }
.assignment-card strong { color: #4c4853; font-size: 11px; }
.consent-box { padding: 16px; border: 1px solid #e4e0e8; border-radius: 10px; }
.consent-copy { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.consent-copy strong { color: #504b57; font-size: 10px; }
.consent-copy button { display: flex; align-items: center; gap: 3px; padding: 3px 0; color: #8a8490; background: transparent; font-size: 8px; }
.consent-copy button svg { width: 11px; transition: transform .2s; }
.policy-details { display: none; margin: 13px 0 4px; padding: 11px 13px; border-radius: 8px; background: #f7f6f9; }
.policy-details.open { display: block; }
.policy-details.open + .consent-check { margin-top: 12px; }
.policy-details dl { display: grid; gap: 7px; margin: 0; }
.policy-details dl div { display: grid; grid-template-columns: 67px 1fr; gap: 10px; font-size: 8px; }
.policy-details dt { color: #6b6671; font-weight: 600; }
.policy-details dd { margin: 0; color: #96919b; }
.consent-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; cursor: pointer; }
.consent-check input { position: absolute; opacity: 0; }
.consent-check > span { width: 20px; height: 20px; display: grid; place-items: center; color: transparent; border: 1px solid #d8d4dc; border-radius: 6px; background: #fff; }
.consent-check > span svg { width: 13px; stroke-width: 2.5; }
.consent-check input:checked + span { color: #fff; border-color: var(--purple); background: var(--purple); }
.consent-check input:focus-visible + span { outline: 3px solid rgba(110,91,236,.2); }
.consent-check strong { color: #625d68; font-size: 9px; font-weight: 500; }

.drawer-layer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; background: rgba(25, 22, 31, .36); backdrop-filter: blur(2px); }
.detail-drawer { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); overflow-y: auto; padding: 27px 28px; background: #fff; box-shadow: -14px 0 40px rgba(25,20,36,.13); animation: slide-in .23s ease-out; }
@keyframes slide-in { from { transform: translateX(30px); opacity: .5; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.drawer-head h2 { margin: 8px 0 0; color: #312e37; font-size: 18px; }
.icon-button { width: 35px; height: 35px; display: grid; place-items: center; color: #7f7986; border-radius: 9px; background: #f5f3f7; }
.icon-button:hover { color: var(--purple); background: var(--purple-soft); }
.icon-button svg { width: 17px; }
.profile-card { display: flex; align-items: center; gap: 13px; padding: 17px; border-radius: 12px; background: linear-gradient(135deg, #f2efff, #f8f7ff); }
.profile-card > span { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: var(--purple); font-size: 17px; font-weight: 700; }
.profile-card h3 { margin-bottom: 4px; color: #38333f; font-size: 15px; }
.profile-card p { margin: 0; color: #817b88; font-size: 9px; }
.detail-section { padding: 24px 1px; border-bottom: 1px solid #eeebf0; }
.detail-section h3 { margin-bottom: 16px; color: #4a4551; font-size: 11px; }
.detail-list { display: grid; gap: 12px; margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; }
.detail-list dt { color: #9b96a0; font-size: 9px; }
.detail-list dd { margin: 0; color: #56515c; font-size: 9px; font-weight: 600; text-align: right; }
.answer-block { margin-bottom: 16px; }
.answer-block:last-child { margin-bottom: 0; }
.answer-block small { display: block; margin-bottom: 5px; color: #9c97a1; font-size: 8px; }
.answer-block strong, .answer-block p { color: #57515e; font-size: 10px; font-weight: 500; line-height: 1.6; }
.answer-block p { margin: 0; }
.answer-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.answer-chips span { padding: 4px 9px; color: #605883; border-radius: 20px; background: #f1eff8; font-size: 8px; }
.consent-proof { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 13px; color: #338968; border-radius: 10px; background: var(--green-soft); }
.consent-proof > svg { flex: 0 0 auto; width: 19px; }
.consent-proof strong { display: block; margin-bottom: 2px; font-size: 9px; }
.consent-proof p { margin: 0; color: #61a58b; font-size: 7.5px; }

.toast { position: fixed; z-index: 80; right: 25px; bottom: 25px; display: flex; align-items: center; gap: 10px; max-width: 370px; padding: 14px 17px; color: #fff; border-radius: 11px; background: #2b2931; box-shadow: 0 12px 30px rgba(32,28,39,.2); font-size: 10px; animation: toast-in .25s ease-out; }
.toast.success svg { color: #56dda8; }
.toast.error svg { color: #ff8b9b; }
.toast svg { flex: 0 0 auto; width: 17px; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
.fatal { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }
.fatal > span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 16px; color: var(--danger); border-radius: 15px; background: #ffecef; }
.fatal h1 { margin-bottom: 7px; font-size: 20px; }
.fatal p { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.fatal small { color: #aaa5ae; font-size: 9px; }
.sidebar-scrim { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 980px) {
  .sidebar { width: 218px; transform: translateX(-100%); transition: transform .22s ease; }
  .workspace { margin-left: 0; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 15; width: 100%; background: rgba(20,18,25,.35); }
  .menu-open .sidebar-scrim { display: block; }
  .mobile-menu { display: grid !important; }
  .topbar { padding: 0 25px; }
  .topbar-title { margin-right: auto; margin-left: 12px; }
  .main-content { padding: 31px 25px 45px; }
}

@media (max-width: 760px) {
  .topbar { height: 70px; }
  .actor-switcher label > span { display: none; }
  .actor-switcher select { width: 142px; max-width: 142px; }
  .main-content { padding: 26px 17px 40px; }
  .page-head { align-items: flex-start; }
  .page-head h1, .intake-head h1 { font-size: 24px; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { min-height: 98px; padding: 17px; }
  .overview-grid { grid-template-columns: 1fr; }
  .filter-row { flex-wrap: wrap; }
  .search-field { width: 100%; }
  .filter-select { flex: 1; }
  .intake-card { padding: 25px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid .full { grid-column: auto; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .intake-head .back-button { position: static; margin-bottom: 26px; }
  .step strong { font-size: 8px; }
  .stepper i { margin-inline: 3px; }
}

@media (max-width: 520px) {
  .topbar { padding: 0 14px; }
  .topbar-title { display: none; }
  .actor-switcher { margin-left: auto; }
  .avatar { width: 32px; height: 32px; }
  .page-head { flex-direction: column; }
  .page-head .primary-button { width: 100%; }
  .security-panel { grid-template-columns: 1fr; }
  .security-icon { margin-bottom: 12px; grid-row: auto; }
  .security-panel ul { flex-direction: column; gap: 8px; }
  .table-heading { padding-inline: 17px; }
  .filter-row { padding-inline: 17px; }
  .intake-card { padding: 22px 16px; }
  .form-section { gap: 9px; }
  .form-actions { gap: 9px; }
  .form-actions button { flex: 1; }
  .stepper { margin-inline: -8px; }
  .privacy-note { align-items: flex-start; padding: 0 7px; }
}
