:root{
  --bg:#0b0c10;
  --card:#111218;
  --muted:#9aa0a6;
  --text:#e6e6e6;
  --line:#232632;
  --primary:#5b8cff;
  --danger:#ff5b5b;
  --ok:#49d17d;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans KR",sans-serif;
}
a{ color:inherit; text-decoration:none; }
.container{ width:min(1000px, 92vw); margin:0 auto; }
.topbar{ border-bottom:1px solid var(--line); background:rgba(0,0,0,0.25); backdrop-filter: blur(8px); }
.title{ margin:0; font-size:20px; }
.muted{ color:var(--muted); margin:4px 0 0; }
.stack{ display:grid; gap:14px; padding:18px 0 28px; }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}
.h2{ margin:0 0 12px; font-size:16px; }
.row{ display:flex; }
.between{ justify-content:space-between; }
.center{ align-items:center; }
.right{ justify-content:flex-end; }
.gap{ gap:10px; }
.wrap{ flex-wrap:wrap; }
.grow{ flex:1; }

.grid2{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
.grid3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; }
@media (max-width:720px){
  .grid2,.grid3{ grid-template-columns:1fr; }
}

.field{ display:flex; flex-direction:column; gap:6px; }
.label{ font-size:12px; color:var(--muted); }
.hint{ font-size:12px; color:var(--muted); }

input, select{
  background:#0e1016;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  outline:none;
}
input:focus, select:focus{ border-color:rgba(91,140,255,.7); }

.btn{
  background:#0e1016;
  border:1px solid var(--line);
  color:var(--text);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}
.btn.primary{ border-color:rgba(91,140,255,.7); background:rgba(91,140,255,.12); }
.btn.danger{ border-color:rgba(255,91,91,.7); background:rgba(255,91,91,.10); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.pill{
  border:1px solid var(--line);
  background:#0e1016;
  border-radius:12px;
  padding:10px;
}
.big{ font-size:18px; font-weight:700; margin-top:4px; }

.tableWrap{ overflow:auto; border-radius:12px; border:1px solid var(--line); }
.table{ width:100%; border-collapse:collapse; min-width:720px; background:#0e1016; }
.table th, .table td{ padding:10px; border-bottom:1px solid var(--line); text-align:left; }
.table th{ color:var(--muted); font-weight:600; font-size:12px; }
.table td.right, .table th.right{ text-align:right; }
.table tr:last-child td{ border-bottom:none; }

.error{ color:var(--danger); margin:10px 0 0; }
.ok{ color:var(--ok); margin:10px 0 0; }

.dialog::backdrop{ background:rgba(0,0,0,.55); }
.dialogCard{ max-width:720px; margin:0 auto; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 1;
  cursor: pointer;
}

/* hover 클래스용 */
.table tbody tr.hover td {
  background-color: #443f25 !important;
}