:root {
  --bg: #f6f7f9; --card: #fff; --ink: #1c2330; --muted: #6b7482; --line: #e3e6eb;
  --brand: #1f6f5c; --brand-soft: #e3f1ec; --warn: #c2410c; --warn-soft: #fff1e8; --bad: #b42318; --bad-soft: #fdecea;
  --ok: #15803d; --radius: 10px;
  font-family: "Pretendard", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 7px; padding: 6px 12px; }
button.ghost { background: transparent; color: var(--brand); }
button.small { padding: 2px 8px; font-size: 12px; }
button.danger { border-color: var(--bad); background: transparent; color: var(--bad); }
input, select, textarea { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; background: #fff; color: var(--ink); }
textarea { width: 100%; min-height: 60px; }
.top { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 18px; color: var(--brand); }
.brand span { color: var(--ink); font-weight: 600; }
#tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
#tabs button { background: transparent; border: none; color: var(--muted); padding: 8px 12px; border-radius: 7px; }
#tabs button.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.who { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.banner { background: #fff7d6; border-bottom: 1px solid #f0de9a; padding: 6px 20px; font-size: 13px; }
main { padding: 18px 20px 60px; max-width: 1280px; margin: 0 auto; }
.pad { padding: 20px; }
.muted { color: var(--muted); }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 280px 1fr; gap: 14px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.list button.item { display: block; width: 100%; text-align: left; background: transparent; color: var(--ink); border: 1px solid transparent; padding: 8px 10px; margin-bottom: 4px; }
.list button.item.on { border-color: var(--brand); background: var(--brand-soft); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #eef0f3; color: var(--muted); margin-right: 4px; }
.tag.gov { background: #e8effd; color: #2346a0; }
.tag.rnd { background: #f2e9fb; color: #6a2ca0; }
.tag.late { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: #e7f6ec; color: var(--ok); }
.bar { position: relative; height: 10px; background: #eceef2; border-radius: 99px; overflow: hidden; min-width: 120px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 99px; }
.bar > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--warn); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
td input[type=number] { width: 64px; }
.ms { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
form.inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.timeline { position: relative; height: 26px; background: #f1f3f5; border-radius: 6px; margin: 4px 0; }
.timeline .blk { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 11px; padding: 3px 6px; overflow: hidden; white-space: nowrap; }
.timeline .blk.mine { background: #2f8f76; outline: 2px solid #0b4637; }
.timeline .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bad); }
.hours { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.daylabel { width: 92px; font-size: 12px; color: var(--muted); flex: none; }
.heat { display: grid; grid-template-columns: 92px repeat(24, 1fr); gap: 2px; font-size: 10px; }
.heat div.c { height: 18px; border-radius: 3px; }
.stat { display: inline-block; min-width: 130px; margin: 0 14px 8px 0; }
.stat b { display: block; font-size: 20px; }
.stat span { color: var(--muted); font-size: 12px; }
.live { display: inline-block; width: 9px; height: 9px; border-radius: 99px; background: #bbb; margin-right: 5px; }
.live.on { background: var(--ok); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; max-width: 90vw; }
#toast.err { background: var(--bad); }
.login { max-width: 420px; margin: 80px auto; text-align: center; }
.token { font-family: Consolas, monospace; background: #f1f3f5; padding: 8px; border-radius: 6px; word-break: break-all; user-select: all; }

/* 창업아이템 */
.board { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.board .col { background: #eef0f3; border-radius: var(--radius); padding: 8px; min-height: 120px; }
.board .col h4 { margin: 2px 4px 8px; font-size: 13px; color: var(--muted); }
.vcard { display: block; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.vcard b.score { float: right; color: var(--brand); }
.stepper { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.stepper span { padding: 4px 10px; border-radius: 99px; background: #eef0f3; color: var(--muted); font-size: 12px; }
.stepper span.on { background: var(--brand); color: #fff; font-weight: 700; }
.stepper span.past { background: var(--brand-soft); color: var(--brand); }
.big { font-size: 34px; font-weight: 800; color: var(--brand); }
.plus { color: var(--ok); font-weight: 700; } .minus { color: var(--bad); font-weight: 700; }
.field { margin-bottom: 10px; } .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.evt { border-bottom: 1px solid var(--line); padding: 8px 0; }
.share { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: #eceef2; margin: 6px 0 10px; }
.share i { display: block; height: 100%; }

/* GPU 현황판 */
.gpu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.gpu-card { position: relative; }
.big .unit { font-size: 15px; color: var(--muted); font-weight: 600; }
.big2 { font-size: 26px; font-weight: 800; }
.bar.memb { height: 12px; margin: 8px 0; }
.resv-now { margin-top: 4px; }
svg.spark { width: 100%; height: auto; display: block; margin-top: 4px; }
svg.spark text { font-size: 10px; fill: var(--muted); }
svg.spark .grid { stroke: var(--line); stroke-width: 1; }
svg.spark .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.spark .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
svg.spark .ptdot { fill: var(--brand); }
.sysrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0; font-size: 13px; }
.sysrow .lbl { width: 44px; }
.bar.mini { height: 6px; min-width: 80px; width: 120px; }
.disk { background: #f4f5f7; border-radius: 6px; padding: 2px 8px; }
.disk.full { background: var(--bad-soft); color: var(--bad); }
svg.spark .dot { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.swatch { display: inline-block; width: 14px; height: 9px; background: var(--brand-soft); border: 1px solid #cfe5dc; vertical-align: middle; }
.tip { position: absolute; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.tl-pc { margin-top: 10px; }
.btnlink { display: inline-block; background: var(--brand); color: #fff; padding: 7px 14px; border-radius: 7px; text-decoration: none; margin: 6px 0; }
body.embed .top, body.embed #demo-banner { display: none; }
body.embed main { padding: 10px; }
