/* ===== 디자인 토큰 ===== */
:root {
  --bg: #eef1f6; --surface: #ffffff; --surface-2: #f7f9fc; --line: #e3e8ef; --line-2: #eef1f5;
  --text: #111827; --text-2: #374151; --muted: #6b7280; --muted-2: #9ca3af;
  --brand: #2f5bea; --brand-2: #1e40af; --brand-bg: #eaf0ff;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2;
  /* 열 그룹 */
  --g-in: #f59e0b; --g-in-bg: #fff8e8; --g-in-head: #fde68a;
  --g-cost: #3b82f6; --g-cost-bg: #eef4ff; --g-cost-head: #bfdbfe;
  --g-cbm: #0d9488; --g-cbm-bg: #e6f7f5; --g-cbm-head: #99f6e4;
  --g-center: #7c3aed; --g-center-bg: #f3eeff; --g-center-head: #ddd6fe;
  --g-seller: #16a34a; --g-seller-bg: #ecfdf3; --g-seller-head: #bbf7d0;
  --g-act: #6b7280; --g-act-bg: #f3f4f6; --g-act-head: #e5e7eb;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-2: 0 6px 18px rgba(16,24,40,.08);
  font-size: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; line-height: 1.45; font-variant-numeric: tabular-nums; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--brand); }
