/* 주문 장부 — 화면 모양
   바탕은 차가운 회색, 글은 남색빛 검정, 중요한 버튼은 데님 남색, 눈에 띄게 할 곳은 줄자 노랑.
   주황은 테두리·글자로만 쓰고 면을 채우지 않는다. 휴대폰 기준 720px. */

@font-face {
  font-family: "Pretendard";
  src: url("fonts/pretendard-ksx.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --sunk: #f6f7f9;
  --ink: #17202b;
  --muted: #586472;
  --faint: #8b95a2;
  --line: #dce1e7;
  --line-strong: #c3cad3;
  --indigo: #24408e;
  --indigo-ink: #1a2f6b;
  --indigo-soft: #e8edf9;
  --tape: #f2c230;
  --late: #c3271b;
  --late-soft: #fdeeec;
  --risk: #df6c0a;
  --ok: #1c7a4b;
  --ok-soft: #e7f4ed;
  --early: #6a3fa0;
  --t-b2b: #24408e;
  --t-oem: #0d746b;
  --t-stock: #8a5a2b;
  --t-sample: #a3366f;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--indigo); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
kbd { font: 600 12px/1 inherit; padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
[hidden] { display: none !important; }

/* 위 메뉴 */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--indigo); box-shadow: 4px 4px 0 var(--tape); }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--indigo-ink); background: var(--indigo-soft); }
.me { position: relative; }
.me > summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.me > summary::-webkit-details-marker { display: none; }
.me > summary::after { content: " ▾"; color: var(--faint); }
.me-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; min-width: 160px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(23, 32, 43, 0.12); }
.me-menu a, .me-menu .linkish { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; text-align: left; }
.me-menu a:hover, .me-menu .linkish:hover { background: var(--sunk); }
.linkish { border: 0; background: none; font: inherit; color: var(--indigo); cursor: pointer; padding: 0; width: 100%; }
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -8px; padding: 0 8px 6px; }
  .new { min-height: 40px; }
}

/* 바탕 틀 */
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 96px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.page-head > div { min-width: 0; }
.lead { color: var(--muted); margin: 0; }
.hint, .muted { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.strong { font-weight: 700; color: var(--ink); text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; min-width: 0; }
.narrow { max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding-top: 14px; }
}

