/* ────────────────────────────────────────────────────────────
   Export Desk Automation — 공용 디자인
   밝고 깔끔하게 · 모서리는 둥글게 · 한 곳에서 색을 바꾼다
   쓰는 곳: /  ·  /cases  ·  /demo  ·  /demo/60
   ──────────────────────────────────────────────────────────── */

:root{
  --bg:#F4F7F8;
  --surface:#FFFFFF;
  --raise:#EDF3F4;
  --ink:#10222A;
  --dim:#4E6570;
  --faint:#8AA0A9;
  --line:#E1EAEC;
  --line-soft:#EDF2F3;

  --accent:#0B7C86;
  --accent-soft:#E2F2F3;
  --ok:#17795A;
  --ok-soft:#E3F4EE;
  --warn:#9A6512;
  --warn-soft:#FBF0DC;
  --crit:#BC3B22;
  --crit-soft:#FCEAE5;
  --human:#6B4BC4;
  --human-soft:#EFEAFB;

  --r-lg:18px;
  --r-md:12px;
  --r-sm:8px;
  --r-pill:999px;
  --shadow:0 1px 2px rgba(16,34,42,.04), 0 6px 20px rgba(16,34,42,.05);
  --shadow-lift:0 2px 6px rgba(16,34,42,.06), 0 14px 34px rgba(16,34,42,.09);
}
/* 밝은 판이 기본. 어두운 판은 보는 사람이 버튼으로 고를 때만. */
:root[data-theme="dark"]{
  --bg:#0E1719; --surface:#162428; --raise:#1D3036;
  --ink:#E6EEF0; --dim:#A2B6BC; --faint:#75919B;
  --line:#243940; --line-soft:#1C2E34;
  --accent:#43BAC2; --accent-soft:#10373B;
  --ok:#5CC29A; --ok-soft:#123028;
  --warn:#E0A94E; --warn-soft:#332714;
  --crit:#F0785C; --crit-soft:#3A1E18;
  --human:#A98BF0; --human-soft:#251C3D;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.28);
  --shadow-lift:0 2px 6px rgba(0,0,0,.34), 0 14px 34px rgba(0,0,0,.36);
}

*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"IBM Plex Sans KR",-apple-system,"Segoe UI","Malgun Gothic",sans-serif;
  font-size:15.5px; line-height:1.7; -webkit-font-smoothing:antialiased;
  word-break:keep-all;
}
html[lang="en"] body{word-break:normal}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace; font-variant-numeric:tabular-nums}
a{color:var(--accent)}
.wrap{max-width:1140px; margin:0 auto; padding:0 22px}

/* ── top bar ── */
.bar{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  padding:20px 0; margin-bottom:4px;
}
.brand{font-weight:700; font-size:15px; letter-spacing:.01em; white-space:nowrap;
  color:var(--ink); text-decoration:none}
.brand i,.brand span{color:var(--accent); font-style:normal}
.back{font-size:13.5px; color:var(--dim); text-decoration:none; padding:6px 12px;
  border-radius:var(--r-pill); transition:background .15s}
.back:hover{background:var(--raise); color:var(--accent)}
.lang{display:flex; gap:3px; background:var(--raise); padding:3px;
  border-radius:var(--r-pill); margin-left:auto}
.lang button{
  border:none; border-radius:var(--r-pill); padding:6px 14px; cursor:pointer;
  font-family:"IBM Plex Sans KR",sans-serif; font-size:12.5px; font-weight:500;
  background:transparent; color:var(--dim); transition:background .15s, color .15s;
}
.lang button[data-on="1"]{background:var(--surface); color:var(--accent); box-shadow:var(--shadow)}
.lang button:focus-visible{outline:2px solid var(--accent); outline-offset:1px}

