@import url("/pad/tokens.css");

* {
  box-sizing: border-box;
}
html {
  background: var(--background);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
  box-shadow: none;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 18px;
}
small {
  font-size: 13px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #58a9ef;
  outline-offset: 3px;
}
input,
textarea {
  min-width: 0;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 5px 14px #227dcc20;
}
.secondary {
  color: #295576;
  background: #f3f8fd;
  border-color: #dbe7f2;
}
.text-button {
  color: #447190;
  background: transparent;
  box-shadow: none;
  padding: 10px 12px;
}
.icon-button {
  height: 46px;
  min-width: 46px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 5px 20px #3d729905;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 650;
  color: #6790ac;
  margin-bottom: 6px;
}
.page {
  max-width: 1360px;
  margin: auto;
  padding: 26px 38px 24px;
}
.page-title,
.welcome-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-title {
  padding: 16px 0;
}
.page-title h1 {
  font-size: 30px;
}
.page-title p {
  color: var(--muted);
  margin-top: 8px;
}
.welcome-line h2 {
  font-size: 23px;
}
.welcome-line p {
  color: var(--muted);
  font-size: 14px;
}
.page-footnote {
  text-align: center;
  color: #8095a7;
  font-size: 12px;
  margin: 24px 0 4px;
}
.page-loading {
  display: flex;
  min-height: 55vh;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.loading-ring {
  height: 22px;
  width: 22px;
  border: 2px solid #d4e9f8;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.error-page {
  margin: 40px auto;
  max-width: 680px;
  padding: 40px;
  display: grid;
  gap: 20px;
}
.app-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #ffffffde;
  border-bottom: 1px solid #e4ecf3;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
}
.brand img {
  width: 123px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(17%) sepia(28%) saturate(1966%)
    hue-rotate(174deg) brightness(89%) contrast(97%);
}
.brand-logo {
  display: block;
  flex: 0 0 123px;
  width: 123px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}
