@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --color-ink-navy: #0b3558;
  --color-signal-blue: #006bff;
  --color-slate-gray: #476788;
  --color-mist-gray: #a6bbd1;
  --color-cloud: #f8f9fb;
  --color-paper: #ffffff;
  --color-pebble: #f0f3f8;
  --color-hairline: #d4e0ed;
  --color-deep-cobalt: #004eba;
  --radius-cards: 24px;
  --radius-productcards: 16px;
  --radius-buttons: 8px;
  --shadow-card:
    0 4px 5px rgba(71, 103, 136, 0.04), 0 8px 15px rgba(71, 103, 136, 0.03),
    0 30px 50px rgba(71, 103, 136, 0.08);

  --paper: #f8f9fb;
  --card: #fff;
  --ink: #0b3558;
  --muted: #476788;
  --olive: #0b3558;
  --sage: #f0f3f8;
  --line: #d4e0ed;
  --gold: #006bff;
  --red: #b33c2b;
  --accent: #006bff;
  --sans: 'Manrope', 'Avenir Next', sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
  min-height: 44px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  border-radius: 6px;
}
input,
textarea {
  border-radius: 6px;
  width: 100%;
  background: var(--card);
  border: 1px solid #cfd5dd;
  padding: 14px 16px;
  font-size: 16px;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
textarea::placeholder {
  color: #7a8491;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -1.8px;
  margin-bottom: 13px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.35;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 5px;
}
p {
  line-height: 1.65;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.olive {
  color: var(--accent);
}
.hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 16px 0 0;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 0 0 17px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #0b3558;
  color: #d3d9e1;
  display: flex;
  flex-direction: column;
  padding: 35px 18px 22px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -1.3px;
  margin: 0 12px 57px;
  color: white;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  width: 36px;
  height: 40px;
  font-size: 35px;
  font-weight: 550;
  line-height: 1;
  border-radius: 5px 5px 12px 5px;
  letter-spacing: -2px;
  padding-bottom: 5px;
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 1.4px;
  margin-top: 4px;
  color: #aab5c2;
}
.workspace-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #a7b1bf;
  margin: 0 15px 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #b9c3cf;
  width: 100%;
  border: 0;
  padding: 13px 14px;
  text-align: left;
  margin: 3px 0;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
  position: relative;
}
.nav-item:hover {
  background: #ffffff09;
  color: white;
}
.nav-item.active {
  background: #ffffff0d;
  color: white;
}
.sidebar .nav-item.active:before {
  content: '';
  position: absolute;
  left: -18px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: #006bff;
  border-radius: 0 2px 2px 0;
}
.nav-item svg {
  width: 19px;
  height: 19px;
}
.nav-count {
  margin-left: auto;
  background: #ffffff16;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.side-note {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 36px 14px 26px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #748b82;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 6px;
}
.side-note strong {
  font-size: 13px;
  font-weight: 500;
  color: #d2dae3;
}
.side-note p {
  font-size: 13px;
  line-height: 1.8;
  margin: 7px 0 0;
  color: #a7b3c1;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #ffffff16;
  border-radius: 0;
  padding: 20px 8px 0;
  font-size: 13px;
  color: #e2e7ed;
}
.profile small {
  display: block;
  font-size: 11px;
  color: #a7b3c1;
  margin-top: 4px;
}
.profile > span:last-child {
  margin-left: auto;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff0d;
  border: 1px solid #ffffff24;
  font-size: 12px;
}
.shell {
  margin-left: 228px;
}
.topbar {
  height: 72px;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.8px;
}
.breadcrumb > span:first-child {
  color: #b6bdc6;
  margin: 0 16px;
}
#current-section {
  color: var(--ink);
  letter-spacing: 0;
  font-size: 14px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #786959;
  background: #f6f1e9;
  border: 1px solid #e8dfd1;
  border-radius: 4px;
  padding: 4px 7px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.connection:before {
  content: '';
  width: 5px;
  height: 5px;
  background: #527c68;
  border-radius: 50%;
}
.connection.offline:before {
  background: #b77426;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--sage);
}
.mobile-brand,
.mobile-nav {
  display: none;
}
main {
  max-width: 1370px;
  margin: auto;
  padding: 47px 44px 32px;
  min-height: calc(100vh - 129px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}
.heading-action {
  flex-shrink: 0;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 36px;
}
.overview > div {
  padding: 0 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.overview > div:first-child {
  border: 0;
  padding-left: 0;
}
.overview-label {
  font-size: 13px;
  color: var(--muted);
}
.overview strong {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.overview .overview-status strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 0;
  min-height: 35px;
}
.overview-status strong:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #527c68;
}
.overview-status strong.is-paused:before {
  background: #b77426;
}
.daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 36px;
  align-items: start;
}
.work-column,
.right-column {
  min-width: 0;
}
.work-section {
  margin-bottom: 34px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  min-height: 32px;
}
.section-heading h2 {
  margin: 0;
}
.section-index {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.decision-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: #fff;
  padding: 22px;
  border-radius: 4px;
}
.decision-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  flex-shrink: 0;
  color: var(--accent);
  background: #faf0ec;
  font-size: 23px;
}
.decision-panel .eyebrow {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: 1px;
}
.decision-panel h3 {
  font-size: 16px;
  margin-bottom: 3px;
}
.decision-panel p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.decision-panel .secondary {
  margin-left: auto;
  font-size: 13px;
  padding: 9px 13px;
}
.recent-list {
  border-top: 1px solid var(--line);
}
.recent-row {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 19px 3px;
}
.recent-row:hover {
  background: #eef1f5;
}
.request-symbol {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dce1e7;
  color: #667383;
  background: #fff;
  border-radius: 5px;
  font-size: 23px;
  flex-shrink: 0;
}
.recent-copy {
  min-width: 0;
}
.recent-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-copy small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.row-arrow {
  color: #8993a0;
  margin-left: auto;
  padding-left: 8px;
}
.prototype-note {
  display: flex;
  gap: 9px;
  color: var(--muted);
}
.prototype-note p {
  font-size: 13px;
  margin: 0;
}
.prototype-note strong {
  font-weight: 500;
}
.voice-card {
  background: #0b3558;
  color: #fff;
  border-radius: 7px;
  padding: 26px;
  position: relative;
}
.card-kicker {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c4cfda;
}
.voice-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #006bff;
}
.voice-symbol {
  width: 48px;
  height: 48px;
  color: #006bff;
  margin: 30px 0 24px;
}
.voice-card h2 {
  font-size: 27px;
  line-height: 1.22;
  font-weight: 450;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.voice-card p {
  font-size: 14px;
  color: #bdc9d5;
  line-height: 1.8;
  margin-bottom: 25px;
  max-width: 250px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--olive);
  color: #fff;
}
.primary:hover {
  background: #34465c;
}
.primary:active,
.secondary:active {
  transform: translateY(1px);
}
.primary.light {
  width: 100%;
  background: #fbfcfd;
  color: var(--ink);
}
.primary.light:hover {
  background: #e9eef3;
}
.primary span {
  font-size: 18px;
}
.voice-card .primary span {
  margin-left: auto;
}
.voice-footnote {
  display: block;
  color: #bec9d6;
  text-align: center;
  font-size: 11px;
  margin-top: 12px;
}
.secondary {
  background: #fff;
  border-color: #d8dde4;
  color: var(--ink);
}
.secondary:hover {
  background: #f0f3f6;
}
.text-button {
  background: none;
  border: 0;
  padding: 5px 0;
  color: var(--olive);
  font-size: 13px;
  font-weight: 550;
  text-align: left;
}
.text-button:hover {
  color: var(--accent);
}
.text-button span {
  margin-left: 7px;
}
.connections-panel {
  padding-top: 23px;
}
.connections-panel h2 {
  font-size: 13px;
  letter-spacing: 0;
}
.connections-panel .section-heading {
  margin-bottom: 0;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.service-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #657387;
  flex-shrink: 0;
}
.audio-service {
  font-size: 24px;
  font-weight: 400;
}
.connection-row strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.connection-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.connection-state {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.page-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 44px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.page-footer span:last-child {
  letter-spacing: 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}
.panel p {
  font-size: 13px;
  color: var(--muted);
}
.panel h2 {
  font-size: 22px;
  font-weight: 500;
}
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.recorder-panel {
  text-align: center;
}
.recorder-panel h2 {
  margin: 24px 0 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 8px;
  background: #edf2f0;
  color: #476458;
  border-radius: 4px;
}
.pill.amber {
  background: #faf0df;
  color: #886129;
}
.record-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  margin: 29px auto 20px;
  background: var(--olive);
  color: #fff;
  border: 7px solid #edf0f4;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dce1e7;
  transition: background 0.15s;
}
.record-button:hover {
  background: #3c4c60;
}
.record-button svg {
  width: 29px;
  height: 29px;
}
.record-button.recording {
  background: var(--red);
  border-color: #fae9e4;
  animation: pulse 1.5s infinite;
}
.recorder-panel strong {
  font-size: 14px;
  font-weight: 500;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}
