:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --paper: #fff;
  --ink: #203c36;
  --muted: #79847d;
  --green: #174740;
  --line: #e5e9e1;
  --red: #a9423d;
  --amber: #94671f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #74a89b;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.shell {
  max-width: 1120px;
  margin: auto;
  padding: 0 48px;
}
.topbar {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  text-decoration: none;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1.1px;
}
.brandmark {
  width: 36px;
  height: 36px;
  fill: var(--green);
  stroke: none;
}
.brandmark path {
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}
.brand-divider {
  color: #c7d0c8;
  margin: 0 11px;
  font-weight: 300;
}
.brand-sub {
  font-size: 16px;
  letter-spacing: -0.35px;
  font-weight: 400;
  color: #67786f;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #65776a;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa79c;
}
.connection[data-state="online"] .status-dot {
  background: #4c8870;
  box-shadow: 0 0 0 3px #e7eee5;
}
.connection[data-state="offline"] {
  color: var(--amber);
}
.connection[data-state="offline"] .status-dot {
  background: #b98a40;
}
main {
  max-width: 572px;
  margin: 43px auto 69px;
}
.intro {
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #6b7869;
  margin: 0 0 21px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 53px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 0;
}
.intro-copy {
  color: #6c786d;
  line-height: 1.8;
  font-size: 14px;
  margin: 21px 0 30px;
}
.mobile-break {
  display: none;
}
.recorder {
  background: var(--paper);
  border: 1px solid #dfe6dc;
  border-radius: 20px;
  padding: 28px 32px 0;
  box-shadow:
    0 5px 6px #294b3502,
    0 16px 44px #294b3504;
}
.doctor-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.select-wrap {
  display: flex;
  align-items: center;
  position: relative;
  color: #829087;
}
.select-wrap > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.select-wrap .chevron {
  left: auto;
  right: 14px;
  color: #596e61;
}
select {
  appearance: none;
  width: 100%;
  padding: 15px 40px 15px 44px;
  border: 1px solid #dfe5dc;
  border-radius: 9px;
  background: #fcfdfb;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
select:disabled {
  color: #65776b;
  opacity: 0.8;
  cursor: default;
}
.clinic {
  margin: 8px 0 0 2px;
  color: #707b70;
  font-size: 11px;
}
.recording-display {
  text-align: center;
  padding: 33px 0 20px;
}
.recording-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: #69786b;
}
.recording-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #a2afa1;
}
.timer {
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 16px;
  color: #2c493f;
}
.timer span {
  color: #9fae9b;
  padding: 0 1px;
}
.waveform {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.waveform i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 3px;
  background: #ccd8c8;
  transition:
    height 0.09s linear,
    background 0.2s;
}
.level-label {
  font-size: 11px;
  color: #6c796b;
  margin: 13px 0 0;
  min-height: 16px;
}
.recording-display[data-state="recording"] .recording-dot {
  background: #bb5750;
  box-shadow: 0 0 0 4px #f8eae7;
  animation: breathe 2s ease-in-out infinite;
}
.recording-display[data-state="recording"] .recording-state {
  color: #a34943;
}
.recording-display[data-state="recording"] .waveform i {
  background: #659981;
}
.recording-display[data-state="saved"] .recording-dot {
  background: #4d8567;
}
.recording-actions {
  padding: 3px 0 24px;
}
.record-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.15s,
    transform 0.15s;
}
.record-button:hover:not(:disabled) {
  background: #235c50;
}
.record-button:active:not(:disabled) {
  transform: translateY(1px);
}
.start-icon {
  height: 10px;
  width: 10px;
  background: currentColor;
  border-radius: 100%;
  box-shadow: 0 0 0 3px #ffffff24;
}
.stop-icon {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
}
.stop-button {
  background: #a54942;
}
.stop-button:hover:not(:disabled) {
  background: #8f3934;
}
.save-status {
  font-size: 11px;
  color: #6c7b65;
  line-height: 1.6;
  text-align: center;
  margin: 12px 0 0;
  min-height: 18px;
}
.save-status[data-state="saved"] {
  color: #42765c;
}
.save-status[data-state="offline"] {
  color: var(--amber);
}
.error {
  font-size: 12px;
  line-height: 1.65;
  color: #9a3a34;
  background: #fbf1ed;
  border-radius: 8px;
  padding: 12px;
  margin: 13px 0 0;
}
.microphone-row {
  margin: 0 -32px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0e8;
  font-size: 12px;
  background: #fbfcf9;
  border-radius: 0 0 20px 20px;
}
.microphone-row > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6e7b67;
}
.microphone-row svg {
  width: 15px;
  height: 18px;
}
.text-button {
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 550;
  text-underline-offset: 4px;
}
.text-button:hover:not(:disabled) {
  text-decoration: underline;
}
.text-button span {
  margin-left: 5px;
  color: #6b886e;
}
.placement-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 13px;
  margin-top: 24px;
  color: #697a64;
}
.placement-tip svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.placement-tip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}
.consent-note {
  font-size: 10px;
  color: #737e6c;
  text-align: center;
  margin: 15px -12px 0;
  line-height: 1.8;
}
footer {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #e3e7dd;
  padding: 24px 0 29px;
  color: #76836c;
  font-size: 11px;
}
.footer-mark {
  font-size: 17px;
  color: #7f947a;
}
.footer-version {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #728168;
}
.recovery {
  display: flex;
  gap: 12px;
  margin: -3px -7px 24px;
  padding: 15px;
  background: #f6f5e9;
  border: 1px solid #eae7cc;
  border-radius: 10px;
}
.recovery-icon {
  font-size: 22px;
  color: #918545;
}
.recovery strong {
  font-size: 12px;
  font-weight: 600;
  color: #6f693a;
}
.recovery p {
  font-size: 11px;
  line-height: 1.7;
  color: #7a7148;
  margin: 5px 0;
}
.recovery-actions {
  display: flex;
  gap: 18px;
}
.recovery-actions button {
  font-size: 11px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 32px 25px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 100px #173c3526;
}
dialog::backdrop {
  background: #172f2a60;
  backdrop-filter: blur(4px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-top .eyebrow {
  font-size: 9px;
  margin: 0;
  letter-spacing: 1.5px;
}
.close-button {
  border: 0;
  background: none;
  padding: 0 3px;
  font-size: 26px;
  font-weight: 300;
  color: #7d897b;
  line-height: 1;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.dialog-copy {
  font-size: 13px;
  color: #6c7b65;
  line-height: 1.8;
  margin: 0;
}
.test-waveform {
  margin-top: 20px;
  height: 50px;
}
.test-status {
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #697d68;
  margin: 10px 0 20px;
  min-height: 20px;
}
audio {
  width: 100%;
  height: 42px;
  margin-bottom: 20px;
}
.local-note {
  font-size: 10px;
  text-align: center;
  color: #727f68;
  line-height: 1.8;
  margin: 18px 0 0;
}
@keyframes breathe {
  50% {
    box-shadow: 0 0 0 6px #f8eae780;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-height: 950px) {
  main {
    margin-top: 70px;
    margin-bottom: 95px;
  }
}
@media (max-width: 600px) {
  .shell {
    padding: 0 22px;
  }
  .topbar {
    height: 83px;
  }
  .brand {
    font-size: 24px;
  }
  .brandmark {
    width: 32px;
    height: 32px;
  }
  .brand-sub {
    font-size: 14px;
  }
  .brand-divider {
    margin: 0 8px;
  }
  .connection {
    font-size: 10px;
  }
  main {
    margin: 29px auto 45px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -1.7px;
  }
  .intro-copy {
    font-size: 12px;
    margin: 18px 0 25px;
  }
  .recorder {
    padding: 23px 22px 0;
    border-radius: 16px;
  }
  .microphone-row {
    margin: 0 -22px;
    padding: 18px 20px;
    border-radius: 0 0 16px 16px;
    font-size: 11px;
  }
  .microphone-row .text-button {
    font-size: 11px;
  }
  .recording-display {
    padding-top: 29px;
  }
  .timer {
    font-size: 48px;
  }
  .placement-tip {
    padding: 0 4px;
    gap: 10px;
  }
  .placement-tip p {
    font-size: 10px;
  }
  .consent-note {
    font-size: 9px;
    margin-left: 0;
    margin-right: 0;
  }
  footer {
    font-size: 10px;
    padding: 20px 0;
  }
  .footer-version {
    font-size: 8px;
  }
  dialog {
    padding: 25px;
  }
  h2 {
    font-size: 28px;
  }
}
@media (max-width: 360px) {
  .brand-sub,
  .brand-divider {
    display: none;
  }
  .mobile-break {
    display: block;
  }
  .microphone-row > div {
    gap: 5px;
  }
  .recorder {
    padding-left: 17px;
    padding-right: 17px;
  }
  .microphone-row {
    margin: 0 -17px;
    padding: 17px;
  }
  .consent-note {
    font-size: 8px;
  }
}
@media (max-height: 850px) and (min-width: 601px) {
  .topbar {
    height: 74px;
  }
  main {
    margin: 15px auto 30px;
  }
  .eyebrow {
    margin-bottom: 12px;
  }
  h1 {
    font-size: 42px;
  }
  .intro-copy {
    margin: 12px 0 21px;
  }
  .recorder {
    padding-top: 22px;
  }
  .recording-display {
    padding-top: 22px;
    padding-bottom: 13px;
  }
  .timer {
    font-size: 46px;
    margin: 10px 0;
  }
  .level-label {
    margin-top: 9px;
  }
  .recording-actions {
    padding-bottom: 18px;
  }
  .microphone-row {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .placement-tip {
    margin-top: 18px;
  }
  .consent-note {
    margin-top: 10px;
  }
  footer {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
