:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1b3028;
  background: #e9ede6;
  color-scheme: light;
  --bg: #f7f8f2;
  --surface: #fffef8;
  --ink: #1b3028;
  --muted: #56665d;
  --line: #cad3c8;
  --accent: #1d5b40;
  --button-ink: #fff;
  --soft: #e6ecdf;
  --danger: #a92f24;
  --shadow: 0 12px 40px #193d2710;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a36a0e;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
}
.recorder {
  max-width: 760px;
  margin: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(20px + env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    calc(108px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 100% 0%, #71937314, transparent 34%), var(--bg);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
}
.brand,
.version {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  font-weight: 750;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.version {
  color: var(--muted);
  text-align: right;
}
.page-heading {
  padding: 28px 0 23px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.69rem;
  letter-spacing: 0.13em;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 7px;
  font-weight: 650;
}
h1 {
  font:
    normal clamp(2.9rem, 12vw, 4.1rem)/1.05 Georgia,
    serif;
  letter-spacing: -0.06em;
  margin: 0;
  overflow-wrap: anywhere;
}
h2 {
  font:
    normal 1.45rem/1.25 Georgia,
    serif;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
h3 {
  font-size: 0.95rem;
}
p {
  line-height: 1.6;
}
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin: 16px 0 7px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  max-width: 100%;
}
textarea {
  resize: vertical;
}
button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--button-ink);
  background: var(--accent);
  line-height: 1.3;
}
button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
button.text-button {
  background: none;
  color: var(--accent);
  padding-left: 4px;
  padding-right: 4px;
}
button.danger {
  color: var(--danger);
}
button.stop {
  background: var(--danger);
  color: white;
}
.button-row,
.search-row,
.filters,
.export-grid {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button-row > * {
  flex: 1;
  min-width: 0;
}
.button-row label {
  margin: 0;
}
.search-row input {
  flex: 1;
  min-width: 0;
}
.search-row button {
  flex: 0 0 auto;
}
.filters > label {
  flex: 1;
  min-width: 0;
}
.primary {
  width: 100%;
}
.search-row .primary {
  width: auto;
}
.export-grid {
  flex-wrap: wrap;
}
.export-grid > * {
  flex: 1;
}
.bottom-nav {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, 100%);
  padding: 9px max(8px, env(safe-area-inset-right))
    calc(9px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px #193d2706;
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  min-height: 52px;
  padding: 6px 2px;
  border-radius: 7px;
}
.bottom-nav button span {
  font-size: 1.1rem;
  line-height: 1.1;
}
.bottom-nav button[aria-current] {
  color: var(--accent);
  background: var(--soft);
}
#browser-panel {
  margin: 18px 0 0;
  padding: 24px 20px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, #ffffff40, transparent 40%), var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.record-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.state,
.local-label {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  font-weight: 750;
}
.state:before {
  content: "●";
  margin-right: 7px;
  color: var(--muted);
}
.is-recording .state {
  color: var(--danger);
}
.is-recording .state:before {
  color: var(--danger);
}
.local-label {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.title-input {
  margin: 20px 0 0;
  text-align: center;
  border-color: transparent;
  background: transparent;
  font-size: 1rem;
}
.duration {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 350;
  font-size: clamp(3.4rem, 16vw, 4.9rem);
  letter-spacing: -0.065em;
  margin: 6px 0 14px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.is-recording .duration {
  color: var(--danger);
}
meter {
  display: block;
  width: 108px;
  height: 5px;
  margin: 0 auto 28px;
  appearance: none;
  border-radius: 4px;
  background: var(--soft);
}
meter::-webkit-meter-bar {
  background: var(--soft);
  border: 0;
  height: 5px;
}
meter::-webkit-meter-optimum-value {
  background: var(--accent);
}
meter::-moz-meter-bar {
  background: var(--accent);
}
.record-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  margin: 0 auto 23px;
  border: 7px solid var(--surface);
  outline: 1px solid var(--line);
  box-shadow: 0 0 0 6px var(--soft);
  background: var(--danger);
  color: white;
  font-weight: 650;
  font-size: 0.84rem;
}
.record-dot {
  display: block;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #fff;
}
.record-orb:focus-visible {
  outline: 3px solid #a36a0e;
  outline-offset: 7px;
}
.capture-help {
  font-size: 0.77rem;
  max-width: 340px;
  margin: 18px auto;
  color: var(--muted);
  min-height: 38px;
}
.consent-note {
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin: 0 -20px;
  padding: 13px 14px;
  background: var(--soft);
}
#active-controls .button-row {
  margin-top: 10px;
}
#active-controls .text-button {
  margin: 8px 0;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  text-align: left;
}
summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.87rem;
  font-weight: 650;
  cursor: pointer;
  gap: 12px;
}
summary:after {
  content: "+";
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 400;
}
details[open] > summary:after {
  content: "−";
}
details p,
.muted,
.privacy-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}
.privacy-footnote {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 15px;
}
details button {
  margin: 12px 0 4px;
}
#browser-panel details {
  padding: 4px 0 10px;
  border: 0;
}
.notice {
  padding: 12px 15px;
  margin-top: 16px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  font-size: 0.84rem;
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: var(--danger);
}
.empty-state {
  padding: 32px 8px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  text-align: center;
}
.item-list {
  margin-top: 19px;
}
.library-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.library-item .item-open {
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  width: 100%;
  font-size: 1.15rem;
  min-height: 48px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.item-meta {
  display: block;
  font-size: 0.67rem;
  font-weight: 550;
  letter-spacing: 0.055em;
  color: var(--muted);
  margin-top: 8px;
}
.library-item p {
  margin: 7px 0 0;
}
.tags {
  font-size: 0.76rem;
  color: var(--accent);
}
.library-item > .secondary {
  margin: 8px 10px 0 0;
}
.excerpt {
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  margin-top: 12px;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.65;
  font-weight: 400;
}
.back {
  margin-top: 18px;
}
.view#view-detail > h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  margin: 12px 0 22px;
  line-height: 1.2;
}
.view#view-detail > .button-row {
  margin: 15px 0;
}
#detail-player audio {
  width: 100%;
  min-height: 54px;
}
#detail-player video,
#detail-player img {
  display: block;
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 12px;
  background: #14271e;
}
#detail-player:empty {
  display: none;
}
.player-tools select {
  padding: 8px;
}
.player-tools label {
  text-align: center;
  font-size: 0.65rem;
}
.timeline button {
  text-align: left;
  font-weight: 450;
  background: transparent;
  color: var(--ink);
  margin: 0;
  width: 100%;
  border-radius: 0;
}
.timeline-bookmark {
  border-bottom: 1px solid var(--line) !important;
  color: var(--accent) !important;
}
.transcript-row {
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.transcript-row .text-button {
  min-width: 44px;
  width: auto;
  font-size: 0.7rem;
  min-height: 44px;
  padding: 5px 10px;
  color: var(--muted);
}
.timeline .current {
  background: var(--soft);
  border-radius: 7px;
}
.transcript-text {
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  max-width: calc(100% - 32px);
  width: 430px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #10271dc0;
}
dialog p {
  font-size: 0.92rem;
}
dialog h2 {
  margin-top: 0;
}
dialog .button-row {
  margin-top: 22px;
}
.connection {
  margin-top: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.connection-heading,
.status-line,
.compact > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: var(--muted);
}
.battery {
  font-size: 0.76rem;
  font-weight: 650;
}
.light {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin: 10px 0;
}
.light.connected {
  color: var(--accent);
}
.light.disconnected,
.warning,
.recording {
  color: var(--danger);
}
.device {
  font-size: 0.8rem;
  color: var(--muted);
}
.status-line {
  font-size: 0.76rem;
  padding: 12px 0;
}
.status-line strong {
  text-align: right;
}
.recording-state {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.elapsed {
  font:
    500 2.8rem ui-monospace,
    monospace;
  margin: 15px 0;
}
.controls {
  padding: 20px 0;
}
.controls h2 {
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 750;
}
.controls p {
  font-size: 0.84rem;
  color: var(--muted);
}
.controls button {
  width: 100%;
  margin-top: 10px;
}
.photo-preview {
  display: block;
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  margin: 15px auto;
}
.compact {
  padding: 20px 0;
}
.compact > div {
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 8px 0;
}
.compact > div span {
  text-align: right;
}
.compact p {
  font-size: 0.78rem;
  color: var(--muted);
}
.check {
  padding: 20px 0;
  display: grid;
  gap: 12px;
}
.check p {
  font-size: 0.8rem;
}
.check button {
  width: 100%;
}
dl {
  font-size: 0.76rem;
  line-height: 1.6;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  font-weight: 650;
}
dd {
  margin: 0;
  text-align: right;
  max-width: 60%;
  overflow-wrap: anywhere;
}
.events {
  font-size: 0.76rem;
  line-height: 1.7;
  max-height: 220px;
  overflow: auto;
  padding-left: 20px;
}
.test-result {
  font-size: 0.76rem;
}
.settings select {
  margin-bottom: 10px;
}
.settings button {
  width: 100%;
}
button:hover:not(:disabled) {
  filter: brightness(0.94);
}
.bottom-nav button:hover:not(:disabled),
.text-button:hover:not(:disabled) {
  background: var(--soft);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13221c;
  --surface: #1b2c24;
  --ink: #ecf1e7;
  --muted: #b4c2b7;
  --line: #3b5143;
  --accent: #bad69d;
  --button-ink: #15251b;
  --soft: #2a4032;
  --danger: #e86e60;
  --shadow: 0 12px 40px #0001;
  color: var(--ink);
  background: #0d1913;
}
:root[data-theme="dark"] .bottom-nav button {
  color: var(--muted);
}
:root[data-theme="dark"] .bottom-nav button[aria-current] {
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #13221c;
    --surface: #1b2c24;
    --ink: #ecf1e7;
    --muted: #b4c2b7;
    --line: #3b5143;
    --accent: #bad69d;
    --button-ink: #15251b;
    --soft: #2a4032;
    --danger: #e86e60;
    --shadow: 0 12px 40px #0001;
    color: var(--ink);
    background: #0d1913;
  }
  :root:not([data-theme="light"]) .primary {
    color: #15251b;
  }
  :root:not([data-theme="light"]) .stop {
    color: white;
  }
}
@media (min-width: 700px) {
  .recorder {
    padding-left: 55px;
    padding-right: 55px;
  }
  .page-heading {
    padding: 34px 0 26px;
  }
  #browser-panel {
    padding: 30px 50px 0;
  }
  .consent-note {
    margin: 0 -50px;
    padding: 15px;
  }
  .record-orb {
    width: 142px;
    height: 142px;
  }
  .bottom-nav {
    padding-left: 40px;
    padding-right: 40px;
  }
  .bottom-nav button {
    font-size: 0.74rem;
  }
  .duration {
    font-size: 5rem;
  }
}
@media (max-width: 350px) {
  .recorder {
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand,
  .version {
    font-size: 0.55rem;
  }
  #browser-panel {
    padding-left: 15px;
    padding-right: 15px;
  }
  .consent-note {
    margin-left: -15px;
    margin-right: -15px;
  }
  .button-row {
    gap: 6px;
  }
  button {
    padding-left: 10px;
    padding-right: 10px;
  }
  .source-picker label {
    font-size: 0.72rem;
  }
  .duration {
    font-size: 3.7rem;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .record-orb {
    width: 90px;
    height: 90px;
  }
  .duration {
    font-size: 3rem;
  }
  .page-heading {
    padding: 15px 0;
  }
  .bottom-nav {
    position: sticky;
    transform: none;
    margin: 20px -10px -60px;
    left: auto;
    width: calc(100% + 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.caption-text {
  max-height: 360px;
  overflow: auto;
  font-size: 0.84rem;
  line-height: 1.6;
}
.caption-text p {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.view a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.6;
}
.view a[href^="mailto"] {
  overflow-wrap: anywhere;
}
@media print {
  body {
    background: white;
    color: black;
  }
  .recorder {
    padding: 0;
    max-width: none;
    background: white;
  }
  .masthead,
  .bottom-nav,
  #notice,
  .view:not(#view-detail),
  #detail-back,
  #view-detail button,
  #detail-player,
  .player-tools,
  #view-detail .button-row,
  #view-detail input,
  #view-detail select,
  #view-detail label,
  #transcript-search,
  #detail-attachments,
  dialog {
    display: none !important;
  }
  #view-detail {
    display: block !important;
  }
  #view-detail details {
    display: block;
    border: 0;
  }
  #view-detail details > summary {
    font-size: 1.1rem;
    border-bottom: 1px solid #999;
  }
  #view-detail details > summary:after {
    display: none;
  }
  .timeline .transcript-text,
  .timeline .timeline-bookmark {
    display: block !important;
    color: black !important;
    border: 0 !important;
  }
  .transcript-row .text-button {
    display: none !important;
  }
  #edit-notes {
    display: block !important;
    border: 0;
    min-height: 120px;
    background: white;
    color: black;
  }
  h1 {
    font-size: 26pt !important;
  }
  .eyebrow,
  .muted {
    color: #333 !important;
  }
  #view-detail details:last-of-type {
    display: none;
  }
  #view-detail .notice {
    display: none !important;
  }
}
.batch-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 44px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.7rem;
}
.batch-checkbox input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.print-report-content {
  display: none;
}
@media print {
  body > .recorder {
    display: none !important;
  }
  .print-report-content {
    display: block !important;
    color: #111;
    padding: 25px;
    font:
      12pt/1.5 Georgia,
      serif;
  }
  .print-report-content p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .print-report-content h1 {
    font-size: 26pt;
  }
  .print-report-content h2 {
    break-after: avoid;
  }
}
.app-logo {
  flex: 0 0 44px;
  border-radius: 11px;
}
.masthead .brand {
  margin-right: auto;
}
.masthead {
  gap: 12px;
}
@media (max-width: 350px) {
  .masthead {
    gap: 8px;
  }
  .app-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}
