/* Rungwise 판매 사이트 공통 스타일. 소개 페이지와 같은 색(래더 전원선 주황)과 회색 계열을 쓴다 */
:root {
  --bg: #F2F5F7; --surface: #FFFFFF; --raise: #F7F9FA; --line: #D3DCE2;
  --ink: #0E1D26; --muted: #556772; --power: #D4530A; --power-soft: #FCE8DA;
  --ok: #0A7C75; --ok-soft: #D9F0ED; --warn: #8A5A00; --warn-soft: #FFF1CC; --bad: #B3261E; --bad-soft: #FBE2E0;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1116; --surface: #121D25; --raise: #18262F; --line: #23343F;
    --ink: #EAF1F4; --muted: #8C9FAA; --power: #FF7A2F; --power-soft: #33200F;
    --ok: #3DD6C6; --ok-soft: #0F2F2C; --warn: #F2C14E; --warn-soft: #3A2E0E; --bad: #FF8A80; --bad-soft: #3B1714;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Segoe UI", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--power); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header.top nav a { color: var(--muted); font-size: .94rem; }
header.top nav a.btn { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--power);
  background: var(--power); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 5px 10px; font-size: .86rem; font-weight: 500; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }

main { padding: 32px 0 64px; }
h1 { font-size: 1.8rem; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 32px 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p.lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.muted { color: var(--muted); }
small, .small { font-size: .86rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--raise);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--power); outline-offset: 1px; }
.hint { color: var(--muted); font-size: .84rem; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }

.notice { border-radius: 8px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); background: var(--raise); }
.notice.ok { background: var(--ok-soft); border-color: transparent; }
.notice.warn { background: var(--warn-soft); border-color: transparent; }
.notice.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .84rem; }
.table-wrap { overflow-x: auto; }

.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--raise); border: 1px solid var(--line); white-space: nowrap; }
.chip.requested, .chip.pending { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.quoted { background: var(--power-soft); border-color: transparent; color: var(--power); }
.chip.paid, .chip.issued, .chip.active { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip.canceled, .chip.disabled { color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--power); font-weight: 600; }

.hero { padding: 56px 0 24px; }
.hero h1 { font-size: 2.3rem; max-width: 760px; }
.kpi b { display: block; font-size: 1.8rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
code, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .86rem; }
pre.cmd { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre-wrap; word-break: break-all; }

.editions th:not(:first-child), .editions td:not(:first-child) { text-align: center; }
.editions td:first-child { min-width: 220px; }
.yes { color: var(--ok); font-weight: 700; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .86rem; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); max-width: 520px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  h1 { font-size: 1.5rem; }
  header.top nav { gap: 10px; }
}
