:root {
  --ink: #15243a;
  --muted: #66758a;
  --soft: #8b98aa;
  --line: #dfe6ef;
  --line-strong: #ccd6e3;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --canvas: #eef2f7;
  --navy: #0c2441;
  --navy-2: #13375f;
  --blue: #2267d8;
  --blue-dark: #174fae;
  --blue-soft: #edf4ff;
  --cyan: #1fb5b0;
  --green: #17855d;
  --green-soft: #e9f8f1;
  --amber: #b66a10;
  --amber-soft: #fff5df;
  --red: #bb3347;
  --red-soft: #fff0f2;
  --shadow: 0 16px 44px rgba(20, 43, 73, .08);
  --shadow-small: 0 8px 24px rgba(20, 43, 73, .07);
  --radius: 18px;
  --radius-small: 12px;
  --sidebar: 252px;
  font-family: Inter, Pretendard, "Noto Sans KR", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(34, 103, 216, .32); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy); }
.skip-link:focus { transform: translateY(0); }
.noscript, .fatal-state { display: grid; min-height: 100vh; place-items: center; padding: 32px; text-align: center; }
.fatal-state main { max-width: 520px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.boot-screen { display: grid; min-height: 100vh; grid-template-columns: auto auto; align-content: center; justify-content: center; gap: 6px 12px; color: var(--navy); background: #fff; }
.boot-screen > div:nth-child(2) { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.boot-screen strong { font-size: 20px; letter-spacing: .04em; }
.boot-screen div span { margin-top: 5px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.boot-screen .spinner { grid-column: 1 / 3; margin: 28px auto 0; }
.boot-screen p { grid-column: 1 / 3; margin: 4px 0; color: var(--muted); font-size: 13px; }
.spinner, .button-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #c9d7e8; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.button-spinner { width: 16px; height: 16px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { color: var(--navy); font-size: 16px; font-weight: 850; line-height: 1; letter-spacing: .035em; }
.brand small { margin-top: 5px; color: var(--blue); font-size: 9px; font-weight: 850; line-height: 1; letter-spacing: .25em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, var(--blue), #1fb5b0); font-size: 18px; font-weight: 900; box-shadow: 0 8px 20px rgba(34, 103, 216, .22); }
.brand-inverse strong, .brand-inverse small { color: #fff; }

.login-page { min-height: 100vh; background: #fff; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 44%) 1fr; }
.login-aside { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(34px, 5vw, 72px); color: #fff; background: linear-gradient(145deg, #071c34 0%, #0f3155 62%, #174f74 100%); }
.login-aside::before { position: absolute; width: 520px; height: 520px; right: -240px; bottom: -210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); content: ""; }
.login-aside::after { position: absolute; width: 240px; height: 240px; top: 18%; left: -130px; border-radius: 50%; background: radial-gradient(circle at 70% 50%, rgba(31,181,176,.22), transparent 65%); content: ""; }
.login-aside > * { position: relative; z-index: 1; }
.login-aside-copy { max-width: 560px; margin: auto 0; padding: 80px 0; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.login-aside .eyebrow { color: #70ddd8; }
.login-aside h1 { margin: 0; max-width: 650px; font-size: clamp(34px, 4.3vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.login-aside-copy > p:last-child { max-width: 520px; margin: 24px 0 0; color: #c8d8e8; font-size: 16px; line-height: 1.75; }
.trust-note { display: flex; align-items: center; gap: 10px; color: #bed0e1; font-size: 13px; }
.trust-note svg { color: #70ddd8; }
.login-panel { display: grid; min-width: 0; grid-template-rows: auto 1fr auto; padding: clamp(24px, 4vw, 56px); background: #fff; }
.login-language { display: flex; justify-content: flex-end; gap: 8px; }
.locale-chip { padding: 8px 11px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.locale-chip:hover, .locale-chip.is-active { border-color: var(--line); color: var(--blue); background: var(--blue-soft); }
.login-card { width: min(100%, 440px); margin: auto; padding: 42px 0; }
.login-card h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; letter-spacing: -.04em; }
.login-lead { margin: 15px 0 34px; color: var(--muted); line-height: 1.7; }
.login-card label { display: block; margin-top: 20px; }
.login-card label > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.login-card input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.login-card input:hover { border-color: #aab9ca; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34,103,216,.1); outline: none; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 780; transition: transform .18s, background .18s, border-color .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(34,103,216,.2); }
.button.primary:hover:not(:disabled) { background: var(--blue-dark); }
.button.secondary { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.button.secondary:hover:not(:disabled) { border-color: #9cafc5; background: var(--surface-soft); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.login-button { width: 100%; height: 54px; justify-content: space-between; margin-top: 28px; padding: 0 20px; }
.login-help { display: flex; justify-content: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.login-help a { color: var(--blue); font-weight: 750; }
.login-footer { display: flex; justify-content: space-between; color: var(--soft); font-size: 11px; }
.inline-alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; padding: 13px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.inline-alert svg { flex: 0 0 auto; }
.inline-alert.error { color: var(--red); background: var(--red-soft); }
.inline-alert.info { color: #285c93; background: var(--blue-soft); }

.client-app { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; border-right: 1px solid #dfe6ee; background: #fff; }
.sidebar-head { display: flex; height: 78px; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #edf0f4; }
.sidebar-close { display: none !important; }
.customer-context { display: flex; align-items: center; gap: 11px; margin: 18px 14px 12px; padding: 13px; border: 1px solid #dbe8f6; border-radius: 13px; background: #f6faff; }
.context-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 850; }
.customer-context > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.customer-context small { color: var(--muted); font-size: 10px; }
.customer-context strong { overflow: hidden; margin-top: 3px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.primary-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 2px; overflow-y: auto; padding: 7px 12px 18px; }
.nav-link { position: relative; display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 10px; color: #536276; font-size: 13px; font-weight: 690; }
.nav-link:hover { color: var(--blue); background: #f5f8fc; }
.nav-link.is-active { color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.nav-link.is-active::before { position: absolute; width: 3px; inset: 8px auto 8px -12px; border-radius: 0 4px 4px 0; background: var(--blue); content: ""; }
.nav-icon { display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; }
.sidebar-foot { display: flex; align-items: flex-start; gap: 9px; margin: auto 16px 18px; padding: 12px; border-radius: 11px; color: var(--muted); background: var(--surface-soft); font-size: 10px; line-height: 1.5; }
.sidebar-foot svg { width: 17px; flex: 0 0 auto; color: var(--green); }
.app-frame { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 78px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left > div { display: flex; flex-direction: column; }
.topbar-left small { color: var(--muted); font-size: 11px; }
.topbar-left strong { margin-top: 2px; font-size: 14px; }
.drawer-button { display: none !important; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .utility-button, .user-button { border: 1px solid var(--line); cursor: pointer; color: var(--muted); background: #fff; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border-radius: 11px; }
.icon-button:hover, .utility-button:hover, .user-button:hover { border-color: #b9c7d7; color: var(--blue); background: #f8faff; }
.utility-button { display: flex; height: 42px; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.utility-button svg { width: 16px; height: 16px; }
.utility-button b { font-size: 11px; }
.user-button { display: flex; height: 46px; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; border-radius: 13px; text-align: left; }
.user-button > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fff; background: var(--navy-2); font-size: 13px; font-weight: 850; }
.user-button > b { display: flex; max-width: 150px; flex-direction: column; overflow: hidden; font-size: 11px; line-height: 1.2; }
.user-button small { overflow: hidden; margin-top: 3px; color: var(--soft); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.user-button > i { font-size: 11px; font-style: normal; }
.popover-wrap { position: relative; }
.popover { position: absolute; z-index: 60; min-width: 190px; top: calc(100% + 9px); right: 0; overflow: hidden; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.popover-link { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); background: transparent; font-size: 12px; text-align: left; }
.popover-link:hover, .popover-link.is-current { color: var(--blue); background: var(--blue-soft); }
.popover-link svg { width: 15px; height: 15px; }
.popover-link.danger { justify-content: flex-start; color: var(--red); }
.popover-user { display: flex; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.popover-user strong { font-size: 12px; }
.popover-user small { margin-top: 4px; color: var(--soft); font-size: 10px; }
.drawer-backdrop { position: fixed; z-index: 38; inset: 0; background: rgba(6,22,39,.48); backdrop-filter: blur(2px); }

.main-content { min-height: calc(100vh - 78px); padding: clamp(24px, 3vw, 42px); }
.main-content:focus { outline: none; }
.content-loading { display: grid; min-height: 55vh; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.content-loading p { margin: 0; font-size: 13px; }
.dashboard-hero, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin: 0 auto 28px; max-width: 1560px; }
.dashboard-hero h1, .page-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -.04em; }
.dashboard-hero > div > p:last-child, .page-heading > div > p:last-child { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hero-date { display: flex; min-width: 146px; flex-direction: column; align-items: flex-end; padding-top: 8px; }
.hero-date strong { font-size: 14px; }
.hero-date small { margin-top: 6px; color: var(--green); font-size: 11px; }
.metrics-grid { display: grid; max-width: 1560px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 auto 22px; }
.metric-card { position: relative; min-width: 0; min-height: 124px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; box-shadow: var(--shadow-small); }
.metric-card::before { position: absolute; width: 4px; inset: 18px auto 18px 0; border-radius: 0 4px 4px 0; background: var(--blue); content: ""; }
.metric-card:nth-child(2)::before { background: var(--amber); }
.metric-card:nth-child(3)::before { background: #7b5bd6; }
.metric-card:nth-child(4)::before { background: var(--cyan); }
.metric-card:nth-child(5)::before { background: var(--green); }
.metric-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 720; }
.metric-card > strong { display: block; margin-top: 10px; font-size: 29px; letter-spacing: -.04em; }
.metric-card > small { display: block; overflow: hidden; margin-top: 6px; color: var(--soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; max-width: 1560px; grid-template-columns: minmax(0, 1.8fr) minmax(310px, .72fr); gap: 22px; margin: 0 auto; }
.section-block, .action-panel, .quick-section, .page-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-small); }
.section-block, .action-panel { padding: 23px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.section-title a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 11px; font-weight: 750; }
.section-title a svg { width: 14px; height: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.project-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-2px); border-color: #b7c8dc; box-shadow: var(--shadow-small); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-card h3 { overflow: hidden; margin: 6px 0 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.project-card-head p { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-code { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.status-badge, .ready-badge { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 800; }
.progress-head { display: flex; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 10px; }
.progress-head strong { color: var(--ink); }
.progress-bar { height: 6px; overflow: hidden; margin-top: 7px; border-radius: 99px; background: #e9eef5; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.project-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 17px 0; }
.project-meta div { min-width: 0; }
.project-meta dt { color: var(--soft); font-size: 9px; }
.project-meta dd { overflow: hidden; margin: 4px 0 0; font-size: 10px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 10px; font-weight: 800; }
.text-link svg { width: 13px; height: 13px; }
.action-panel { min-width: 0; }
.action-list { display: flex; flex-direction: column; gap: 9px; }
.action-row { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.action-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--amber); background: var(--amber-soft); }
.action-icon svg { width: 16px; height: 16px; }
.action-row > div { min-width: 0; }
.action-row strong, .action-row p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-row strong { display: block; font-size: 11px; }
.action-row p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.action-row time { color: var(--soft); font-size: 9px; }
.action-row a { color: var(--blue); font-size: 9px; font-weight: 750; }
.quick-section { max-width: 1560px; margin: 22px auto 0; padding: 23px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.quick-link { display: grid; min-width: 0; min-height: 96px; grid-template-columns: 1fr auto; align-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.quick-link:hover { border-color: #b4c7df; background: var(--blue-soft); }
.quick-link > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.quick-link:hover > span { color: #fff; background: var(--blue); }
.quick-link > span svg { width: 17px; height: 17px; }
.quick-link > strong { overflow: hidden; align-self: end; margin-top: 13px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.quick-link > svg { width: 13px; height: 13px; align-self: end; color: var(--soft); }

.page-heading { align-items: flex-end; }
.page-heading > .button { flex: 0 0 auto; }
.page-card { max-width: 1560px; margin: 0 auto; padding: clamp(20px, 2.5vw, 30px); }
.data-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.project-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.record-card { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.record-card h3 { overflow: hidden; margin: 7px 0 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.state-panel { display: flex; min-height: 290px; flex-direction: column; align-items: center; justify-content: center; padding: 34px; text-align: center; }
.state-panel > svg { width: 38px; height: 38px; color: #7b91aa; }
.state-panel h3 { margin: 18px 0 0; font-size: 17px; }
.state-panel p { max-width: 540px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.state-panel small { margin-top: 9px; color: var(--soft); font-size: 9px; }
.state-panel .button { margin-top: 20px; }
.error-state > svg { color: var(--red); }
.project-grid > .state-panel, .project-list-grid > .state-panel, .record-grid > .state-panel, .action-list > .state-panel { grid-column: 1 / -1; min-height: 240px; }

.files-layout { display: grid; max-width: 1560px; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .6fr); gap: 20px; margin: 0 auto; }
.file-ready-card { margin: 0; }
.file-policy { margin: 0; }
.file-drop { display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #b9c9dc; border-radius: 14px; background: #f8fbff; text-align: center; }
.drop-icon, .file-type-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; color: var(--blue); background: var(--blue-soft); }
.drop-icon svg, .file-type-icon svg { width: 24px; height: 24px; }
.file-drop h2 { margin: 17px 0 0; font-size: 17px; }
.file-drop p { max-width: 520px; margin: 9px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.file-policy h2 { margin: 0 0 18px; font-size: 16px; }
.file-states { display: flex; flex-direction: column; gap: 8px; }
.file-states span { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 9px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.file-states svg { width: 15px; height: 15px; color: var(--green); }
.file-policy .inline-alert { margin-top: 20px; }
.selected-file { display: grid; grid-template-columns: minmax(140px, .55fr) 1fr; gap: 20px; margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.selected-file > img { width: 100%; height: 200px; border-radius: 10px; object-fit: cover; background: var(--surface-soft); }
.selected-file > .file-type-icon { width: 100%; height: 200px; }
.selected-file dl { display: grid; gap: 10px; margin: 15px 0; }
.selected-file dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.selected-file dt { color: var(--soft); font-size: 10px; }
.selected-file dd { overflow-wrap: anywhere; margin: 0; font-size: 11px; font-weight: 700; }
.selected-file p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.profile-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.profile-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; color: #fff; background: var(--navy-2); font-size: 24px; font-weight: 850; }
.profile-card h2 { margin: 0; font-size: 20px; }
.profile-card > div:nth-child(2) p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.profile-card dl { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.profile-card dl div { padding: 17px; background: #fff; }
.profile-card dt { color: var(--soft); font-size: 10px; }
.profile-card dd { margin: 6px 0 0; font-size: 12px; font-weight: 720; }

@media (max-width: 1240px) {
  :root { --sidebar: 230px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .action-panel .action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-list-grid, .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card:nth-child(4), .metric-card:nth-child(5) { min-height: 105px; }
}

@media (max-width: 960px) {
  .login-shell { grid-template-columns: minmax(300px, 38%) 1fr; }
  .login-aside { padding: 36px; }
  .login-aside h1 { font-size: 37px; }
  .sidebar { width: min(88vw, 292px); transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid !important; border: 0; font-size: 24px; }
  .app-frame { margin-left: 0; }
  .drawer-button { display: grid !important; }
  .main-content { padding: 26px 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .files-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .login-shell { display: block; }
  .login-aside { display: none; }
  .login-panel { min-height: 100vh; padding: 20px; }
  .login-card { padding: 46px 0 30px; }
  .login-footer { padding-bottom: env(safe-area-inset-bottom); }
  .topbar { height: 66px; padding: 0 14px; }
  .topbar-left > div { display: none; }
  .utility-button span, .utility-button b { display: none; }
  .utility-button { width: 42px; justify-content: center; padding: 0; }
  .user-button { width: 42px; padding: 3px; }
  .user-button > b, .user-button > i { display: none; }
  .user-button > span { width: 34px; height: 34px; }
  .main-content { min-height: calc(100vh - 66px); padding: 22px 14px 40px; }
  .dashboard-hero, .page-heading { display: block; margin-bottom: 22px; }
  .dashboard-hero h1, .page-heading h1 { font-size: 29px; }
  .hero-date { align-items: flex-start; margin-top: 14px; }
  .page-heading > .button { margin-top: 16px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { min-height: 112px; padding: 17px; }
  .metric-card:last-child { grid-column: 1 / -1; min-height: 90px; }
  .metric-card > strong { font-size: 25px; }
  .section-block, .action-panel, .quick-section, .page-card { padding: 16px; border-radius: 15px; }
  .dashboard-grid { gap: 14px; }
  .project-meta { grid-template-columns: 1fr; }
  .action-panel .action-list { display: flex; }
  .action-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .action-row time { display: none; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-link { min-height: 94px; }
  .project-list-grid, .record-grid { grid-template-columns: 1fr; }
  .data-toolbar { align-items: flex-start; flex-direction: column; }
  .selected-file { grid-template-columns: 1fr; }
  .profile-card dl { grid-template-columns: 1fr; }
  .popover { position: fixed; top: 72px; right: 12px; left: 12px; }
}

@media (max-width: 420px) {
  .login-language { justify-content: center; }
  .locale-chip { padding-inline: 9px; }
  .login-card h2 { font-size: 29px; }
  .login-help { align-items: center; flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card:last-child { grid-column: auto; }
  .quick-grid { grid-template-columns: 1fr; }
  .action-row { padding: 10px; }
}

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

.record-card.is-active { border-color: var(--accent, #f26a21); box-shadow: 0 0 0 3px rgba(242, 106, 33, .1); }
.record-card code, .table-wrap code { overflow-wrap: anywhere; color: var(--navy, #0b1f3a); font-weight: 800; }
.service-action-panel { margin-top: 24px; padding: 20px; border-radius: 14px; background: #f5f8fb; }
.service-action-panel h3 { margin-top: 0; }
.action-row-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
#memberActionStatus { min-height: 1.4em; color: #16724c; }
.inline-alert.success { color: #126743; border-color: #a8dcc6; background: #effaf5; }
.member-request-history,.member-review-status { margin-top: 22px; padding: 18px; border: 1px solid var(--line, #dfe6ee); border-radius: 14px; }
.member-request-history ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-request-history li { display: grid; grid-template-columns:minmax(0,1fr) auto; gap: 4px 12px; padding: 10px; border-radius: 10px; background:#f5f8fb; }
.member-request-history small { grid-column:1/-1; overflow-wrap:anywhere; }
.review-status-card { display:grid; gap:10px; padding:14px; border-radius:12px; background:#f5f8fb; }
.review-status-card>div { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.review-status-card strong,.review-status-card p { overflow-wrap:anywhere; }
.public-review-result { display:grid; gap:12px; min-width:0; }
.public-review-section { padding:12px; border:1px solid var(--line, #dfe6ee); border-radius:10px; background:#fff; min-width:0; }
.public-review-section h4 { margin:0 0 7px; color:var(--navy, #0b1f3a); font-size:.92rem; }
.public-review-section p,.public-review-section ul { margin:0; overflow-wrap:anywhere; }
.public-review-section ul { padding-left:1.2rem; }
.public-review-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; }
.public-review-meta>div { padding:10px 12px; border-radius:10px; background:#fff; min-width:0; }
.public-review-meta dt { color:#617184; font-size:.78rem; font-weight:700; }
.public-review-meta dd { margin:4px 0 0; overflow-wrap:anywhere; font-weight:700; }
.member-official-snapshots { margin-top:22px; padding:18px; border:1px solid var(--line, #dfe6ee); border-radius:14px; }
.member-official-snapshots>h3 { margin-top:0; }
.member-official-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.member-official-grid article { display:grid; min-width:0; gap:10px; padding:14px; border-radius:12px; background:#f5f8fb; }
.member-official-grid header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.member-official-grid p,.member-official-grid dd,.member-official-grid a { margin:0; overflow-wrap:anywhere; }
.member-official-grid dl { display:grid; gap:7px; margin:0; }
.member-official-grid dl>div { display:grid; grid-template-columns:minmax(90px,.42fr) minmax(0,1fr); gap:8px; }
.member-official-grid dt { color:#617184; font-size:.78rem; }
.member-official-grid dd { font-weight:700; }
@media (max-width: 640px) { .action-row-buttons { display: grid; grid-template-columns: 1fr; } .action-row-buttons .button { width: 100%; } }
@media (max-width: 640px) { .member-official-grid { grid-template-columns:1fr; } }
@media (max-width: 420px) { .public-review-meta { grid-template-columns:1fr; } .public-review-section,.public-review-meta>div { padding:10px; } .member-official-snapshots { padding:12px; } .member-official-grid dl>div { grid-template-columns:1fr; } }
.member-live-comparison{margin-top:22px;padding:18px;border:1px solid var(--line,#dfe6ee);border-radius:14px}.member-live-comparison>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.member-live-comparison h3,.member-live-comparison h4{margin:0}.member-live-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.member-live-column{min-width:0;padding:14px;border-radius:12px;background:#f5f8fb}.member-live-column ul{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}.member-live-column li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center}.member-live-column small{grid-column:1/-1;overflow-wrap:anywhere}.member-report-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.member-report-links h4{flex-basis:100%}@media(max-width:640px){.member-live-columns{grid-template-columns:1fr}}@media(max-width:390px){.member-live-comparison{padding:12px}.member-live-comparison>header{align-items:stretch;flex-direction:column}.member-live-comparison .button{width:100%}.member-live-column li{grid-template-columns:1fr}.member-live-column small{grid-column:auto}}
.member-live-changes{margin-top:14px;padding:14px;border:1px solid #f0d39a;border-radius:12px;background:#fff9ed}.member-live-changes ul{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}.member-live-changes li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center}.member-live-changes small{grid-column:1/-1;overflow-wrap:anywhere}.member-live-changes p{margin:8px 0 0;color:var(--muted,#64748b)}@media(max-width:390px){.member-live-changes li{grid-template-columns:1fr}.member-live-changes small{grid-column:auto}}
