:root {
  color-scheme: light;
  --ink: #172522;
  --ink-soft: #344943;
  --forest: #155b45;
  --forest-deep: #0d4032;
  --forest-soft: #dcece5;
  --sky: #65afe0;
  --sky-soft: #e4f3fb;
  --coral: #ed6658;
  --coral-deep: #c94d42;
  --coral-soft: #fde9e6;
  --lilac: #ded4ec;
  --lilac-deep: #6e5a83;
  --gold: #f5b820;
  --gold-soft: #fff4c9;
  --paper: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --line: #cddbd5;
  --line-strong: #9db8ad;
  --muted: #60736c;
  --danger: #b63e4c;
  --success: #18724d;
  --shadow-soft: 0 8px 22px rgba(23, 37, 34, 0.08);
  --shadow-raised: 0 18px 46px rgba(23, 37, 34, 0.14);
  --radius: 8px;
  --bottom-nav-height: 72px;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  letter-spacing: 0;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(21, 91, 69, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 91, 69, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  color: var(--forest-deep);
  font-size: 34px;
  line-height: 1;
}

h2 {
  color: var(--ink);
  font-size: 31px;
  line-height: 1.05;
}

h3 {
  font-size: 17px;
  line-height: 1.2;
}

.app {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 18px);
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  border-bottom: 1px solid rgba(21, 91, 69, 0.18);
  background: var(--surface);
  isolation: isolate;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 4px 4px 0 var(--gold);
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #ffffff;
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) {
  height: 11px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
  height: 20px;
}

.brand-mark i:nth-child(3) {
  height: 29px;
}

.topbar-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(58vw, 760px);
  height: 100%;
  background-image: url("./assets/voice-river-texture.jpg");
  background-position: 68% 25%;
  background-size: 930px auto;
  opacity: 0.92;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}

.shell {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.collector {
  overflow: hidden;
}

.queue {
  padding: 16px;
}

.progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--forest-deep);
}

.progress::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 25px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 760;
}

.progress-step span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: var(--forest-deep);
  font-size: 12px;
}

.progress-step.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.progress-step.active span {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--forest-deep);
  box-shadow: 0 0 0 4px rgba(245, 184, 32, 0.15);
}

form {
  position: relative;
}

.form-step {
  display: none;
  padding: 20px;
}

.form-step.active {
  display: block;
  animation: step-reveal 260ms ease both;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.section-head h2::before {
  display: block;
  margin-bottom: 6px;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

[data-step="1"] .section-head h2::before {
  content: "Step one";
}

[data-step="2"] .section-head h2::before {
  content: "Step two";
}

.section-head.compact {
  align-items: center;
}

.section-head.compact h2 {
  font-size: 27px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.segment {
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.segment.active {
  background: var(--surface);
  color: var(--forest-deep);
  box-shadow: 0 4px 12px rgba(23, 37, 34, 0.09);
}

.segment:active {
  transform: translateY(1px);
}

.source-pane {
  display: none;
}

.source-pane.active {
  display: block;
  animation: source-reveal 220ms ease both;
}

.intent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 9px;
}

.intent-chip-static {
  border: 1px solid #d8cbe5;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--lilac-deep);
  font-size: 11px;
  font-weight: 760;
  padding: 4px 9px;
}

.intent-chip-static:nth-child(2) {
  border-color: #f4d878;
  background: var(--gold-soft);
  color: #745600;
}

.intent-chip-static:nth-child(3) {
  border-color: #a9d4ec;
  background: var(--sky-soft);
  color: #235f83;
}

.intent-chip-static:nth-child(4) {
  border-color: #b7d5c8;
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.recorder {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 136px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--forest-deep);
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: #ffffff;
  isolation: isolate;
}

.recorder::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background-image: url("./assets/voice-river-texture.jpg");
  background-position: 70% 30%;
  background-size: 740px auto;
  opacity: 0.25;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}

.record-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(237, 102, 88, 0.2);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.record-button:hover {
  transform: scale(1.035);
  background: #f1786d;
}

.record-button:active {
  transform: scale(0.98);
}

.record-button span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  transition: border-radius 160ms ease, transform 160ms ease;
}

.record-button.recording {
  background: var(--coral-deep);
  box-shadow: 0 0 0 8px rgba(237, 102, 88, 0.22);
  animation: record-pulse 1.6s ease-in-out infinite;
}

.record-button.recording span {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.recorder strong,
.recorder time {
  display: block;
}

.recorder time {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.rerecord-button {
  min-height: 36px !important;
  margin-top: 10px;
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: transparent !important;
  color: #ffffff !important;
  padding: 6px 10px !important;
}

.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 140px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px dashed var(--forest);
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: var(--forest-deep);
  padding: 18px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.file-drop:hover {
  border-color: var(--coral);
  background: #edf8fd;
  transform: translateY(-1px);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop strong,
.file-drop small {
  display: block;
}

.file-drop strong {
  max-width: 300px;
}

.file-drop small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 46px;
  margin-bottom: 9px;
  border: 2px solid var(--forest);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--gold);
}

.file-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 14px;
  height: 2px;
  background: var(--sky);
  box-shadow: 0 7px 0 var(--coral), 0 14px 0 var(--forest);
}

.media-preview,
.image-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  margin: 0 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  object-fit: contain;
}

.grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 780;
}

.field-help,
.translation-tools small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(21, 91, 69, 0.1);
  background: #ffffff;
}

button:focus-visible {
  outline: 3px solid rgba(101, 175, 224, 0.5);
  outline-offset: 2px;
}

.translation-tools {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: -3px 0 15px;
  padding: 10px;
  border-left: 4px solid var(--lilac-deep);
  background: #f7f2fb;
}

.translation-tools .button {
  min-height: 40px;
  white-space: nowrap;
}

input[type="range"] {
  height: 36px;
  padding: 0;
  accent-color: var(--coral);
}

.age-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.age-range output {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #d8cbe5;
  border-radius: 6px;
  background: var(--lilac);
  color: var(--lilac-deep);
  font-weight: 800;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: var(--forest-soft);
  color: var(--forest);
}

.pin-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 3px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pin-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}

.review-grid {
  display: grid;
  gap: 9px;
}

.review-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: 6px;
  background: var(--sky-soft);
  padding: 11px;
}

.review-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.review-item strong {
  overflow-wrap: anywhere;
}

.step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.primary-actions,
.queue-actions {
  margin-top: 14px;
}

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 15px;
  font-weight: 780;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  border-color: var(--forest);
  background: var(--forest);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--sky);
}

.button.primary:hover {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
}

.button.secondary {
  border-color: #9fcbe4;
  background: var(--sky-soft);
  color: #245d7e;
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.button.danger {
  color: var(--danger);
}

.count-pill {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.stats-strip div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 10px;
}

.stats-strip div:nth-child(1) {
  border-top: 4px solid var(--sky);
}

.stats-strip div:nth-child(2) {
  border-top: 4px solid var(--coral);
}

.stats-strip div:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.stats-strip span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.empty-state {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background-color: var(--surface-soft);
  background-image: url("./assets/voice-river-texture.jpg");
  background-position: 82% 44%;
  background-size: 620px auto;
  opacity: 0.72;
}

.queue-item {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sky);
  border-radius: 6px;
  background: var(--surface);
  padding: 12px;
  animation: queue-reveal 240ms ease both;
}

.queue-item.error {
  border-left-color: var(--danger);
}

.queue-item.synced {
  border-left-color: var(--success);
}

.queue-item.syncing {
  border-left-color: var(--sky);
}

.queue-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.queue-item h3 {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.queue-item p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
}

.mini-pill.error {
  border-color: #e6abb3;
  background: #fcecef;
  color: var(--danger);
}

.mini-pill.synced {
  border-color: #a7d0bd;
  background: #e3f2ea;
  color: var(--success);
}

.mini-pill.syncing {
  border-color: #9fcbe4;
  background: var(--sky-soft);
  color: #245d7e;
}

.queue-item .actions {
  gap: 7px;
}

.queue-item .button {
  min-height: 35px;
  padding: 6px 9px;
  font-size: 12px;
}

