:root {
  color-scheme: light;
  --primary: #094383;
  --ink: #172b40;
  --muted: #526579;
  --paper: #fff;
  --surface: #f3f6fa;
  --border: #cad5e2;
  --control: #697f96;
  --danger: #a52a2a;
  --warning: #805500;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
.staff-slack table { min-width: 800px; }
.staff-slack td:nth-child(2), .staff-slack td:last-child { white-space: nowrap; }
.staff-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.staff-figure { margin: 0; background: var(--paper); }
.staff-chart-scroll { overflow-x: auto; max-width: 100%; padding-block: 1rem; }
.staff-chart { display: block; width: auto; min-width: max-content; max-width: 100%; height: auto; margin-inline: auto; fill: var(--ink); font: 16px "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
@media (min-width: 1200px) { .staff-chart { min-width: 0; } }
.staff-chart .pele-edges { fill: none; stroke: var(--primary); stroke-linecap: round; }
.staff-chart .pele-node rect { fill: var(--surface); stroke: var(--control); stroke-width: 1; }
.staff-chart .staff-title { fill: var(--muted); font-size: 13px; font-weight: 400; }
.staff-chart .staff-name { fill: var(--ink); font-size: 16px; font-weight: 600; }
.staff-chart .staff-representative rect { fill: var(--primary); stroke: var(--primary); }
.staff-chart .staff-representative .staff-title, .staff-chart .staff-representative .staff-name { fill: white; }
.staff-chart a:hover rect, .staff-chart a:focus rect { stroke: var(--primary); stroke-width: 2; }
.staff-figure figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding-block: .75rem; }
.staff-scroll-help { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; }
.staff-chart-unavailable { padding-block: 2rem; color: var(--muted); }
.staff-shared { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; border-block: 1px solid var(--border); padding-block: .75rem; margin-bottom: 1rem; font-size: .875rem; }
.staff-shared h2 { font-size: .875rem; color: var(--muted); font-weight: 500; }
.staff-shared p { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.staff-shared a { font-weight: 600; }
.staff-shared span { color: var(--muted); }
.staff-contacts, .staff-source { border-bottom: 1px solid var(--border); }
.staff-contacts table { min-width: 600px; }
.staff-form-heading { max-width: 44rem; margin-block: 1rem 1.5rem; }
.staff-form-heading > * + * { margin-top: .75rem; }
.staff-lifecycle-form { max-width: 38rem; }
.staff-lifecycle-form textarea { display: block; width: 100%; font: inherit; color: var(--ink); border: 1px solid var(--control); border-radius: 4px; padding: .6rem .75rem; }
.staff-lifecycle-form textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.staff-lifecycle-form .staff-confirm { display: flex; flex-direction: column; gap: .5rem; }
.staff-lifecycle-form input[type="checkbox"] { width: 1.5rem; min-height: 1.5rem; margin: 0 0 1.25rem; }
.staff-lifecycle-form > .button { margin-block: 1rem; }
.staff-contacts a { display: inline-block; min-height: 44px; }
.staff-source { font-size: .875rem; }
.staff-source[open] { padding-bottom: 1rem; }
.staff-source .staff-provenance { margin-block: 1rem; }
.staff-group { margin-block: 2rem; }
.staff-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.staff-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--border); background: var(--surface); border-radius: 4px; overflow-wrap: anywhere; }
.staff-card h3 { margin: 0; }
.staff-card a { display: inline-block; min-height: 44px; }
.staff-card dl, .staff-detail, .staff-provenance { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 2fr); gap: .5rem 1rem; }
.staff-card dt, .staff-detail dt, .staff-provenance dt { color: var(--muted); }
.staff-card dd, .staff-detail dd, .staff-provenance dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.staff-detail { padding-block: 1.5rem; border-block: 1px solid var(--border); }
@media (max-width: 480px) { .staff-detail, .staff-provenance { grid-template-columns: 1fr; } .staff-detail dd, .staff-provenance dd { margin-bottom: .75rem; } }
.customer-list { list-style: none; padding: 0; margin-block: 1rem; }
.customer-list li { padding: .7rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.customer-list a { display: inline-block; min-height: 44px; font-weight: 600; }
.customer-list small { display: block; color: var(--muted); }
.customer-table-scroll { max-width: 100%; overflow: auto; max-height: 70vh; border: 1px solid var(--control); margin-top: 1rem; }
.customer-table { width: max-content; min-width: 100%; table-layout: fixed; }
.customer-table caption { padding: .75rem; }
.customer-table th, .customer-table td { min-width: 8.5rem; max-width: 13rem; vertical-align: top; }
.customer-table thead th { position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.customer-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); min-width: 11rem; max-width: 13rem; border-right: 1px solid var(--border); }
.customer-table thead tr > :first-child { z-index: 3; background: var(--surface); }
.customer-table a { display: inline-block; min-height: 44px; font-weight: 600; }
.customer-table .amount { text-align: right; font-variant-numeric: tabular-nums; min-width: 14rem; }
.customer-table .cell-not_recorded, .customer-table .cell-unknown, .customer-table .cell-not_connected { color: var(--muted); }
.table-columns { flex-basis: 100%; }
.table-columns fieldset { display: flex; flex-wrap: wrap; gap: .5rem 1rem; border: 1px solid var(--control); padding: .75rem; }
.table-columns label { display: inline-flex; align-items: center; min-height: 44px; }
.customer-search input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin-right: .5rem; }
.customer-search select { font: inherit; max-width: 100%; min-height: 44px; color: var(--ink); background: var(--paper); }
.customer-search button { min-height: 44px; }
@media (max-width: 640px) { .customer-table tr > :first-child { position: static; min-width: 9rem; max-width: 9.5rem; } }
.customer-search { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-block: 1.5rem; }
.customer-search input { width: min(100%, 24rem); min-width: 0; }
.relation-scroll { overflow: auto; max-height: 720px; border: 1px solid var(--control); margin-block: 1.5rem; background: var(--surface); }
.customer-graph { display: block; max-width: none; }
.customer-graph text { font-size: 16px; fill: var(--ink); }
.customer-graph .node-id { font-size: 13px; fill: var(--muted); }
.graph-node, .graph-client { fill: white; stroke: var(--primary); stroke-width: 1.5px; }
.graph-client { fill: #e7eff8; }
.candidate-edge { fill: none; stroke: var(--warning); stroke-width: 1.5px; stroke-dasharray: 6 5; }
.source-edge { fill: none; stroke: var(--primary); stroke-width: 1.5px; }
.relation-text { margin-block: 1rem; }
.relation-text li { overflow-wrap: anywhere; margin-block: 1rem; }
.explorer-pages { display: flex; gap: 1rem; flex-wrap: wrap; margin-block: 1.5rem; }
.explorer-pages a { min-height: 44px; }
.explorer-warning { color: var(--warning); border-left: 3px solid; padding-left: 1rem; }
body { margin: 0; }
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.3; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; line-height: 1.4; }
h3 { font-size: 1rem; font-weight: 600; }
ul { margin: 0; padding-left: 1.4rem; }
button, .button { cursor: pointer; }
.skip-link { position: absolute; z-index: 10; top: -6rem; left: 1rem; background: var(--paper); padding: .75rem 1rem; border: 2px solid var(--primary); }
.skip-link:focus { top: 1rem; }
.header-inner, .nav-inner, .page, .footer-inner { width: min(100% - 3rem, 1120px); margin-inline: auto; }
.site-header { border-top: 4px solid var(--primary); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand-subtitle { font-size: .875rem; font-weight: 500; color: var(--muted); }
.account-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .875rem; }
.account-menu form { margin: 0; }
.account-name { color: var(--muted); overflow-wrap: anywhere; }
.account-menu a, .button-link { display: inline-flex; align-items: center; min-height: 44px; }
.button-link { border: 0; padding: 0; color: var(--primary); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.nav-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.main-nav a { padding: .65rem 0; min-height: 48px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.page { min-height: 65vh; padding-block: 2.5rem 4rem; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.75rem; }
.eyebrow { margin-bottom: .5rem; font-size: .75rem; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.lead { color: var(--muted); margin-top: .75rem; max-width: 48rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--primary); border-radius: 4px; background: var(--primary); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .875rem; text-align: center; }
.button:hover { background: #073566; color: var(--paper); }
.button-secondary { background: var(--paper); color: var(--primary); white-space: nowrap; }
.button-secondary:hover { background: var(--surface); color: var(--primary); }
.status-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; padding: 1.5rem; background: var(--surface); border-left: 4px solid var(--primary); }
.status-summary h2 { font-size: .875rem; color: var(--muted); }
.status-value { font-size: 1.75rem; color: var(--primary); font-weight: 700; margin-top: .35rem; }
.observation { align-self: center; }
.observation dt { color: var(--muted); font-size: .875rem; }
.observation dd { margin: .25rem 0 0; }
.summary-note { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); }
.section { margin-top: 2rem; min-width: 0; }
.section > h2, .section-heading { margin-bottom: 1rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; }
.section-heading .muted { font-size: .875rem; }
.empty-state { padding: 1rem 0; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.notice-list { padding: 1rem 1rem 1rem 2.25rem; background: var(--surface); border-left: 3px solid var(--warning); }
.notice-list li + li { margin-top: .5rem; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-top: 1px solid var(--border); gap: 1rem; }
.metric { padding-block: 1rem; border-bottom: 1px solid var(--border); }
.metric dt { font-size: .875rem; color: var(--muted); }
.metric dd { margin: .4rem 0 0; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric .unknown { font-size: 1.25rem; color: var(--muted); font-weight: 500; }
.help-text { font-size: .875rem; color: var(--muted); margin-top: .75rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.detail-list > div { display: grid; grid-template-columns: minmax(7rem, .9fr) minmax(0, 1.2fr); gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--border); }
.detail-list > div:first-child { border-top: 1px solid var(--border); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.activity-list { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.activity-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--border); }
.activity-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-list .muted { font-size: .875rem; }
.muted { color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.5rem; }
.auth-page { max-width: 520px; }
.auth-panel { margin-top: 1.75rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 4px; }
.form-field + .form-field { margin-top: 1.25rem; }
.form-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-field input { display: block; width: 100%; min-height: 48px; border: 1px solid var(--control); border-radius: 4px; padding: .6rem .75rem; color: var(--ink); background: var(--paper); }
.form-field input[aria-invalid="true"] { border-color: var(--danger); }
.form-field .helptext { display: block; font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.form-field .helptext ul { padding-left: 1.25rem; }
.errorlist { padding-left: 1.25rem; color: var(--danger); font-size: .875rem; margin-block: .5rem; }
.form-errors { margin-bottom: 1.25rem; padding: 1rem; color: var(--danger); background: #fff5f5; border-left: 3px solid var(--danger); }
.form-errors .errorlist { margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.form-actions a:not(.button) { padding-block: .5rem; }
.auth-panel .button { min-width: 8rem; }
.table-scroll { overflow-x: auto; }
.intake-table { min-width: 640px; }
.intake-table th:first-child { min-width: 5rem; }
.intake-table td:nth-child(2) { min-width: 14rem; }
.intake-receipt .scope-list { margin-block: .75rem; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
caption { text-align: left; color: var(--muted); padding-bottom: .75rem; }
th, td { padding: .8rem .75rem; text-align: left; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
thead th { font-weight: 600; color: var(--muted); background: var(--surface); }
tbody th { font-weight: 500; }
.scope-list li + li { margin-top: .5rem; }
.deferred { padding: 1rem 1.25rem; background: var(--surface); margin-top: 1rem; }
.deferred h3 { margin-bottom: .5rem; }
.link-overview { border-top: 2px solid var(--primary); padding-top: 1.25rem; }
.state-tag { font-size: .875rem; color: var(--warning); font-weight: 600; }
.connection-summary { background: var(--surface); border-left: 4px solid var(--primary); padding: 1.25rem; }
.summary-title { font-size: 1.25rem; line-height: 1.45; color: var(--primary); margin-bottom: .5rem; }
.link-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; padding-block: 1.5rem; }
.link-metrics dt { font-weight: 600; }
.link-metrics dd { margin: .25rem 0; font-size: 2rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.link-metrics dd span { display: block; font-size: .875rem; color: var(--muted); font-weight: 500; }
.link-metrics p { color: var(--muted); font-size: .875rem; }
.attention-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--border); padding-block: 1.25rem; }
.attention-grid section { min-width: 0; }
.attention-grid h3 { margin-bottom: .75rem; }
.attention-grid ul { font-size: .875rem; }
.attention-grid li + li { margin-top: .5rem; }
.hold-count { font-size: 1.25rem; color: var(--warning); margin-bottom: .75rem; }
.work-dispositions > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-block: .5rem; font-size: .875rem; }
.work-dispositions dd { margin: 0; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.link-detail, .operations-detail { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
summary { padding: .8rem .25rem; min-height: 48px; cursor: pointer; color: var(--primary); font-weight: 600; }
.source-flow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; padding: 0; gap: 1.25rem; margin-block: 1.25rem; }
.source-flow li { position: relative; border-top: 3px solid var(--primary); background: var(--surface); padding: .8rem; min-width: 0; }
.source-flow li + li::before { content: '→'; position: absolute; left: -1.2rem; top: 1.5rem; color: var(--primary); }
.source-flow span, .source-flow strong { display: block; overflow-wrap: anywhere; }
.source-flow span { font-size: .8rem; color: var(--muted); }
.source-flow .step-label { color: var(--primary); font-weight: 600; margin-bottom: .35rem; }
.freshness-list { display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding-top: 1rem; font-size: .8rem; color: var(--muted); }
.freshness-list dd { margin: 0; }
.operations-detail { margin-top: 2rem; padding-bottom: .25rem; }
.operations-detail[open] { padding-bottom: 1.5rem; }
@media (max-width: 800px) {
  .source-flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .source-flow li + li::before { content: '↓'; left: 1rem; top: -1.6rem; }
}
@media (max-width: 640px) {
  .link-metrics { grid-template-columns: 1fr; gap: 1rem; }
  .link-metrics > div { border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
  .attention-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-inner, .nav-inner, .page, .footer-inner { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .account-menu { width: 100%; gap: .25rem 1rem; }
  .account-name { flex-basis: 100%; }
  .page { padding-block: 1.75rem 3rem; }
  .page-heading { flex-wrap: wrap; gap: 1rem; }
  .status-summary { grid-template-columns: 1fr; padding: 1.25rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-panel { padding: 1.25rem; }
  .detail-list > div { grid-template-columns: minmax(5rem, .8fr) minmax(0, 1.2fr); gap: .75rem; }
  .activity-list li { flex-wrap: wrap; }
  th, td { padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.staff-card-dialog { width: min(620px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 6px; color: var(--ink); background: var(--paper); }
.staff-card-dialog::backdrop { background: rgb(23 43 64 / 45%); }
.staff-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--border); }
.staff-card-header h2 { margin: .25rem 0; font-size: 1.5rem; }
.staff-card-header p { margin: 0; }
.staff-card-eyebrow { color: var(--primary); font-size: .8rem; font-weight: 600; }
.staff-card-header button { min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; }
.staff-card-body { padding: .25rem 1.5rem 1rem; max-height: calc(100dvh - 16rem); overflow-y: auto; }
.staff-card-fields { margin: 0; }
.staff-card-fields > div { display: grid; grid-template-columns: minmax(7rem, .75fr) minmax(0, 1.5fr); gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.staff-card-fields dt { color: var(--muted); font-size: .875rem; }
.staff-card-fields dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.staff-card-footer { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; padding: 1rem 1.5rem; background: var(--surface); font-size: .875rem; }
.staff-chart a { cursor: pointer; }
.staff-chart a:hover rect { stroke-width: 2; }
.workspace-page { width: min(100% - 3rem, 1580px); }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.workspace-mode { color: var(--muted); font-size: .8rem; padding: .5rem .75rem; background: var(--surface); white-space: nowrap; }
.workspace-grid { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(0, 1.55fr); gap: 2.5rem; padding-top: 1.75rem; }
.customer-pane, .materials-pane, .customer-selector { min-width: 0; }
.customer-pane { border-right: 1px solid var(--border); padding-right: 2rem; }
.customer-summary { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow-wrap: anywhere; }
.customer-summary h2 { font-size: 1.5rem; }
.customer-summary h3 { margin-top: 1rem; }
.service-state { font-weight: 600; color: var(--primary); margin-top: .5rem; }
.service-checks { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.service-checks label { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .5rem .75rem; background: var(--paper); border: 1px solid var(--control); border-radius: 4px; }
.service-form input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--primary); }
.service-confirm { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; padding-block: .75rem; }
.service-form button, .material-filter button { background: var(--primary); color: var(--paper); border: 1px solid var(--primary); border-radius: 4px; padding: .55rem .9rem; min-height: 44px; }
.service-history { font-size: .85rem; margin-top: .75rem; }
.customer-selector { margin-top: 1.75rem; }
.customer-selector > h2 { border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.customer-selector > h2 + h2 { display: none; }
.customer-selector .lead { font-size: .8rem; }
.customer-selector .customer-search { margin-block: 1rem; }
.customer-selector .customer-table-scroll { max-height: 430px; }
.customer-selector .help-text { font-size: .8rem; }
.materials-pane > header { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.material-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; font-size: .85rem; }
.material-filter select { font: inherit; min-height: 44px; max-width: 100%; }
.material-filter a { min-height: 44px; display: inline-flex; align-items: center; }
.workspace-relations { border-block: 1px solid var(--border); margin-top: 1rem; }
.workspace-relations > h2, .workspace-relations .lead, .workspace-relations nav[aria-label="고객 자료 경로"] { display: none; }
.service-badge { display: block; font-size: .75rem; color: var(--muted); margin-top: .35rem; font-weight: 400; }
.attachment-scroll { overflow-x: auto; margin-top: 1rem; }
.attachment-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.attachment-table th:nth-child(2), .attachment-table .storage-verified, .attachment-table .storage-unconfirmed { white-space: nowrap; }
.attachment-table caption { text-align: left; color: var(--muted); padding-block: .5rem; }
.attachment-table th, .attachment-table td { text-align: left; vertical-align: top; padding: .85rem .65rem; border-bottom: 1px solid var(--border); }
.attachment-table th:first-child { width: 48%; }
.attachment-name { display: block; overflow-wrap: anywhere; font-weight: 600; }
.attachment-table small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; margin-top: .3rem; }
.attachment-customer { display: block; margin-top: .4rem; }
.candidate-badge { display: inline-block; color: #805500; background: #fff7e6; padding: .2rem .4rem; font-size: .75rem; }
.storage-verified { color: #176641; }
.storage-unconfirmed { color: #805500; }
.attachment-totals { margin-top: 1.25rem; }
.attachment-asof { font-size: .8rem; color: var(--muted); }
.material-filter label { display: flex; flex-direction: column; gap: .3rem; }
.material-filter input { font: inherit; min-height: 44px; max-width: 160px; }
.audit-details, .intake-supplement { margin-top: 1.25rem; padding-block: .75rem; border-top: 1px solid var(--border); font-size: .85rem; }
.customer-selector > .lead, .customer-selector > .help-text { display: none; }
@media (max-width: 600px) {
 .attachment-table th, .attachment-table td { padding: .65rem .35rem; font-size: .8rem; }
 .attachment-table th:first-child { width: 44%; }
 .material-filter input { max-width: 135px; }
}
.workspace-relations .relation-scroll { max-height: 260px; }
.materials-pane .metric dd { font-size: 1.4rem; }
.materials-pane .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.materials-pane .source-flow { grid-template-columns: 1fr; gap: .5rem; }
.materials-pane .source-flow li { border-top: 1px solid var(--border); padding: .75rem; }
.materials-pane .source-flow li + li::before { content: none; }
.materials-pane .source-flow .step-label { float: left; width: 7rem; }
.materials-pane .explorer-warning { border-left: 0; padding-left: 0; font-size: .8rem; }
.materials-pane .intake-receipt { border-top: 1px solid var(--border); padding-top: 1.25rem; }
@media (max-width: 900px) {
 .workspace-grid { grid-template-columns: 1fr; gap: 1.75rem; }
 .customer-pane { border-right: 0; padding-right: 0; }
 .workspace-heading { flex-direction: column; }
 .workspace-page { width: calc(100% - 2rem); }
 .materials-pane .metric-grid { grid-template-columns: 1fr; gap: 0; }
 .materials-pane .source-flow .step-label { float: none; width: auto; }
}
@media print {
  .account-menu, .main-nav, .skip-link, .page-heading > .button { display: none; }
  .page { width: 100%; padding: 1rem; }
  .site-header { border-top: 0; }
  .section { break-inside: avoid; }
}
