:root {
  color-scheme: dark;
  --bg: #14110e;
  --panel: #1c1815;
  --panel-raised: #26211c;
  --line: #322c26;
  --line-strong: #4b443c;
  --text: #f4eee3;
  --muted: #ab9f90;
  --accent: #ffb224;
  --accent-ink: #1f1503;
  --danger: #ff7b72;
  --video: #ff8f75;
  --video-bg: rgb(255 143 117 / 0.15);
  --audio: #7fbcff;
  --audio-bg: rgb(127 188 255 / 0.15);
  --sheet: #f2e2b6;
  --sheet-bg: rgb(242 226 182 / 0.14);
  --other: #bcb3a6;
  --other-bg: rgb(188 179 166 / 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "D2Coding", monospace;
  --dock-height: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.45 var(--sans);
  /* Korean breaks between words, not in the middle of one. */
  word-break: keep-all;
  padding-bottom: var(--dock-height);
}
body.has-dock { --dock-height: 76px; }

h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kind-video { --kind: var(--video); --kind-bg: var(--video-bg); }
.kind-audio { --kind: var(--audio); --kind-bg: var(--audio-bg); }
.kind-sheet { --kind: var(--sheet); --kind-bg: var(--sheet-bg); }
.kind-other { --kind: var(--other); --kind-bg: var(--other-bg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s;
}
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffc14f; }
.btn.primary:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--panel-raised); }
.btn.danger { background: var(--danger); color: #2b0704; }
.btn.danger:hover { background: #ff978f; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--panel-raised); color: var(--text); }
.icon-btn.delete:hover { background: rgb(255 123 114 / 0.15); color: var(--danger); }
.icon-btn.small { width: 30px; height: 30px; }
.icon-btn.small .icon { width: 16px; height: 16px; }
/* Keeps download buttons lined up on rows without a delete button. */
.icon-spacer { flex: none; width: 40px; }

/* Sign-in */
.login {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 16px;
}
.login-card {
  display: grid;
  gap: 16px;
  width: min(380px, 100%);
}
.login-card h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.login-sub { color: var(--muted); margin-top: -8px; margin-bottom: 8px; }
.login-note { color: var(--muted); font-size: 13px; }

.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
  margin-bottom: 4px;
}
.eq i {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 1.9s ease-in-out infinite alternate;
}
.eq i:nth-child(3n) { background: var(--video); }
.eq i:nth-child(5n) { background: var(--audio); }
.eq i:nth-child(1) { animation-delay: -0.2s; }
.eq i:nth-child(2) { animation-delay: -1.4s; }
.eq i:nth-child(3) { animation-delay: -0.7s; }
.eq i:nth-child(4) { animation-delay: -1.8s; }
.eq i:nth-child(5) { animation-delay: -0.4s; }
.eq i:nth-child(6) { animation-delay: -1.1s; }
.eq i:nth-child(7) { animation-delay: -1.6s; }
.eq i:nth-child(8) { animation-delay: -0.1s; }
.eq i:nth-child(9) { animation-delay: -0.9s; }
.eq i:nth-child(10) { animation-delay: -1.3s; }
.eq i:nth-child(11) { animation-delay: -0.5s; }
.eq i:nth-child(12) { animation-delay: -1.7s; }
.eq i:nth-child(13) { animation-delay: -0.3s; }
.eq i:nth-child(14) { animation-delay: -1s; }
.eq i:nth-child(15) { animation-delay: -1.5s; }
.eq i:nth-child(16) { animation-delay: -0.6s; }
@keyframes eq {
  from { transform: scaleY(0.14); }
  to { transform: scaleY(1); }
}

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 4px; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  font-size: 16px;
  font-weight: 400;
}
.field input:focus { border-color: var(--accent); outline: none; }
.form-error { color: var(--danger); font-size: 14px; }

