:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --rose: #e11d48;
  --orange: #ea580c;
  --violet: #7c3aed;
  --ok: #059669;
  --gold: #d97706;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 264px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.sidebar::-webkit-scrollbar { width: 0; height: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 20px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}
.logo-text b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}
.logo-text em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.side-nav { flex: 1; }
.side-group {
  margin: 18px 10px 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
}
.side-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
}
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.side-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.side-badge.A { background: #dcfce7; color: #166534; }
.side-badge.B { background: #fef3c7; color: #92400e; }
.side-badge.C { background: #ffedd5; color: #9a3412; }
.side-badge.D { background: #ffe4e6; color: #be123c; }
.side-link.on .side-badge.A { background: #bbf7d0; color: #14532d; }
.side-link.on .side-badge.B { background: #fde68a; color: #78350f; }
.side-link.on .side-badge.C { background: #fed7aa; color: #7c2d12; }
.side-link.on .side-badge.D { background: #fecdd3; color: #9f1239; }

.side-foot {
  margin-top: 12px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.main { flex: 1; min-width: 0; padding: 24px 28px 48px; }

.boot {
  max-width: 720px;
  margin: 18vh auto;
  text-align: center;
  color: var(--muted);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.crumb {
  color: var(--muted);
  font-size: 12px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.user-chip b { font-weight: 600; }
.user-chip .muted { font-size: 12px; }

.asof { color: var(--muted); font-size: 13px; }

.wrap { width: min(1180px, 100%); margin: 0 auto; }
.wrap.wide { max-width: none; width: 100%; }

.kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
h1, h2 { margin: 0; font-weight: 700; }
h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
h2 { font-size: 18px; }
.lead { color: var(--muted); margin: 8px 0 0; line-height: 1.65; font-size: 14.5px; }

.grid { display: grid; gap: 12px; }
.kpi { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.split { grid-template-columns: 1fr 1fr; margin-top: 12px; }

.card, .tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.tile {
  padding: 18px 16px;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.tile .lab { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tile.rose .num { color: var(--rose); }
.tile.orange .num { color: var(--orange); }
.tile.gold .num { color: var(--gold); }
.tile.violet .num { color: var(--violet); }
.tile.ok .num { color: var(--ok); }

.panel { padding: 18px; }
.panel.health { display: flex; flex-direction: column; min-height: 0; }
.health-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.grades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  margin-top: 12px;
}
.grade-n {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.grade-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid transparent;
  cursor: pointer;
}
.grade-link:hover { border-color: var(--line); background: #fff; }
.grade-link .flag { font-size: 14px; padding: 5px 10px; align-self: flex-start; }
.grade-link .muted { font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }

.spark { display: flex; align-items: flex-end; gap: 4px; margin: 12px 0 8px; }
.spark-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spark-track { width: 100%; height: 56px; display: flex; align-items: flex-end; }
.spark-track i {
  display: block;
  width: 100%;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
  min-height: 2px;
}
.spark-col span { color: var(--muted); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.yearline { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.fill { height: 100%; border-radius: 999px; background: var(--accent); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
  align-items: center;
}
.search, .select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.search:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.search { min-width: 240px; flex: 1; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.chip.on, .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.list { display: grid; gap: 8px; }
.row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s;
}
.row:hover { border-color: var(--line-strong); }
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.ph {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.name { font-weight: 600; font-size: 15px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: #475569;
  font-weight: 600;
}
.flag.사이즈깨짐 { background: #ffe4e6; color: #be123c; }
.flag.컬러깨짐 { background: #ffedd5; color: #9a3412; }
.flag.출고저조 { background: #fef3c7; color: #92400e; }
.flag.시즌종료잔여 { background: #ede9fe; color: #6d28d9; }
.flag.A { background: #dcfce7; color: #166534; }
.flag.B { background: #fef3c7; color: #92400e; }
.flag.C { background: #ffedd5; color: #9a3412; }
.flag.D { background: #ffe4e6; color: #be123c; }
.stats { text-align: right; min-width: 120px; }
.stats b { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 12px; }
.level { font-size: 12px; font-weight: 700; }
.level.경고 { color: var(--rose); }
.level.주의 { color: var(--orange); }
.level.양호 { color: var(--ok); }

.hero-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  margin-top: 18px;
}
.hero-card img, .hero-card .ph {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.kv div { background: var(--surface-2); border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); }
.kv b { display: block; font-size: 18px; margin-top: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv span { color: var(--muted); font-size: 12px; }

.matrix { overflow: auto; margin-top: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: center; }
th { color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
td.left, th.left { text-align: left; }
.cell.zero { color: var(--rose); background: #fff1f2; font-weight: 700; }
.cell.low { color: var(--orange); }
.cell.ok { color: var(--ok); }

.back { color: var(--accent); font-size: 14px; font-weight: 600; display: inline-block; margin: 0 0 12px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.note { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 28px; }

.stock-wrap { margin-top: 18px; }
.stock-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stock-meta div { background: var(--surface-2); border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); }
.stock-meta span { color: var(--muted); font-size: 12px; }
.stock-meta b { display: block; font-size: 18px; margin-top: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock-meta .up b { color: var(--rose); }
.stock-meta .down b { color: var(--accent); }
.stock-chart { position: relative; }
.ch { display: block; width: 100%; height: auto; font-family: inherit; }
.ch-hit { cursor: crosshair; }
.ch-tip {
  position: absolute;
  min-width: 108px;
  padding: 8px 10px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.ch-tip em { display: block; font-style: normal; color: #94a3b8; margin-bottom: 2px; }
.ch-tip b { display: block; font-size: 15px; }
.ch-tip span { display: block; margin-top: 2px; color: #94a3b8; }
.ch-legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.ch-legend i { display: inline-block; width: 8px; height: 12px; border-radius: 2px; }
.ch-legend i.up { background: var(--rose); }
.ch-legend i.down { background: var(--accent); }

.btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.55; cursor: default; }
.file { margin-top: 16px; width: 100%; }

.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ghost.danger { color: var(--rose); border-color: #fecdd3; }

.plan-page { display: grid; gap: 16px; margin-top: 8px; }
.plan-tags { margin: 0 0 4px; }
.cal-wrap { padding: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px 0; }
.cal-cell {
  min-height: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.cal-cell:hover { border-color: var(--accent); }
.cal-cell.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.18); }
.cal-cell.mute { opacity: 0.35; }
.cal-cell.today .d { color: var(--accent); font-weight: 800; }
.cal-cell .d { font-size: 14px; font-weight: 700; }
.cal-count {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.cal-cell .it { font-size: 11px; margin-top: 5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell .it.more { color: var(--muted); font-weight: 600; }

.plan-compose { padding: 18px; }
.plan-compose.editing { box-shadow: inset 0 0 0 2px var(--accent); }
.plan-compose-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-compose-tools { margin: 0; align-items: center; }
.plan-compose-tools .btn { margin-left: auto; }

.plan-day { padding: 22px; }
.plan-day-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.plan-day-head h2 { font-size: 22px; margin: 0 0 4px; }
.plan-day-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-write-btn { margin: 0; padding: 10px 16px; white-space: nowrap; }
.plan-day-head .muted { margin: 0; font-size: 14px; }
.plan-empty { padding: 48px 0; }

.plan-group { margin-bottom: 18px; }
.plan-group:last-child { margin-bottom: 0; }
.plan-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.plan-group-head b { font-size: 15px; }
.plan-group-head .muted { font-size: 13px; }

.plan-entries { display: grid; gap: 10px; }
.plan-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.plan-entry.mine { border-color: #c7d2fe; background: #fafaff; }
.plan-entry-title { font-size: 16px; font-weight: 600; line-height: 1.5; }
.plan-entry-meta { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan-entry-actions { display: flex; gap: 6px; flex-shrink: 0; }

.plan-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.plan-writer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
}
.plan-writer b { font-weight: 600; }
.plan-writer .muted { font-size: 12px; }
.plan-form textarea { resize: vertical; min-height: 88px; }
.flag.blue { background: #dbeafe; color: #1d4ed8; }
.flag.gold { background: #fef3c7; color: #92400e; }
.flag.orange { background: #ffedd5; color: #9a3412; }
.flag.violet { background: #ede9fe; color: #6d28d9; }
.flag.rose { background: #ffe4e6; color: #be123c; }

.admin-table, .users-table {
  overflow: auto;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.admin-table table, .users-table table {
  font-size: 13px;
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.admin-table th, .admin-table td, .users-table th, .users-table td {
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  padding: 13px 16px;
}
.admin-table th, .users-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.admin-table td, .users-table td { border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td, .users-table tr:last-child td { border-bottom: 0; }
.admin-table tr.editing td, .users-table tr.editing td { background: var(--accent-soft); }
.admin-table td.col-site { min-width: 168px; }
.admin-table td.col-kind { min-width: 72px; }
.admin-table td.col-id { min-width: 132px; }
.admin-table td.col-pw { min-width: 268px; }
.admin-table td.col-fee { min-width: 88px; }
.admin-table td.col-md { min-width: 110px; }
.admin-table td.wrap-note { white-space: nowrap; min-width: 140px; }
.admin-table th:last-child, .admin-table td:last-child {
  position: sticky;
  right: 0;
  width: 132px;
  background: var(--surface);
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
  text-align: right;
}
.admin-table th:last-child { z-index: 2; background: var(--surface-2); }
.admin-table tr.editing td:last-child { background: var(--accent-soft); }
.admin-table .site-name { font-weight: 700; }
.admin-table .login-id { font-family: Consolas, "Malgun Gothic", monospace; }
.pwbox { display: flex; align-items: center; gap: 6px; }
.pwbox input {
  width: 168px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  background: #fff;
  font-family: Consolas, "Malgun Gothic", monospace;
}
.site-link { color: var(--accent); font-weight: 600; }
.admin-form, .users-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.admin-form .span2 { grid-column: span 2; }
.admin-form .span4, .users-form .span4 {
  grid-column: span 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.admin-form input, .admin-form select, .users-form input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.users-master {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 2px;
}
.users-master input { width: auto; }
.admin-panel.editing, .users-panel.editing { box-shadow: inset 0 0 0 2px var(--accent); }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(79, 70, 229, 0.08), transparent 60%),
    radial-gradient(600px 360px at 100% 0%, rgba(99, 102, 241, 0.06), transparent 55%),
    var(--bg);
}
.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-brand .logo-mark { width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }
.login-brand b { font-size: 18px; font-weight: 700; }
.login-brand span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.login-form { display: grid; gap: 12px; }
.login-form label { font-size: 13px; font-weight: 600; color: #334155; }
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.login-form .btn { width: 100%; margin-top: 4px; }
.login-err { color: var(--rose); font-size: 13px; min-height: 18px; margin: 0; }
.login-hint { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }

@media (max-width: 900px) {
  .layout { display: block; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .logo { padding: 4px 8px 12px 4px; }
  .side-nav { flex: none; width: 100%; display: contents; }
  .side-foot { display: none; }
  .side-group { margin: 4px 8px; width: 100%; }
  .main { padding: 16px 14px 32px; }
  .kpi, .split, .kv, .hero-card, .stock-meta { grid-template-columns: 1fr; }
  .row { grid-template-columns: 64px 1fr; }
  .stats { display: none; }
  h1 { font-size: 24px; }
  .thumb, .ph { width: 64px; height: 64px; }
  .admin-form, .users-form { grid-template-columns: 1fr 1fr; }
  .admin-form .span2, .admin-form .span4, .users-form .span4 { grid-column: span 2; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .plan-day-head { flex-direction: column; }
  .plan-entry { flex-direction: column; }
  .plan-entry-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .admin-form, .users-form { grid-template-columns: 1fr; }
  .admin-form .span2, .admin-form .span4, .users-form .span4 { grid-column: span 1; }
}
