:root {
  --font-korean: 'IBM Plex Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --ink: #20242c;
  --muted: #647084;
  --line: #e5e8ed;
  --tint: #edf2fc;
  --blue: #315ed1;
  --navy: #22272f;
  --surface: #fff;
  --bg: #f7f8fa;
  --ring: #3869df;
  --radius: 10px;
  font: 16px/1.55 var(--font-korean);
  letter-spacing: -.025em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--blue); }
.skip-link { position: fixed; z-index: 10; left: 12px; top: -80px; border-radius: 8px; padding: 10px 16px; background: white; }
.skip-link:focus { top: 12px; }
.ic { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
i, [data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; font-style: normal; }
.layout { display: grid; grid-template-columns: 228px minmax(0,1fr); min-height: 100dvh; }
.rail { display: flex; flex-direction: column; height: 100dvh; position: sticky; top: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; z-index: 3; border-right: 1px solid var(--line); padding: 32px 18px 20px; background: white; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; align-self: flex-start; margin: 1px 8px 33px; }
.brand img { width: 40px; height: 40px; }
.brand > span { font-size: 22px; font-weight: 750; line-height: 1.05; letter-spacing: -.055em; }
.brand small { display: block; margin: 7px 0 0 2px; font-size: 11px; font-weight: 560; letter-spacing: .14em; color: #758198; }
.rail-label { margin: 0 12px 8px; font-size: 12px; color: var(--muted); font-weight: 550; }
.navlabel { margin-top: 24px; }
.rail nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 8px; padding: 9px 12px; text-align: left; color: #586474; background: transparent; font-size: 14px; }
.nav-item:hover { color: #303c55; background: #f5f7fa; }
.nav-item.active { color: var(--blue); background: #edf2ff; font-weight: 650; }
.nav-count { margin-left: auto; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.role-select, .source-select { position: relative; }
.role-select select, .source-select select { width: 100%; min-height: 37px; appearance: none; border: 1px solid #dfe3ea; border-radius: 8px; color: #3c4350; background: #fff; padding: 7px 29px 7px 11px; font-size: 13px; }
.role-select select { padding-left: 37px; min-height: 41px; font-size: 14px; font-weight: 600; }
.role-icon { position: absolute; top: 11px; left: 12px; color: #737f90; pointer-events: none; }
.role-select::after, .source-select::after { content: ''; position: absolute; width: 5px; height: 5px; right: 12px; top: calc(50% - 4px); border-right: 1.5px solid #69768a; border-bottom: 1.5px solid #69768a; transform: rotate(45deg); pointer-events: none; }
.rail-bottom { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 24px 10px 0; color: #647084; }
.rail-bottom .env-icon { width: 32px; height: 32px; background: #f1f3f6; border-radius: 9px; }
.rail-bottom b, .rail-bottom small { display: block; font-size: 12px; }
.rail-bottom b { font-weight: 550; }
.rail-bottom > div { min-width: 0; overflow-wrap: anywhere; }
#teamLogout { margin-left: auto; flex: none; background: none; border: 0; padding: 5px 1px; font-size: 12px; color: var(--muted); }
#teamLogout:hover { text-decoration: underline; }
a.nav-item { text-decoration: none; }
.relay-status { margin: 3px 12px 0; font-size: 12px; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
#relayToggle[aria-pressed="true"] { color: var(--blue); background: var(--tint); }
.workspace { min-width: 0; }
.topbar { display: none; }
main#main { max-width: 1440px; margin: 0 auto; padding: 42px clamp(25px,3.8vw,54px) 60px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 25px; }
.page-heading .position-context { margin: 0 0 5px; font-size: 13px; font-weight: 600; color: #67768a; }
.page-heading h1 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: -.055em; font-weight: 700; }
.page-heading p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #647084; }
.heading-actions, .list-tools { display: flex; align-items: center; gap: 8px; }
.primary, .secondary, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border-radius: 9px; padding: 8px 13px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.primary { border: 1px solid var(--navy); color: white; background: var(--navy); }
.primary:hover { background: #343c49; }
.secondary, .icon-button { border: 1px solid #dfe3ea; background: white; }
.secondary:hover, .icon-button:hover { background: #f5f7fa; }
.primary .ic, .secondary .ic { width: 16px; height: 16px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; }
.board { display: flex; flex-direction: column; align-items: stretch; text-align: left; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 17px 20px 15px; box-shadow: 0 2px 2px #192d4c02; transition: border-color .15s,box-shadow .15s; min-width: 0; }
button.board:hover { border-color: #adbfe5; box-shadow: 0 4px 16px #1937670a; }
.board-heading { display: flex; align-items: center; gap: 8px; }
.board-heading b { font-size: 15px; font-weight: 650; }
.board-heading > .ic { margin-left: auto; width: 16px; height: 16px; color: #8894a5; }
.board-logo, .source-mark { display: inline-grid; place-items: center; flex: none; font: 750 15px Arial,sans-serif; border-radius: 7px; width: 26px; height: 26px; }
.logo-wanted, .s-wanted { background: #e9efff; color: #315ed1; }
.logo-remember, .s-remember { background: #edf0f2; color: #262c32; }
.logo-ninehire { background: #e5f4ee; color: #1e7760; }
.board-number { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.board-number > span:first-child { color: #637086; font-size: 13px; margin-right: 5px; }
.board-number strong { font-size: 29px; font-weight: 680; line-height: 1.2; letter-spacing: -.045em; }
.board-number small { font-size: 13px; }
.board-total { margin-left: 7px; color: #647084; font-size: 12px; }
.board-time, .roster-stamp { color: #677487; font-size: 12px; font-variant-numeric: tabular-nums; }
.board-asof { margin: 10px 0 0; }
.notice-shortcut, .roster-note { padding: 0; border: 0; background: none; color: #355dae; text-align: left; font: inherit; cursor: pointer; }
.notice-shortcut { font-size: 13px; }
.notice-shortcut:hover, .roster-note:hover { text-decoration: underline; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.metric { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 18px; border: 0; border-right: 1px solid var(--line); background: transparent; }
.metric:last-child { border-right: 0; }
.metric:hover, .metric.highlight { background: #f0f4fc; }
.metric-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.metric-top .ic { width: 15px; height: 15px; }
.metric-num { font-size: 23px; font-variant-numeric: tabular-nums; font-weight: 650; }
.metric-num small, .stage-totals dd small { margin-left: 3px; font-size: 12px; font-weight: 500; }
.stage-totals { margin-top: 20px; }
.stage-heading { display: flex; align-items: baseline; gap: 10px; }
.stage-totals dl + .stage-heading { margin-top: 16px; }
.stage-heading h2 { margin: 0; font-size: 17px; }
.stage-heading small { color: var(--muted); font-size: 12px; }
.stage-totals dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); gap: 8px; margin: 9px 0 0; }
.stage-totals dl > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.stage-totals dt { font-size: 12px; color: var(--muted); }
.stage-totals dd { margin: 2px 0 0; font-size: 21px; font-weight: 650; }
.inbox { margin-top: 26px; min-width: 0; }
.queue-heading, .controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.queue-heading h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.searchbox { display: flex; align-items: center; gap: 9px; color: #7c899c; padding: 0 11px; border: 1px solid #dfe4eb; border-radius: 9px; background: white; }
.searchbox .ic { width: 16px; height: 16px; }
.searchbox input { height: 38px; width: 150px; min-width: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font-size: 13px; }
.searchbox input:focus-visible { outline: 0; }
.searchbox:focus-within { outline: 2px solid var(--ring); outline-offset: 1px; }
.searchbox kbd { padding: 1px 4px; border: 1px solid #e3e7ed; border-radius: 4px; background: #f7f8fa; color: #68758b; font-family: inherit; font-size: 11px; line-height: 1.5; }
.controls { flex-wrap: wrap; }
.tabs { display: flex; width: fit-content; align-items: center; flex-wrap: wrap; gap: 2px; border-radius: 9px; background: #eaeef3; padding: 4px; }
.tabs:empty { display: none; }
.list-tools { margin-left: auto; }
.list-tools .secondary { min-height: 36px; padding-block: 6px; }
.tab { border: 0; background: none; color: #5d697b; padding: 5px 11px; min-height: 30px; border-radius: 6px; white-space: nowrap; font-size: 13px; font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: white; color: #303c51; box-shadow: 0 1px 4px #102b5014; font-weight: 650; }
.tab small { margin-left: 5px; color: #68758b; font-size: 12px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; }
.desk-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.desk-table th, .desk-table td { padding: 12px 16px; border-bottom: 1px solid #ebedf1; white-space: nowrap; }
.desk-table th { padding-block: 10px; background: #f9fafb; color: #647183; font-size: 12px; font-weight: 580; }
.desk-table tr:last-child td { border-bottom: 0; }
.desk-table th:first-child, .desk-table td:first-child { padding-left: 20px; }
.desk-table tbody tr:hover { background: #fafbfe; }
.desk-table tr[data-id] { cursor: pointer; }
.name-button { border: 0; background: transparent; padding: 0; display: inline-flex; text-align: left; align-items: center; gap: 11px; }
.name-button strong, .name-button small { display: block; }
.name-button strong { color: #2b3441; font-size: 14px; font-weight: 650; }
.name-button:hover strong { color: var(--blue); }
.name-button small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.avatar { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-weight: 650; }
.av0 { background: #e7ecfa; color: #465e9b; }
.av1 { background: #f3e8df; color: #835d40; }
.av2 { background: #e4f0e8; color: #43725a; }
.av3 { background: #f0e7f2; color: #795588; }
.av4 { background: #e4eef2; color: #456b80; }
.pill { display: inline-flex; padding: 3px 7px; font-size: 12px; font-weight: 580; border-radius: 6px; background: #edf0f4; color: #576376; }
.pill.blue { color: #315ab2; background: #eaf0ff; }
.pill.green { color: #236c53; background: #e7f3ed; }
.pill.amber { color: #865616; background: #fcf1df; }
.pill.violet { color: #655397; background: #f0ebfc; }
.source-word, .material { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #566378; }
.source-mark { width: 18px; height: 18px; font-size: 11px; border-radius: 5px; }
.material .ic, .row-chevron .ic { width: 15px; height: 15px; }
.row-chevron { color: #8390a4; }
.remote-stage, .local-stage { display: block; }
.local-stage { margin-top: 3px; color: var(--muted); font-size: 12px; }
.mini-check { width: 16px; height: 16px; accent-color: var(--blue); }
.select-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; margin-bottom: 8px; background: var(--tint); color: var(--blue); border-radius: 8px; font-size: 13px; }
.select-line button { min-height: 30px; font-size: 12px; }
.empty { padding: 40px 20px; text-align: center; color: #657289; font-size: 14px; }
.empty strong { display: block; margin-bottom: 4px; color: #3b4659; font-weight: 600; }
.roster-table caption { text-align:left; padding:12px 20px 7px; font-size:14px; font-weight:600; color:var(--ink); }
.roster-stamp { margin: 0; padding: 8px 20px; border-top: 1px solid var(--line); }
.roster-note { max-width: 22ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.roster-form { display: grid; gap: 12px; }
.roster-form p { margin: 0; line-height: 1.6; }
.roster-form label { display: grid; gap: 6px; }
.roster-form .roster-confirm { display: flex; align-items: flex-start; gap: 6px; }
.roster-confirm input { width: auto; align-self: center; }
.roster-form textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font: inherit; }
.roster-form [data-error] { color: #963720; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; pointer-events: none; }
.desk-toast { max-width: 85vw; padding: 10px 15px; margin: 5px; color: #fff; border-radius: 9px; background: #29323f; font-size: 13px; box-shadow: 0 5px 18px #15233b24; }
@media (max-width: 1060px) {
  .layout { grid-template-columns: 194px minmax(0,1fr); }
  .rail { padding-inline: 12px; }
  .desk-table .column-material { display: none; }
  .page-heading { gap: 16px; }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .rail { display: none; position: fixed; inset: 49px auto 0 0; height: calc(100dvh - 49px); width: min(250px,85vw); box-shadow: 8px 0 24px #233d651f; }
  .rail.mobile-open { display: flex; }
  .topbar { position: sticky; top: 0; z-index: 4; height: 49px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .topbar strong { font-size: 14px; font-weight: 650; }
  .top-date { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 12px; }
  .top-date .ic { width: 14px; height: 14px; }
  .date-long { display: none; }
  .icon-button { min-height: 32px; width: 32px; padding: 0; border: 0; }
  main#main { padding: 24px 16px 48px; }
  .brand { margin-bottom: 22px; }
  .page-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 17px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 13px; }
  .board-grid { grid-template-columns: repeat(auto-fit,minmax(134px,1fr)); gap: 8px; }
  .board { padding: 12px; }
  .board-number { flex-wrap: wrap; margin-top: 9px; row-gap: 1px; }
  .board-number strong { font-size: 24px; }
  .board-total { margin-left: 3px; }
  .board-heading b { font-size: 14px; }
  .board-time { font-size: 11px; }
  .queue-heading h2 { font-size: 18px; }
  .inbox { margin-top: 18px; }
  .list-tools, .tab { gap: 4px; }
  .source-select select, .list-tools .secondary { min-height: 34px; font-size: 12px; }
  .searchbox { padding-inline: 8px; gap: 5px; }
  .searchbox input { height: 34px; width: 118px; }
  .searchbox kbd { display: none; }
  .desk-table .column-chevron { display: none; }
  .desk-table th, .desk-table td { padding-inline: 9px; }
}
@media (max-width: 600px) {
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 9px 11px; border: 1px solid #edf0f4; }
  .desk-table, .desk-table tbody { display: block; }
  .desk-table thead { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
  .desk-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 8px; padding: 10px 12px; border-bottom: 1px solid #e9ecf0; }
  .desk-table tbody tr:last-child { border-bottom: 0; }
  .desk-table td, .desk-table td:first-child { border: 0; padding: 0; }
  .roster-table td:nth-child(3), .archive-table td:nth-child(3) { font-size: 12px; color: var(--muted); }
  .roster-table td:nth-child(even), .archive-table td:nth-child(even) { text-align: right; font-size: 12px; }
  .roster-stamp { padding-inline: 12px; }
  .desk-table .column-name { grid-column: 1; grid-row: 1 / span 2; }
  .name-button small { max-width: 38vw; white-space: normal; }
  .desk-table .column-class { grid-column: 2; grid-row: 1; justify-self: end; }
  .desk-table .column-source { grid-column: 2; grid-row: 2; justify-self: end; }
  .desk-table .column-stage { grid-column: 1; grid-row: 3; font-size: 12px; }
  .table-offer tbody tr { grid-template-columns: 17px minmax(0,1fr) auto; }
  .table-offer .column-check { grid-column: 1; grid-row: 1 / span 2; }
  .table-offer .column-name, .table-offer .column-stage { grid-column: 2; }
  .table-offer .column-source, .table-offer .column-class { grid-column: 3; }
  .controls { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
