:root {
  --bg: #0f1720;
  --surface: #182430;
  --surface-2: #1f2e3d;
  --border: #2b3d4f;
  --text: #e7eef5;
  --muted: #93a4b5;
  --accent: #2fd07f;
  --accent-2: #35b6c9;
  --danger: #f2545b;
  --warn: #f5b942;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #16324a 0%, var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: rgba(15,23,32,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 800; letter-spacing: .3px; display:flex; align-items:center; gap:8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.topbar nav a.active, .topbar nav a:hover { color: var(--text); background: var(--surface-2); }
.topbar .user { font-size: 13px; color: var(--muted); display:flex; align-items:center; gap:10px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 22px 16px 60px; }
.center-wrap { max-width: 420px; margin: 8vh auto; padding: 0 16px; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

h1.page-title { font-size: 22px; margin: 4px 0 18px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
input, select {
  width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: #0e1620; color: var(--text); font-size: 15px; outline: none;
}
input:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(53,182,201,.15); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: var(--accent); color: #06210f; cursor: pointer; transition: transform .05s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.accent2 { background: var(--accent-2); color: #04222a; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-weight: 700; cursor: pointer;
}
.tabs button.active { background: var(--surface-2); color: var(--text); border-color: var(--accent-2); }

.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
@media (max-width: 480px) { .hours { grid-template-columns: repeat(3, 1fr); } }
.hour-chip {
  padding: 12px 0; text-align: center; border-radius: 10px; border: 1px solid var(--border);
  background: #0e1620; cursor: pointer; font-weight: 700; user-select: none; font-size: 15px;
}
.hour-chip.on { background: var(--accent); color: #06210f; border-color: var(--accent); }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #0e1620;
}
.item .meta { display: flex; flex-direction: column; gap: 3px; }
.item .meta .big { font-weight: 800; font-size: 16px; }
.item .meta .small { color: var(--muted); font-size: 12.5px; }

.badge { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge.pending { background: #263241; color: #9fb4c8; }
.badge.success { background: rgba(47,208,127,.18); color: var(--accent); }
.badge.failed  { background: rgba(242,84,91,.18); color: #ff8a8f; }
.badge.skipped { background: rgba(245,185,66,.16); color: var(--warn); }

.muted { color: var(--muted); }
.err { color: #ff8a8f; font-size: 14px; min-height: 18px; margin-top: 8px; }
.ok  { color: var(--accent); font-size: 14px; min-height: 18px; margin-top: 8px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.notice { font-size: 12.5px; color: var(--muted); background: #101b26; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }

.stat { display:flex; gap:14px; flex-wrap:wrap; }
.stat .box { flex:1; min-width:140px; background:#0e1620; border:1px solid var(--border); border-radius:12px; padding:14px; }
.stat .box .k { color: var(--muted); font-size: 12.5px; }
.stat .box .v { font-size: 20px; font-weight: 800; margin-top: 4px; }

.spin { color: var(--muted); padding: 20px; text-align:center; }

/* 인라인 달력 */
.cal { border:1px solid var(--border); border-radius:12px; background:#0e1620; padding:10px; }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cal-head .m { font-weight:800; font-size:15px; }
.cal-head button { background:var(--surface-2); border:1px solid var(--border); color:var(--text); border-radius:8px; width:36px; height:36px; cursor:pointer; font-size:18px; line-height:1; }
.cal-head button:hover { border-color:var(--accent-2); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-wd { text-align:center; font-size:12px; font-weight:700; color:var(--muted); padding:4px 0; }
.cal-wd.sun { color:#ff9a9a; } .cal-wd.sat { color:#7fb0ff; }
.cal-day { text-align:center; padding:10px 0; border-radius:8px; cursor:pointer; font-size:14px; font-weight:600; background:#111c28; user-select:none; }
.cal-day:hover:not(.blank):not(.disabled):not(.sel) { border:1px solid var(--accent-2); padding:9px 0; }
.cal-day.blank { background:transparent; cursor:default; }
.cal-day.disabled { color:#3a4a5a; background:#0d151d; opacity:.55; cursor:not-allowed; }
.cal-day.today { outline:1px solid var(--accent-2); }
.cal-day.sun { color:#ff9a9a; } .cal-day.sat { color:#7fb0ff; }
.cal-day.sel { background:var(--accent); color:#06210f; }
.cal-day.sel.sun, .cal-day.sel.sat { color:#06210f; }
