:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0d1425;
  color: #e5edf9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 780px;
  margin: auto;
  padding: 24px 18px 60px;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
a {
  color: #9ac8ff;
}
h1 {
  font-size: 2rem;
}
section {
  background: #172238;
  border: 1px solid #34425c;
  padding: 22px;
  border-radius: 18px;
  margin: 22px 0;
}
label {
  display: block;
  margin: 16px 0 7px;
}
input,
select,
button {
  font: inherit;
  border-radius: 9px;
  border: 1px solid #52617c;
  padding: 13px;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  background: #101a2c;
  color: inherit;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}
.hint,
small {
  color: #b2c1d8;
  line-height: 1.6;
}
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
button {
  background: #92c9ff;
  color: #07192d;
  cursor: pointer;
  min-height: 48px;
  font-weight: 650;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.secondary {
  background: #263650;
  color: #e5edf9;
}
#clock {
  display: block;
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}
.recording #clock {
  color: #ff9d9d;
}
.row {
  padding: 15px 0;
  border-bottom: 1px solid #34425c;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.row strong {
  flex: 1;
  min-width: 180px;
}
.error {
  color: #ffb2b2;
}
dialog {
  color: inherit;
  background: #172238;
  border: 1px solid #52617c;
  border-radius: 16px;
  width: min(740px, 94vw);
  max-height: 90vh;
  padding: 24px;
}
dialog::backdrop {
  background: #000a;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.6;
}
details {
  line-height: 1.6;
  margin: 18px 0;
}
summary {
  cursor: pointer;
}
#status,
#upload {
  min-height: 1.5em;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
@media (max-width: 480px) {
  main {
    padding: 18px 12px;
  }
  section {
    padding: 18px;
  }
  .controls button {
    flex: 1;
  }
  h1 {
    font-size: 1.7rem;
  }
}

[hidden] {
  display: none !important;
}
.note-text {
  white-space: pre-wrap;
  background: #0d1425;
  border: 1px solid #34425c;
  border-radius: 12px;
  padding: 12px;
}
.note-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
