:root {
  color-scheme: light;
  --ink: #242424;
  --accent: #e95420;
  --muted: #696969;
  --line: #ebebeb;
  --bg: #ffffff;
  --white: #fff;
  --amber: #934116;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}
html:lang(ko) { --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', sans-serif; word-break: keep-all; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: #b83c12; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a.button { cursor: pointer; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #ffe0cf; }
aside { position: fixed; inset: 0 auto 0 0; width: 224px; background: #ffffff; border-right: 1px solid var(--line); padding: 36px 20px 26px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: block; padding: 0 14px; color: var(--ink); font-size: 29px; font-weight: 600; letter-spacing: -1px; }
.brand span { font-size: 21px; margin-left: 12px; letter-spacing: 2px; }
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1.4px; color: var(--muted); margin-top: 8px; }
.workspace { font-size: 11px; letter-spacing: 1.4px; margin: 48px 14px 16px; color: var(--muted); }
nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 5px; border-radius: 8px; color: #606060; font-size: 14px; min-height: 46px; }
nav a:hover { background: #fafafa; }
nav a.active { background: #fff1e9; color: #b83c12; font-weight: 600; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-divider { height: 1px; background: var(--line); margin: 26px 14px; }
.sidebar-bottom { margin-top: auto; padding: 48px 14px 0; color: var(--muted); font-size: 12px; }
.sidebar-bottom small { display: block; font-size: 10px; letter-spacing: .6px; margin-top: 7px; }
.dot { display: inline-block; background: #f36b2b; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; }
main { margin-left: 224px; padding: 0 clamp(24px, 3.8vw, 64px) 28px; max-width: 1800px; }
header { min-height: 84px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; font-weight: 500; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.header-actions form { margin: 0; }
.quiet { border: 0; background: transparent; color: var(--muted); padding: 10px 4px; min-height: 44px; }
.quiet:hover { color: var(--ink); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 40px 0 30px; }
h1 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.6px; line-height: 1.4; margin: 8px 0 10px; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0 0 20px; }
p { color: var(--muted); margin: 6px 0; }
.pill, .badge { font-size: 12px; border-radius: 6px; padding: 5px 10px; background: #fff1e9; color: #b83c12; white-space: nowrap; }
.pill { padding: 9px 14px; }
.badge.warn { color: #934116; background: #fff4ed; }
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 28px; }
.filters label { font-size: 13px; color: var(--muted); min-width: 140px; }
.filters input, .filters select { display: block; margin-top: 8px; width: 100%; }
input, select, textarea { border: 1px solid #dedede; background: #fff; border-radius: 7px; padding: 10px 12px; color: var(--ink); max-width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f36b2b; outline-offset: 2px; }
.primary { background: #d84916; border: 1px solid #d84916; color: white; padding: 10px 24px; border-radius: 7px; min-height: 46px; }
.primary:hover { background: #c44316; }
.button { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 7px; color: var(--ink); min-height: 42px; font-size: 13px; }
.button:hover { background: #ffffff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.metrics article { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-height: 166px; }
.metrics article > span { display: block; font-size: 13px; color: var(--muted); min-height: 42px; }
.metrics strong { display: block; font-size: clamp(23px, 2vw, 32px); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.8px; margin: 10px 0 12px; line-height: 1.3; }
.metrics small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.metrics .highlight { background: #fff6f0; border-color: #f6dfd2; }
.notice { border: 1px solid #ebebeb; background: #fafafa; color: #606060; padding: 14px 18px; margin: 18px 0; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.notice.amber { background: #fff7f2; border-color: #f5e3d8; color: #884323; }
.panel { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: 12px; margin: 26px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-title h2 { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 12px; font-weight: 500; background: #fafafa; white-space: nowrap; }
td, th { padding: 16px 14px; border-bottom: 1px solid #eeeeee; }
td { vertical-align: top; line-height: 1.7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
.product-name { min-width: 200px; max-width: 440px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.chart { max-height: 340px; overflow: auto; }
.bar-row { display: flex; align-items: center; gap: 18px; margin: 16px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar-row time { width: 86px; flex-shrink: 0; color: var(--muted); }
.bar-track { flex: 1; background: #f5f5f5; height: 10px; border-radius: 3px; }
.bar { height: 10px; background: #f36b2b; border-radius: 3px; }
.bar-row b { width: 104px; flex-shrink: 0; text-align: right; font-weight: 500; }
.pager { text-align: right; padding-top: 20px; color: var(--muted); font-size: 13px; }
.pager a { display: inline-block; padding: 8px 14px; margin-left: 12px; }
.auth-main { margin: 0; max-width: none; }
.login-card { width: 440px; max-width: 100%; margin: 9vh auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.login-card p { margin-bottom: 30px; }
.login-card label { display: block; margin: 22px 0; font-size: 14px; color: var(--muted); }
.login-card input { display: block; width: 100%; margin-top: 8px; }
.full { width: 100%; margin-top: 12px; }
.edit-form { max-width: 650px; display: grid; gap: 22px; }
.edit-form label { display: grid; gap: 8px; }
.edit-form small { color: var(--muted); font-size: 13px; }
.edit-form textarea { min-height: 100px; }
.template-links { margin-top: 24px; }
.template-links a { display: inline-block; padding: 8px; text-decoration: underline; text-underline-offset: 4px; }
footer { font-size: 12px; color: var(--muted); margin-top: 40px; }
details { padding: 14px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; }
dt { color: var(--muted); }
dd { margin: 0 0 16px; }
@media (max-width: 1200px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { aside { width: 196px; padding: 30px 14px; } main { margin-left: 196px; padding: 0 24px 24px; } .brand small { letter-spacing: .4px; } }
@media (max-width: 700px) {
  aside { position: relative; width: 100%; padding: 20px 16px 10px; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 6px; font-size: 23px; }.brand span { font-size: 19px; }
  .brand small, .workspace, .sidebar-bottom, .nav-divider { display: none; }
  nav { display: flex; overflow: auto; margin-top: 18px; gap: 5px; }
  nav a { flex-shrink: 0; white-space: nowrap; padding: 10px 12px; font-size: 14px; }
  .nav-icon { display: none; }
  main { margin-left: 0; padding: 0 18px 24px; }
  header { min-height: 68px; flex-wrap: wrap; padding: 12px 0; gap: 6px; }
  header > .eyebrow { display: none; }.header-actions { width: 100%; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
  .page-title { margin: 28px 0 24px; align-items: flex-start; }.page-title .pill { margin-top: 8px; padding: 7px 9px; font-size: 11px; }
  .page-title p { font-size: 14px; }
  .metrics { gap: 12px; }.metrics article { padding: 18px 16px; min-height: 160px; }.metrics strong { font-size: 24px; }
  .panel { padding: 20px 16px; }.section-title { flex-wrap: wrap; }
  .filters { gap: 14px 12px; }.filters label { min-width: 0; flex: 1 1 calc(50% - 12px); }.filters .primary { width: 100%; }
  .bar-row { gap: 10px; font-size: 12px; }.bar-row time { width: 78px; }.bar-row b { width: 80px; }
  .login-card { margin: 36px auto; padding: 30px 24px; }
}
@media (max-width: 380px) { .metrics { grid-template-columns: 1fr; }.metrics article { min-height: auto; }.metrics article > span { min-height: 0; }.page-title { flex-wrap: wrap; } }
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color .15s ease, color .15s ease; } }

.product-cell{display:flex;gap:12px;align-items:flex-start}.product-thumb{width:48px;height:48px;flex:0 0 48px;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fff}.product-thumb.placeholder{display:flex;align-items:center;justify-content:center;color:var(--muted);background:#fafafa}.login-card h1{font-size:25px;line-height:1.55;margin-bottom:28px}.brand span{margin-left:0}.brand small{letter-spacing:0;font-size:12px}