/* 알림·되돌리기 */
.messages { margin-bottom: 12px; }
.msg { margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.msg-success { border-color: #bfe3cf; background: var(--ok-soft); }
.msg-error { border-color: #f0b9b2; background: var(--late-soft); }
.msg-info { border-color: #c7d3f1; background: var(--indigo-soft); }
.msg-warning { border-color: var(--tape); background: #fff8dc; }
.undo { position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 8px 8px 8px 16px; color: #fff; background: var(--ink); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.undo .btn { background: var(--tape); border-color: var(--tape); color: var(--ink); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--indigo); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-ink); border-color: var(--indigo-ink); }
.btn-big { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-wide { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); background: var(--sunk); }
.btn-danger { color: var(--late); border-color: #e6b3ad; }
.btn[data-armed] { background: var(--late); border-color: var(--late); color: #fff; }
.btn-x { min-width: 36px; min-height: 36px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; }
.btn-x:hover { color: var(--late); border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.form-actions .btn-primary { flex: 1 1 240px; }
form.inline { display: inline; }

/* 입력 칸 */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 650; }
.field em { margin-left: 4px; color: var(--late); font-size: 12px; font-style: normal; font-weight: 700; }
.field small { color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); outline: 2px solid var(--indigo-soft); outline-offset: 0; }
textarea { min-height: 88px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--indigo); }
input[type="file"] { padding: 8px; }
.err { color: var(--late); font-size: 13px; font-weight: 650; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--late); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 650; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { border-color: var(--indigo); background: var(--indigo-soft); color: var(--indigo-ink); }
.pill:has(input:focus-visible) { outline: 3px solid var(--tape); outline-offset: 2px; }
.errors-box { margin-bottom: 16px; padding: 12px 16px; border: 1.5px solid var(--late); border-radius: var(--radius); background: var(--late-soft); }
.errors-box ul { margin: 6px 0 0; padding-left: 20px; }

/* 유형 고르기 */
.t-b2b { --tc: var(--t-b2b); }
.t-oem { --tc: var(--t-oem); }
.t-stock { --tc: var(--t-stock); }
.t-sample { --tc: var(--t-sample); }
.type-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.type-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }
.type-card b { font-size: 16px; }
.type-card small { color: var(--muted); font-size: 13px; }
.type-card:has(input:checked) { border-color: var(--tc); box-shadow: inset 0 0 0 1px var(--tc); background: var(--sunk); background: color-mix(in srgb, var(--tc) 7%, white); }
.type-card:has(input:focus-visible) { outline: 3px solid var(--tape); outline-offset: 2px; }
@media (max-width: 720px) { .type-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 표시: 행택 모양 주문번호, 칩 */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border: 1px solid var(--line-strong); border-radius: 4px 11px 11px 4px; background: var(--sunk); color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--faint); border-radius: 50%; background: var(--surface); }
.tag.test { border-style: dashed; }
a.tag:hover { border-color: var(--indigo); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.chip-type { color: var(--tc); }
.chip-late { color: #fff; background: var(--late); border-color: var(--late); }
.chip-risk { color: var(--risk); }
.chip-early { color: var(--early); }
.chip-urgent { color: var(--late); }
.chip-test { color: var(--muted); border-style: dashed; }
.chip-done { color: var(--ok); }
.chip-short { color: var(--indigo); border-style: dashed; }
.chip-skip { color: var(--faint); }

/* 표 */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); color: var(--muted); font-size: 13px; font-weight: 650; text-align: left; white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
.row-risk td:first-child { box-shadow: inset 4px 0 0 var(--risk); }
.row-late td:first-child { box-shadow: inset 4px 0 0 var(--late); }
.board tbody tr:hover td { background: var(--sunk); }
@media (max-width: 720px) {
  .board thead { display: none; }
  .board, .board tbody { display: block; }
  .board tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no type left" "client client client" "sum sum qty" "stage stage due"; gap: 4px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .board tr:last-child { border-bottom: 0; }
  .board td { padding: 0; border: 0; }
  .board tr.row-risk { box-shadow: inset 4px 0 0 var(--risk); }
  .board tr.row-late { box-shadow: inset 4px 0 0 var(--late); }
  .board .row-risk td:first-child, .board .row-late td:first-child { box-shadow: none; }
  .board .c-no { grid-area: no; }
  .board .c-type { grid-area: type; }
  .board .c-left { grid-area: left; text-align: right; }
  .board .c-client { grid-area: client; }
  .board .c-sum { grid-area: sum; color: var(--muted); }
  .board .c-qty { grid-area: qty; }
  .board .c-stage { grid-area: stage; }
  .board .c-due { grid-area: due; color: var(--muted); }
}

/* 현황판 숫자·거르기 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.stat b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 650; }
.stat.risk { box-shadow: inset 0 -3px 0 var(--risk); }
.stat.late { box-shadow: inset 0 -3px 0 var(--late); }
.stat[aria-current] { border-color: var(--indigo); outline: 1px solid var(--indigo); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-height: 40px; }
.filters .q { flex: 1 1 220px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters select { flex: 1 1 40%; }
}

/* 진행 막대 */
.progress { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.p-arrow { align-self: center; color: var(--faint); }
.p-stage { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); color: var(--muted); font-size: 14px; font-weight: 650; }
.p-stage.done { color: var(--ok); background: var(--ok-soft); border-color: #bfe3cf; }
.p-stage.current { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.p-stage.skipped { opacity: 0.55; text-decoration: line-through; }
.p-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.p-step { padding: 1px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 600; opacity: 0.55; }
.p-step.has { opacity: 1; font-weight: 800; }
.p-stage.current .p-step.has { background: var(--tape); border-color: var(--tape); color: var(--ink); }

/* 주문 화면 */
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.order-head h1 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.facts dd { margin: 0; font-weight: 650; }
.todo-box { margin-bottom: 16px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.todo-box b { color: var(--ink); }
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.line { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.line-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.line-title { font-size: 16px; font-weight: 750; }
.step-now { color: var(--indigo-ink); font-weight: 750; }
.qty-wrap { overflow-x: auto; }
.qty-table { margin: 10px 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qty-table th, .qty-table td { min-width: 48px; padding: 4px 10px; border: 1px solid var(--line); text-align: center; }
.qty-table th { background: var(--sunk); font-size: 13px; font-weight: 650; }
.qty-table input { width: 64px; min-height: 36px; padding: 4px 6px; text-align: right; }
.short { color: var(--late); font-weight: 750; }
details.more { margin-top: 8px; }
details.more > summary { padding: 6px 0; color: var(--indigo); font-weight: 650; cursor: pointer; }
.confirm { margin-bottom: 16px; padding: 14px 16px; border: 1.5px solid var(--indigo); border-radius: var(--radius); background: var(--indigo-soft); }
.confirm ul { margin: 8px 0 12px; padding-left: 20px; }

/* 기록·사진 */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .meta { color: var(--faint); font-size: 12px; }
.timeline .who { color: var(--ink); font-weight: 700; }
.timeline .comment .text { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--sunk); white-space: pre-line; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); }
.photos figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--faint); font-size: 12px; }

/* 사이즈 표 */
.grid-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.size-grid { min-width: 100%; border-collapse: collapse; }
.size-grid th { padding: 6px 4px; color: var(--muted); font-size: 13px; font-weight: 650; text-align: left; white-space: nowrap; }
.size-grid td { padding: 3px 2px; vertical-align: middle; }
.size-grid input { min-height: 40px; padding: 6px 8px; }
.size-grid .c-product { min-width: 200px; }
.size-grid .c-color { min-width: 120px; }
.size-grid .c-fabric { min-width: 130px; }
.size-grid input.qty { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.size-grid tfoot th, .size-grid tfoot td { padding: 8px 4px; border-top: 2px solid var(--line-strong); font-weight: 750; }
.size-grid th.num, .size-grid td.num { padding-right: 11px; text-align: right; white-space: nowrap; } /* 수량 칸 글자와 오른쪽 끝을 맞춘다 */
.size-grid tr.deleting input:not([type="checkbox"]) { opacity: 0.45; text-decoration: line-through; }
@media (max-width: 640px) {
  .size-grid .c-product { min-width: 140px; }
  .size-grid .c-color, .size-grid .c-fabric { min-width: 96px; }
}
.del { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* 달력 */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-bar h2 { margin: 0 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; background: var(--tc, var(--faint)); vertical-align: -1px; }
.legend .exp::before { background: none; border: 1px dashed var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.cal-h { padding: 6px 8px; background: var(--sunk); color: var(--muted); font-size: 13px; font-weight: 700; }
.cal-d { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 112px; padding: 6px; background: var(--surface); }
.cal.week .cal-d { min-height: 260px; }
.cal-d.out { background: var(--sunk); }
.cal-d.out .d-num { color: var(--faint); }
.d-num { align-self: flex-start; padding: 0 6px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.cal-d.today .d-num { background: var(--tape); }
.sun .d-num, .cal-h.sun { color: var(--late); }
.ev { display: block; overflow: hidden; padding: 2px 6px; border-left: 3px solid var(--tc); border-radius: 5px; background: var(--sunk); background: color-mix(in srgb, var(--tc) 10%, white); color: var(--ink); font-size: 12px; line-height: 1.4; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.ev.expected { background: transparent; border: 1px dashed var(--tc); border-left: 3px solid var(--tc); }
.ev.closed { opacity: 0.5; }
.cal-list { display: none; }
.cal-list section { margin-bottom: 12px; }
.cal-list h3 { margin: 0 0 6px; }
.cal-list .ev { white-space: normal; padding: 8px 10px; font-size: 14px; margin-bottom: 6px; }
@media (max-width: 720px) {
  .cal, .cal-head-row { display: none; }
  .cal-list { display: block; }
}

/* 오늘 할 일 */
.factory-pick { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 0 16px 4px; overflow-x: auto; }
.factory-pick a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.factory-pick a[aria-current] { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.work { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.work.row-late { box-shadow: inset 4px 0 0 var(--late); }
.work.row-risk { box-shadow: inset 4px 0 0 var(--risk); }
.work-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.work-title { margin: 4px 0; font-size: 17px; font-weight: 750; }
.work .btn-big { width: 100%; margin-top: 10px; }
.work-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* 목록 화면 */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 650; text-decoration: none; white-space: nowrap; }
.tabs a[aria-current] { border-bottom-color: var(--indigo); color: var(--indigo-ink); }
.is-hidden td { color: var(--faint); }

/* 로그인·가입 */
body.auth .wrap { display: grid; min-height: 100vh; place-items: center; padding-bottom: 20px; }
.auth-card { width: min(440px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.auth-title { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.auth-title::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--indigo); box-shadow: 4px 4px 0 var(--tape); }
.linkbox { padding: 10px 12px; border: 1px dashed var(--indigo); border-radius: 8px; background: var(--indigo-soft); font-size: 14px; word-break: break-all; user-select: all; }

/* 도움말 */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 4px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
@media (max-width: 720px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 6px; } }