h3 { font-size: 13px; font-weight: 700; margin: 14px 0 6px; color: var(--text-2); }
p { margin: 6px 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.err { color: var(--bad); } .ok { color: var(--ok); } .warn { color: var(--warn); }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
code { background: #eef1f5; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
pre { background: #1f2937; color: #e5e7eb; padding: 10px; border-radius: 8px; overflow: auto; font-size: 12px; }
ul, ol { padding-left: 20px; margin: 6px 0; } li { margin: 3px 0; }

/* ===== 상단 바 ===== */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; background: #0f172a; color: #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.01em; }
.topbar .brand .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #60a5fa, #2f5bea); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.topbar nav { display: flex; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: #cbd5e1; font-weight: 600; font-size: 13.5px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.topbar .brand { white-space: nowrap; }
@media (max-width: 1100px) { .topbar .brand .text { display: none; } .topbar nav a { padding: 0 10px; } }
@media (max-width: 760px) { .topbar #fxBadge { display: none; } .topbar #saveBadge { display: none; } }
.topbar nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.06); }
.topbar nav a.active { color: #fff; border-bottom-color: #60a5fa; background: rgba(255,255,255,.08); }
.topbar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.topbar .btn.ghost { color: #cbd5e1; border-color: rgba(255,255,255,.18); background: transparent; }
.topbar .btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.muted { background: rgba(255,255,255,.08); color: #cbd5e1; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.fx { background: rgba(96,165,250,.18); color: #bfdbfe; }
.badge.fx.manual { background: var(--warn-bg); color: var(--warn); }
.badge.fx b { color: #fff; font-size: 13px; } .badge.fx.manual b { color: var(--warn); }

/* ===== 레이아웃 ===== */
main { padding: 18px 20px 80px; max-width: 1800px; margin: 0 auto; }
.loading { padding: 60px; text-align: center; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel.flat { box-shadow: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
.grid.c6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .grid.c4, .grid.c5, .grid.c6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid.c2, .grid.c3, .grid.c4, .grid.c5, .grid.c6 { grid-template-columns: repeat(2, 1fr); } main { padding: 12px; } .topbar { padding: 0 10px; gap: 8px; } .topbar nav a { padding: 0 8px; } }

/* ===== 회차 헤더 + KPI ===== */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; } }
.hero-main { background: linear-gradient(135deg, #1e3a8a, #2f5bea 60%, #3b82f6); color: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 10px; }
.hero-main .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .8; text-transform: uppercase; }
.hero-main select, .hero-main input { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.hero-main select option { color: var(--text); }
.hero-main input::placeholder { color: rgba(255,255,255,.6); }
.hero-main input.hero-name { font-size: 22px; font-weight: 800; padding: 6px 10px; width: 100%; letter-spacing: -.01em; }
.hero-main .status { font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.hero-main .status.planning { background: #fde68a; color: #78350f; border-color: transparent; }
.hero-main .status.ordered { background: #bfdbfe; color: #1e3a8a; border-color: transparent; }
.hero-main .status.arrived { background: #bbf7d0; color: #14532d; border-color: transparent; }
.hero-main .status.closed { background: #e5e7eb; color: #374151; border-color: transparent; }
.hero-main .hero-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.hero-main .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.hero-main .btn:hover { background: rgba(255,255,255,.24); }
.hero-main .btn.primary { background: #fff; color: var(--brand-2); border-color: #fff; }
.hero-main .btn.danger { color: #fecaca; }
.fx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.fx-card.manual { border-color: #f59e0b; background: #fffdf5; }
.fx-card .fx-rate { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fx-card .fx-rate small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.fx-card .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fx-card .seg label { padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); background: #fff; }
.fx-card .seg label:has(input:checked) { background: var(--brand); color: #fff; }
.fx-card .seg label:has(input:checked).manual { background: #f59e0b; }
.fx-card .seg input { display: none; }
.kpis { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi.primary { grid-column: 1 / -1; } .kpi.primary .kpi-value { font-size: 30px; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kpi-color, var(--brand)); }
.kpi .kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .kpi-value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.2; }
.kpi .kpi-value .unit { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi .kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi.primary { --kpi-color: #f59e0b; background: linear-gradient(180deg, #fffbeb, #fff); }
.kpi.primary .kpi-value { font-size: 34px; color: #92400e; }
.kpi.c-blue { --kpi-color: #3b82f6; } .kpi.c-teal { --kpi-color: #0d9488; } .kpi.c-purple { --kpi-color: #7c3aed; } .kpi.c-green { --kpi-color: #16a34a; }

/* ===== 버튼/폼 ===== */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.2; transition: background .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); box-shadow: var(--shadow); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--line-2); }
.btn.icon { padding: 3px 6px; font-size: 12px; color: var(--muted); }
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
input, select, textarea { font: inherit; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,91,234,.18); border-color: var(--brand); }
input[type=number] { text-align: right; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
input[type=radio] { accent-color: var(--brand); }
textarea { width: 100%; min-height: 80px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
label.field > input, label.field > select { font-size: 13.5px; font-weight: 500; color: var(--text); }
label.field .row input { flex: 1; }
.note { background: #fffbea; border: 1px solid #f3e3a1; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.note.info { background: #eef5ff; border-color: #c8dafc; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; }
.kv b { color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.pill { display: inline-block; min-width: 54px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.na { background: var(--line-2); color: var(--muted-2); }
details { margin: 10px 0 0; }
details > summary { cursor: pointer; font-weight: 600; color: var(--text-2); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
details > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details > *:not(summary) { margin-top: 8px; }

/* ===== 표 공통 ===== */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
th { position: sticky; top: 0; background: #f4f6fa; font-weight: 700; z-index: 3; text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.25; }
td.num, th.num { text-align: right; }
tbody tr:nth-child(even) td { background: #fbfcfe; }
tbody tr:hover td { background: #f1f5ff; }
tr.total td { background: #fff7e0 !important; font-weight: 800; border-top: 2px solid #f3d27a; }
.sum-table td, .sum-table th { padding: 9px 12px; font-size: 13.5px; }
.sum-table td.name { font-weight: 700; }
.neg { color: var(--bad) !important; }
.share { display: inline-flex; align-items: center; gap: 6px; }
.share .bar { width: 90px; height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.share .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #f97316); }
.share span { font-size: 12px; color: var(--muted); width: 40px; text-align: right; }

/* ===== 상품 원가표 ===== */
.ptable-wrap { max-height: calc(100vh - 250px); }
#ptable th.grp { top: 0; z-index: 4; font-size: 12.5px; letter-spacing: .02em; }
#ptable thead tr:nth-child(2) th { top: 31px; }
#ptable th.g-in { background: var(--g-in-head); color: #78350f; } #ptable th.g-cost { background: var(--g-cost-head); color: #1e3a8a; }
#ptable th.g-cbm { background: var(--g-cbm-head); color: #134e4a; } #ptable th.g-center { background: var(--g-center-head); color: #4c1d95; }
#ptable th.g-seller { background: var(--g-seller-head); color: #14532d; } #ptable th.g-act { background: var(--g-act-head); color: #374151; }
#ptable thead tr:nth-child(2) th.g-in { background: var(--g-in-bg); } #ptable thead tr:nth-child(2) th.g-cost { background: var(--g-cost-bg); }
#ptable thead tr:nth-child(2) th.g-cbm { background: var(--g-cbm-bg); } #ptable thead tr:nth-child(2) th.g-center { background: var(--g-center-bg); }
#ptable thead tr:nth-child(2) th.g-seller { background: var(--g-seller-bg); } #ptable thead tr:nth-child(2) th.g-act { background: var(--g-act-bg); }
#ptable td { height: 46px; }
#ptable td.calc { color: var(--text-2); }
#ptable td.key { font-weight: 800; color: var(--text); }
#ptable td.key.g-cbm { background: #d9f3ef; } #ptable td.key.g-center { background: #ebe3ff; } #ptable td.key.g-seller { background: #dcf7e5; }
#ptable tbody td.g-cost { background: #f5f8ff; } #ptable tbody td.g-cbm { background: #f0faf8; } #ptable tbody td.g-center { background: #f7f4ff; } #ptable tbody td.g-seller { background: #f2fcf5; }
#ptable tbody tr:hover td { filter: brightness(.97); }
#ptable td.in input, #ptable td.in select { width: 100%; min-width: 62px; background: #fffdf3; padding: 4px 6px; border-color: #ead9a7; font-weight: 600; }
#ptable td.in input:focus, #ptable td.in select:focus { background: #fff; }
#ptable td.in input.wide { min-width: 190px; } #ptable td.in input.mid { min-width: 96px; }
#ptable td.in input[type=number] { min-width: 68px; }
#ptable td.in input::placeholder { color: var(--muted-2); font-weight: 400; }
#ptable .sticky { position: sticky; z-index: 2; background: #fff; }
#ptable tbody tr:nth-child(even) .sticky { background: #fbfcfe; }
#ptable tbody tr:hover .sticky { background: #f1f5ff; }
#ptable thead .sticky { z-index: 5; }
#ptable .s1 { left: 0; width: 40px; min-width: 40px; text-align: center; color: var(--muted); font-weight: 700; }
#ptable .s2 { left: 40px; width: 60px; min-width: 60px; }
#ptable .s3 { left: 100px; min-width: 200px; box-shadow: 4px 0 6px -4px rgba(0,0,0,.18); }
#ptable tr.excluded td { color: var(--muted-2); }
#ptable tr.excluded td:not(.sticky) { background: #f6f6f6 !important; }
#ptable tr.excluded td.key { font-weight: 500; }
td.thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; display: block; }
td.thumb .noimg { display: block; width: 40px; height: 40px; border-radius: 6px; border: 1px dashed var(--line); color: #c4c9d2; font-size: 10px; text-align: center; line-height: 40px; cursor: pointer; }
.table-wrap.compact .d { display: none; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-tabs a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--text-2); font-size: 13px; }
.cat-tabs a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.cat-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px 24px; }
@media (max-width: 1000px) { .cat-head { grid-template-columns: 1fr; } }
.cat-head .stat { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.cat-head .stat div { font-size: 12px; color: var(--muted); }
.cat-head .stat div b { display: block; font-size: 15px; color: var(--text); }

/* ===== 파일(큰 제목) 바 / 게시판 ===== */
.file-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 16px; align-items: center; background: linear-gradient(135deg, #111827, #1f2937); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow-2); }
@media (max-width: 900px) { .file-bar { grid-template-columns: 1fr; } }
.file-bar .file-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.file-bar .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .7; text-transform: uppercase; }
.file-bar input, .file-bar select { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.file-bar select option { color: var(--text); }
.file-bar input.file-title { font-size: 20px; font-weight: 800; padding: 5px 10px; width: 100%; letter-spacing: -.01em; }
.file-bar input.file-memo { width: 100%; font-size: 12.5px; }
.file-bar input::placeholder { color: rgba(255,255,255,.5); }
.file-bar .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.file-bar .btn:hover { background: rgba(255,255,255,.22); }
.file-bar .btn.primary { background: #60a5fa; border-color: #60a5fa; color: #0f172a; }
.file-bar .btn.danger { color: #fca5a5; }
.file-bar .file-stats { display: flex; gap: 14px; font-size: 12px; opacity: .85; }
.file-bar .file-stats b { color: #fff; font-size: 14px; }
tr.file-row td { background: #eef2ff !important; font-weight: 800; border-top: 2px solid #c7d2fe; }
tr.file-row td .file-title-cell { display: flex; align-items: center; gap: 8px; }
tr.cat-row td.name { padding-left: 28px; font-weight: 600; }
tr.cat-row td.name::before { content: "└ "; color: var(--muted-2); }
.board-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.board-toolbar input[type=search] { flex: 1; min-width: 260px; font-size: 14px; padding: 9px 12px; border-radius: 10px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.file-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.file-card.current { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,91,234,.12); }
.file-card .fc-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.file-card .fc-title .icon { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-bg); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.file-card .fc-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.file-card .fc-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.file-card .fc-cats .tag { cursor: pointer; }
.file-card .fc-cats .tag:hover { background: var(--brand-bg); color: var(--brand); }
.file-card .fc-thumbs { display: flex; gap: 4px; }
.file-card .fc-thumbs img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.file-card .fc-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.search-hit mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
.crumb { font-size: 12px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ===== 가져오기 / 기타 ===== */
.step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; margin-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; cursor: pointer; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.bookmarklet { display: inline-block; padding: 10px 16px; background: linear-gradient(180deg, #fff1b8, #ffe08a); border: 1px dashed #c9a227; border-radius: 10px; font-weight: 800; color: #5b4300; cursor: grab; box-shadow: var(--shadow); }
.imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.imgs img { width: 72px; height: 72px; object-fit: cover; border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
.imgs img.sel { border-color: var(--brand); }

#toast { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 50; }
#toast .t { background: #1f2937; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-2); font-weight: 600; }
#toast .t.error { background: var(--bad); } #toast .t.ok { background: var(--ok); }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(1200px 600px at 20% -10%, #dbe4ff, transparent), var(--bg); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 360px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-2); }
.login-card input { font-size: 15px; padding: 11px; }