.divider span {
  position: relative;
  top: -10px;
  padding: 0 12px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}
#text-form .primary {
  width: 100%;
  margin-top: 10px;
}
.empty-state {
  padding: 35px 22px;
  text-align: center;
  color: var(--muted);
}
.empty-state > span {
  display: block;
  font-size: 30px;
  color: #9ba5b1;
  margin-bottom: 15px;
}
.empty-state h2,
.empty-state h3 {
  color: var(--ink);
}
.empty-state p {
  font-size: 14px;
  margin-bottom: 8px;
}
.request-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 21px;
  margin-bottom: 13px;
}
.request-card.local {
  border-color: #d4b985;
  border-left-width: 3px;
}
.request-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.request-card p {
  margin: 16px 0 8px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.request-card audio {
  display: block;
  width: 100%;
  margin-top: 15px;
}
.queue-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.draft-card {
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  margin: 0 auto 24px;
}
.draft-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.draft-top > span:last-child {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.draft-card h2 {
  font-size: 25px;
  font-weight: 500;
}
.mail-meta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 18px;
}
.mail-meta p {
  font-size: 14px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.mail-meta span {
  display: inline-block;
  width: 74px;
  color: var(--muted);
}
.draft-body {
  border-color: transparent;
  padding: 12px;
  background: #fbfcfd;
  font-size: 14px;
  line-height: 1.8;
}
.draft-body:focus {
  border-color: #cfd5dd;
}
.draft-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.draft-actions .primary {
  margin-left: auto;
}
.danger {
  color: var(--red);
}
.notice {
  padding: 14px 24px;
  background: #faf0df;
  color: #7b5925;
  font-size: 14px;
  line-height: 1.6;
}
.notice.subtle {
  border: 1px solid #e7dcc9;
  border-radius: 5px;
  margin-bottom: 25px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .secondary {
  margin-top: 10px;
}
.setting-number {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.event-row {
  display: flex;
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.event-row:last-child {
  border: 0;
}
.event-dot {
  width: 6px;
  height: 6px;
  background: #7c8b9c;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.event-row p {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 13px;
}
.event-row time {
  font-size: 12px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 114px);
  transform: translateX(-50%);
  max-width: 550px;
  width: max-content;
  background: #0b3558;
  color: white;
  padding: 16px 23px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  z-index: 40;
  font-size: 13px;
  line-height: 1.65;
}
.error {
  color: var(--red) !important;
  font-size: 14px;
  line-height: 1.6;
}
dialog {
  padding: 0;
  width: calc(100% - 36px);
  max-width: 430px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-card);
}
dialog::backdrop {
  background: #142033b3;
  backdrop-filter: blur(6px);
}
.login-card {
  padding: 38px;
}
.login-card .brand-mark {
  margin-bottom: 32px;
}
.login-card h2 {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 500;
}
.login-card p {
  font-size: 13px;
  color: var(--muted);
}
.login-card .eyebrow {
  font-size: 11px;
}
.login-card label {
  display: block;
  font-size: 14px;
  margin: 25px 0 9px;
}
.login-card .primary {
  width: 100%;
}
.login-card .error:empty {
  margin: 12px 0;
}
.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;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
.transcript {
  white-space: pre-wrap;
  color: var(--ink) !important;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px #b33c2b14;
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 58px;
  }
  .daily-grid {
    gap: 45px;
  }
  .voice-card {
    padding: 32px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 36px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .daily-grid {
    gap: 24px;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  }
  .decision-panel {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .decision-panel .secondary {
    width: 100%;
    margin-left: 0;
  }
  .decision-symbol {
    display: none;
  }
  .section-index {
    display: none;
  }
  .assistant-layout {
    gap: 24px;
  }
  .voice-card {
    padding: 22px;
  }
  .voice-card h2 {
    font-size: 25px;
  }
  .brand {
    margin-left: 6px;
  }
  .page-footer {
    padding: 20px 28px;
  }
}
@media (max-width: 960px) and (min-width: 761px) {
  .heading-action {
    display: none;
  }
  .daily-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .connections-panel {
    padding-top: 0;
  }
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .overview > div {
    padding: 0 18px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: calc(65px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 20px 0;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: block;
    font-size: 26px;
    font-weight: 550;
    letter-spacing: -1.5px;
  }
  .mobile-brand span {
    color: var(--accent);
  }
  .topbar-right {
    gap: 10px;
  }
  .connection {
    font-size: 12px;
  }
  .demo-label {
    font-size: 7px;
    padding: 4px 5px;
  }
  .icon-button {
    min-width: 36px;
  }
  main {
    padding: 30px 20px 24px;
    min-height: calc(100dvh - 210px);
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1.35px;
  }
  .page-heading {
    margin-bottom: 27px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 13px;
  }
  .subtitle {
    font-size: 14px;
  }
  .heading-action {
    display: none;
  }
  .overview {
    margin-bottom: 26px;
    padding: 17px 0;
    grid-template-columns: 1fr 1fr 1.1fr;
  }
  .overview > div {
    padding: 0 13px;
    gap: 9px;
  }
  .overview-label {
    font-size: 11px;
    line-height: 1.5;
  }
  .overview strong {
    font-size: 25px;
  }
  .overview .overview-status strong {
    font-size: 13px;
    min-height: 30px;
    gap: 5px;
  }
  .daily-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .work-column,
  .right-column {
    width: 100%;
  }
  .right-column {
    display: contents;
  }
  .voice-card {
    order: -1;
    width: 100%;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 44px;
    column-gap: 16px;
  }
  .voice-card .card-kicker {
    grid-column: 1/-1;
    font-size: 7px;
    margin-bottom: 17px;
  }
  .voice-symbol {
    grid-column: 2;
    grid-row: 2/4;
    width: 36px;
    height: 46px;
    margin: 1px 0 0;
  }
  .voice-card h2 {
    font-size: 24px;
    grid-column: 1;
    margin-bottom: 8px;
  }
  .voice-card p {
    grid-column: 1/-1;
    font-size: 13px;
    margin-bottom: 20px;
    max-width: 280px;
  }
  .voice-card .primary {
    grid-column: 1/-1;
  }
  .voice-footnote {
    display: none;
  }
  .work-section {
    margin-bottom: 26px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .section-index {
    display: inline;
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .decision-panel {
    padding: 19px;
  }
  .decision-panel h3 {
    font-size: 15px;
  }
  .decision-panel .secondary {
    width: 100%;
  }
  .decision-panel p {
    font-size: 13px;
  }
  .recent-row {
    padding: 17px 0;
  }
  .prototype-note p {
    font-size: 12px;
  }
  .connections-panel {
    width: 100%;
    padding-top: 0;
  }
  .connection-row {
    padding: 14px 0;
  }
  .connection-row strong {
    font-size: 14px;
  }
  .connection-row small,
  .connection-state {
    font-size: 12px;
  }
  .page-footer {
    padding: 20px 20px calc(100px + env(safe-area-inset-bottom));
    font-size: 7px;
  }
  .page-footer span:last-child {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffffed;
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 30;
    justify-content: space-around;
  }
  .mobile-nav .nav-item {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    text-align: center;
    padding: 10px 2px 7px;
    margin: 0;
    font-size: 12px;
    color: #717c8b;
  }
  .mobile-nav .nav-item.active {
    color: var(--accent);
    background: transparent;
    font-weight: 600;
  }
  .mobile-nav .nav-item.active:before {
    content: '';
    position: absolute;
    top: -6px;
    height: 2px;
    width: 25px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
  }
  .mobile-nav .nav-item svg {
    width: 21px;
    height: 21px;
  }
  .mobile-nav .nav-count {
    position: absolute;
    top: 2px;
    left: 55%;
    font-size: 10px;
    padding: 1px 5px;
    background: var(--accent);
    color: white;
  }
  .assistant-layout {
    display: block;
  }
  .recorder-panel {
    margin-bottom: 30px;
  }
  .panel {
    padding: 23px;
  }
  .panel h2 {
    font-size: 21px;
  }
  .recorder-panel > p {
    font-size: 14px;
  }
  .request-card {
    padding: 18px;
  }
  .request-card p {
    font-size: 14px;
  }
  .request-top {
    font-size: 12px;
  }
  .request-top .pill {
    font-size: 11px;
  }
  .section-heading .text-button {
    font-size: 12px;
  }
  .draft-card {
    padding: 22px 18px;
  }
  .draft-card h2 {
    font-size: 23px;
  }
  .mail-meta p {
    font-size: 13px;
  }
  .mail-meta span {
    width: 60px;
  }
  .draft-body {
    font-size: 16px;
  }
  .draft-actions {
    gap: 9px;
  }
  .draft-actions .primary {
    width: 100%;
    order: -1;
  }
  .draft-actions .secondary {
    flex: 1;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: none;
    padding: 15px 18px;
    font-size: 14px;
  }
  .login-card {
    padding: 29px;
  }
  .login-card h2 {
    font-size: 26px;
  }
  .notice {
    padding: 13px 17px;
    font-size: 13px;
  }
  .event-row p {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .connection {
    font-size: 11px;
  }
  .topbar-right {
    gap: 5px;
  }
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .overview > div {
    padding: 0 9px;
  }
  .overview-label {
    font-size: 10px;
  }
  .section-index {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Calendly reference: cool surfaces, navy typography and one blue action color. */
body {
  font-size: 16px;
}
main {
  max-width: 1200px;
  padding-top: 48px;
}
h1 {
  font-size: clamp(38px, 3.5vw, 50px);
  font-weight: 700;
  letter-spacing: -1.3px;
  line-height: 1.2;
}
h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 20px;
}
.subtitle {
  font-size: 16px;
  line-height: 1.6;
}
.eyebrow {
  letter-spacing: 1px;
}
.sidebar {
  background: var(--card);
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.brand {
  color: var(--ink);
}
.brand-sub,
.workspace-label,
.profile small,
.side-note p {
  color: var(--muted);
}
.brand-mark {
  background: var(--accent);
  border-radius: 10px;
}
.nav-item {
  color: var(--muted);
  font-size: 14px;
  padding: 14px 12px;
}
.nav-item:hover {
  background: var(--color-pebble);
  color: var(--ink);
}
.nav-item.active {
  background: #e6f0ff;
  color: var(--accent);
  font-weight: 600;
}
.sidebar .nav-item.active:before {
  display: none;
}
.nav-count {
  background: #e6f0ff;
  color: var(--color-deep-cobalt);
}
.profile {
  color: var(--ink);
  border-color: var(--line);
}
.avatar {
  background: var(--color-pebble);
  border-color: var(--line);
}
.side-note strong {
  color: var(--ink);
}
.side-note {
  background: var(--color-cloud);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  margin-bottom: 24px;
}
.topbar {
  background: var(--card);
}
.breadcrumb,
#current-section {
  font-size: 12px;
}
.demo-label {
  background: #e6f0ff;
  color: var(--color-deep-cobalt);
  border: 0;
  border-radius: 50px;
  letter-spacing: 0.4px;
}
.connection,
.icon-button {
  color: var(--muted);
}
.overview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  gap: 16px;
  margin: 36px 0 40px;
}
.overview > div {
  padding: 0 18px;
}
.overview strong {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
}
.overview-label {
  font-size: 13px;
}
.overview .overview-status strong {
  font-size: 17px;
  min-height: 46px;
}
.daily-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 32px;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 24px;
}
.section-index {
  display: none;
}
.decision-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(71, 103, 136, 0.04);
}
.decision-symbol {
  background: #e6f0ff;
  color: var(--accent);
  border-radius: 10px;
  width: 40px;
  height: 40px;
}
.decision-panel h3 {
  font-size: 20px;
}
.decision-panel .eyebrow {
  font-size: 11px;
}
.decision-panel p {
  font-size: 14px;
}
.decision-panel .secondary {
  width: 100%;
  margin: 8px 0 0;
  font-size: 14px;
}
.recent-row {
  padding: 22px 0;
}
.recent-copy strong {
  font-size: 15px;
  font-weight: 500;
}
.recent-copy small {
  font-size: 12px;
}
.request-symbol {
  background: var(--color-pebble);
  border: 0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.voice-card {
  background: var(--card);
  color: var(--ink);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
.voice-card:before,
.voice-card:after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 90px;
  height: 90px;
  border-radius: 56% 44% 38% 62%;
  opacity: 0.12;
}
.voice-card:before {
  background: #0099ff;
  top: -22px;
  right: -14px;
}
.voice-card:after {
  background: #e55cff;
  bottom: 70px;
  left: -16px;
  width: 48px;
  height: 76px;
}
.voice-card .card-kicker {
  color: var(--muted);
  font-size: 10px;
}
.voice-card h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.7px;
}
.voice-card p {
  color: var(--muted);
  font-size: 15px;
  max-width: none;
}
.voice-symbol {
  color: var(--accent);
}
.voice-footnote {
  color: var(--muted);
  font-size: 12px;
}
.primary,
.primary.light {
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 16px;
}
.primary:hover,
.primary.light:hover {
  background: #005bd9;
}
.secondary {
  border-radius: 8px;
  font-size: 14px;
  min-height: 48px;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--color-pebble);
}
.text-button {
  color: var(--accent);
  font-size: 13px;
}
.text-button:hover {
  color: var(--color-deep-cobalt);
}
.connections-panel {
  margin-top: 24px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.connections-panel .section-heading h2 {
  font-size: 18px;
}
.connection-row {
  flex-wrap: wrap;
  gap: 10px;
}
.connection-row strong {
  font-size: 13px;
}
.connection-row small {
  font-size: 11px;
}
.connection-state {
  font-size: 11px;
}
.service-icon {
  color: var(--ink);
  background: var(--color-pebble);
  border: 0;
}
.prototype-note p {
  font-size: 12px;
}
.panel {
  border-radius: 24px;
  padding: 32px;
}
.panel h2 {
  font-size: 28px;
  font-weight: 600;
}
.panel p {
  font-size: 15px;
}
.assistant-layout {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}
.recorder-panel {
  box-shadow: var(--shadow-card);
}
.record-button {
  background: var(--accent);
  border-color: #e6f0ff;
  width: 100px;
  height: 100px;
  box-shadow: 0 0 0 1px var(--line);
}
.record-button:hover {
  background: #005bd9;
}
.record-button.recording {
  background: var(--red);
}
.recorder-panel strong {
  font-size: 14px;
}
input,
textarea {
  border-radius: 8px;
  border-color: var(--line);
  background: var(--color-cloud);
  color: var(--ink);
}
textarea:focus,
input:focus {
  background: white;
}
.pill {
  background: #e6f0ff;
  color: var(--color-deep-cobalt);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 12px;
}
.request-card {
  border-radius: 16px;
  padding: 24px;
}
.request-card p {
  font-size: 14px;
}
.request-top {
  font-size: 13px;
}
.request-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 14px;
}
.search-field svg {
  width: 18px;
  color: var(--muted);
}
.search-field input {
  border: 0;
  background: transparent;
  padding-left: 4px;
  min-width: 0;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-field input:focus-visible {
  outline: 0;
}
.segmented-control {
  display: flex;
  padding: 4px;
  border: 0;
  background: var(--color-pebble);
  border-radius: 10px;
  margin: 0;
  width: 100%;
}
.segmented-control label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
}
.segmented-control span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.segmented-control input:checked + span {
  background: white;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(71, 103, 136, 0.08);
}
.segmented-control input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.results-count {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 32px 24px;
}
.empty-state h3 {
  font-size: 20px;
}
.empty-state p {
  font-size: 14px;
}
.empty-state > span {
  color: var(--accent);
}
.draft-card {
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 15px rgba(71, 103, 136, 0.04);
}
.draft-card h2 {
  font-size: 28px;
  font-weight: 600;
}
.mail-meta p {
  font-size: 14px;
}
.draft-body {
  font-size: 16px;
}
.draft-actions .primary {
  font-size: 14px;
}
.setting-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e6f0ff;
  color: var(--accent);
}
.event-row p {
  font-size: 15px;
}
.event-row time {
  font-size: 12px;
}
dialog {
  border-radius: 24px;
  max-width: 480px;
  box-shadow: var(--shadow-card);
}
dialog::backdrop {
  background: rgba(11, 53, 88, 0.55);
}
.login-card h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}
.login-card p {
  font-size: 14px;
}
.toast {
  background: var(--ink);
  box-shadow: var(--shadow-card);
}
.danger {
  color: var(--red);
}
@media (max-width: 1200px) {
  .daily-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    gap: 24px;
  }
  .voice-card {
    padding: 24px;
  }
  .voice-card h2 {
    font-size: 30px;
  }
  .connections-panel {
    padding: 20px;
  }
  .assistant-layout {
    gap: 24px;
  }
}
@media (max-width: 960px) and (min-width: 761px) {
  .daily-grid {
    grid-template-columns: 1fr;
  }
  .right-column {
    align-items: start;
  }
  .connections-panel {
    margin-top: 0;
  }
  .assistant-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  main {
    padding: 32px 20px 24px;
  }
  h1 {
    font-size: 38px;
    letter-spacing: -1.2px;
  }
  .subtitle {
    font-size: 14px;
  }
  .page-heading {
    margin-bottom: 28px;
  }
  .overview {
    padding: 18px 12px;
    gap: 0;
    margin: 28px 0 32px;
  }
  .overview > div {
    padding: 0 10px;
  }
  .overview-label {
    font-size: 11px;
  }
  .overview strong {
    font-size: 28px;
  }
  .overview .overview-status strong {
    font-size: 12px;
    min-height: 34px;
  }
  .voice-card {
    padding: 24px;
    grid-template-columns: 1fr 36px;
  }
  .voice-card h2 {
    font-size: 30px;
  }
  .voice-card p {
    font-size: 14px;
    max-width: none;
  }
  .voice-card .card-kicker {
    font-size: 10px;
  }
  .voice-symbol {
    width: 36px;
  }
  .voice-card:before {
    right: -8px;
    top: -14px;
    width: 65px;
    height: 65px;
  }
  .voice-card:after {
    left: -8px;
  }
  .connections-panel {
    margin-top: 0;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading .text-button {
    font-size: 12px;
  }
  .decision-panel {
    padding: 24px;
  }
  .decision-panel h3 {
    font-size: 20px;
  }
  .decision-panel p {
    font-size: 14px;
  }
  .recent-copy strong {
    font-size: 14px;
  }
  .recent-copy small {
    font-size: 12px;
  }
  .panel {
    padding: 24px;
  }
  .panel h2 {
    font-size: 26px;
  }
  .recorder-panel > p {
    font-size: 14px;
  }
  .request-card {
    padding: 20px;
  }
  .request-top {
    font-size: 12px;
  }
  .request-top .pill {
    font-size: 11px;
  }
  .request-card p {
    font-size: 14px;
  }
  .draft-card {
    padding: 24px 20px;
  }
  .draft-card h2 {
    font-size: 26px;
  }
  .mail-meta p {
    font-size: 12px;
  }
  .mobile-nav .nav-item {
    font-size: 11px;
  }
  .mobile-nav .nav-item.active {
    color: var(--accent);
  }
  .profile small {
    font-size: 11px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .primary,
  .secondary {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: 32px;
  }
  .voice-card h2 {
    font-size: 26px;
  }
  .overview-label {
    font-size: 10px;
  }
  .overview .overview-status strong {
    font-size: 11px;
  }
  .overview > div {
    padding: 0 8px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .voice-card h2 {
    grid-column: 1/-1;
  }
  .voice-card .card-kicker {
    padding-right: 28px;
  }
  .voice-symbol {
    position: absolute;
    width: 24px;
    height: 28px;
    top: 22px;
    right: 24px;
    margin: 0;
  }
  .overview-label {
    min-height: 33px;
  }
}
/* Request journey */
.journey-tabs {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.journey-tabs a {
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--color-pebble);
}
.journey-tabs a[aria-current='page'] {
  background: var(--accent);
  color: white;
}
#view-request > .panel,
#view-request > details,
#detail-editor {
  margin: 24px 0;
}
#detail-editor {
  scroll-margin-top: 24px;
}
#detail-editor .draft-card {
  max-width: none;
  margin: 0;
}
#detail-source audio {
  width: 100%;
  max-width: 600px;
  display: block;
}
#detail-editor pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  padding: 16px;
  background: var(--color-pebble);
  border-radius: 8px;
}
#detail-title {
  overflow-wrap: anywhere;
}
[data-recovery] {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
[data-feedback] {
  min-height: 24px;
  font-size: 14px;
}
[data-conflict] {
  padding: 20px;
  border: 1px solid var(--red);
  border-radius: 16px;
  margin-top: 16px;
}
#capture-preview .request-card {
  padding: 16px;
  margin: 20px 0;
}
#capture-preview audio {
  width: 100%;
}
#capture-preview {
  scroll-margin-bottom: 100px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  line-height: 1.6;
  padding: 8px 0;
}
a.primary,
a.secondary,
.nav-item {
  min-height: 44px;
}
:focus-visible {
  scroll-margin-bottom: 110px;
}

