/* =====================================================================
   On Air · 스마트 방송 콘솔
   방향: 방송 장비의 콘솔 스트립(짙은 슬레이트) + 신호등 앰버
   ===================================================================== */

:root {
  /* 콘솔 (내비게이션 / 재생 바) — 라이트·다크 공통 */
  --console: #172033;
  --console-2: #222d44;
  --console-line: #2e3a55;
  --console-text: #e7ebf3;
  --console-muted: #8d99b0;

  /* 본문 */
  --bg: #edf0f4;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --border: #dbe1ea;
  --text: #172033;
  --muted: #5d6a80;

  /* 신호색 */
  --amber: #f2a516;
  --amber-hover: #e0960a;
  --amber-ink: #1b1405;
  --amber-soft: rgba(242, 165, 22, 0.16);
  --ok: #1d936a;
  --ok-soft: rgba(29, 147, 106, 0.12);
  --danger: #cf3f37;
  --danger-soft: rgba(207, 63, 55, 0.1);
  --focus: 0 0 0 3px rgba(242, 165, 22, 0.45);

  --r-lg: 14px;
  --r-md: 10px;
  --nav-w: 232px;
  --tabbar-h: 62px;
  --np-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --console: #0b101b;
    --console-2: #151d2e;
    --console-line: #222c42;
    --bg: #0f1522;
    --surface: #172033;
    --surface-2: #1d2840;
    --border: #2a3650;
    --text: #e6eaf2;
    --muted: #93a0b8;
    --amber-soft: rgba(242, 165, 22, 0.14);
    --ok: #3bbf8e;
    --ok-soft: rgba(59, 191, 142, 0.14);
    --danger: #ec6a62;
    --danger-soft: rgba(236, 106, 98, 0.14);
    color-scheme: dark;
  }
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.i {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i.fill { fill: currentColor; stroke: none; }
.i-sm { width: 16px; height: 16px; }

/* ---------- 레이아웃 ---------- */
.app {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.nav {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 2px;
  padding: 20px 12px;
  background: var(--console);
  color: var(--console-text);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 2px 10px 22px;
}
.brand-mark {
  position: relative;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--amber); color: var(--amber-ink);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand-name small { font-size: 12px; color: var(--console-muted); }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 12px;
  border: 0; border-radius: var(--r-md);
  background: none; color: var(--console-muted);
  font-weight: 500; text-align: left; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--console-2); color: var(--console-text); }
.nav-item.active { background: var(--console-2); color: var(--console-text); }
.nav-item.active .i { color: var(--amber); }

.nav-footer { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px 0 10px; margin-top: 8px;
  border-top: 1px solid var(--console-line);
}
.user-chip > div { flex: 1; min-width: 0; line-height: 1.25; }
.user-chip strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { font-size: 12px; color: var(--console-muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--console-2); color: var(--amber);
  font-weight: 700; font-size: 14px;
}
.nav .btn-icon { color: var(--console-muted); }
.nav .btn-icon:hover { background: var(--console-2); color: var(--console-text); }

.main {
  min-width: 0;
  width: 100%; max-width: 1180px;
  padding: 32px clamp(16px, 4vw, 44px) calc(var(--np-h) + 48px);
}
.mobile-head { display: none; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }

.grid {
  display: grid; gap: 18px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.grid-music { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ---------- 카드 ---------- */
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card-primary { border-top: 3px solid var(--amber); }
.card-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-size: 16px; font-weight: 700;
}
.card-title .i { color: var(--muted); }
.card-title .count {
  font-size: 13px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-title .push { margin-left: auto; }
.card-desc { margin: -8px 0 14px; color: var(--muted); font-size: 14px; }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field-foot { display: flex; justify-content: flex-end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.input, .select, .textarea {
  width: 100%; min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--amber); background: var(--surface); box-shadow: var(--focus); }
.textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238592a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.inline-form { display: flex; gap: 8px; margin-top: 14px; }
.inline-form .input { flex: 1; min-width: 0; }

/* 볼륨 슬라이더 */
.range { display: flex; align-items: center; gap: 12px; min-height: 44px; }
input[type="range"] {
  --p: 60%;
  flex: 1; min-width: 0; height: 6px; margin: 0;
  -webkit-appearance: none; appearance: none;
  border-radius: 99px; cursor: pointer;
  background: linear-gradient(var(--amber), var(--amber)) 0 / var(--p) 100% no-repeat, var(--border);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--amber);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--amber);
}
.range output { min-width: 40px; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 스위치 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative; flex-shrink: 0;
  width: 44px; height: 26px; border-radius: 99px;
  background: var(--border); transition: background .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.switch input:checked + .track { background: var(--amber); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

/* 요일 선택 */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; }
.days span {
  display: grid; place-items: center; height: 40px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.days input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.days input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- 버튼 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); font-weight: 600;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-group > .btn { flex: 1; }

.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent;
  animation: spin .7s linear infinite;
}
.btn-primary.loading::after { border-color: var(--amber-ink) transparent var(--amber-ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 칩 (자주 쓰는 문구) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 2px;
  max-width: 100%; padding: 4px 4px 4px 13px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface-2); font-size: 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--amber); background: var(--amber-soft); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .x {
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
}
.chip .x:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- 목록 ---------- */
.list { display: flex; flex-direction: column; }
.list-scroll { max-height: min(62vh, 640px); overflow-y: auto; margin: 0 -8px; padding: 0 8px; overscroll-behavior: contain; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.list-item:first-child { border-top: 0; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: 2px; font-size: 12.5px; color: var(--muted);
}
.item-phrase {
  margin-top: 4px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.list-item.is-off { opacity: .5; }
.list-item.is-missing .item-title { color: var(--muted); }

.thumb {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--amber-soft); color: var(--amber-hover);
}
.thumb.upload { background: var(--ok-soft); color: var(--ok); }
.check { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--amber); cursor: pointer; }

.badge {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.badge-amber { background: var(--amber-soft); border-color: transparent; color: var(--amber-hover); }
.badge-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.badge-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

.alarm-time {
  min-width: 68px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.search { position: relative; flex: 1; min-width: 180px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; }
.select-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }

.empty { padding: 32px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 파일 드롭존 ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; margin-bottom: 14px;
  border: 1.5px dashed var(--border); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--muted);
  text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--amber); background: var(--amber-soft); }