.brand .brand-logo { filter: none; }
.brand-rule {
  height: 32px;
  width: 1px;
  background: #dce5ee;
}
.brand-product {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand-product small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #8094a4;
  margin-top: 1px;
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.connection-pill {
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  padding: 8px 13px;
  background: #eef8f5;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #38826c;
  font-size: 12px;
}
.status-dot,
.hero-kicker i,
.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48b49e;
  display: inline-block;
}
.unavailable {
  background: #fff4e6;
  color: #99631c;
}
.unavailable .status-dot {
  background: #d69136;
}
#clock {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-align: right;
  color: #34526c;
}
#clock small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #7a8fa1;
  margin-top: 3px;
}
#main {
  padding-bottom: 88px;
}
.bottom-navigation {
  height: 76px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffffed;
  backdrop-filter: blur(18px);
  border-top: 1px solid #e0ebf3;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.nav-item {
  height: 52px;
  min-width: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  color: #7b8fa1;
  font-size: 14px;
  font-weight: 550;
}
.nav-item.active {
  background: #e9f3fd;
  color: #1e78c0;
}
.nav-item .icon {
  width: 21px;
  height: 21px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 408px;
  border-radius: 26px;
  background: linear-gradient(113deg, #eaf6ff 0%, #e2f3ff 43%, #d4ebfc 100%);
  overflow: hidden;
  border: 1px solid #d6e9f7;
}
.hero:after {
  content: "";
  position: absolute;
  right: -9%;
  top: -56%;
  height: 740px;
  width: 740px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  z-index: -1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 34px 38px;
  width: 60%;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #4f82a7;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}
.hero-kicker i {
  background: #459dd6;
}
.hero h1 {
  font-size: clamp(34px, 3.45vw, 49px);
  line-height: 1.38;
  letter-spacing: 1px;
  color: #183b5e;
  margin-bottom: 15px;
}
.hero h1 span {
  color: #2089d4;
}
.hero-copy > p {
  font-size: 14px;
  line-height: 1.8;
  color: #617e96;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.hero-actions .primary {
  padding: 14px 25px;
  min-height: 52px;
  background: linear-gradient(110deg, #298ede, #1377c8);
  box-shadow: 0 6px 16px #227dcc25;
}
.hero-assurance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #7394ad;
  margin-top: 22px;
}
.hero-assurance .icon {
  width: 14px;
  height: 14px;
}
.hero-art {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 47%;
  height: 100%;
}
.hero-art img {
  position: absolute;
  height: 108%;
  width: 100%;
  bottom: -8%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  filter: drop-shadow(0 12px 16px #7aaace15);
}
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  background: #b8def760;
  width: 350px;
  height: 350px;
  left: 12%;
  top: 15%;
}
.orbit-two {
  width: 250px;
  height: 250px;
  left: 36%;
  top: 32%;
  background: #eefaff50;
}
.hello-bubble {
  position: absolute;
  z-index: 2;
  top: 19%;
  right: 4%;
  padding: 12px 15px;
  background: #ffffffd9;
  border: 1px solid white;
  border-radius: 18px 18px 18px 3px;
  box-shadow: 0 8px 22px #4d86ad0e;
  font-size: 10px;
  color: #4f7591;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 210px;
}
.hello-bubble .mini-dot {
  background: #3b9fe8;
  box-shadow: 0 0 0 3px #e0f1fc;
}
.art-caption {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  right: 28px;
  letter-spacing: 3px;
  font-size: 10px;
  color: #658cab;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 104px;
  padding: 22px 21px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  box-shadow: 0 5px 15px #3d729904;
}
.feature strong,
.feature small {
  display: block;
}
.feature strong {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature small {
  font-size: 11px;
  color: var(--muted);
}
.feature > .icon {
  width: 17px;
  margin-left: auto;
  color: #9cbbd1;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  border-radius: 15px;
  flex-shrink: 0;
}
.feature-icon .icon {
  height: 24px;
  width: 24px;
}
.blue {
  background: #e9f3fd;
  color: #2b8bd9;
}
.teal {
  background: #e8f7f6;
  color: #42a79f;
}
.violet {
  background: #eff0fc;
  color: #838bd0;
}
.recent {
  padding: 20px 24px 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-size: 18px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-heading span {
  font-size: 11px;
  color: var(--muted);
}
.section-heading .button {
  font-size: 12px;
}
.record-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  text-align: left;
  padding: 15px 4px;
  background: transparent;
  border-radius: 8px;
}
.record-row:last-child {
  border-bottom: 0;
}
.record-name {
  flex: 1;
  min-width: 0;
}
.record-name strong {
  font-weight: 600;
  display: block;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-name small {
  font-size: 11px;
  color: #8a9bac;
}
.record-date {
  font-size: 11px;
  color: #8a9bac;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10px;
  color: #628eb4;
  background: #f0f6fb;
}
.tag.green {
  background: #ecf7f2;
  color: #559a7e;
}
.tag.amber {
  background: #fdf5e8;
  color: #aa7f34;
}
.record-row > .icon {
  width: 17px;
  color: #a3b9ca;
}
.record-library {
  padding: 24px;
}
.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dde8f1;
  background: #f7fafd;
  padding: 0 6px 0 16px;
  border-radius: 13px;
  width: 400px;
  color: #84a1b5;
}
.search-field input {
  min-height: 50px;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
}
.search-field:focus-within {
  outline: 2px solid #91c6ed;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  background: #f0f5fa;
  border-radius: 13px;
  gap: 3px;
}
.segmented button {
  min-height: 44px;
  min-width: 72px;
  padding: 8px 15px;
  border: 0;
  background: transparent;
  color: #6c859c;
  border-radius: 10px;
  font-size: 14px;
}
.segmented button[aria-pressed="true"] {
  background: white;
  color: #236fa9;
  box-shadow: 0 2px 5px #3259810c;
  font-weight: 600;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  color: #8498a8;
  font-size: 12px;
}
.pagination > div {
  display: flex;
  gap: 10px;
}
.pagination .button {
  font-size: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-card {
  padding: 30px;
}
.setting-card h2 {
  margin: 14px 0 9px;
}
.setting-card > p {
  color: var(--muted);
  font-size: 14px;
}
.microphone-preview {
  margin: 24px 0 20px;
  color: #7c95a9;
  font-size: 13px;
}
.meter {
  height: 7px;
  width: 100%;
  background: #edf3f8;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}
.meter span {
  display: block;
  background: linear-gradient(90deg, #51b9ca, #2488d6);
  width: 0;
  height: 100%;
  border-radius: 5px;
  transition: width 0.1s;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #edf2f6;
  font-size: 14px;
}
.service-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.setting-card .muted {
  margin-top: 16px;
  font-size: 12px;
}
.wide-setting {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.wide-setting h2 {
  margin-top: 0;
}
.wide-setting p {
  color: var(--muted);
  font-size: 13px;
  max-width: 430px;
}
.mode-options {
  display: flex;
  gap: 12px;
}
.mode-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe9f1;
  background: #fafcfe;
  min-height: 76px;
  padding: 14px 19px;
  border-radius: 15px;
  text-align: left;
  min-width: 204px;
}
.mode-options button[aria-pressed="true"] {
  border-color: #8dc6ef;
  background: #f0f8ff;
  color: #2279bc;
}
.mode-options strong {
  display: block;
  font-size: 15px;
}
.mode-options small {
  display: block;
  font-size: 11px;
  color: #8296a7;
  margin-top: 4px;
}
.setting-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.in-visit #main {
  padding: 0;
}
.in-visit .bottom-navigation {
  display: none;
}
.visit-page {
  height: calc(100dvh - 86px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  max-width: 1680px;
  margin: auto;
}
.patient-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  flex-shrink: 0;
}
.patient-bar > .icon-button {
  margin-left: -8px;
  color: #7e98ad;
}
.patient-summary {
  min-width: 0;
}
.patient-summary h1 {
  font-size: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52vw;
}
.patient-summary p {
  font-size: 11px;
  color: #8498aa;
  margin-top: 3px;
}
.patient-bar > .button {
  font-size: 12px;
  margin-left: 4px;
}
.save-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #81a496;
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
}
.save-indicator .icon {
  width: 14px;
  height: 14px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.conversation,
.assistant-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}
.panel-heading {
  min-height: 73px;
  padding: 14px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.panel-heading h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
}
.panel-heading h2 > .icon {
  color: #4d95c7;
  width: 20px;
  height: 20px;
}
.panel-heading > .button {
  font-size: 12px;
  padding: 8px 0;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f0f5fa;
  color: #7996ad;
  min-width: 23px;
  height: 22px;
  font-size: 11px;
  font-weight: 500;
}
.conversation-feed {
  flex: 1;
  min-height: 60px;
  overflow-y: auto;
  padding: 2px 22px 24px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d2e1ed transparent;
}
.conversation-empty {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.conversation-empty h3 {
  font-size: 17px;
  color: #658299;
  margin: 22px 0 9px;
}
.conversation-empty p {
  font-size: 12px;
  line-height: 1.85;
  color: #98aab9;
}
.listening-illustration {
  width: 84px;
  height: 84px;
  border-radius: 27px;
  background: linear-gradient(135deg, #eef8ff, #e8f2fa);
  border: 1px solid #dceefa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #7ab0d7;
  box-shadow: 0 12px 30px #4887b50a;
}
.listening-illustration > .icon {
  width: 30px;
  height: 30px;
}
.listening-illustration i {
  position: absolute;
  right: -12px;
  top: 30px;
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: #cce5f6;
}
.listening-illustration i:nth-child(3) {
  right: -20px;
  top: 34px;
  height: 14px;
}
.listening-illustration i:nth-child(4) {
  right: auto;
  left: -12px;
  height: 14px;
  top: 34px;
}
.speaker-legend {
  display: flex;
  gap: 24px;
  margin-top: 27px;
  font-size: 11px;
  color: #9aaebe;
}
.speaker-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.speaker-legend i {
  width: 7px;
  height: 7px;
  background: #7eafd6;
  border-radius: 50%;
}
.speaker-legend span:last-child i {
  background: #85bbb0;
}
.turn {
  margin: 12px 0 20px;
  background: #f2f7fc;
  border: 1px solid #e8f0f8;
  border-radius: 4px 16px 16px 16px;
  padding: 0 16px 14px;
  max-width: 94%;
  position: relative;
}
.turn.patient {
  margin-left: auto;
  background: #f0f8f6;
  border-color: #e4f1ec;
  border-radius: 16px 4px 16px 16px;
}
.turn-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  color: #5184ad;
  font-size: 11px;
}
.patient .turn-top {
  color: #5b998b;
}
.turn-top time {
  color: #99aebb;
  font-size: 10px;
}
.turn-edit {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8dabc0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
}
.turn-edit .icon {
  width: 15px;
  height: 15px;
}
.turn p {
  font-size: 16px;
  line-height: 1.8;
  color: #3d5c76;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.new-speech {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 44px;
  background: #fff;
  border: 1px solid #b4d3eb;
  border-radius: 24px;
  padding: 8px 16px;
  color: #3e81b2;
  box-shadow: 0 3px 12px #37698d20;
  z-index: 3;
  font-size: 12px;
}
.new-speech .icon {
  width: 16px;
  transform: rotate(90deg);
}
.interim {
  font-size: 13px;
  line-height: 1.7;
  color: #5197bf;
  padding: 12px 22px;
  background: #f8fbfe;
  max-height: 80px;
  overflow: auto;
  flex-shrink: 0;
}
.interim:empty {
  display: none;
}
.speaker-area {
  border-top: 1px solid #d5e8f5;
  background: #f3f9fe;
  padding: 14px 18px;
  max-height: 45%;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}
.speaker-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #3877a4;
}
.speaker-heading .icon {
  width: 16px;
  height: 16px;
}
.speaker-heading > span {
  margin-left: auto;
  color: #789bb4;
  font-size: 10px;
}
.speaker-area > p {
  font-size: 11px;
  color: #829db2;
  margin: 6px 0 11px;
}
.speaker-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.speaker-cards > button,
.speaker-choice {
  background: #fff;
  border: 1px solid #c8e0f1;
  border-radius: 13px;
  padding: 12px;
  text-align: left;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.speaker-cards span {
  font-size: 10px;
  color: #7da2bc;
}
.speaker-cards q {
  font-size: 12px;
  color: #477898;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.speaker-cards strong {
  font-size: 12px;
  color: #217dbf;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.speaker-cards strong .icon {
  height: 14px;
  width: 14px;
}
.speaker-choice > div {
  display: flex;
  gap: 4px;
}
.speaker-choice .button {
  font-size: 11px;
  padding: 6px 8px;
}
.unknown-speech {
  border: 1px solid #cce2f0;
  border-radius: 12px;
  margin-top: 10px;
  padding: 10px;
  font-size: 12px;
}
.unknown-speech > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.unknown-speech .button {
  font-size: 12px;
  padding: 8px 15px;
}
.assistant-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.assistant-title small {
  font-size: 10px;
  color: #839dad;
  display: block;
  margin-top: 3px;
}
.assistant-mark {
  position: relative;
  width: 40px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(140deg, #f9fdff, #dfedf9);
  border: 1px solid #c9deec;
  box-shadow: 0 3px 7px #618caa10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.robot-face {
  height: 23px;
  width: 29px;
  border-radius: 10px;
  background: #164162;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.robot-face i {
  height: 7px;
  width: 7px;
  border: 2px solid #8bd8ff;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -1px 4px #53b8ff50;
}
.assistant-mark > span {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 5px;
  background: #9abed8;
  border-radius: 3px;
}
.ai-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8caeca;
  background: #f2f8fd;
  border: 1px solid #e0edf7;
  border-radius: 7px;
  padding: 3px 7px;
}
.assistant-tabs {
  display: flex;
  margin: 0 20px;
  border-bottom: 1px solid #e9f0f6;
  gap: 10px;
  flex-shrink: 0;
}
.assistant-tabs button {
  flex: 1;
  min-height: 51px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #859aad;
  font-size: 13px;
  white-space: nowrap;
  padding: 9px 3px;
}
.assistant-tabs button[aria-selected="true"] {
  color: #287ebb;
  border-color: #369be0;
  font-weight: 600;
}
.assistant-tabs button span:not(:empty) {
  display: inline-flex;
  background: #e8f3fc;
  color: #3d87bb;
  font-size: 9px;
  border-radius: 9px;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}
.assistant-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 17px 20px;
  scrollbar-width: thin;
  scrollbar-color: #d2e1ed transparent;
  overscroll-behavior: contain;
}
.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #587890;
  margin-bottom: 10px;
  gap: 5px;
}
.subheading small {
  font-size: 9px;
  color: #9aabba;
  display: block;
  margin-top: 2px;
}
.subheading .button {
  font-size: 11px;
  min-height: 44px;
  padding: 6px 3px;
}
.subheading .icon {
  height: 13px;
  width: 13px;
}
.advice-item {
  padding: 15px 12px;
  background: #f5f9fd;
  border: 1px solid #e7eff7;
  border-radius: 13px;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.advice-number {
  color: #80b1d4;
  font-size: 12px;
  font-weight: 600;
  padding-top: 1px;
}
.advice-item > div {
  flex: 1;
  min-width: 0;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 15px;
}
.tags span {
  background: #e8f1f9;
  color: #6c95b5;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 9px;
}
.advice-item p {
  font-size: 14px;
  line-height: 1.8;
  margin: 8px 0 6px;
  color: #42617b;
  overflow-wrap: anywhere;
}
.advice-item button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #5e9bc5;
  padding: 8px 4px;
}
.advice-item button .icon {
  width: 15px;
  height: 15px;
}
.advice-item.read {
  background: #fbfcfe;
  border-color: #eff3f7;
}
.advice-item.read .advice-number,
.advice-item.read p,
.advice-item.read button {
  color: #92a4b2;
}
.assistant-disclaimer {
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #94a7b6;
  min-height: 35px;
  background: #fbfcfe;
  flex-shrink: 0;
  border-top: 1px solid #edf2f6;
}
.assistant-disclaimer .icon {
  width: 12px;
  height: 12px;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  min-height: 240px;
  color: #89a2b4;
  padding: 25px 12px;
}
.empty > .icon {
  height: 34px;
  width: 34px;
  color: #a5c3db;
}
.empty h3,
.empty strong {
  font-size: 14px;
  font-weight: 500;
  color: #7994a9;
}
.empty p {
  font-size: 12px;
  line-height: 1.9;
  color: #96aabb;
}
.empty .button {
  margin-top: 9px;
}
.empty-icon {
  height: 58px;
  width: 58px;
  background: #f0f7fc;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px;
}
.empty-icon .icon {
  height: 27px;
  width: 27px;
  color: #91bad9;
}
.empty.compact {
  min-height: 120px;
  padding: 16px;
  gap: 5px;
}
.empty.compact > .icon,
.empty.compact .button {
  display: none;
}
.facts-list {
  margin: 0;
}
.facts-list > div {
  border-bottom: 1px solid #ebf1f6;
  padding: 14px 2px;
}
.facts-list dt {
  font-size: 11px;
  color: #8ba1b3;
  margin-bottom: 7px;
}
.facts-list dd {
  font-size: 14px;
  line-height: 1.9;
  color: #43627a;
  margin: 0;
  white-space: pre-wrap;
}
.draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.draft-heading strong {
  font-size: 13px;
  font-weight: 600;
  color: #527690;
}
.draft-heading small {
  display: block;
  color: #92a5b4;
  font-size: 9px;
  margin-top: 3px;
}
.draft-heading .button {
  font-size: 11px;
  padding: 7px 2px;
}
.draft-heading .icon {
  height: 13px;
  width: 13px;
}
.draft-fields {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.draft-fields label > span {
  display: block;
  font-size: 12px;
  color: #7192aa;
  margin-bottom: 7px;
}
.draft-fields textarea {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid #e1ebf3;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.8;
  min-height: 78px;
}
.draft-fields textarea::placeholder {
  color: #adbdc9;
}
.draft-actions {
  display: flex;
  gap: 10px;
  padding: 20px 0 6px;
}
.draft-actions > .primary {
  flex: 1;
}
.draft-actions .button {
  font-size: 13px;
}
.inline-error {
  background: #fff6ee;
  color: #a97743;
  padding: 12px 16px;
  font-size: 12px;
  border: 1px solid #f4e4d4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.visit-page > .inline-error {
  margin-bottom: 12px;
  flex-shrink: 0;
}
.inline-error > .button {
  margin-left: auto;
  min-height: 44px;
}
.phone-workspace-tabs {
  display: none;
}
.recording-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
  flex-shrink: 0;
  padding: 14px 3px calc(14px + env(safe-area-inset-bottom));
}
.recording-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.recording-state strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #395d79;
}
.recording-state small {
  display: block;
  font-size: 10px;
  color: #8da4b7;
  margin-top: 4px;
}
.recording-state time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #87a3b8;
  padding-left: 8px;
}
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e7f0f8;
  flex-shrink: 0;
}
.wave i {
  display: block;
  width: 3px;
  height: 6px;
  background: #9fc1da;
  border-radius: 3px;
  transition: height 0.13s;
}
.wave.live {
  background: #e0f3ee;
}
.wave.live i {
  background: #58af96;
}
.recording-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.recording-actions > .button {
  min-height: 52px;
  font-size: 14px;
  padding: 12px 25px;
}
.recording-actions > .primary {
  min-width: 160px;
}
.manual-roles button {
  min-width: 55px;
  padding: 8px 10px;
  font-size: 12px;
}
dialog {
  width: min(540px, calc(100% - 36px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #dce8f2;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 24px 100px #244b7430;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #24466938;
  backdrop-filter: blur(7px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 27px 30px 0;
}
.dialog-header h2 {
  font-size: 23px;
}
.dialog-header .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  color: #96aebf;
  margin-bottom: 7px;
}
.dialog-body {
  padding: 22px 30px 26px;
}
.dialog-copy {
  font-size: 14px;
  color: #8299ac;
  line-height: 1.9;
  margin-bottom: 22px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 30px 28px;
}
.patient-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.patient-form label > span,
.patient-form legend,
.edit-text > span {
  display: block;
  font-size: 13px;
  color: #69869c;
  margin-bottom: 9px;
}
.patient-form input:not([type="radio"]) {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dce8f1;
  background: #f8fbfd;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 16px;
}
.patient-form input::placeholder {
  color: #afbfcb;
}
.patient-form label b {
  color: #6fa6cc;
  font-weight: 400;
}
.patient-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
.radio-options {
  display: flex;
  gap: 10px;
}
.radio-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.radio-options input {
  position: absolute;
  opacity: 0;
}
.radio-options label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #e0eaf2;
  background: #f9fbfd;
  border-radius: 12px;
  color: #90a5b6;
  margin: 0;
  font-size: 14px;
}
.radio-options input:checked + span {
  background: #ecf6ff;
  border-color: #85bfe9;
  color: #3381bb;
}
.radio-options input:focus-visible + span {
  outline: 3px solid #58a9ef;
  outline-offset: 3px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-error {
  font-size: 12px;
  color: #b27848;
}
.form-error:empty {
  display: none;
}
.form-submit {
  width: 100%;
  margin-top: 5px;
}
.edit-text {
  display: block;
  margin-top: 22px;
}
.edit-text textarea {
  width: 100%;
  padding: 15px;
  background: #f8fbfd;
  border: 1px solid #dce8f1;
  border-radius: 13px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.8;
}
.edit-text + .muted {
  margin: 10px 0 22px;
}
.review-patient {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f2f8fc;
  padding: 18px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.review-patient > .icon {
  height: 28px;
  width: 28px;
  color: #68a3cd;
}
.review-patient p {
  font-size: 12px;
  color: #8ba2b4;
  margin-top: 3px;
}
.review-check {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  background: #f5f9fd;
  border: 1px solid #e0ebf4;
  border-radius: 13px;
  padding: 15px;
  font-size: 14px;
  color: #69889e;
}
.review-check input {
  width: 20px;
  height: 20px;
  accent-color: #2187cd;
}
.guide-steps {
  padding-left: 25px;
  color: #75a4c6;
}
.guide-steps li {
  padding: 8px 0 12px 8px;
}
.guide-steps strong {
  font-size: 15px;
  color: #567891;
}
.guide-steps p {
  font-size: 13px;
  color: #90a5b5;
  margin-top: 6px;
}
.notice {
  position: fixed;
  z-index: 100;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  width: max-content;
  background: #264d6deb;
  color: white;
  border: 1px solid #ffffff25;
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 15px 24px;
  box-shadow: 0 8px 24px #21456220;
  font-size: 14px;
  pointer-events: none;
  line-height: 1.6;
}
@media (hover: hover) {
  .primary:hover:not(:disabled) {
    background: #1778c5;
    box-shadow: 0 5px 16px #227dcc35;
  }
  .secondary:hover:not(:disabled) {
    background: #eaf3fb;
  }
  .text-button:hover,
  .icon-button:hover {
    background: #eaf3fb;
  }
  .feature:hover {
    border-color: #bed9ed;
    box-shadow: 0 8px 22px #3d72990d;
  }
  .record-row:hover {
    background: #f7fafd;
  }
  .nav-item:not(.active):hover {
    background: #f5f9fc;
  }
  .turn-edit:hover {
    background: #e1edf6;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 440px;
  }
  .hero-copy {
    padding: 40px 48px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-art img {
    height: 114%;
  }
  .hero-actions {
    margin-top: 30px;
  }
}
@media (max-width: 1100px) {
  .app-header {
    padding: 0 26px;
  }
  .page {
    padding: 24px 26px;
  }
  .header-actions {
    gap: 15px;
  }
  .hero-copy {
    padding: 30px;
    width: 61%;
  }
  .hero {
    min-height: 400px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-art {
    right: 0;
    width: 48%;
  }
  .hello-bubble {
    top: 11%;
    right: 6%;
    font-size: 9px;
    padding: 10px;
  }
  .hero-art img {
    height: 96%;
    bottom: -5%;
    width: 110%;
    left: -5%;
  }
  .feature {
    padding: 20px 15px;
    gap: 12px;
  }
  .feature-icon {
    height: 42px;
    width: 42px;
    border-radius: 14px;
  }
  .feature strong {
    font-size: 15px;
  }
  .feature small {
    font-size: 10px;
  }
  .feature > .icon {
    display: none;
  }
  .wide-setting {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .mode-options {
    width: 100%;
  }
  .mode-options button {
    flex: 1;
  }
  .setting-actions {
    width: 100%;
  }
  .workspace {
    gap: 14px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .visit-page {
    padding: 0 18px;
  }
  .recording-actions {
    gap: 8px;
  }
  .recording-actions > .button {
    padding: 12px 18px;
  }
  .recording-state time {
    display: none;
  }
  .recording-state small {
    font-size: 9px;
  }
  .panel-heading {
    padding: 13px 16px;
  }
  .assistant-tabs {
    margin: 0 16px;
  }
  .assistant-content {
    padding: 14px 16px;
  }
  .conversation-feed {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 900px) {
  .app-header {
    height: 80px;
    padding: 0 22px;
  }
  .brand {
    gap: 14px;
  }
  .brand img {
    width: 113px;
  }
  .brand-logo {
    flex-basis: 113px;
    width: 113px;
    height: 36px;
  }
  .brand-product {
    font-size: 15px;
  }
  .brand-product small {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .header-actions {
    gap: 12px;
  }
  .connection-pill {
    font-size: 10px;
    padding: 8px 10px;
  }
  #clock {
    font-size: 20px;
  }
  #clock small {
    font-size: 9px;
  }
  .page {
    padding: 26px 24px;
  }
  .welcome-line p {
    font-size: 12px;
  }
  .hero {
    min-height: 435px;
  }
  .hero-copy {
    padding: 32px 27px;
    width: 65%;
  }
  .hero h1 {
    font-size: 37px;
    line-height: 1.48;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-art {
    width: 46%;
    right: -10px;
  }
  .hero-art img {
    height: 86%;
    width: 122%;
    left: -20%;
    bottom: -1%;
  }
  .hello-bubble {
    top: 22%;
    right: 10%;
    font-size: 8px;
    max-width: 145px;
    padding: 9px 11px;
  }
  .hero-orbit {
    width: 280px;
    height: 280px;
    left: -5%;
    top: 30%;
  }
  .orbit-two {
    width: 200px;
    height: 200px;
    left: 20%;
    top: 45%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 23px;
  }
  .hero-actions .text-button {
    font-size: 12px;
  }
  .hero-assurance {
    margin-top: 14px;
    font-size: 9px;
  }
  .art-caption {
    font-size: 8px;
    right: 25px;
    bottom: 16px;
    letter-spacing: 1px;
  }
  .feature-grid {
    gap: 12px;
  }
  .feature {
    min-height: 114px;
    padding: 18px 14px;
    gap: 10px;
  }
  .feature-icon {
    height: 38px;
    width: 38px;
  }
  .feature-icon .icon {
    height: 20px;
    width: 20px;
  }
  .feature small {
    max-width: 100px;
    line-height: 1.7;
  }
  .section-heading > div {
    display: block;
  }
  .section-heading span {
    display: block;
    margin-top: 4px;
  }
  .record-date {
    display: none;
  }
  .visit-page {
    height: calc(100dvh - 80px);
    padding: 0 20px;
  }
  .patient-bar {
    min-height: 89px;
  }
  .patient-summary p > span {
    display: none;
  }
  .patient-bar > .button {
    margin-left: auto;
  }
  .patient-summary h1 {
    font-size: 21px;
    max-width: 48vw;
  }
  .workspace {
    display: block;
    flex: 1;
    min-height: 0;
  }
  .workspace > .card {
    height: 100%;
  }
  .workspace[data-phone-tab="chat"] .assistant-panel {
    display: none;
  }
  .workspace[data-phone-tab="assistant"] .conversation {
    display: none;
  }
  .phone-workspace-tabs {
    display: flex;
    order: 0;
    flex-shrink: 0;
    margin: 14px 0 0;
    background: #e9f1f8;
    border-radius: 14px;
    padding: 4px;
    gap: 5px;
  }
  .phone-workspace-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 46px;
    background: transparent;
    border: 0;
    color: #8aa2b6;
    border-radius: 11px;
    font-size: 13px;
  }
  .phone-workspace-tabs button[aria-pressed="true"] {
    background: white;
    color: #2988c8;
    box-shadow: 0 2px 8px #456f8d08;
  }
  .phone-workspace-tabs .icon {
    height: 19px;
    width: 19px;
  }
  .save-indicator {
    display: none;
  }
  .conversation-feed {
    padding: 8px 24px 24px;
  }
  .panel-heading {
    padding: 14px 23px;
    min-height: 78px;
  }
  .panel-heading h2 {
    font-size: 18px;
  }
  .panel-heading > .button {
    font-size: 14px;
  }
  .assistant-title small {
    font-size: 12px;
  }
  .assistant-tabs {
    margin: 0 23px;
    gap: 25px;
  }
  .assistant-tabs button {
    font-size: 15px;
    min-height: 56px;
  }
  .assistant-content {
    padding: 20px 24px;
  }
  .advice-item {
    padding: 18px 16px;
    gap: 14px;
    margin-bottom: 15px;
  }
  .advice-item p {
    font-size: 16px;
  }
  .advice-item button {
    font-size: 13px;
  }
  .tags span {
    font-size: 11px;
  }
  .subheading {
    font-size: 14px;
  }
  .subheading small {
    font-size: 11px;
  }
  .subheading .button {
    font-size: 13px;
  }
  .assistant-disclaimer {
    font-size: 11px;
    min-height: 40px;
  }
  .turn {
    max-width: 90%;
    margin-bottom: 22px;
  }
  .turn p {
    font-size: 17px;
  }
  .turn-top {
    font-size: 12px;
  }
  .turn-top time {
    font-size: 11px;
  }
  .conversation-empty h3 {
    font-size: 19px;
  }
  .conversation-empty p {
    font-size: 14px;
  }
  .conversation-empty .listening-illustration {
    height: 95px;
    width: 95px;
  }
  .recording-dock {
    min-height: 106px;
    gap: 12px;
    padding: 15px 0 calc(15px + env(safe-area-inset-bottom));
  }
  .recording-state {
    gap: 12px;
  }
  .recording-state strong {
    font-size: 14px;
  }
  .recording-state small {
    max-width: 205px;
    font-size: 10px;
  }
  .recording-actions > .button {
    min-height: 54px;
    padding: 13px 21px;
    font-size: 14px;
  }
  .recording-actions > .primary {
    min-width: 139px;
  }
  .speaker-area {
    padding: 16px 24px;
    max-height: 40%;
  }
  .speaker-cards q {
    font-size: 14px;
  }
  .speaker-cards > button {
    min-height: 124px;
    padding: 16px;
  }
  .speaker-cards strong {
    font-size: 14px;
    min-height: 25px;
  }
  .speaker-heading {
    font-size: 14px;
  }
  .speaker-area > p {
    font-size: 12px;
  }
  .draft-fields textarea {
    font-size: 16px;
  }
  .draft-fields label > span {
    font-size: 14px;
  }
  .draft-heading strong {
    font-size: 15px;
  }
  .draft-heading small {
    font-size: 11px;
  }
  .draft-heading .button {
    font-size: 13px;
  }
  .facts-list dt {
    font-size: 13px;
  }
  .facts-list dd {
    font-size: 16px;
  }
  .draft-actions .button {
    font-size: 15px;
  }
  .empty h3 {
    font-size: 17px;
  }
  .empty p {
    font-size: 14px;
  }
  .recording-actions:has(.manual-roles) {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .manual-roles button {
    min-width: 48px;
  }
  .recording-state:has(+ .recording-actions .manual-roles) small {
    display: none;
  }
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-field {
    width: 100%;
  }
  .library-toolbar .segmented {
    align-self: flex-start;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .setting-card {
    padding: 24px;
  }
  .record-name strong {
    font-size: 16px;
  }
  .record-name small {
    font-size: 12px;
  }
  .tag {
    font-size: 11px;
  }
  .record-row {
    min-height: 92px;
  }
}
@media (max-width: 620px) {
  .app-header {
    height: 72px;
    padding: 0 16px;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 94px;
  }
  .brand-logo {
    flex-basis: 94px;
    width: 94px;
    height: 30px;
  }
  .brand-rule {
    height: 27px;
  }
  .brand-product {
    font-size: 12px;
    letter-spacing: 0;
  }
  .brand-product small {
    display: none;
  }
  .header-actions {
    gap: 2px;
  }
  #clock {
    display: none;
  }
  .connection-pill {
    padding: 7px;
    background: none;
    min-width: 30px;
  }
  .connection-pill span:last-child {
    display: none;
  }
  .header-actions .icon-button {
    width: 38px;
    min-width: 38px;
  }
  .page {
    padding: 23px 17px;
  }
  .welcome-line {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .welcome-line p {
    display: none;
  }
  .welcome-line h2 {
    font-size: 22px;
  }
  .hero {
    min-height: 510px;
    border-radius: 23px;
  }
  .hero-copy {
    padding: 25px;
    width: 100%;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-kicker {
    font-size: 9px;
    margin-bottom: 15px;
  }
  .hero-copy > p {
    font-size: 12px;
    max-width: 220px;
  }
  .hero-actions {
    margin-top: 23px;
  }
  .hero-actions .primary {
    font-size: 13px;
    padding: 12px 18px;
    min-height: 48px;
  }
  .hero-actions .text-button {
    font-size: 11px;
    max-width: 160px;
    padding-left: 4px;
  }
  .hero-art {
    height: 65%;
    width: 59%;
    right: -14px;
  }
  .hero-art img {
    height: 96%;
    width: 120%;
    left: -13%;
  }
  .hero-orbit {
    width: 200px;
    height: 200px;
    top: 25%;
  }
  .orbit-two {
    width: 150px;
    height: 150px;
  }
  .hello-bubble {
    top: 4%;
    right: 5%;
    font-size: 8px;
    max-width: 126px;
  }
  .hero-assurance {
    margin-top: 19px;
    max-width: 130px;
    font-size: 9px;
    line-height: 1.8;
    align-items: flex-start;
  }
  .art-caption {
    display: none;
  }
  .feature-grid {
    gap: 10px;
    margin: 15px 0 20px;
    grid-template-columns: 1fr;
  }
  .feature {
    min-height: 86px;
    padding: 18px 20px;
    gap: 16px;
  }
  .feature strong {
    font-size: 16px;
  }
  .feature small {
    max-width: none;
    font-size: 11px;
  }
  .feature > .icon {
    display: block;
  }
  .feature-icon {
    width: 42px;
    height: 42px;
  }
  .recent {
    padding: 18px 16px 8px;
  }
  .section-heading .button {
    padding-right: 0;
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading span {
    font-size: 10px;
  }
  .record-row {
    gap: 11px;
  }
  .record-name strong {
    font-size: 14px;
  }
  .record-name small {
    font-size: 10px;
  }
  .record-row > .icon {
    display: none;
  }
  .tag {
    font-size: 9px;
    min-width: 48px;
  }
  .nav-item {
    min-width: 0;
    flex: 1;
    height: 56px;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    border-radius: 12px;
  }
  .nav-item .icon {
    height: 20px;
    width: 20px;
  }
  .bottom-navigation {
    padding: 6px 14px env(safe-area-inset-bottom);
    height: 74px;
    gap: 8px;
  }
  .page-title {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .page-title p {
    font-size: 13px;
  }
  .record-library {
    padding: 17px;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagination > div {
    align-self: flex-end;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .setting-card {
    padding: 23px;
  }
  .mode-options {
    flex-direction: column;
    gap: 10px;
  }
  .setting-actions {
    flex-wrap: wrap;
    gap: 7px;
  }
  .visit-page {
    height: calc(100dvh - 72px);
    padding: 0 12px;
    min-height: 460px;
  }
  .patient-bar {
    min-height: 80px;
    gap: 9px;
  }
  .patient-summary h1 {
    font-size: 17px;
    max-width: 42vw;
  }
  .patient-summary p {
    font-size: 10px;
  }
  .patient-bar > .button {
    padding: 8px 2px;
    font-size: 10px;
    gap: 4px;
  }
  .patient-bar > .button .icon {
    width: 15px;
    height: 15px;
  }
  .patient-bar > .icon-button {
    width: 32px;
    min-width: 32px;
    padding: 6px;
  }
  .panel-heading {
    padding: 10px 16px;
    min-height: 66px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading > .button {
    font-size: 11px;
  }
  .conversation-feed {
    padding: 5px 15px 15px;
  }
  .turn {
    max-width: 96%;
    padding-left: 13px;
    padding-right: 13px;
  }
  .turn p {
    font-size: 15px;
  }
  .turn-top {
    font-size: 10px;
  }
  .turn-top time {
    font-size: 9px;
  }
  .conversation-empty h3 {
    font-size: 15px;
  }
  .conversation-empty p {
    font-size: 11px;
  }
  .phone-workspace-tabs {
    margin-top: 10px;
    padding: 3px;
  }
  .phone-workspace-tabs button {
    min-height: 44px;
    font-size: 12px;
  }
  .recording-dock {
    min-height: 125px;
    flex-wrap: wrap;
    gap: 11px;
    padding: 11px 0 calc(11px + env(safe-area-inset-bottom));
  }
  .recording-state {
    width: 100%;
    gap: 9px;
  }
  .wave {
    height: 29px;
    width: 37px;
    border-radius: 9px;
  }
  .recording-state strong {
    font-size: 12px;
  }
  .recording-state small {
    display: none;
  }
  .recording-state time {
    display: block;
    margin-left: auto;
    font-size: 11px;
  }
  .recording-actions {
    width: 100%;
    gap: 9px;
  }
  .recording-actions > .button {
    flex: 1;
    min-height: 48px;
    padding: 10px 15px;
    font-size: 13px;
  }
  .recording-actions > .primary {
    min-width: 0;
  }
  .recording-actions:has(.manual-roles) {
    flex-wrap: nowrap;
  }
  .manual-roles {
    padding: 3px;
  }
  .manual-roles button {
    min-width: 40px;
    padding: 8px 7px;
    min-height: 42px;
    font-size: 11px;
  }
  .recording-actions:has(.manual-roles) > .button {
    padding: 8px 9px;
    font-size: 11px;
  }
  .recording-actions:has(.manual-roles) > .button .icon {
    display: none;
  }
  .speaker-area {
    padding: 12px;
    max-height: 43%;
  }
  .speaker-cards {
    gap: 8px;
  }
  .speaker-cards > button {
    padding: 10px;
    min-height: 110px;
  }
  .speaker-cards q {
    font-size: 12px;
  }
  .speaker-cards strong {
    font-size: 12px;
  }
  .speaker-heading {
    font-size: 12px;
  }
  .speaker-area > p {
    font-size: 10px;
  }
  .assistant-title {
    gap: 9px;
  }
  .assistant-title small {
    font-size: 9px;
  }
  .assistant-tabs {
    margin: 0 16px;
    gap: 9px;
  }
  .assistant-tabs button {
    font-size: 13px;
    min-height: 49px;
  }
  .assistant-content {
    padding: 14px 16px;
  }
  .advice-item {
    padding: 13px 11px;
    gap: 8px;
  }
  .advice-item p {
    font-size: 14px;
  }
  .advice-item button {
    font-size: 11px;
  }
  .tags span {
    font-size: 9px;
  }
  .subheading {
    font-size: 12px;
  }
  .subheading small {
    font-size: 9px;
  }
  .assistant-disclaimer {
    font-size: 9px;
    min-height: 32px;
  }
  .empty {
    min-height: 200px;
    padding: 14px 5px;
  }
  .empty h3 {
    font-size: 14px;
  }
  .empty p {
    font-size: 12px;
  }
  .draft-heading strong {
    font-size: 13px;
  }
  .draft-heading small {
    font-size: 9px;
  }
  .draft-heading .button {
    font-size: 11px;
  }
  .draft-fields textarea {
    font-size: 15px;
  }
  .dialog-header {
    padding: 22px 23px 0;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
  .dialog-body {
    padding: 18px 23px 23px;
  }
  .dialog-footer {
    padding: 0 23px 23px;
  }
  dialog {
    border-radius: 21px;
  }
  .notice {
    bottom: 150px;
    font-size: 12px;
    padding: 13px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Touch utilities remain visible without hover. */
.conversation-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.conversation-tools .button {
  font-size: 12px;
  padding: 8px;
  min-height: 44px;
}
.conversation-tools .icon {
  width: 17px;
  height: 17px;
}
.advice-peek {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: 48px;
  margin: 0 18px 12px;
  border: 1px solid #cde3f4;
  background: #edf7ff;
  color: #3279ad;
  border-radius: 12px;
  font-size: 12px;
  padding: 10px 13px;
  text-align: left;
}
.advice-peek .icon {
  width: 17px;
  height: 17px;
}
.advice-peek > .icon:last-child {
  margin-left: auto;
}
.recording-player {
  width: 100%;
  min-height: 54px;
}
@media (max-width: 900px) {
  .feature small {
    max-width: none;
  }
  .feature {
    gap: 11px;
  }
  .conversation-tools .button {
    font-size: 13px;
  }
  .advice-peek {
    font-size: 14px;
    margin: 0 24px 14px;
    min-height: 52px;
  }
}
@media (max-width: 620px) {
  .conversation-tools {
    gap: 0;
  }
  .conversation-tools .button {
    font-size: 10px;
    padding: 8px 5px;
    gap: 4px;
  }
  .conversation-tools .icon {
    width: 14px;
    height: 14px;
  }
  .advice-peek {
    font-size: 12px;
    margin: 0 14px 10px;
    min-height: 46px;
  }
}