.skip:not(:focus) {
  clip-path: inset(50%);
  pointer-events: none;
}

/* Mobile dock: four stable destinations, generous touch targets, quiet elevation. */
.nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .mobile-nav {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 460px;
    margin-inline: auto;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    border: 1px solid #d4e0ed;
    border-radius: 24px;
    background: #fff;
    box-shadow:
      0 4px 8px rgba(71, 103, 136, 0.04),
      0 12px 32px rgba(71, 103, 136, 0.13);
    backdrop-filter: none;
  }
  .mobile-nav .nav-item {
    min-height: 60px;
    padding: 6px 2px;
    gap: 4px;
    border-radius: 17px;
    color: #476788;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    transition:
      background-color 160ms ease,
      color 160ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav .nav-item.active {
    color: #006bff;
    background: #eaf2ff;
    font-weight: 700;
  }
  .mobile-nav .nav-item.active::before {
    content: none;
  }
  .mobile-nav .nav-icon {
    width: 32px;
    height: 26px;
  }
  .mobile-nav .nav-item svg {
    width: 23px;
    height: 23px;
  }
  .mobile-nav .nav-count {
    top: -4px;
    left: 23px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1;
    background: #0b3558;
    color: #fff;
    box-shadow: 0 0 0 2px #fff;
  }
  .mobile-nav .nav-item.active .nav-count {
    background: #006bff;
    box-shadow: 0 0 0 2px #eaf2ff;
  }
  .mobile-nav .nav-item:focus-visible {
    outline: 2px solid #006bff;
    outline-offset: 1px;
  }
  .mobile-nav .nav-item:active {
    background: #dceaff;
  }
  .page-footer {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav .nav-item {
    transition: none;
  }
}

/* A clear capsule with a persistent sliding lens; labels stay outside the optical layers. */
@media (max-width: 760px) {
  .mobile-nav {
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: #f8f9fb;
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.95),
      inset 0 -2px 3px rgba(71, 103, 136, 0.17),
      0 0 0 1px rgba(71, 103, 136, 0.13),
      0 5px 10px rgba(71, 103, 136, 0.09),
      0 16px 32px rgba(71, 103, 136, 0.14);
  }
  .mobile-nav::before {
    content: '';
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 7px;
    width: calc((100% - 23px) / 4);
    border-radius: 32px;
    transform: translateX(calc(var(--dock-index, 0) * (100% + 3px)));
    opacity: var(--dock-selection, 1);
    border: 1px solid transparent;
    background:
      radial-gradient(ellipse at 24% 0%, rgba(255, 255, 255, 0.9), transparent 58%) padding-box,
      radial-gradient(ellipse at 85% 105%, rgba(255, 255, 255, 0.65), transparent 50%) padding-box,
      linear-gradient(
          165deg,
          rgba(239, 247, 255, 0.32),
          rgba(191, 214, 239, 0.2) 58%,
          rgba(255, 255, 255, 0.36)
        )
        padding-box,
      linear-gradient(
          145deg,
          rgba(255, 255, 255, 0.95),
          rgba(255, 255, 255, 0.18) 38%,
          rgba(104, 139, 173, 0.22) 65%,
          rgba(255, 255, 255, 0.75)
        )
        border-box;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.92),
      inset 0 -2px 3px rgba(71, 103, 136, 0.13),
      inset 1px 0 3px rgba(255, 255, 255, 0.35),
      0 2px 3px rgba(71, 103, 136, 0.08),
      0 5px 12px rgba(71, 103, 136, 0.07);
    transition:
      transform 360ms cubic-bezier(0.22, 0.8, 0.25, 1),
      opacity 160ms ease;
    pointer-events: none;
  }
  .mobile-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    padding: 1.5px;
    background: linear-gradient(
      125deg,
      rgba(255, 255, 255, 1) 2%,
      rgba(255, 255, 255, 0.15) 35%,
      rgba(71, 103, 136, 0.19) 52%,
      rgba(255, 255, 255, 0.9) 82%,
      rgba(255, 255, 255, 0.25)
    );
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }
  .mobile-nav .nav-item {
    z-index: 1;
    border-radius: 32px;
    color: #0b3558;
    transition:
      color 180ms ease,
      transform 180ms ease,
      background-color 180ms ease;
  }
  .mobile-nav .nav-item.active {
    background: transparent;
    color: #0060df;
    box-shadow: none;
  }
  .mobile-nav .nav-item:active {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0.95);
  }
  .mobile-nav .nav-item.active .nav-count {
    box-shadow: 0 0 0 2px rgba(237, 244, 252, 0.9);
  }
  @supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .mobile-nav {
      background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.48),
        rgba(248, 251, 255, 0.2) 48%,
        rgba(255, 255, 255, 0.38)
      );
      -webkit-backdrop-filter: blur(10px) saturate(170%);
      backdrop-filter: blur(10px) saturate(170%);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav::before,
  .mobile-nav .nav-item {
    transition: none;
  }
  .mobile-nav .nav-item:active {
    transform: none;
  }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce),
  (max-width: 760px) and (prefers-contrast: more) {
  .mobile-nav {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: #476788;
  }
  .mobile-nav::before,
  .mobile-nav::after {
    display: none;
  }
  .mobile-nav .nav-item.active {
    background: #eaf2ff;
    box-shadow: none;
  }
}
@media (forced-colors: active) {
  .mobile-nav::before,
  .mobile-nav::after {
    display: none;
  }
  .mobile-nav {
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .mobile-nav .nav-item.active {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}

/* Voice workspace: quiet entry, explicit live states, history on demand. */
.conversation-stage {
  max-width: 560px;
  margin: 0 auto;
  min-height: min(760px, calc(100svh - 150px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 24px;
  text-align: center;
}
.conversation-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #476788;
}
.conversation-heading h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 14px 0 10px;
}
.conversation-heading > p:last-child {
  color: #476788;
  font-size: 15px;
  margin: 0;
}
.voice-modes {
  width: 276px;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 4px;
  background: #eaf0f6;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
}
.voice-modes label {
  flex: 1;
}
.voice-modes label span {
  border-radius: 8px;
  font-size: 13px;
  min-height: 40px;
  padding: 10px 14px;
}
.voice-modes input:disabled + span {
  opacity: 0.45;
}
#live-availability {
  max-width: 290px;
  font-size: 12px;
  margin: 12px 0 0;
}
.conversation-voice {
  margin: 0;
  width: 100%;
}
.conversation-voice .record-button {
  position: relative;
  isolation: isolate;
  width: 116px;
  height: 116px;
  margin: 38px auto 22px;
  border: 1px solid #fff;
  outline: 1px solid #d4e0ed;
  outline-offset: 5px;
  background: rgba(255, 255, 255, 0.85);
  color: #006bff;
  box-shadow:
    inset 0 2px 2px #fff,
    inset 0 -6px 12px #edf3fc,
    0 8px 15px rgba(71, 103, 136, 0.06),
    0 20px 40px rgba(71, 103, 136, 0.1);
  transition:
    transform 0.2s,
    outline-color 0.25s,
    background 0.25s;
  animation: none;
}
.conversation-voice .record-button:hover {
  background: #fff;
  outline-color: #a6bbd1;
  transform: translateY(-2px);
}
.conversation-voice .record-button:active {
  transform: scale(0.96);
}
.conversation-voice .record-button:focus-visible {
  outline: 3px solid #006bff;
  outline-offset: 6px;
}
.conversation-voice .record-button svg {
  width: 36px;
  height: 36px;
}
.conversation-voice strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.conversation-voice .hint {
  font-size: 12px;
  margin: 10px auto 0;
  max-width: 300px;
  line-height: 1.6;
}
.voice-rings {
  position: absolute;
  inset: -16px;
  border: 1px solid #e0e9f3;
  border-radius: 50%;
  pointer-events: none;
}
.voice-wave {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
}
.voice-wave i {
  width: 5px;
  height: 18px;
  background: currentColor;
  border-radius: 4px;
}
.voice-wave i:nth-child(2),
.voice-wave i:nth-child(4) {
  height: 30px;
}
.voice-wave i:nth-child(3) {
  height: 40px;
}
.live-mode .record-button.recording {
  background: #f7faff;
  color: #006bff;
  border-color: #fff;
}
.live-mode[data-voice-state='connecting'] .voice-rings {
  border: 2px solid #e0e9f3;
  border-top-color: #006bff;
  animation: voice-rotate 1.6s linear infinite;
}
.live-mode[data-voice-state='listening'] .voice-rings {
  animation: voice-breathe 2.6s ease-in-out infinite;
}
.live-mode[data-voice-state='thinking'] .voice-rings {
  border-style: dashed;
  animation: voice-rotate 9s linear infinite;
}
.live-mode[data-voice-state='speaking'] .record-button svg,
.live-mode[data-voice-state='thinking'] .record-button svg {
  display: none;
}
.live-mode[data-voice-state='speaking'] .voice-wave,
.live-mode[data-voice-state='thinking'] .voice-wave {
  display: flex;
}
.live-mode[data-voice-state='speaking'] .voice-wave i {
  animation: voice-speak 0.8s ease-in-out infinite alternate;
}
.live-mode[data-voice-state='speaking'] .voice-wave i:nth-child(2n) {
  animation-delay: -0.5s;
}
.live-mode[data-voice-state='speaking'] .voice-wave i:nth-child(3) {
  animation-delay: -0.25s;
}
.live-mode[data-voice-state='thinking'] .voice-wave i {
  height: 6px;
  animation: voice-breathe 1.5s ease-in-out infinite;
}
.live-mode[data-muted='true'] .voice-rings {
  animation: none;
  border-color: #a6bbd1;
}
.live-mode[data-muted='true'][data-voice-state='listening'] .record-button {
  color: #476788;
}
.live-mode .record-button.recording + strong {
  color: #a13529;
  font-size: 12px;
}
.live-mode .record-button.recording + strong::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  margin-right: 7px;
}
.conversation-view:not(.live-mode) .record-button.recording {
  background: #fff1ee;
  color: #b33c2b;
  outline-color: #e8b7ae;
}
.live-conversation {
  width: 100%;
  margin: 24px 0 0;
}
.voice-status {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0b3558;
}
#live-guidance {
  min-height: 40px;
  max-width: 310px;
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.55;
  color: #476788;
}
.voice-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 0;
  /* Diagnostic temporaire (recette iPhone) — à retirer avant fusion : deux boutons de plus ne
     tiennent pas sur une seule ligne à 375px de large. */
  flex-wrap: wrap;
}
.voice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d4e0ed;
  background: #fff;
  font-size: 12px;
  color: #0b3558;
}
.voice-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.voice-action:hover {
  background: #f0f3f8;
}
.voice-action[aria-pressed='true'] {
  background: #0b3558;
  color: #fff;
  border-color: #0b3558;
}
.voice-action .mute-slash {
  display: none;
}
.voice-action[aria-pressed='true'] .mute-slash {
  display: block;
}
/* Diagnostic temporaire (recette iPhone) — à retirer avant fusion. */
.voice-sample-diagnostic {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed #d4e0ed;
  background: #fff;
  font-size: 12px;
  color: #0b3558;
  text-align: left;
}
.voice-sample-diagnostic[hidden] {
  display: none;
}
.voice-sample-diagnostic p {
  margin: 0;
  font-weight: 600;
}
.voice-sample-diagnostic audio {
  width: 100%;
}
.voice-latest {
  width: 100%;
  margin-top: 24px;
  text-align: left;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2eaf3;
}
.voice-latest > span {
  font-size: 11px;
  font-weight: 600;
  color: #476788;
}
.voice-latest p {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conversation-composer {
  width: 100%;
  margin-top: 26px;
}
.conversation-composer form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 8px;
  border: 1px solid #d4e0ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(71, 103, 136, 0.04);
}
.conversation-composer form:focus-within {
  border-color: #006bff;
  box-shadow: 0 0 0 3px #006bff14;
}
.conversation-composer textarea {
  flex: 1;
  width: 0;
  margin: 0;
  padding: 10px 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  resize: vertical;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.5;
}
.conversation-composer textarea:focus {
  outline: none;
  box-shadow: none;
}
.conversation-composer button {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border-radius: 10px;
  padding: 0;
  margin: 0;
  font-size: 24px;
}
.voice-history {
  width: 100%;
  margin-top: 18px;
  text-align: left;
  border-top: 1px solid #d4e0ed;
}
.voice-history summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 12px;
  color: #476788;
  cursor: pointer;
  list-style: none;
}
.voice-history summary::-webkit-details-marker {
  display: none;
}
.history-chevron {
  font-size: 18px;
  transition: transform 0.2s;
}
.voice-history[open] .history-chevron {
  transform: rotate(180deg);
}
#live-turns {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow: auto;
  overscroll-behavior: contain;
}
#live-turns li {
  padding: 12px 14px;
  margin: 0 0 8px;
  background: #fff;
  border-radius: 12px;
}
#live-turns li[data-role='user'] {
  background: #edf3fb;
  margin-left: 24px;
}
#live-turns strong {
  font-size: 11px;
  color: #476788;
}
#live-turns p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.conversation-note {
  color: #476788;
  font-size: 10px;
  margin: 24px 0 0;
}
.conversation-capability {
  margin-top: 0;
  max-width: 440px;
  color: #476788;
  font-size: 12px;
  line-height: 1.6;
}
.conversation-capability summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.conversation-capability > p {
  text-align: left;
}
.conversation-stage #capture-preview {
  width: 100%;
  text-align: left;
  margin: 24px 0;
}
.pending-transfers {
  max-width: 560px;
  margin: 0 auto 24px;
}
@keyframes voice-rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes voice-breathe {
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}
@keyframes voice-speak {
  to {
    transform: scaleY(0.45);
  }
}
@media (max-width: 760px) {
  .conversation-stage {
    min-height: 0;
    padding: 22px 0 12px;
  }
  .conversation-heading h1 {
    font-size: 34px;
  }
  .conversation-heading .eyebrow {
    font-size: 9px;
  }
  .conversation-heading > p:last-child {
    font-size: 14px;
  }
  .conversation-view {
    padding-bottom: 12px;
  }
  body:has(.conversation-view:not([hidden])) .page-footer {
    display: none;
  }
  body:has(.conversation-view:not([hidden])) main {
    padding-bottom: calc(115px + env(safe-area-inset-bottom));
  }
  .live-mode:not([data-voice-state='idle']) .conversation-heading {
    display: none;
  }
  .live-mode:not([data-voice-state='idle']) .voice-modes {
    margin-top: 0;
  }
  .live-mode:not([data-voice-state='idle']) .record-button {
    margin-top: 30px;
    width: 100px;
    height: 100px;
  }
}
@media (max-height: 740px) and (max-width: 760px) {
  .conversation-stage {
    padding-top: 12px;
  }
  .conversation-heading h1 {
    font-size: 30px;
    margin: 8px 0;
  }
  .voice-modes {
    margin-top: 16px;
  }
  .conversation-voice .record-button {
    width: 92px;
    height: 92px;
    margin-top: 26px;
    margin-bottom: 18px;
  }
  .live-conversation {
    margin-top: 18px;
  }
  .voice-actions {
    margin-top: 10px;
  }
  .conversation-note {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .conversation-view .voice-rings,
  .conversation-view .voice-wave i {
    animation: none !important;
  }
  .conversation-view .record-button {
    transition: none;
  }
}

/* Five positions: the microphone is an action, separate from route selection. */
@media (max-width: 760px) {
  .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-block: 7px;
  }
  .mobile-nav::before {
    width: calc((100% - 26px) / 5);
  }
  .mobile-nav .nav-item {
    min-height: 68px;
    font-size: 10px;
    gap: 5px;
  }
  .mobile-nav .nav-item svg {
    width: 21px;
    height: 21px;
  }
  .dock-micro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 68px;
    padding: 0;
    border: 0;
    border-radius: 32px;
    background: transparent;
    color: #0060df;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
  }
  .dock-micro-lens {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background:
      radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.95), transparent 65%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(189, 219, 255, 0.4));
    box-shadow:
      inset 0 1px 2px #fff,
      inset 0 -2px 3px rgba(71, 103, 136, 0.16),
      0 0 0 1px rgba(71, 103, 136, 0.14),
      0 3px 9px rgba(71, 103, 136, 0.14);
    transition: transform 180ms ease;
  }
  .dock-micro svg {
    width: 27px;
    height: 27px;
  }
  .dock-micro:active .dock-micro-lens {
    transform: scale(0.93);
  }
  .dock-micro:focus-visible {
    outline: 2px solid #006bff;
    outline-offset: 1px;
  }
  .dock-micro.is-recording {
    color: #b42335;
  }
  .dock-micro.is-recording .dock-micro-lens {
    background: #fff0f1;
    border-color: #edbac1;
  }
  .dock-micro:disabled {
    opacity: 0.65;
    cursor: wait;
  }
  .mobile-nav .nav-count {
    left: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-micro-lens {
    transition: none;
  }
  .dock-micro:active .dock-micro-lens {
    transform: none;
  }
}
@media (forced-colors: active) {
  .dock-micro-lens {
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}

/* Selection is centered on the icon, not on the combined icon and label. */
@media (max-width: 760px) {
  .mobile-nav .nav-item {
    padding: 0;
    gap: 3px;
    justify-content: center;
  }
  .mobile-nav .nav-icon {
    width: 44px;
    height: 44px;
  }
  .mobile-nav::before {
    width: 44px;
    height: 44px;
    bottom: auto;
    top: 10.5px;
    left: calc(
      7px + (100% - 26px) / 5 * (var(--dock-index, 0) + 0.5) + 3px * var(--dock-index, 0) - 22px
    );
    transform: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.65),
      rgba(215, 232, 249, 0.24) 60%,
      rgba(255, 255, 255, 0.42)
    );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.95),
      inset 0 -1px 1px rgba(71, 103, 136, 0.13),
      0 1px 3px rgba(71, 103, 136, 0.12);
    transition:
      left 300ms cubic-bezier(0.22, 0.8, 0.25, 1),
      opacity 160ms ease;
  }
  .mobile-nav .nav-count {
    top: 3px;
    left: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav::before {
    transition: none;
  }
}

@media (max-height: 740px) and (max-width: 760px) {
  .live-mode:not([data-voice-state='idle']) .record-button {
    width: 88px;
    height: 88px;
    margin: 26px auto 16px;
  }
  .live-mode:not([data-voice-state='idle']) .live-conversation {
    margin-top: 16px;
  }
  .live-mode:not([data-voice-state='idle']) .voice-latest {
    margin-top: 16px;
    padding: 12px 16px;
  }
}