.dropzone strong { color: var(--text); font-weight: 600; word-break: break-all; }
.dropzone small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 마이크 ---------- */
.mic-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 22px; }
.mic-btn {
  width: 136px; height: 136px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: var(--console); color: var(--amber);
  box-shadow: 0 0 0 8px var(--amber-soft);
  transition: transform .12s, background .2s, color .2s;
}
.mic-btn .i { width: 50px; height: 50px; stroke-width: 1.8; }
.mic-btn:active { transform: scale(.97); }
.mic-btn.recording { background: var(--danger); color: #fff; animation: tally 1.4s ease-out infinite; }
@keyframes tally {
  0% { box-shadow: 0 0 0 0 rgba(207, 63, 55, .5); }
  100% { box-shadow: 0 0 0 28px rgba(207, 63, 55, 0); }
}
.mic-time { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mic-hint { color: var(--muted); text-align: center; }
.note {
  margin-top: 14px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--surface-2);
  font-size: 13px; color: var(--muted);
}

/* ---------- 재생 바 (콘솔 스트립) ---------- */
.np {
  position: fixed; z-index: 40;
  left: calc(var(--nav-w) + 20px); right: 20px; bottom: 16px;
  max-width: 1100px;
  display: flex; align-items: center; gap: 14px;
  min-height: var(--np-h); padding: 10px 12px 10px 12px;
  border-radius: var(--r-lg);
  background: var(--console); color: var(--console-text);
  box-shadow: 0 14px 40px rgba(10, 16, 30, .3);
}
.np-meter {
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  width: 44px; height: 44px; padding: 10px 0; flex-shrink: 0;
  border-radius: var(--r-md); background: var(--console-2);
}
.np-meter i { width: 4px; height: 30%; border-radius: 2px; background: var(--amber); }
.np.playing .np-meter i { animation: level 1s ease-in-out infinite alternate; }
.np.playing .np-meter i:nth-child(2) { animation-duration: .7s; }
.np.playing .np-meter i:nth-child(3) { animation-duration: 1.2s; }
.np.playing .np-meter i:nth-child(4) { animation-duration: .85s; }
@keyframes level { 0% { height: 20%; } 100% { height: 100%; } }

.np-info { flex: 1; min-width: 0; cursor: default; }
.np-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub { display: flex; gap: 8px; font-size: 12.5px; color: var(--console-muted); }
.np-volume { display: flex; align-items: center; gap: 10px; width: 200px; color: var(--console-muted); }
.np-volume input[type="range"] { background: linear-gradient(var(--amber), var(--amber)) 0 / var(--p) 100% no-repeat, var(--console-line); }
.np-controls { display: flex; gap: 4px; }
.np .btn-icon { color: var(--console-text); width: 44px; min-height: 44px; }
.np .btn-icon:hover { background: var(--console-2); }
.np .np-play { background: var(--amber); color: var(--amber-ink); border-radius: 50%; }
.np .np-play:hover { background: var(--amber-hover); }

/* ---------- 토스트 ---------- */
.toasts {
  position: fixed; z-index: 100;
  top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  width: min(92vw, 440px); pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--console); color: var(--console-text);
  border-left: 4px solid var(--console-muted);
  box-shadow: 0 10px 30px rgba(10, 16, 30, .25);
  font-size: 14px; font-weight: 500;
  pointer-events: auto;
  animation: toast-in .2s ease-out;
}
.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 로그인 ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px; background: var(--console); color: var(--console-text);
}
.auth-side h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; max-width: 12ch; }
.auth-side p { color: var(--console-muted); max-width: 36ch; }
.auth-meter { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.auth-meter i { flex: 1; max-width: 14px; border-radius: 3px; background: var(--console-2); }
.auth-meter i.on { background: var(--amber); }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(100%, 380px); }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 24px; }

/* ---------- 모바일 ---------- */
@media (max-width: 960px) {
  .grid-music { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }

  .nav {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--tabbar-h) + var(--safe-b));
    flex-direction: row; gap: 0;
    padding: 6px 6px var(--safe-b);
    border-top: 1px solid var(--console-line);
  }
  .nav .brand, .nav-footer { display: none; }
  .nav-item {
    flex: 1; flex-direction: column; justify-content: center; gap: 2px;
    padding: 6px 2px; font-size: 11.5px; text-align: center;
  }
  .nav-item.active { background: none; }
  .nav-item .i { width: 22px; height: 22px; }

  .mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 -14px 16px; padding: calc(10px + var(--safe-t)) 10px 10px 14px;
    background: var(--console); color: var(--console-text);
  }
  .mobile-head .brand { padding: 0; }
  .mobile-head .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .mobile-head .brand-mark .i { width: 18px; height: 18px; }
  .mobile-head .btn-icon { color: var(--console-muted); }
  .mobile-actions { display: flex; gap: 2px; }

  .main { padding: 0 14px calc(var(--tabbar-h) + var(--safe-b) + 24px); }
  body.has-np .main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--np-h) + 32px); }

  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 14px; }
  .grid, .stack { gap: 14px; }
  .card { padding: 16px; border-radius: 12px; }

  .input, .select, .textarea { font-size: 16px; } /* iOS 확대 방지 */

  .np {
    left: 8px; right: 8px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
    flex-wrap: wrap; gap: 10px;
    min-height: 0; padding: 8px 8px 8px 10px;
  }
  .np-meter { width: 38px; height: 38px; padding: 8px 0; }
  .np-info { cursor: pointer; }
  .np-volume { display: none; order: 5; width: 100%; padding: 2px 6px 4px; }
  .np.expanded .np-volume { display: flex; }

  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: calc(28px + var(--safe-t)) 24px 28px; gap: 20px; }
  .auth-side h1 { font-size: 28px; }
  .auth-meter { height: 40px; }
}

@media (max-width: 480px) {
  .row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .item-meta .hide-xs { display: none; }
  .alarm-time { min-width: 58px; font-size: 19px; }
  .days span { height: 36px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