.capture-banner {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 12;
  background: var(--danger);
  color: white;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 9px;
  margin-top: 15px;
  font-size: 0.78rem;
  font-weight: 650;
}
.capture-banner > span {
  line-height: 1.5;
}
.capture-banner button {
  background: #fff;
  color: #7f231b;
  min-width: 115px;
  font-size: 0.72rem;
  padding: 8px;
}
/* The recording console is a single viewport. Details live in Settings. */
body[data-screen="record"] { height:100vh; height:100dvh; overflow:hidden; }
body[data-screen="record"] .recorder {
  height:100vh; height:100dvh; min-height:0; display:flex; flex-direction:column;
  padding:calc(12px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(82px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
}
body[data-screen="record"] .masthead { flex:0 0 auto; padding-bottom:10px; }
.record-console { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; gap:8px; padding-top:16px; }
.record-metrics { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex:0 0 auto; }
.record-metrics section { min-width:0; }
.record-metrics .label { font-size:.65rem; letter-spacing:.12em; }
.record-metrics p { margin:5px 0 0; font-size:clamp(1rem,3.5vw,1.35rem); line-height:1.25; font-weight:750; }
.record-battery { text-align:right; }
.record-connection .light { margin:5px 0 0; font-size:clamp(.85rem,3.5vw,1.2rem); }
.record-console .warning { flex:0 0 auto; margin:0; font-size:.72rem; }
.record-action { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.record-action .capture-button {
  flex:0 1 auto; width:min(52vw,26dvh,210px); height:min(52vw,26dvh,210px); min-width:80px; min-height:80px;
  border-radius:50%; border:2px solid var(--line); background:var(--surface); color:var(--ink);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:14px;
  font-size:1rem; font-weight:700; box-shadow:0 8px 32px #183c2710;
}
.record-action .capture-button::before { content:""; width:32%; aspect-ratio:1; border-radius:50%; background:var(--danger); }
.record-action .capture-button.stop { background:var(--danger); color:white; border-color:var(--danger); }
.record-action .capture-button.stop::before { border-radius:5px; background:white; }
.record-action .capture-button:disabled { opacity:.5; }
.record-action .elapsed { margin:0; font:600 1.2rem/1.2 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.record-hint { flex:0 0 auto; margin:0; text-align:center; font-size:.84rem; line-height:1.35; color:var(--muted); }
.device-detail { overflow-wrap:anywhere; margin-bottom:20px; }
.device-detail h2 { font-size:.85rem; }
.photo-settings button { margin-top:12px; }
@media(max-height:500px) {
  body[data-screen="record"] .recorder { padding-top:6px; padding-bottom:calc(68px + env(safe-area-inset-bottom)); }
  body[data-screen="record"] .masthead { padding-bottom:4px; }
  .record-console { padding-top:8px; gap:4px; }
  .record-action { flex-direction:row; gap:18px; }
  .record-action .capture-button { width:min(26dvh,120px); height:min(26dvh,120px); gap:8px; font-size:.8rem; padding:10px; }
  .record-action .elapsed { font-size:1rem; }
  .record-metrics p { font-size:.95rem; }
  .record-hint { font-size:.75rem; }
}

.record-overview { flex:0 0 auto; display:grid; gap:12px; }
.record-options { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.record-options label { display:block; margin:0 0 5px; font-size:.65rem; letter-spacing:.08em; }
.record-options select { width:100%; min-width:0; min-height:44px; margin:0; padding:9px 8px; font-size:.8rem; }
@media(max-height:500px) {
  .record-overview { grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); align-items:center; gap:20px; }
  .record-options { gap:8px; }
}