.queue-actions .button {
  width: 100%;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: var(--bottom-nav-height);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(23, 37, 34, 0.08);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav button.active {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.capture-icon,
.queue-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.capture-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.capture-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: currentColor;
}

.queue-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.queue-icon::before,
.queue-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.queue-icon::before {
  top: 5px;
}

.queue-icon::after {
  bottom: 5px;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 14px;
  right: 14px;
  bottom: calc(var(--bottom-nav-height) + 12px);
  display: none;
  border: 1px solid var(--forest-deep);
  border-radius: 6px;
  background: var(--forest-deep);
  color: #ffffff;
  padding: 12px 14px;
  box-shadow: var(--shadow-raised);
}

.toast.show {
  display: block;
  animation: toast-in 180ms ease both;
}

.consent-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 64, 50, 0.7);
  backdrop-filter: blur(8px);
}

.consent-modal.active {
  display: flex;
}

.consent-card {
  position: relative;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid var(--forest-deep);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 25px 20px 20px;
  box-shadow: var(--shadow-raised);
  animation: consent-in 240ms ease both;
}

.consent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--forest) 0 28%,
    var(--sky) 28% 52%,
    var(--coral) 52% 76%,
    var(--gold) 76% 100%
  );
}

.consent-card h2 {
  margin-bottom: 14px;
  color: var(--forest-deep);
  font-size: 34px;
}

.switch-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row > span {
  position: relative;
  display: block;
  width: 50px;
  height: 29px;
  border-radius: 999px;
  background: #b9c7c1;
  transition: background 160ms ease;
}

.switch-row > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(23, 37, 34, 0.25);
  transition: transform 160ms ease;
}

.switch-row input:checked + span {
  background: var(--forest);
}

.switch-row input:checked + span::after {
  transform: translateX(21px);
}

.switch-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

[data-view="capture"] [data-panel="queue"],
[data-view="queue"] [data-panel="capture"] {
  display: none;
}

@keyframes step-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes source-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes queue-reveal {
  from {
    opacity: 0;
    transform: translateX(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes record-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(237, 102, 88, 0.2);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(237, 102, 88, 0.08);
  }
}

@media (min-width: 720px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .app {
    padding-bottom: 30px;
  }

  .topbar {
    min-height: 126px;
  }

  h1 {
    font-size: 43px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    margin-top: 24px;
  }

  [data-view] [data-panel] {
    display: block;
  }

  .queue {
    position: sticky;
    top: 18px;
  }

  .queue-list {
    max-height: calc(100vh - 310px);
    overflow: auto;
    padding-right: 3px;
  }

  .bottom-nav {
    display: none;
  }

  .form-step {
    padding: 24px;
  }

  .step-actions {
    padding: 14px 24px;
  }

  .toast {
    left: auto;
    right: 28px;
    bottom: 28px;
    width: min(420px, calc(100vw - 56px));
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 84px;
  }

  .brand-lockup {
    width: calc(100% - 20px);
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    box-shadow: 3px 3px 0 var(--gold);
  }

  .brand-mark i:nth-child(1),
  .brand-mark i:nth-child(5) {
    height: 8px;
  }

  .brand-mark i:nth-child(2),
  .brand-mark i:nth-child(4) {
    height: 15px;
  }

  .brand-mark i:nth-child(3) {
    height: 22px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 27px;
  }

  .topbar-art {
    width: 65vw;
    background-position: 72% 27%;
    background-size: 690px auto;
    opacity: 0.82;
  }

  .shell {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .progress-step {
    min-height: 48px;
    font-size: 12px;
  }

  .progress-step span {
    width: 23px;
    height: 23px;
  }

  .form-step {
    padding: 15px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .recorder {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 116px;
    gap: 13px;
    padding: 14px;
  }

  .record-button {
    width: 62px;
    height: 62px;
  }

  .record-button span {
    width: 20px;
    height: 20px;
  }

  .recorder time {
    font-size: 30px;
  }

  .translation-tools {
    grid-template-columns: 1fr;
  }

  .translation-tools .button {
    width: 100%;
    white-space: normal;
  }

  .step-actions {
    position: static;
    padding: 10px 14px;
    box-shadow: none;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .queue {
    padding: 14px;
  }

  .stats-strip strong {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
