:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --panel: #141922;
  --panel-2: #1b2230;
  --line: #2a3444;
  --text: #f3f6fa;
  --muted: #94a0b2;
  --accent: #f0b44b;
  --green: #49d49d;
  --red: #f06c75;
  font-family: Inter, Pretendard, "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--accent);
  color: #17120a;
  font-weight: 750;
  cursor: pointer;
}
button.secondary { background: var(--panel-2); color: var(--text); }
input {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0f141c;
  color: var(--text);
}
label { display: block; color: #d6dce6; font-size: 14px; }
h1, h2, p { margin-top: 0; }
.eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.muted { color: var(--muted); }
.error { color: var(--red); }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, #2d2718 0, transparent 30%),
    var(--bg);
}
.login-card {
  width: min(420px, calc(100% - 32px));
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 25, 34, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.login-card form, .stack { display: grid; gap: 18px; margin-top: 28px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, .9);
}
.topbar h1 { margin-bottom: 0; font-size: 24px; }
.dashboard {
  width: min(1280px, calc(100% - 40px));
  margin: 34px auto 70px;
  display: grid;
  gap: 34px;
}
.section-heading, .device-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px;
}
.device-card, .panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.device-card p { margin: 22px 0 12px; color: var(--muted); }
.device-card small { color: var(--muted); }
.status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #273041;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.status.online, .status.published { background: rgba(73, 212, 157, .12); color: var(--green); }
.status.offline { background: rgba(240, 108, 117, .12); color: var(--red); }
.progress { height: 5px; margin-bottom: 12px; overflow: hidden; border-radius: 99px; background: #272e3a; }
.progress span { display: block; height: 100%; background: var(--accent); }
.work-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.panel form { display: grid; gap: 16px; margin: 22px 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; }
legend { padding: 0 8px; color: var(--muted); }
.target-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.target { display: flex; align-items: center; gap: 5px; }
.target input { width: auto; margin: 0; }
.publish { width: 100%; background: var(--green); }
.result {
  min-height: 56px;
  padding: 14px;
  white-space: pre-wrap;
  border-radius: 10px;
  background: #0d1118;
  color: var(--muted);
}
.release-list { display: grid; gap: 9px; margin-top: 22px; }
.release-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
}
.release-row span:first-child { display: grid; text-align: left; }
.release-row small { color: var(--muted); font-weight: 400; }
@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
  .topbar { padding: 18px 20px; }
  .dashboard { width: min(100% - 24px, 1280px); }
}

