:root {
  --bg: #101113;
  --panel: #181a1d;
  --panel-soft: #222529;
  --text: #e8e4dc;
  --muted: #a39d92;
  --line: #303238;
  --line-strong: #4a4c52;
  --accent: #7ea69b;
  --accent-soft: #24342f;
  --danger: #e08b80;
  --danger-soft: #372320;
  --radius: 10px;
  --control-head-height: 42px;
  --tile-size: 68px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", sans-serif;
  background: var(--bg);
}

input {
  color: inherit;
}

button,
input,
audio {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.boot-shell,
.auth-shell {
  display: grid;
  min-height: 100vh;
  padding: 16px;
  place-items: center;
}

.boot-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.boot-panel,
.auth-panel {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boot-panel {
  justify-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.boot-mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 104px;
  padding: 20px 24px;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.boot-mark span {
  width: 10px;
  height: 62px;
  background: linear-gradient(180deg, #8ab7aa 0%, #6e958a 100%);
  border-radius: 999px;
  opacity: 0.72;
  transform: translateY(0) scaleY(0.5);
  transform-origin: center top;
  will-change: transform, opacity;
}

.boot-mark i {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(224, 139, 128, 0.12);
}

.boot-status {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-title {
  font-size: 24px;
  line-height: 1;
}

.auth-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.auth-field span {
  color: var(--muted);
}

.auth-field input {
  min-height: 38px;
  padding: 9px 11px;
  background: var(--panel-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.auth-field input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.auth-actions {
  display: grid;
  gap: 8px;
}

.auth-status {
  min-height: 16px;
  margin: 0;
}

.main-panel {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 12px;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.1;
}

.view-title {
  color: inherit;
  text-decoration: none;
}

.view-title:hover,
.view-title:focus-visible {
  color: var(--accent);
}

.status-text,
.status-line,
.muted {
  color: var(--muted);
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loading-indicator::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid rgba(126, 166, 155, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.status-text {
  overflow: hidden;
  max-width: 48vw;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-line {
  min-height: 18px;
  margin: 8px 0;
  font-size: 12px;
}

.status-line:empty {
  min-height: 0;
  margin: 0;
}

.toolbar-actions,
.delete-grid,
.class-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.toolbar-actions {
  margin-left: auto;
  min-width: 0;
  justify-content: flex-end;
}

.primary-button,
.ghost-button,
.danger-button,
.day-button,
.class-button,
.filter-button,
.filter-preset-button,
.tag-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.primary-button,
.ghost-button,
.danger-button,
.class-button {
  min-height: 32px;
  padding: 8px 10px;
  font-size: 13px;
}

.primary-button {
  color: #0e1513;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.primary-button.is-loading,
.ghost-button.is-loading,
.danger-button.is-loading,
.filter-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0.82;
  cursor: wait;
}

.filter-button.is-loading {
  justify-content: space-between;
}

.primary-button.is-loading::before,
.ghost-button.is-loading::before,
.danger-button.is-loading::before,
.filter-button.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading::before {
  border: 2px solid rgba(14, 21, 19, 0.28);
  border-top-color: #0e1513;
}

.ghost-button.is-loading::before,
.danger-button.is-loading::before,
.filter-button.is-loading::before {
  border: 2px solid rgba(232, 228, 220, 0.2);
  border-top-color: var(--accent);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ghost-button,
.class-button,
.day-button,
.filter-button,
.filter-preset-button {
  background: var(--panel);
}

.danger-button {
  color: var(--danger);
  background: var(--panel);
  border-color: var(--line-strong);
}

.toolbar-button.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 700;
}

.filter-label {
  margin: 8px 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 6px;
}

.filter-time-panel {
  display: grid;
  gap: 6px;
}

.filter-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.filter-time-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.filter-time-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-time-field input {
  min-width: 0;
  min-height: 32px;
  padding: 7px 9px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.filter-time-field input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.filter-time-field input::-webkit-calendar-picker-indicator {
  filter: invert(0.82);
  cursor: pointer;
}

.filter-time-select-wrap {
  position: relative;
}

.filter-time-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.filter-time-field select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 7px 31px 7px 9px;
  color: var(--text);
  appearance: none;
  background:
    linear-gradient(180deg, rgba(126, 166, 155, 0.09), rgba(126, 166, 155, 0.02)),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.filter-time-field select:hover {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(126, 166, 155, 0.12), rgba(126, 166, 155, 0.04)),
    var(--panel);
}

.filter-time-field select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.filter-time-field select option {
  color: var(--text);
  background: #15181b;
}

.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-preset-button {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.day-button,
.filter-button {
  min-height: 30px;
  padding: 7px 9px;
  text-align: left;
  font-size: 13px;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filter-button strong {
  color: var(--muted);
  font-size: 12px;
}

.toolbar-button:disabled,
.filter-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.day-button.active,
.filter-button.active,
.filter-preset-button.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 700;
}

.filter-button.active strong {
  color: var(--accent);
}

.badge,
.tag-button {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.recordings {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--tile-size) * 6), 1fr));
  align-items: start;
  gap: 10px;
  direction: rtl;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.recordings > .danger-button,
.recordings > .status-message {
  grid-column: 1 / -1;
}

.record-group,
.recordings > .danger-button,
.recordings > .status-message {
  width: 100%;
  direction: ltr;
}

.record-group {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.record-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.minute-select-checkbox {
  margin: 0;
}

.record-group-title {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-grid-shell {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.tile-grid-scale {
  width: max-content;
  transform-origin: left top;
}

.tile-grid-shell *,
.tile-grid {
  user-select: none;
  -webkit-user-select: none;
}

.tile-grid {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
}

.recordings.is-box-selecting,
.recordings.is-box-selecting * {
  cursor: crosshair;
}

.tile-selection-box {
  position: fixed;
  z-index: 25;
  border: 1px solid rgba(126, 166, 155, 0.92);
  background: rgba(126, 166, 155, 0.18);
  box-shadow: inset 0 0 0 1px rgba(126, 166, 155, 0.22);
  pointer-events: none;
}

.record-tile-shell {
  position: relative;
  flex: 0 0 var(--tile-size);
  width: var(--tile-size);
  height: var(--tile-size);
}

.record-tile-shell:hover,
.record-tile-shell:focus-within {
  z-index: 4;
}

.record-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #234339, #1c2f28);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.record-tile:focus,
.record-tile:focus-visible {
  outline: none;
}

.record-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%, rgba(255, 255, 255, 0.04));
  opacity: 0.55;
  pointer-events: none;
}

.record-tile::after {
  content: "";
}

.record-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 120ms ease;
  -webkit-user-drag: none;
}

.record-tile.has-image .record-tile-image {
  opacity: 1;
}

.record-tile-state {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.record-tile.is-playing .record-tile-state::before {
  content: "";
  position: absolute;
  left: var(--playback-progress-left, 4px);
  top: 5px;
  width: 1px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(16, 17, 19, 0.48), 0 0 10px rgba(126, 166, 155, 0.38);
}

.record-tile-time {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  padding: 2px 4px;
  color: var(--text);
  background: rgba(16, 17, 19, 0.7);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.record-tile-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: rgba(232, 228, 220, 0.82);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.record-download {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 6;
  width: 14px;
  height: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(232, 228, 220, 0.92);
  background: rgba(16, 17, 19, 0.72);
  border: 1px solid rgba(232, 228, 220, 0.16);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease;
}

.record-download svg {
  width: 8px;
  height: 8px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.record-tile-shell:hover .record-download,
.record-tile-shell:focus-within .record-download,
.record-download:hover,
.record-download:focus-visible {
  opacity: 1;
  border-color: rgba(126, 166, 155, 0.56);
  background: rgba(16, 17, 19, 0.9);
}

.record-download:focus,
.record-download:focus-visible {
  outline: none;
}

.record-tile.is-generating::after {
  content: "loading";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 4px 6px;
  color: var(--text);
  background: rgba(16, 17, 19, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  pointer-events: none;
  text-transform: lowercase;
}

.record-tile.is-generating::after,
.record-tile.is-tile-failed::after {
  transform: translate(-50%, -50%);
}

.record-tile.is-tile-failed::after {
  content: "no tile";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  padding: 4px 6px;
  color: var(--muted);
  background: rgba(16, 17, 19, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  pointer-events: none;
  text-transform: lowercase;
}

.record-tile:hover .record-tile-state {
  box-shadow: inset 0 0 0 1px #4f7668;
}

.record-tile.is-marked .record-tile-state {
  box-shadow: inset 0 0 0 1px rgba(126, 166, 155, 0.24);
}

.record-tile.is-marked .record-tile-badge {
  color: #0e1513;
  background: rgba(126, 166, 155, 0.92);
  box-shadow: 0 0 0 1px rgba(14, 21, 19, 0.52), 0 0 0 2px rgba(126, 166, 155, 0.28);
}

.record-tile.is-selected {
  z-index: 5;
}

.record-tile.is-selected .record-tile-state {
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 18px rgba(126, 166, 155, 0.18);
}

.bird-info-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  pointer-events: none;
}

.bird-info-panel[hidden] {
  display: none;
}

.bird-info-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.bird-info-card {
  width: min(152px, calc(100vw - 24px));
  aspect-ratio: 1;
  padding: 8px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 7px;
  background: rgba(17, 20, 22, 0.94);
  border: 1px solid rgba(126, 166, 155, 0.3);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
  pointer-events: auto;
}

.bird-info-card.is-folded {
  aspect-ratio: auto;
  min-height: 0;
  grid-template-rows: auto;
}

.bird-info-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.bird-info-toggle {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(126, 166, 155, 0.08);
  border: 1px solid rgba(126, 166, 155, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.bird-info-toggle:hover,
.bird-info-toggle:focus-visible {
  background: rgba(126, 166, 155, 0.16);
  border-color: rgba(126, 166, 155, 0.42);
}

.bird-info-toggle:focus,
.bird-info-toggle:focus-visible {
  outline: none;
}

.bird-info-thumb {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  color: rgba(210, 217, 212, 0.5);
  background:
    linear-gradient(180deg, rgba(126, 166, 155, 0.12), rgba(126, 166, 155, 0.03)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 58%);
  border: 1px dashed rgba(126, 166, 155, 0.28);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}

.bird-info-thumb.has-photo {
  padding: 0;
  background: #101315;
  border-style: solid;
}

.bird-info-thumb-label {
  position: relative;
  z-index: 1;
}

.bird-info-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.bird-info-thumb.has-photo .bird-info-image {
  opacity: 1;
}

.bird-info-thumb.has-photo .bird-info-thumb-label {
  display: none;
}

.bird-info-species,
.bird-info-common {
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bird-info-common {
  flex: 1 1 auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.bird-info-species {
  color: var(--muted);
  font-size: 11px;
}

.bird-info-card.is-folded .bird-info-thumb,
.bird-info-card.is-folded .bird-info-species {
  display: none;
}

.tag-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: 58px 12px 12px;
  background: rgba(3, 5, 6, 0.66);
  backdrop-filter: blur(3px);
}

.tag-overlay[hidden] {
  display: none;
}

.tag-dialog {
  width: min(520px, 100%);
  padding: 12px;
  background: #111416;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.tag-dialog-head,
.tag-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag-dialog-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-dialog h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-head-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dialog-head-actions-nowrap {
  flex-wrap: nowrap;
}

.tag-dialog-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 14px 0;
}

.tag-toggle {
  justify-content: center;
  min-height: 42px;
  color: var(--muted);
  background: var(--panel-soft);
  border-color: var(--line);
  border-radius: 11px;
  font-weight: 700;
}

.tag-toggle.is-on {
  color: #0e1513;
  background: var(--accent);
  border-color: var(--accent);
}

.tag-toggle.is-mixed {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft) 0 50%, var(--panel-soft) 50% 100%);
  border-color: #42645b;
}

.tag-toggle.is-saving {
  opacity: 0.7;
}

.tag-save-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.modal-dialog {
  width: min(640px, 100%);
}

.modal-panel-body {
  padding: 14px 0 0;
}

.modal-delete-grid {
  margin-top: 6px;
}

.tile-tooltip {
  position: fixed;
  z-index: 80;
  max-width: 260px;
  padding: 4px 7px;
  color: var(--text);
  background: rgba(16, 17, 19, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
  white-space: normal;
}

.tag-button {
  max-width: 150px;
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #42645b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-button.tag-muted {
  color: var(--muted);
  background: var(--panel-soft);
  border-color: var(--line);
}

.record-audio {
  width: 100%;
  height: 32px;
}

.status-message {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.recordings.is-loading {
  opacity: 0.58;
  pointer-events: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 8px;
}

@media (max-width: 760px) {
  .bird-info-panel {
    right: 8px;
    bottom: 8px;
  }

  .bird-info-card {
    width: min(128px, calc(100vw - 16px));
    padding: 7px;
  }

  .main-panel {
    padding: 8px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .toolbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .status-text {
    max-width: 100%;
    white-space: normal;
  }

  .toolbar-button {
    flex: 0 0 auto;
  }

  .recordings,
  .record-group {
    grid-template-columns: 1fr;
  }

  .recordings {
    grid-template-columns: 1fr;
  }

  .record-download {
    opacity: 0.88;
  }

  .tag-overlay {
    place-items: start center;
    padding-top: 86px;
  }

  .filter-time-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 10px;
  }

  .boot-panel,
  .auth-panel {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .toolbar-actions {
    gap: 5px;
  }
}