/* ── buttons ── */
button{
  font-family:"IBM Plex Sans KR",sans-serif; font-size:13.5px; font-weight:500;
  background:var(--surface); color:var(--ink); border:1px solid var(--line);
  padding:10px 20px; border-radius:var(--r-pill); cursor:pointer;
  transition:border-color .15s, color .15s, background .15s, transform .1s;
}
button:hover:not(:disabled){border-color:var(--accent); color:var(--accent)}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.4; cursor:default}
button:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
button.primary{background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600}
button.primary:hover:not(:disabled){filter:brightness(1.08); color:#fff}
button.human{background:var(--human); color:#fff; border-color:var(--human); font-weight:600}
button.human:hover:not(:disabled){filter:brightness(1.08); color:#fff}
button.ghost{background:transparent; border-color:transparent; color:var(--dim); padding:10px 14px}
button.ghost:hover:not(:disabled){background:var(--raise); border-color:transparent}

/* ── cards ── */
.card{background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow); overflow:hidden}
.card > h3{
  margin:0; padding:15px 20px; border-bottom:1px solid var(--line-soft);
  font-size:12.5px; letter-spacing:.02em; color:var(--dim); font-weight:600;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.card > h3 em{font-style:normal; color:var(--accent); font-weight:500; white-space:nowrap;
  font-family:"IBM Plex Mono",monospace; font-size:11.5px}

/* ── type ── */
.eyebrow{font-size:12.5px; letter-spacing:.02em; color:var(--accent);
  margin:0 0 14px; font-weight:600}
h1{font-weight:700; font-size:clamp(27px,4.2vw,40px); line-height:1.25;
  letter-spacing:-.02em; margin:0 0 18px; text-wrap:balance}
h2{font-weight:600; font-size:clamp(20px,2.9vw,27px); line-height:1.36;
  letter-spacing:-.015em; margin:0 0 12px; text-wrap:balance}
.lede{font-size:18px; font-weight:400; color:var(--dim); max-width:36em; margin:0; line-height:1.7}
.muted{color:var(--dim)}
.tiny{font-size:12.5px; color:var(--faint); line-height:1.65}

/* ── pills / tags ── */
.tag{font-size:11.5px; font-weight:500; padding:4px 11px;
  border-radius:var(--r-pill); background:var(--raise); color:var(--dim); white-space:nowrap}
.tag.ok{background:var(--ok-soft); color:var(--ok)}
.tag.crit{background:var(--crit-soft); color:var(--crit)}
.tag.warn{background:var(--warn-soft); color:var(--warn)}
.tag.live{background:var(--accent-soft); color:var(--accent)}
.tag.human{background:var(--human-soft); color:var(--human)}

/* ── progress ── */
.prog{height:4px; background:var(--line-soft); border-radius:var(--r-pill); overflow:hidden; flex:1; min-width:120px}
.prog i{display:block; height:100%; width:0; background:var(--accent); border-radius:var(--r-pill)}

/* ── tables ── */
.tablewrap{overflow-x:auto}
table.t{border-collapse:collapse; width:100%}
.t th{font-size:11.5px; letter-spacing:.02em; color:var(--faint); font-weight:600;
  text-align:left; padding:11px 16px; border-bottom:1px solid var(--line); white-space:nowrap}
.t td{padding:11px 16px; border-bottom:1px solid var(--line-soft); font-size:14px;
  transition:background .35s ease}
.t tr:last-child td{border-bottom:none}

/* ── misc ── */
.note{padding:20px 22px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow); font-size:14.5px;
  color:var(--dim); line-height:1.75}
.note b{color:var(--ink)}
.foot{margin-top:22px; font-size:12px; color:var(--faint); line-height:1.7}
@media (prefers-reduced-motion: no-preference){
  .rise{animation:rise .35s ease both}
  @keyframes rise{from{opacity:0; transform:translateY(7px)} to{opacity:1; transform:none}}
}

/* ── theme toggle ── */
.theme{border:none;background:var(--raise);color:var(--dim);border-radius:var(--r-pill);
  padding:8px 13px;font-size:13px;cursor:pointer;line-height:1}
.theme:hover{background:var(--accent-soft);color:var(--accent);border:none}