/* Page frame */
.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark { width: 22px; height: 22px; fill: var(--accent); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .btn { flex: none; }
.who-name {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

/* Calendar */
.month-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.month-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.month-title span { color: var(--muted); font-weight: 400; }
.month-summary {
  min-height: 19px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.month-nav { display: flex; align-items: center; gap: 2px; flex: none; }
.month-nav .btn { margin-right: 6px; }

.weekdays, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.weekdays span { padding-left: 15px; }
.weekdays span:first-child { color: var(--video); }
.weekdays span:last-child { color: var(--audio); }
.grid {
  position: relative;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.grid.is-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 2px;
  background: var(--accent);
  animation: slide 1.1s ease-in-out infinite alternate;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(233%); }
}

.day, .day-filler {
  min-height: clamp(70px, calc((100dvh - 262px) / 6), 132px);
  background: var(--panel);
}
.day-filler { background: var(--bg); }
.day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.1s;
}
.day:hover { background: var(--panel-raised); }
.day:focus-visible { outline-offset: -3px; }
.day.is-selected {
  background: var(--panel-raised);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.day.is-drop-target {
  background: rgb(255 178 36 / 0.22);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.day-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 7px;
  font: 500 14px var(--mono);
}
.day.is-sun .day-num { color: var(--video); }
.day.is-sat .day-num { color: var(--audio); }
.day.is-today .day-num { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.session-tag {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgb(255 178 36 / 0.18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 4px;
  border-radius: 5px;
  background: var(--kind-bg);
  color: var(--kind);
  font: 600 12px/1.3 var(--mono);
}
.chip .icon { width: 14px; height: 14px; stroke-width: 2; }

.month-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  font-size: 14px;
}
.calendar-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 12px;
}
.usage { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.usage.is-full { color: var(--danger); font-weight: 600; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 12px;
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--kind); }

/* Selected day */
.day-panel {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  /* Leaves room for the top bar above and the audio dock below. */
  max-height: calc(100dvh - 76px - var(--dock-height));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.day-head {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.day-heading { min-width: 0; }
.day-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.day-actions .btn { padding: 0 8px; }

.session-list:not(:empty) { display: grid; gap: 6px; padding: 12px 12px 0; }
.session-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgb(255 178 36 / 0.4);
  border-radius: 8px;
  background: rgb(255 178 36 / 0.08);
}
.session-row .btn { flex: none; margin-right: 8px; }
.session-row .icon { width: 16px; height: 16px; }
.session-main {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.session-main:hover .session-name { text-decoration: underline; }
.session-main > .icon { width: 20px; height: 20px; color: var(--accent); }
.session-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.day-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.day-head p { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 2px; }

.file-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.file-row { display: flex; align-items: center; gap: 2px; border-radius: 8px; }
.file-row:hover { background: var(--panel-raised); }
.file-row.is-playing { background: var(--kind-bg); }
.file-main {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  min-width: 0;
  min-height: 60px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.file-main.is-static { cursor: default; }
.file-main:focus-visible { outline-offset: -2px; }
.tile {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--kind-bg);
  color: var(--kind);
}
.tile .hover-icon { display: none; }
@media (hover: hover) {
  .file-main:not(.is-static):hover .tile { background: var(--kind); color: var(--bg); }
  .file-main:not(.is-static):hover .kind-icon { display: none; }
  .file-main:not(.is-static):hover .hover-icon { display: block; }
}
.file-text { display: grid; gap: 2px; min-width: 0; }
.file-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.file-meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.file-meta b { color: var(--kind); font-weight: 600; }

.day-empty {
  display: grid;
  gap: 2px;
  margin: 12px;
  padding: 36px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.drag-hint { font-size: 13px; }
@media (hover: none) {
  .drag-hint { display: none; }
}

.drop-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--accent);
  border-radius: 10px;
  background: rgb(31 21 3 / 0.92);
  color: var(--accent);
  font-weight: 600;
  pointer-events: none;
}
.drop-overlay .icon { width: 28px; height: 28px; }
.day-panel.is-drop-target .drop-overlay { display: flex; }

/* Session page */
.session-page { max-width: 760px; margin: 0 auto; padding-top: 8px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  margin-left: -6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { color: var(--text); }
.back-link .icon { width: 18px; height: 18px; }
.session-date { margin-top: 12px; color: var(--accent); font-size: 14px; font-weight: 600; }
.session-title {
  margin-top: 4px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.session-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn.delete-text { color: var(--danger); margin-left: auto; }
.btn.delete-text:hover { background: rgb(255 123 114 / 0.12); }
.session-guest { margin-top: 12px; color: var(--muted); font-size: 14px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.session-panel { position: relative; top: 0; max-height: none; overflow: visible; margin-top: 16px; }
.session-panel .file-list { overflow: visible; }
.session-usage { margin-top: 12px; }
.session-problem {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
}

/* Upload tray */
.tray {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--dock-height));
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-height: 46dvh;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-raised);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.5);
}
.tray-title {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
}
.tray-list { overflow-y: auto; }
.task { display: grid; gap: 6px; padding: 10px 8px 10px 14px; }
.task + .task { border-top: 1px solid var(--line); }
.task-top { display: flex; align-items: center; gap: 2px; min-width: 0; }
.task-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar {
  height: 4px;
  margin-right: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}
.task.is-done .bar i { background: #7ddc9c; }
.task.is-error .bar i { background: var(--danger); }
.task-status { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.task.is-error .task-status { color: var(--danger); }

/* Audio dock */
.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: var(--panel-raised);
}
.dock-info { display: grid; flex: 0 1 300px; min-width: 0; }
.dock-label { color: var(--audio); font-size: 12px; font-weight: 600; }
.dock-title {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dock audio { flex: 1; min-width: 0; height: 44px; }
.dock-error { flex: 1; color: var(--danger); font-size: 14px; }
.dock-actions { display: flex; flex: none; }

/* Video and image viewer */
.viewer {
  width: min(1200px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #000;
  color: var(--text);
}
.viewer::backdrop { background: rgb(6 5 4 / 0.88); }
.viewer-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 16px;
  background: var(--panel);
}
.viewer-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-body { display: grid; place-items: center; min-height: 240px; }
.viewer-body video,
.viewer-body img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 56px);
  object-fit: contain;
}
.viewer-note {
  max-width: 44ch;
  padding: 32px 24px;
  color: var(--muted);
  text-align: center;
}
.viewer-note a { color: var(--accent); font-weight: 600; }

/* Delete confirmation */
.confirm {
  width: min(400px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-raised);
  color: var(--text);
}
.confirm::backdrop { background: rgb(6 5 4 / 0.7); }
.confirm h2 { font-size: 18px; margin-bottom: 6px; }
.confirm p { color: var(--muted); overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Settings */
.settings { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.settings-head { display: flex; align-items: center; justify-content: space-between; margin: -6px -6px 6px 0; }
.settings-head h2 { margin: 0; }
.settings-id strong { color: var(--text); font-weight: 600; margin-left: 6px; }
.settings-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.settings-form h3 { margin: 0; font-size: 15px; }
.settings-form p { font-size: 14px; }
.settings-form .form-error { color: var(--danger); }
.settings-form .confirm-actions { margin-top: 4px; }
.settings-form.bare { margin: 0; padding: 0; border: 0; }
.settings-form.bare h2 { margin: 0; }

.toast {
  position: fixed;
  bottom: calc(20px + var(--dock-height));
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transform: translateX(-50%);
}

@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .day-panel { position: relative; top: 0; max-height: none; overflow: visible; }
  .file-list { overflow: visible; }
  .day, .day-filler { min-height: 92px; }
}

@media (max-width: 640px) {
  body.has-dock { --dock-height: 124px; }
  .shell { padding: 0 16px 24px; }
  .topbar { min-height: 52px; }
  .who { gap: 6px; }
  .who .btn.small { padding: 0 9px; }
  .layout { gap: 16px; }
  .month-head { margin-bottom: 10px; }
  .month-title { font-size: 24px; }
  .weekdays span { padding-left: 0; text-align: center; }
  .calendar-foot { display: grid; }
  .day, .day-filler { min-height: 54px; }
  .day { align-items: center; gap: 3px; padding: 4px 2px; }
  .day-num { min-width: 24px; height: 24px; font-size: 13px; }
  /* There's only room for one session name here. */
  .session-tag { padding: 0 3px; border-radius: 3px; font-size: 10px; line-height: 14px; }
  .session-tag + .session-tag { display: none; }
  /* Chips shrink to colored dots. The selected day's panel has the details. */
  .chips { flex-wrap: nowrap; justify-content: center; gap: 3px; }
  .chip { width: 6px; height: 6px; padding: 0; border-radius: 50%; background: var(--kind); }
  .chip > * { display: none; }

  .day-head { padding: 14px 12px; }
  .day-head h2 { font-size: 17px; }
  .session-list:not(:empty) { padding: 8px 8px 0; }
  .file-list { padding: 4px; }
  .file-main { gap: 10px; padding: 8px 6px; }
  .tile { width: 40px; height: 40px; }

  .dock { flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; }
  .dock-info { flex: 1 1 0; }
  .dock audio, .dock-error { flex: 1 0 100%; order: 3; }

  .tray { right: 16px; }
  .viewer { border: 0; border-radius: 0; }
  .viewer-bar { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eq i { transform: scaleY(0.6); }
}
