:root {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17332d;
  background: #eef3f1;
  font-synthesis: none;
  --green: #0b4f42;
  --line: #d9e3df;
  --muted: #6b7f79;
  --danger: #b83e3e;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
.eyebrow { margin: 0 0 5px; color: #69877f; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 0, #dcece7, #eef3f1 52%); }
.login-card { width: min(100%, 420px); padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: white; box-shadow: 0 24px 70px rgba(19, 58, 48, .12); }
.admin-mark { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; border-radius: 15px; color: white; background: var(--green); font-weight: 900; }
.login-card h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.lead { margin: 9px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #3d5650; font-size: 13px; font-weight: 800; }
input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 79, 66, .12); }
form button { padding: 14px; border: 0; border-radius: 13px; color: white; background: var(--green); font-weight: 900; }
.error { margin: 0; padding: 10px 12px; border-radius: 10px; color: var(--danger); background: #fff0f0; font-size: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px max(22px, calc((100% - 1050px) / 2)); color: white; background: #102a25; }
.topbar h1 { margin: 0; font-size: 25px; }
.topbar .eyebrow { color: #8fc0b2; }
.header-actions { display: flex; gap: 8px; }
.ghost { padding: 9px 12px; border: 1px solid #49665e; border-radius: 10px; color: #d8e9e4; background: transparent; font-size: 12px; font-weight: 800; }
.summary, .notice, .device-list { width: min(calc(100% - 32px), 1050px); margin-inline: auto; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.summary article { display: flex; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.summary span { color: var(--muted); font-size: 13px; font-weight: 800; }
.summary strong { color: var(--green); font-size: 26px; }
.notice { display: flex; gap: 9px; margin-top: 12px; padding: 13px 15px; border-radius: 13px; color: #705516; background: #fff6dc; font-size: 12px; }
.device-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 17px 0 34px; }
.device-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 4px 15px rgba(20, 56, 47, .04); }
.device-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.device-top h2 { margin: 5px 0 0; font-size: 18px; }
.device-top code { padding: 5px 7px; border-radius: 7px; color: #678078; background: #edf2f0; font-size: 10px; }
.status { color: var(--green); font-size: 11px; font-weight: 900; }
dl { display: grid; gap: 7px; margin: 17px 0; padding: 12px; border-radius: 12px; background: #f5f8f6; }
dl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 11px; }
dt { color: var(--muted); font-weight: 800; }
dd { margin: 0; text-align: right; }
.empty { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed #bfcfc9; border-radius: 18px; color: var(--muted); text-align: center; }

@media (max-width: 650px) {
  .topbar { align-items: flex-start; padding: 20px 16px; }
  .topbar h1 { font-size: 20px; }
  .summary { grid-template-columns: 1fr; }
  .device-list { grid-template-columns: 1fr; }
  .notice { display: grid; }
  .ghost { padding: 8px; }
}
