@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,
.dock {
  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: 901px) {
  .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: 900px) {
  .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;
  }
  .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: 901px) {
  .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: 900px) {
  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;
  }
  .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: 900px) {
  .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;
}

/* 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: 900px) {
  .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: 900px) {
  .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;
  }
}

@media (max-height: 740px) and (max-width: 900px) {
  .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;
  }
}

/* ==========================================================================
   Nota — socle visuel (lot 1). Jetons, trois surfaces, typographie, dock,
   barre latérale, transitions d'écran. Chaque surface a ses replis :
   @supports not (backdrop-filter), prefers-reduced-transparency,
   prefers-contrast: more, forced-colors et prefers-reduced-motion.
   ========================================================================== */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  --state-alert: #e0483a;
  --state-done: #2e9e6a;
  --state-unsure: #b45d16;
  --color-cloud: #f7f9fc;
  --paper: #f7f9fc;
  --radius-cards: 22px;
  --radius-buttons: 14px;
  --card-divider: 1px solid rgba(11, 53, 88, 0.06);
  --font-display: 'Bricolage Grotesque', 'Manrope', 'Avenir Next', sans-serif;
  --ease-enter: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease-slide: ease-in-out;
  --dur-enter: 320ms;
  --dur-bounce: 420ms;
  --dur-slide: 240ms;
}
html {
  background: #f7f9fc;
}
/* Sans ce halo, le verre du dock n'a rien à réfracter. */
body {
  min-height: 100dvh;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(140% 50% at 50% -8%, #e3eeff 0%, rgba(227, 238, 255, 0) 65%),
    radial-gradient(60% 30% at 100% 55%, rgba(230, 240, 255, 0.9) 0%, rgba(230, 240, 255, 0) 70%),
    #f7f9fc;
}

/* Typographie : Bricolage pour les titres, Manrope pour le texte. */
h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.1;
}
h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.3;
}
@media (min-width: 901px) {
  h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }
  h2 {
    font-size: 20px;
  }
}

/* Boutons : 50 px, rayon 14 ; 44 px en ligne dans une carte. Un seul bleu d'action. */
button {
  border-radius: 14px;
}
.primary,
.secondary {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  transition:
    background var(--dur-slide) var(--ease-slide),
    box-shadow var(--dur-slide) var(--ease-slide),
    transform 150ms var(--ease-slide);
}
.primary {
  background: var(--color-signal-blue);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 22px -10px rgba(0, 107, 255, 0.55);
}
.primary:hover {
  background: var(--color-deep-cobalt);
}
.primary.light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(11, 53, 88, 0.05);
}
.primary.light:hover {
  background: var(--color-pebble);
}
.secondary {
  background: #fff;
  border-color: var(--color-hairline);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(11, 53, 88, 0.05);
}
.secondary:hover {
  background: var(--color-pebble);
}
.panel .primary,
.panel .secondary,
.surface-card .primary,
.surface-card .secondary,
.decision-panel .secondary,
.primary.compact,
.secondary.compact {
  min-height: 44px;
  padding-block: 9px;
}

/* 3.1 Carte : le conteneur par défaut. Jamais de carte dans une carte. */
.surface-card,
.panel,
.decision-panel,
.connections-panel,
.request-card,
.draft-card,
.overview,
.voice-card,
.recent-list,
.login-card {
  border-radius: 22px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.88)) padding-box,
    linear-gradient(
        135deg,
        #fff 0%,
        rgba(205, 220, 238, 0.95) 38%,
        rgba(255, 255, 255, 0.75) 62%,
        #cddcee 100%
      )
      border-box;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(11, 53, 88, 0.04),
    0 1px 2px rgba(11, 53, 88, 0.05),
    0 14px 34px -16px rgba(11, 53, 88, 0.25);
}
.card-divider,
.overview > div {
  border-left: var(--card-divider);
}
.recent-list {
  padding: 4px 16px;
}
.recent-list .recent-row {
  border-bottom: var(--card-divider);
}
.recent-list .recent-row:last-child {
  border-bottom: 0;
}

/* 3.2 Verre : le dock, et lui seul. L'anneau interne donne l'épaisseur. */
.surface-glass {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)) padding-box,
    linear-gradient(
        135deg,
        #fff 0%,
        rgba(255, 255, 255, 0.35) 30%,
        rgba(90, 130, 175, 0.28) 52%,
        rgba(255, 255, 255, 0.25) 70%,
        rgba(255, 255, 255, 0.95) 100%
      )
      border-box;
  box-shadow:
    inset 0 2px 3px #fff,
    inset 0 -6px 10px rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(11, 53, 88, 0.12),
    0 1px 2px rgba(11, 53, 88, 0.08),
    0 24px 48px -18px rgba(11, 53, 88, 0.4);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
}
.surface-glass::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 8px 14px -8px rgba(255, 255, 255, 0.9),
    inset 0 -8px 14px -8px rgba(11, 53, 88, 0.14);
  pointer-events: none;
}

/* 3.3 Verre sombre : confirmations et conversation. */
.surface-dark {
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 50%),
    rgba(11, 53, 88, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 44px -10px rgba(11, 53, 88, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Barre supérieure posée sur le halo, sans fond propre. */
.topbar {
  background: transparent;
  border-bottom-color: rgba(11, 53, 88, 0.06);
}

/* Barre latérale (ordinateur) : 260 px, verre léger, action « Parler à Nota ». */
.sidebar {
  width: 260px;
  padding: 22px 16px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid var(--color-hairline);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.shell {
  margin-left: 260px;
}
.brand {
  gap: 11px;
  margin: 0;
  padding: 0 8px 22px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #0f4370, #0b3558);
  color: #fff;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand-mark b {
  position: absolute;
  left: 5px;
  bottom: 2px;
  font-weight: 700;
}
.brand-mark i {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: #2f8bff;
  transform: rotate(45deg);
}
.brand-word,
.mobile-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.brand-word i,
.mobile-brand i {
  position: relative;
  top: -3px;
  width: 6px;
  height: 6px;
  background: var(--color-signal-blue);
  border-radius: 1px;
  transform: rotate(45deg);
}
.talk-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-bottom: 20px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 48%) padding-box,
    linear-gradient(#006bff, #006bff) padding-box,
    linear-gradient(
        140deg,
        #fff,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(0, 60, 170, 0.5) 60%,
        rgba(255, 255, 255, 0.9)
      )
      border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px -8px rgba(0, 107, 255, 0.5);
  transition:
    transform 150ms var(--ease-slide),
    box-shadow var(--dur-slide) var(--ease-slide);
}
.talk-button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 26px -8px rgba(0, 107, 255, 0.6);
}
.talk-button:active {
  transform: scale(0.98);
}
.talk-button svg {
  width: 20px;
  height: 20px;
}
.talk-button kbd {
  margin-left: auto;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
}
.talk-button.is-recording {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%) padding-box,
    linear-gradient(#0b3558, #0b3558) padding-box,
    linear-gradient(
        140deg,
        #fff,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(11, 53, 88, 0.5) 60%,
        rgba(255, 255, 255, 0.9)
      )
      border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 22px -8px rgba(11, 53, 88, 0.45);
}
#desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #3f5a78;
  background: transparent;
  box-shadow: none;
  transition:
    background var(--dur-slide) var(--ease-slide),
    color var(--dur-slide) var(--ease-slide);
}
.sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.sidebar .nav-item.active,
.sidebar .nav-item.active:hover {
  font-weight: 700;
  color: var(--color-signal-blue);
  background: linear-gradient(180deg, #fff, #f4f7fb);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.08);
}
.sidebar .nav-item svg {
  width: 20px;
  height: 20px;
}
.sidebar .nav-count {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6a5c, #e0483a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.sidebar .nav-icon + .nav-label + .nav-count,
.sidebar .nav-icon .nav-count {
  position: static;
}
.sidebar .nav-icon {
  display: inline-flex;
  align-items: center;
}
.sidebar .nav-icon .nav-count {
  margin-left: 0;
  order: 2;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #f7f9fc;
  border: 1px solid var(--color-hairline);
}
.side-note .status-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: var(--state-done);
}
.side-note .status-dot.is-paused {
  background: var(--state-unsure);
}
.side-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.side-note strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--ink);
  text-align: left;
}
.profile:hover {
  background: rgba(255, 255, 255, 0.7);
}
.profile .avatar {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--color-ink-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.profile strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.profile small {
  display: block;
  margin-top: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Dock (mobile) : quatre destinations, le micro au centre est une action. */
.mobile-brand,
.dock {
  display: none;
}
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    border-bottom: 0;
  }
  .mobile-brand {
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
  }
  .dock {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(40px, calc(6px + env(safe-area-inset-bottom, 0px)));
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr 82px 1fr 1fr;
    gap: 2px;
    max-width: 480px;
    margin-inline: auto;
    padding: 5px;
  }
  .dock .nav-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: auto;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1;
    color: #3f5a78;
    background: transparent;
    box-shadow: none;
    transition:
      color var(--dur-slide) var(--ease-slide),
      background var(--dur-slide) var(--ease-slide),
      box-shadow var(--dur-slide) var(--ease-slide);
    -webkit-tap-highlight-color: transparent;
  }
  .dock .nav-item:hover {
    background: transparent;
    color: #3f5a78;
  }
  .dock .nav-item.active,
  .dock .nav-item.active:hover {
    color: var(--color-signal-blue);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
    box-shadow:
      inset 0 1px 0 #fff,
      inset 0 -1px 2px rgba(11, 53, 88, 0.1),
      0 1px 2px rgba(11, 53, 88, 0.1),
      0 8px 18px -8px rgba(11, 53, 88, 0.3);
  }
  .dock .nav-item:active {
    transform: scale(0.96);
  }
  .dock .nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
  }
  .dock .nav-item svg {
    width: 23px;
    height: 23px;
  }
  .dock .nav-count {
    position: absolute;
    top: -6px;
    right: -9px;
    margin: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--state-alert);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  }
  .dock .nav-item:focus-visible,
  .dock-micro:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }
  .dock-micro {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: -22px auto 0;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    border: 2px solid transparent;
    background:
      linear-gradient(
          160deg,
          rgba(255, 255, 255, 0.34),
          rgba(255, 255, 255, 0) 48%,
          rgba(0, 40, 120, 0.18)
        )
        padding-box,
      linear-gradient(#006bff, #006bff) padding-box,
      linear-gradient(
          140deg,
          #fff,
          rgba(255, 255, 255, 0.35) 40%,
          rgba(0, 60, 170, 0.5) 60%,
          rgba(255, 255, 255, 0.9)
        )
        border-box;
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.75),
      inset 0 -4px 8px rgba(0, 50, 150, 0.45),
      0 1px 2px rgba(11, 53, 88, 0.12),
      0 18px 36px -12px rgba(0, 107, 255, 0.6);
    transition:
      transform 150ms var(--ease-slide),
      box-shadow var(--dur-slide) var(--ease-slide);
  }
  .dock-micro svg {
    width: 28px;
    height: 28px;
  }
  .dock-micro:active {
    transform: scale(1.06);
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.75),
      inset 0 -4px 8px rgba(0, 50, 150, 0.45),
      0 1px 2px rgba(11, 53, 88, 0.12),
      0 22px 44px -10px rgba(0, 107, 255, 0.8);
  }
  .dock-micro.is-recording {
    background:
      linear-gradient(
          160deg,
          rgba(255, 255, 255, 0.24),
          rgba(255, 255, 255, 0) 48%,
          rgba(0, 20, 60, 0.2)
        )
        padding-box,
      linear-gradient(#0b3558, #0b3558) padding-box,
      linear-gradient(
          140deg,
          #fff,
          rgba(255, 255, 255, 0.35) 40%,
          rgba(11, 53, 88, 0.5) 60%,
          rgba(255, 255, 255, 0.9)
        )
        border-box;
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.6),
      inset 0 -4px 8px rgba(0, 20, 60, 0.45),
      0 1px 2px rgba(11, 53, 88, 0.12),
      0 18px 36px -12px rgba(11, 53, 88, 0.6);
  }
  .dock-micro:disabled {
    opacity: 0.7;
    cursor: wait;
  }
  /* Le contenu passe sous le dock : 150 px de dégagement, mesurés comme lui depuis le bord. */
  #main {
    padding-bottom: max(150px, calc(116px + env(safe-area-inset-bottom, 0px)));
  }
  .toast {
    bottom: max(130px, calc(96px + env(safe-area-inset-bottom, 0px)));
  }
  html {
    scroll-padding-bottom: max(150px, calc(116px + env(safe-area-inset-bottom, 0px)));
  }
  :focus-visible {
    scroll-margin-bottom: 150px;
  }
  /* Transition d'écran : le sortant part à −28 % avec son ombre, l'entrant arrive de 100 %.
     Le dock ne bouge pas. */
  main {
    position: relative;
    overflow-x: clip;
  }
  .view.is-entering {
    animation: view-enter var(--dur-slide) var(--ease-slide) both;
  }
  .view.is-leaving {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-inline: inherit;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(11, 53, 88, 0.18);
    animation: view-leave var(--dur-slide) var(--ease-slide) both;
  }
}
@keyframes view-enter {
  from {
    transform: translateX(100%);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes view-leave {
  to {
    transform: translateX(-28%);
    opacity: 0;
  }
}

/* Replis. Sans backdrop-filter : fonds opaques. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .surface-glass {
    background: #fff;
  }
  .surface-dark {
    background: var(--color-ink-navy);
  }
  .sidebar {
    background: #fff;
  }
}
/* Transparence réduite ou contraste élevé : fonds pleins, liseré #476788. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .surface-glass,
  .sidebar {
    background: #fff;
    border-color: #476788;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .surface-glass {
    box-shadow: 0 8px 24px rgba(11, 53, 88, 0.18);
  }
  .surface-glass::before {
    display: none;
  }
  .surface-dark {
    background: var(--color-ink-navy);
    border-color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .surface-card,
  .panel,
  .decision-panel,
  .connections-panel,
  .request-card,
  .draft-card,
  .overview,
  .voice-card,
  .recent-list,
  .login-card {
    background: #fff;
    border-color: #476788;
    box-shadow: none;
  }
  .dock .nav-item.active,
  .sidebar .nav-item.active {
    background: #eaf2ff;
    box-shadow: none;
  }
  .dock-micro,
  .talk-button {
    background: var(--color-signal-blue);
    border-color: var(--color-deep-cobalt);
    box-shadow: none;
  }
  .dock-micro.is-recording,
  .talk-button.is-recording {
    background: var(--color-ink-navy);
    border-color: var(--color-ink-navy);
  }
}
/* Couleurs forcées : Canvas / CanvasText, pas d'ombre, pas de verre. */
@media (forced-colors: active) {
  .surface-glass,
  .surface-dark,
  .surface-card,
  .panel,
  .decision-panel,
  .connections-panel,
  .request-card,
  .draft-card,
  .overview,
  .voice-card,
  .recent-list,
  .login-card,
  .sidebar,
  .side-note {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .surface-glass::before {
    display: none;
  }
  .dock-micro,
  .talk-button,
  .primary,
  .secondary {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
  .dock .nav-item.active,
  .sidebar .nav-item.active {
    background: Canvas;
    box-shadow: none;
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
  .dock .nav-count,
  .sidebar .nav-count,
  .brand-mark {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .view.is-leaving {
    box-shadow: none;
  }
}
/* Mouvement réduit : la règle globale coupe animations et transitions ; la vue sortante disparaît. */
@media (prefers-reduced-motion: reduce) {
  .view.is-leaving {
    display: none;
  }
  .dock .nav-item:active,
  .dock-micro:active,
  .talk-button:active {
    transform: none;
  }
}

/* ==========================================================================
   Nota — lot 2 : connexion plein écran, en-tête mobile, brief, décisions.
   ========================================================================== */
/* 01 Connexion : plein écran, rien avant l'authentification. */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  background: linear-gradient(180deg, #eef4fc 0%, #fff 46%);
}
.login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.login-mark {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f4370, #0b3558);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 32px -14px rgba(11, 53, 88, 0.5);
  font-family: var(--font-display);
}
.login-mark b {
  position: absolute;
  left: 13px;
  bottom: 7px;
  font-size: 66px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  color: #fff;
}
.login-mark i {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 11px;
  height: 11px;
  background: #2f8bff;
  border-radius: 2px;
  transform: rotate(45deg);
}
.login-screen h1 {
  margin: 0 0 8px;
}
.login-diamond {
  display: inline-block;
  position: relative;
  top: -3px;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  background: var(--color-signal-blue);
  border-radius: 2px;
  transform: rotate(45deg);
}
.login-tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.login-actions,
.login-code {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: max(52px, calc(18px + env(safe-area-inset-bottom, 0px)));
}
.login-primary {
  min-height: 56px;
  border-radius: 16px;
  font-size: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), #006bff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 50, 150, 0.3),
    0 8px 18px -6px rgba(0, 107, 255, 0.45);
}
.login-primary svg {
  width: 22px;
  height: 22px;
}
.login-secondary {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  font-weight: 600;
}
.login-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.login-code {
  position: relative;
  align-items: center;
  gap: 14px;
}
.login-code-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.login-code .hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
}
.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 372px;
}
.code-box {
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: 10px;
  border: 1.5px solid var(--color-hairline);
  background: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color var(--dur-slide) var(--ease-slide),
    box-shadow var(--dur-slide) var(--ease-slide);
}
.code-box.is-active {
  border-color: var(--color-signal-blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.12);
}
.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  opacity: 0.01;
}
.code-input:focus-visible {
  outline: none;
}
.code-input:focus-visible ~ .code-boxes .code-box.is-active,
.login-code:focus-within .code-box.is-active {
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.25);
}
.login-code .error {
  min-height: 20px;
  margin: 0;
  text-align: center;
  font-size: 13px;
}
.login-back {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--muted);
}
.login-code.is-shaking .code-boxes {
  animation: shake 320ms var(--ease-slide);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* En-tête mobile : logotype, capsule hors ligne, avatar. */
.offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(180, 93, 22, 0.1);
  color: var(--state-unsure);
  font-size: 12px;
  font-weight: 700;
}
.offline-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--state-unsure);
}
.avatar-button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
}
.avatar-button .avatar {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--color-ink-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 0;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 0;
  }
  .topbar-right {
    gap: 10px;
  }
  main {
    padding-top: 16px;
  }
}

/* 02 Accueil : le brief. */
.brief-date {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.brief h1 {
  margin: 0 0 12px;
}
.brief-synthesis {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.brief-synthesis strong {
  color: var(--ink);
  font-weight: 700;
}
.brief-section {
  margin-bottom: 28px;
}
.brief .section-heading,
#view-approvals .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 10px;
}
.brief .section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6a5c, #e0483a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 10px -4px rgba(224, 72, 58, 0.6);
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-signal-blue);
}
.section-link.is-muted {
  color: var(--muted);
}
.avatar-soft {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef4ff, #dce9ff);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(0, 107, 255, 0.12);
}
.decision-entry {
  padding: 16px;
  border-bottom: var(--card-divider);
}
.decision-entry:last-child {
  border-bottom: 0;
}
.decision-open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  text-align: left;
}
.decision-who {
  min-width: 0;
  flex: 1;
}
.decision-who strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.decision-who small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.decision-who .decision-row-subject,
.decision-entry .decision-time {
  display: none;
}
.decision-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.decision-subject {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.decision-excerpt {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.decision-buttons {
  display: flex;
  gap: 8px;
}
.decision-buttons .primary,
.decision-buttons .secondary {
  flex: 1;
  min-height: 44px;
  padding-block: 8px;
  font-size: 14px;
}
.decision-buttons .primary {
  box-shadow: none;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 13px 16px;
  border-bottom: var(--card-divider);
  color: var(--ink);
}
.progress-row:last-child {
  border-bottom: 0;
}
.progress-copy {
  min-width: 0;
  flex: 1;
}
.progress-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-copy small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.row-chevron {
  display: inline-flex;
  color: #a6bbd1;
}
.row-chevron svg {
  width: 18px;
  height: 18px;
}
.spinner {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 107, 255, 0.15);
  border-top-color: var(--color-signal-blue);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.agenda-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: var(--card-divider);
}
.agenda-row:last-of-type {
  border-bottom: 0;
}
.agenda-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.agenda-time.is-next {
  color: var(--color-signal-blue);
}
.agenda-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.agenda-copy small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.list-empty,
.list-note {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
}
.list-note {
  border-top: var(--card-divider);
}
/* Cascade d'entrée : salutation, À décider, En cours, à 220 ms d'écart. */
.view.is-entering .brief-step {
  animation: brief-enter var(--dur-enter) var(--ease-enter) both;
}
.view.is-entering #brief-decide {
  animation-delay: 220ms;
}
.view.is-entering #brief-progress {
  animation-delay: 440ms;
}
.view.is-entering #brief-agenda {
  animation-delay: 660ms;
}
@keyframes brief-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 06 À valider : sélecteur capsule et cartes complètes. */
#view-approvals h1 {
  margin: 0 0 6px;
}
#view-approvals .subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
}
.segmented-tabs {
  display: flex;
  margin: 0 0 20px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(11, 53, 88, 0.1);
  background: linear-gradient(180deg, #f3f6fa, #e9eef5);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(11, 53, 88, 0.06),
    0 1px 2px rgba(11, 53, 88, 0.05);
}
.segmented-tabs a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background var(--dur-slide) var(--ease-slide),
    color var(--dur-slide) var(--ease-slide);
}
.segmented-tabs a[aria-current='page'] {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f4f7fb);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.08),
    0 6px 14px -6px rgba(11, 53, 88, 0.25);
}
.segmented-tabs .count-pill {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
}
.decision-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.decision-card {
  position: relative;
  padding: 0;
  margin: 0;
  max-width: none;
}
.decision-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 0;
}
.decision-card .avatar-soft {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.decision-card .decision-time {
  font-size: 13px;
}
.decision-content {
  padding: 16px 18px 0;
}
.decision-card .decision-subject {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.decision-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.decision-origin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.decision-origin svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-signal-blue);
  font: inherit;
  font-weight: 600;
}
.decision-audio {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.decision-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 8px;
  padding: 18px;
}
.decision-actions .primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), #006bff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 50, 150, 0.3),
    0 8px 18px -6px rgba(0, 107, 255, 0.45);
}
.decision-actions .secondary {
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.06);
}
.decision-actions .text-button {
  min-height: 50px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.key-hint {
  display: none;
  margin-left: 9px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.decision-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-pebble);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.status-pill.is-simulated_sent {
  background: rgba(46, 158, 106, 0.12);
  color: #1f7a4d;
}
.status-pill.is-rejected {
  background: rgba(179, 60, 43, 0.1);
  color: #b33c2b;
}
.decision-caption {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: var(--card-divider);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--muted);
  text-transform: uppercase;
}
.decision-caption span:last-child {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.decision-card.is-done .decision-body {
  color: var(--muted);
}

/* 07 Envoyé, annulable : la carte se replie, le bandeau compte cinq secondes. */
.is-folding {
  overflow: hidden;
  pointer-events: none;
  animation: fold 750ms var(--ease-enter) both;
}
@keyframes fold {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
.sent-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 245, 238, 0.9));
  color: #1f7a4d;
  border: 1px solid rgba(46, 158, 106, 0.25);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 20px -10px rgba(46, 158, 106, 0.35);
  animation: banner-in var(--dur-bounce) var(--ease-bounce) both;
}
.sent-banner.is-reject {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), #eef1f5);
  color: var(--muted);
  border-color: rgba(11, 53, 88, 0.12);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 20px -10px rgba(11, 53, 88, 0.2);
}
#decision-list .sent-banner {
  margin: 12px 12px 0;
}
.sent-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--state-done);
  color: #fff;
}
.sent-check svg {
  width: 18px;
  height: 18px;
}
.is-reject .sent-check {
  background: #8ba0b8;
}
.sent-copy {
  min-width: 0;
  flex: 1;
}
.sent-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.sent-copy small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: var(--state-done);
}
.is-reject .sent-copy small {
  color: var(--muted);
}
.undo-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.undo-button svg {
  width: 18px;
  height: 18px;
}
.undo-button span {
  color: var(--muted);
  font-weight: 600;
}
@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Ordinateur : deux colonnes, la décision sélectionnée à droite, ⏎ pour envoyer. */
@media (min-width: 901px) {
  .topbar {
    display: none;
  }
  main {
    max-width: none;
    padding: 34px 34px 40px;
    min-height: 100dvh;
  }
  .brief-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .brief-layout:has(.brief-aside[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
  }
  .brief-synthesis {
    margin-bottom: 26px;
    font-size: 17px;
  }
  .brief .section-heading {
    margin: 0 2px 10px;
  }
  .brief .section-heading h2 {
    font-size: 20px;
  }
  .brief-section {
    margin-bottom: 24px;
  }
  .decision-entry {
    padding: 0;
  }
  .decision-open {
    min-height: 68px;
    margin: 0;
    padding: 15px 18px;
    gap: 13px;
    border-radius: 0;
    transition: background var(--dur-slide) var(--ease-slide);
  }
  .decision-open:hover {
    background: rgba(0, 107, 255, 0.04);
  }
  .decision-entry:first-child .decision-open {
    border-radius: 22px 22px 0 0;
  }
  .decision-entry:last-child .decision-open {
    border-radius: 0 0 22px 22px;
  }
  .decision-entry:only-child .decision-open {
    border-radius: 22px;
  }
  .decision-entry .decision-time,
  .decision-who .decision-row-subject {
    display: block;
  }
  .decision-source,
  .decision-entry .decision-subject,
  .decision-entry .decision-excerpt,
  .decision-entry .decision-buttons {
    display: none;
  }
  .decision-entry.is-selected .decision-open {
    background: linear-gradient(90deg, rgba(0, 107, 255, 0.06), rgba(0, 107, 255, 0));
    box-shadow: inset 3px 0 0 var(--color-signal-blue);
  }
  .brief-aside {
    position: sticky;
    top: 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .aside-close {
    display: none;
  }
  .key-hint {
    display: inline-block;
  }
  .decision-card .decision-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
  }
  .decision-card .decision-actions .primary,
  .decision-card .decision-actions .secondary {
    min-height: 48px;
  }
  .decision-card .decision-actions .text-button {
    min-height: 48px;
    margin-left: auto;
    padding: 0 12px;
  }
  .next-slot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-hairline);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .next-slot-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7f9fc, #e9eef5);
    color: var(--ink);
    box-shadow: inset 0 1px 0 #fff;
  }
  .next-slot-icon svg {
    width: 20px;
    height: 20px;
  }
  .next-slot strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
  }
  .next-slot small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
  }
  #view-approvals {
    max-width: 760px;
  }
}
/* Entre 901 et 1100 px, la colonne de droite devient une feuille latérale. */
@media (min-width: 901px) and (max-width: 1100px) {
  .brief-layout,
  .brief-layout:has(.brief-aside[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
  }
  .brief-aside {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(480px, 100%);
    padding: 24px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid var(--color-hairline);
    box-shadow: -24px 0 60px -30px rgba(11, 53, 88, 0.35);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    animation: aside-in var(--dur-enter) var(--ease-enter) both;
  }
  .aside-close {
    display: grid;
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .brief-aside #selected-draft {
    margin-top: 36px;
  }
}
@keyframes aside-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}

/* Replis du lot 2. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .next-slot,
  .brief-aside {
    background: #fff;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .next-slot,
  .brief-aside {
    background: #fff;
    border-color: #476788;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sent-banner {
    background: #fff;
    border-color: var(--state-done);
    box-shadow: none;
  }
  .sent-banner.is-reject {
    border-color: #476788;
  }
  .segmented-tabs,
  .login-secondary,
  .decision-actions .secondary {
    background: #fff;
    border-color: #476788;
    box-shadow: none;
  }
  .segmented-tabs a[aria-current='page'],
  .decision-entry.is-selected .decision-open {
    background: #eaf2ff;
    box-shadow: none;
  }
  .code-box {
    border-color: #476788;
  }
  .login-primary,
  .decision-actions .primary,
  .decision-buttons .primary {
    background: var(--color-signal-blue);
    box-shadow: none;
  }
  .login-screen {
    background: #fff;
  }
}
@media (forced-colors: active) {
  .sent-banner,
  .segmented-tabs,
  .next-slot,
  .brief-aside,
  .code-box,
  .login-screen,
  .login-mark,
  .avatar-soft,
  .status-pill {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .count-pill,
  .sent-check,
  .spinner,
  .offline-pill::before,
  .login-diamond,
  .login-mark i {
    forced-color-adjust: none;
  }
  .count-pill,
  .sent-check {
    background: Highlight;
    color: HighlightText;
  }
  .segmented-tabs a[aria-current='page'],
  .decision-entry.is-selected .decision-open {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
  .login-primary,
  .login-secondary {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-folding {
    display: none;
  }
  .brief-aside,
  .sent-banner,
  .view.is-entering .brief-step {
    animation: none;
  }
}

/* Long production codes remain usable alongside the six-box design. */
.login-submit {
  position: relative;
  z-index: 1;
  width: 100%;
}
.login-code.is-long-code .code-boxes {
  display: none;
}
.login-code.is-long-code .code-input {
  position: static;
  height: 56px;
  opacity: 1;
  color: var(--ink);
  caret-color: auto;
  background: white;
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  padding: 12px;
}
.login-code.is-long-code .code-input:focus-visible {
  outline: 2px solid var(--color-signal-blue);
  outline-offset: 3px;
}

/* Lot 3 · feuille Parler. */
#sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 53, 88, 0.4);
  animation: sheet-fade-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
#sheet {
  position: fixed;
  z-index: 81;
  top: 110px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 24px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
  border: 0;
  border-top: 1.5px solid #fff;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #fff, #f8fafd);
  box-shadow:
    inset 0 1px 0 #fff,
    0 -1px 0 rgba(11, 53, 88, 0.08),
    0 -28px 70px rgba(11, 53, 88, 0.3);
  animation: sheet-rise 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
#sheet[hidden],
#sheet-backdrop[hidden] {
  display: none;
}
.sheet-handle {
  display: grid;
  place-items: start center;
  width: 100%;
  min-height: 30px;
  cursor: grab;
  touch-action: none;
}
.sheet-handle i {
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: #d4e0ed;
}
.sheet-transcript {
  min-height: 34px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
  text-wrap: pretty;
}
.sheet-caret {
  display: inline-block;
  width: 3px;
  height: 24px;
  vertical-align: -4px;
  border-radius: 2px;
  background: #006bff;
  animation: sheet-caret 1.1s steps(1, end) infinite;
}
@keyframes sheet-caret {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}
.sheet-quote {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.4;
  text-wrap: pretty;
}
.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet-panel {
  width: min(100%, 560px);
  min-height: 100%;
  margin: 0 auto;
}
.sheet-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.sheet-listening,
.sheet-recorded,
.sheet-text-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #0b3558;
  font-size: 14px;
  font-weight: 700;
}
.sheet-listening > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0483a;
  box-shadow: 0 0 0 5px rgba(224, 72, 58, 0.16);
  animation: sheet-recording-pulse 1.4s ease-in-out infinite;
}
.sheet-recorded {
  color: #2e9e6a;
}
.sheet-recorded svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.sheet-timer,
.sheet-position {
  margin: 0;
  color: #476788;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sheet-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sheet-wave-live {
  position: relative;
  height: 48px;
  margin: 0;
}
.sheet-wave-bar {
  position: relative;
  width: 3px;
  height: 44px;
  flex: 0 0 3px;
  border-radius: 99px;
  background: #006bff;
  transform: scaleY(0.08);
  transition: transform 80ms linear;
  transform-origin: center;
}
.sheet-wave-bar.level-1 {
  transform: scaleY(0.1);
}
.sheet-wave-bar.level-2 {
  transform: scaleY(0.2);
}
.sheet-wave-bar.level-3 {
  transform: scaleY(0.3);
}
.sheet-wave-bar.level-4 {
  transform: scaleY(0.4);
}
.sheet-wave-bar.level-5 {
  transform: scaleY(0.5);
}
.sheet-wave-bar.level-6 {
  transform: scaleY(0.6);
}
.sheet-wave-bar.level-7 {
  transform: scaleY(0.7);
}
.sheet-wave-bar.level-8 {
  transform: scaleY(0.8);
}
.sheet-wave-bar.level-9 {
  transform: scaleY(0.9);
}
.sheet-wave-bar.level-10 {
  transform: scaleY(1);
}
.sheet-message {
  min-height: 23px;
  margin: 8px 0;
  color: #476788;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.sheet-rec-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 0 28px;
}
.sheet-link {
  border: 0;
  background: transparent;
  color: #476788;
  font-weight: 650;
}
.sheet-stop {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0b3558;
  box-shadow: 0 10px 26px rgba(11, 53, 88, 0.3);
}
.sheet-stop i {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
}
.sheet-review-heading {
  margin-bottom: 14px;
}
.sheet-audio-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.sheet-play {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 0 1px 2px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f8;
  color: #0b3558;
  font-size: 16px;
}
.sheet-audio-track {
  position: relative;
  min-width: 0;
  height: 44px;
}
.sheet-wave-review {
  position: absolute;
  inset: 0;
  gap: 3px;
  overflow: hidden;
  pointer-events: none;
}
.sheet-wave-review .sheet-wave-bar {
  height: 28px;
  background: #d4e0ed;
  transition: none;
}
.sheet-wave-review .sheet-wave-bar.is-played {
  background: #0b3558;
}
.sheet-seek {
  position: absolute;
  inset: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
#sheet-player {
  display: none;
}
.sheet-position {
  font-size: 12px;
  text-align: right;
}
.sheet-intent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 107, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #eef4ff, #e1ecff);
  box-shadow: inset 0 1px 0 #fff;
  animation: sheet-intent-in 420ms cubic-bezier(0.34, 1.4, 0.5, 1) both;
}
.sheet-intent-copy {
  min-width: 0;
  flex: 1;
}
.sheet-intent strong {
  display: block;
  color: #0b3558;
  font-size: 14px;
  font-weight: 700;
}
.sheet-intent small {
  display: block;
  margin-top: 2px;
  color: #476788;
  font-size: 13px;
  line-height: 1.5;
}
.sheet-review-actions {
  margin-top: auto;
  padding: 12px 0 24px;
}
.sheet-review-actions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.sheet-primary,
.sheet-secondary {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}
.sheet-primary {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), #006bff;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 50, 150, 0.3),
    0 8px 18px -6px rgba(0, 107, 255, 0.45);
}
.sheet-secondary {
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  color: #0b3558;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.06);
}
.sheet-text-heading {
  margin-bottom: 12px;
}
.sheet-text-title {
  color: #476788;
  font-size: 14px;
}
.sheet-close {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a6bbd1;
}
.sheet-close svg {
  width: 20px;
  height: 20px;
}
#sheet-form label {
  display: block;
  margin-bottom: 8px;
  color: #476788;
  font-size: 13px;
  font-weight: 650;
}
#sheet-text {
  min-height: 154px;
  border: 1px solid #d4e0ed;
  border-radius: 16px;
  background: #fff;
  color: #0b3558;
}
.sheet-submit {
  margin-top: 0;
}
.sheet-is-open .shell,
.sheet-is-open .sidebar,
.sheet-is-open #dock {
  border-radius: 24px;
  transform: scale(0.94);
  transform-origin: center top;
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes sheet-rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes sheet-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sheet-recording-pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(224, 72, 58, 0.05);
  }
}
@keyframes sheet-intent-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 901px) {
  #sheet {
    top: auto;
    left: 50%;
    width: 720px;
    height: 560px;
    max-height: calc(100% - 72px);
    padding: 14px 36px max(16px, env(safe-area-inset-bottom));
    transform-origin: bottom center;
    margin-left: -360px;
  }
}
@media (max-height: 650px) {
  #sheet {
    top: 72px;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #sheet {
    background: #f8f9fb;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #sheet-backdrop {
    background: rgba(11, 53, 88, 0.7);
  }
  #sheet {
    border-color: #476788;
    box-shadow: none;
  }
  .sheet-intent,
  .sheet-secondary {
    border-color: #476788;
    background: #fff;
  }
}
@media (forced-colors: active) {
  #sheet,
  .sheet-intent,
  .sheet-primary,
  .sheet-secondary,
  .sheet-play,
  .sheet-stop,
  .sheet-close {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  .sheet-wave-bar,
  .sheet-stop i,
  .sheet-listening > i {
    background: Highlight;
    forced-color-adjust: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sheet,
  #sheet-backdrop,
  .sheet-intent,
  .sheet-listening > i {
    animation: none !important;
  }
  .sheet-is-open .shell,
  .sheet-is-open .sidebar,
  .sheet-is-open #dock,
  .sheet-wave-bar {
    transition: none;
  }
}

/* Lot 3 · confirmation de réception et direct temporaire hors route. */
.receipt-banner {
  position: fixed;
  top: calc(114px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #fff;
  animation: banner-in var(--dur-bounce) var(--ease-bounce) both;
}
.receipt-banner strong {
  font-size: 14px;
}
.receipt-banner p {
  margin: 3px 0 0;
  color: #c4cfda;
  font-size: 13px;
}
.receipt-check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2e9e6a;
  color: white;
}
.legacy-live-stage {
  position: fixed;
  inset: 0;
  z-index: 48;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f7f9fc;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px
    calc(24px + env(safe-area-inset-bottom, 0px));
}
.legacy-live-stage .conversation-stage {
  max-width: 720px;
  margin: auto;
}
.legacy-live-stage .conversation-voice {
  margin-top: 28px;
}
.legacy-live-stage #live-close {
  min-height: 44px;
  margin-bottom: 12px;
}
.legacy-live-stage .conversation-composer {
  position: static;
  width: 100%;
}
#live-text-form {
  display: flex;
  gap: 10px;
}
#live-text {
  flex: 1;
  min-width: 0;
}
body:has(.legacy-live-stage:not([hidden])) {
  overflow: hidden;
}
.voice-settings .voice-modes {
  display: flex;
}
@media (min-width: 901px) {
  .receipt-banner {
    left: calc(50% + 130px);
    right: auto;
    width: min(540px, calc(100vw - 300px));
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .receipt-banner {
    animation: none;
  }
}
@media (forced-colors: active) {
  .receipt-banner,
  .receipt-check {
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
  }
  .receipt-banner p {
    color: CanvasText;
  }
}

/* ==========================================================================
   Nota — lot 4 : états limites 11 à 15. Un seul patron de bandeau.
   ========================================================================== */
.state-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 #fff;
  animation: banner-in var(--dur-bounce) var(--ease-bounce) both;
}
.state-banner.is-unsure {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 240, 222, 0.9));
  border-color: #b45d1633;
  color: var(--state-unsure);
}
.state-banner.is-alert {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 233, 230, 0.9));
  border-color: #e0483a33;
  color: var(--state-alert);
}
.state-banner.is-done {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 245, 238, 0.9));
  border-color: #2e9e6a33;
  color: var(--state-done);
}
.state-banner-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 1px;
}
.state-banner-icon svg {
  width: 20px;
  height: 20px;
}
.state-banner-copy {
  min-width: 0;
  flex: 1;
}
.state-banner-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.state-banner-copy small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.state-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid currentColor;
  background: #fff;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}
.state-banner.is-unsure .state-banner-action {
  border-color: rgba(180, 93, 22, 0.3);
}
.state-banner.is-alert .state-banner-action {
  border-color: rgba(224, 72, 58, 0.3);
}
.state-banner.is-done .state-banner-action {
  border-color: rgba(46, 158, 106, 0.3);
}
/* 11-12 dans la feuille : le bandeau prend la place de la carte d'intention. */
.sheet-state:empty {
  display: none;
}
.sheet-state .state-banner {
  margin-bottom: 16px;
}
#sheet[data-state='offline'] .sheet-intent {
  display: none;
}
.sheet-compose {
  padding: 16px 18px;
}
.sheet-compose textarea {
  width: 100%;
  min-height: 96px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  resize: vertical;
}
.sheet-compose textarea:focus-visible {
  outline: none;
}
#sheet-text {
  min-height: 96px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
}
.sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.sheet-chip {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.sheet-footnote,
.list-footnote {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.list-footnote {
  margin: 20px 0 0;
}
/* 13 : envois en attente, dans Suivi. */
.pending-transfers {
  margin: 0 0 28px;
}
.pending-transfers .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 10px;
}
.pending-transfers .section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.queue-list {
  margin-bottom: 24px;
}
.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: var(--card-divider);
  color: var(--ink);
}
.queue-row:last-child {
  border-bottom: 0;
}
.queue-copy {
  min-width: 0;
  flex: 1;
}
.queue-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-copy small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.queue-copy small.error {
  color: #b33c2b;
}
.queue-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.queue-actions .link-button {
  min-height: 32px;
  font-size: 13px;
}
.queue-actions .link-button.danger {
  color: #b33c2b;
}
.queue-row .spinner {
  width: 26px;
  height: 26px;
  border-width: 2px;
  border-color: rgba(11, 53, 88, 0.12);
  border-top-color: var(--color-signal-blue);
}
.queue-done {
  display: inline-flex;
  color: var(--state-done);
}
.queue-done svg {
  width: 22px;
  height: 22px;
}
/* 14 : brouillon modifié. */
.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f0ff;
  color: var(--color-signal-blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.diff-add {
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(46, 158, 106, 0.16);
  color: inherit;
}
.decision-changed {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f6fa;
}
.decision-previous {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-pebble);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
[data-conflict] {
  margin-top: 16px;
  padding: 0;
  border: 0;
}
[data-conflict] .link-button {
  margin: 0 0 12px;
  font-size: 13px;
}
[data-conflict] pre {
  margin: 0 0 12px;
}
/* 15 : pause non confirmée. */
#pause-state:empty {
  display: none;
}
#pause-state {
  margin-bottom: 16px;
}
#pause-state .section-heading {
  display: flex;
  margin: 0 4px 10px;
}
#pause-state .section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.unsure-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}
.unsure-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7ef, #ffe9d6);
  color: var(--state-unsure);
  box-shadow: inset 0 1px 0 #fff;
}
.unsure-icon svg {
  width: 22px;
  height: 22px;
}
.unsure-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.unsure-card small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.implications p {
  margin: 0;
  padding: 14px 16px;
  border-bottom: var(--card-divider);
  font-size: 15px;
  line-height: 1.5;
}
.implications p:last-child {
  border-bottom: 0;
}
/* Replis du lot 4. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .state-banner,
  .sheet-chip,
  .unsure-icon,
  .decision-changed,
  .decision-previous {
    background: #fff;
    box-shadow: none;
  }
  .state-banner {
    border-color: currentColor;
  }
  .version-pill {
    background: #fff;
    border: 1px solid var(--color-signal-blue);
  }
  .diff-add {
    background: none;
    text-decoration: underline;
    text-decoration-color: var(--state-done);
    text-decoration-thickness: 2px;
  }
}
@media (forced-colors: active) {
  .state-banner,
  .state-banner-action,
  .sheet-chip,
  .unsure-icon,
  .version-pill,
  .decision-previous {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  .diff-add {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .queue-done {
    color: CanvasText;
  }
}
@media (prefers-reduced-motion: reduce) {
  .state-banner {
    animation: none;
  }
}

/* ==========================================================================
   Nota — lot 5 : Suivi groupé par jour, Réglages, Modifier.
   ========================================================================== */
#view-followup h1,
#view-settings h1 {
  margin: 0 0 14px;
}
.search-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.06);
  color: var(--muted);
}
.search-capsule svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.search-capsule input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.search-capsule input::placeholder {
  color: var(--muted);
}
.search-capsule input:focus-visible {
  outline: none;
}
.search-capsule:focus-within {
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 0 3px rgba(0, 107, 255, 0.18);
}
.segmented-radios {
  margin: 0;
  min-width: 0;
}
.segmented-radios label {
  position: relative;
  flex: 1;
}
.segmented-radios input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented-radios span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background var(--dur-slide) var(--ease-slide),
    color var(--dur-slide) var(--ease-slide);
}
.segmented-radios input:checked + span {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f4f7fb);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.08),
    0 6px 14px -6px rgba(11, 53, 88, 0.25);
}
.segmented-radios input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.segmented-radios input:disabled + span {
  opacity: 0.45;
}
.followup-list .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 4px 10px;
}
.followup-list .section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.followup-group {
  margin-bottom: 24px;
}
.followup-row {
  color: var(--ink);
}
.state-dot {
  display: inline-block;
  position: relative;
  top: -1px;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #a6bbd1;
}
.state-dot.is-progress {
  background: var(--color-signal-blue);
}
.state-dot.is-decide {
  background: var(--state-alert);
}
.state-dot.is-done {
  background: var(--state-done);
}
.state-dot.is-closed {
  background: #a6bbd1;
}
#view-followup .empty-state {
  margin-top: 28px;
}
/* Détail d'une demande. */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-signal-blue);
}
#view-request h1 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
#view-request .section-heading {
  display: flex;
  margin: 24px 4px 10px;
}
#view-request .section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.detail-card {
  padding: 16px 18px;
}
.detail-card p {
  margin: 0 0 8px;
}
.detail-card .event-row {
  padding: 10px 0;
}
.detail-card .transcript {
  font-size: 15px;
  line-height: 1.6;
}
.typed-word {
  display: inline-block;
  animation: word-in var(--dur-enter) var(--ease-enter) both;
}
@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* 08 Modifier : carte éditable, surlignage derrière le texte, correction dictée annoncée. */
.editor-card {
  margin-bottom: 0;
}
.editor-card .decision-head {
  padding: 16px 18px;
  border-bottom: var(--card-divider);
}
.editor-card .decision-head .link-button {
  font-size: 13px;
}
.editor-subject {
  padding: 14px 18px;
  border-bottom: var(--card-divider);
}
.eyebrow-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.editor-subject p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.editor-body {
  position: relative;
  padding: 16px 18px 18px;
}
.draft-mirror,
.editor-body textarea {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.draft-mirror {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  color: transparent;
  pointer-events: none;
}
.draft-mirror .diff-insert {
  background: rgba(0, 107, 255, 0.14);
  border-radius: 3px;
  color: transparent;
}
.editor-body textarea {
  position: relative;
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  resize: none;
  overflow: hidden;
}
.editor-body textarea:focus-visible {
  outline: none;
}
.editor-card:focus-within {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(11, 53, 88, 0.04),
    0 0 0 3px rgba(0, 107, 255, 0.18),
    0 14px 34px -16px rgba(11, 53, 88, 0.25);
}
.editor-body .decision-origin {
  margin-top: 18px;
}
.decision-origin-icon {
  display: inline-flex;
}
.decision-origin-icon svg {
  width: 18px;
  height: 18px;
}
.editor-extras {
  padding: 0 18px;
}
.editor-extras:empty {
  display: none;
}
.editor-extras [data-feedback] {
  min-height: 0;
  margin: 0;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.editor-extras [data-feedback].error {
  color: #b33c2b;
}
.editor-extras [data-recovery]:empty,
.editor-extras [data-result][hidden] {
  display: none;
}
.editor-extras [data-conflict] {
  margin: 0 0 16px;
}
.dictate-row {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
}
.dictate-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(11, 53, 88, 0.06);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.dictate-button svg {
  width: 18px;
  height: 18px;
}
.dictate-hint {
  margin: 12px 0 0;
  font-size: 13px;
}
.editor-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 0;
}
.editor-actions .text-button {
  align-self: center;
  min-height: 44px;
}
.editor-actions[hidden] {
  display: none;
}
#detail-editor [data-version-note] {
  margin-top: 12px;
}
#detail-next {
  margin: 16px 0 0;
}
/* 10 Réglages : profil, quatre groupes, interrupteurs 51 × 31. */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
}
.avatar-navy {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #0f4370, #0b3558);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 107, 255, 0.12);
}
.profile-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.profile-card small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
#view-settings .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 10px;
}
#view-settings .section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.settings-group {
  margin-bottom: 24px;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: var(--card-divider);
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-row > div:first-child {
  min-width: 0;
  flex: 1;
}
.settings-row strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.settings-row small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.settings-row.is-stacked {
  display: block;
}
.settings-row.is-stacked strong {
  margin-bottom: 10px;
}
.settings-row.is-stacked small {
  margin-top: 10px;
}
.settings-row .link-button {
  font-size: 14px;
  min-height: 44px;
}
.settings-row .link-button.danger {
  color: #b33c2b;
}
.switch {
  position: relative;
  width: 51px;
  height: 31px;
  min-height: 31px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(11, 53, 88, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background var(--dur-slide) var(--ease-slide);
}
.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--dur-slide) var(--ease-slide);
}
.switch[aria-checked='true'] {
  background: var(--color-signal-blue);
}
.switch[aria-checked='true'] i {
  transform: translateX(20px);
}
.switch[aria-disabled='true'] {
  opacity: 0.55;
}
.switch:disabled {
  cursor: wait;
}
.connection-state {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.connection-state.is-active {
  color: var(--state-done);
}
.demo-note {
  margin: -12px 0 24px;
  padding: 0 4px;
}
.pause-button {
  width: 100%;
  color: #b33c2b;
}
#view-settings > .list-footnote {
  margin-top: 10px;
}
@media (min-width: 901px) {
  #view-followup,
  #view-request,
  #view-settings {
    max-width: 760px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .search-capsule,
  .dictate-button,
  .segmented-radios input:checked + span {
    background: #fff;
    border-color: #476788;
    box-shadow: none;
  }
  .draft-mirror .diff-insert {
    background: none;
    text-decoration: underline;
    text-decoration-color: var(--color-signal-blue);
    text-decoration-thickness: 2px;
  }
}
@media (forced-colors: active) {
  .search-capsule,
  .dictate-button,
  .switch,
  .avatar-navy {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  .switch i {
    background: CanvasText;
  }
  .switch[aria-checked='true'] {
    background: Highlight;
  }
  .segmented-radios input:checked + span {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
  .state-dot,
  .draft-mirror .diff-insert {
    forced-color-adjust: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typed-word {
    animation: none;
  }
}
/* Les titres reçoivent le focus après une navigation : pas d'anneau sur un élément non interactif. */
h1[tabindex='-1']:focus-visible,
h2[tabindex='-1']:focus-visible {
  outline: none;
}

/* ==========================================================================
   Nota — lot 6 : conversation en direct (16, 17) et fil relisible (18).
   ========================================================================== */
.live-stage {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  color: #fff;
  background:
    radial-gradient(120% 60% at 50% 8%, #1b5a92 0%, rgba(27, 90, 146, 0) 62%),
    radial-gradient(90% 50% at 50% 100%, #0a2c4a 0%, rgba(10, 44, 74, 0) 70%), #08233c;
}
.live-stage[hidden] {
  display: none;
}
body:has(.live-stage:not([hidden])) {
  overflow: hidden;
}
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 22px 0;
}
.live-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}
.live-brand i {
  position: relative;
  top: -3px;
  width: 5px;
  height: 5px;
  background: #4da3ff;
  border-radius: 1px;
  transform: rotate(45deg);
}
.live-head-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.live-timer {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.live-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.live-close svg {
  width: 18px;
  height: 18px;
}
.live-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 22px calc(28px + env(safe-area-inset-bottom, 0px));
}
.live-centre {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  width: 100%;
  text-align: center;
}
.live-ribbon {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.live-glow {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 130px;
  margin-top: -65px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 150, 255, 0.3), rgba(0, 0, 0, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
  transition: background var(--dur-enter) var(--ease-enter);
}
.live-wave {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 76px;
}
.live-wave i {
  width: 3px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transform: scaleY(0.3);
  transform-origin: center;
  transition:
    background var(--dur-enter) var(--ease-enter),
    transform var(--dur-enter) var(--ease-enter);
}
.live-wave i:nth-child(1) {
  height: 4px;
  animation-delay: 0s;
}
.live-wave i:nth-child(2) {
  height: 11px;
  animation-delay: 0.07s;
}
.live-wave i:nth-child(3) {
  height: 17px;
  animation-delay: 0.14s;
}
.live-wave i:nth-child(4) {
  height: 23px;
  animation-delay: 0.21s;
}
.live-wave i:nth-child(5) {
  height: 29px;
  animation-delay: 0.28s;
}
.live-wave i:nth-child(6) {
  height: 35px;
  animation-delay: 0.35s;
}
.live-wave i:nth-child(7) {
  height: 40px;
  animation-delay: 0.42s;
}
.live-wave i:nth-child(8) {
  height: 45px;
  animation-delay: 0.49s;
}
.live-wave i:nth-child(9) {
  height: 50px;
  animation-delay: 0.56s;
}
.live-wave i:nth-child(10) {
  height: 54px;
  animation-delay: 0.63s;
}
.live-wave i:nth-child(11) {
  height: 58px;
  animation-delay: 0.7s;
}
.live-wave i:nth-child(12) {
  height: 60px;
  animation-delay: 0.77s;
}
.live-wave i:nth-child(13) {
  height: 62px;
  animation-delay: 0.84s;
}
.live-wave i:nth-child(14) {
  height: 64px;
  animation-delay: 0.91s;
}
.live-wave i:nth-child(15) {
  height: 64px;
  animation-delay: 0.98s;
}
.live-wave i:nth-child(16) {
  height: 64px;
  animation-delay: 1.05s;
}
.live-wave i:nth-child(17) {
  height: 64px;
  animation-delay: 1.12s;
}
.live-wave i:nth-child(18) {
  height: 62px;
  animation-delay: 1.19s;
}
.live-wave i:nth-child(19) {
  height: 60px;
  animation-delay: 1.26s;
}
.live-wave i:nth-child(20) {
  height: 58px;
  animation-delay: 1.33s;
}
.live-wave i:nth-child(21) {
  height: 54px;
  animation-delay: 1.4s;
}
.live-wave i:nth-child(22) {
  height: 50px;
  animation-delay: 1.47s;
}
.live-wave i:nth-child(23) {
  height: 45px;
  animation-delay: 1.54s;
}
.live-wave i:nth-child(24) {
  height: 40px;
  animation-delay: 1.61s;
}
.live-wave i:nth-child(25) {
  height: 35px;
  animation-delay: 1.68s;
}
.live-wave i:nth-child(26) {
  height: 29px;
  animation-delay: 1.75s;
}
.live-wave i:nth-child(27) {
  height: 23px;
  animation-delay: 1.82s;
}
.live-wave i:nth-child(28) {
  height: 17px;
  animation-delay: 1.89s;
}
.live-wave i:nth-child(29) {
  height: 11px;
  animation-delay: 1.96s;
}
.live-wave i:nth-child(30) {
  height: 4px;
  animation-delay: 2.03s;
}
/* En écoute : traits blancs à 82 %, ondulation lente de 3,4 s. */
.live-stage[data-voice-state='listening'] .live-wave i {
  background: rgba(255, 255, 255, 0.82);
  animation: nota-listen 3.4s ease-in-out infinite;
}
/* En réponse : blanc pur, plus ample, cadence 1,15 s. */
.live-stage[data-voice-state='speaking'] .live-wave i {
  background: #fff;
  animation: nota-speak 1.15s ease-in-out infinite;
}
.live-stage[data-voice-state='speaking'] .live-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(10, 123, 255, 0.55), rgba(0, 0, 0, 0) 70%);
}
.live-stage[data-voice-state='thinking'] .live-wave i {
  background: rgba(255, 255, 255, 0.6);
  animation: nota-think 1.6s ease-in-out infinite;
}
.live-stage[data-voice-state='connecting'] .live-wave i {
  background: rgba(255, 255, 255, 0.5);
  animation: nota-think 2.4s ease-in-out infinite;
}
.live-stage[data-muted='true'] .live-wave i {
  animation-play-state: paused;
  background: rgba(255, 255, 255, 0.35);
}
@keyframes nota-listen {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes nota-speak {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.75;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes nota-think {
  0%,
  100% {
    transform: scaleY(0.25);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(0.45);
    opacity: 0.9;
  }
}
.live-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.2;
  color: #fff;
}
.live-guidance {
  max-width: 300px;
  margin: -14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.live-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding-top: 20px;
}
.live-bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-bubbles:empty {
  display: none;
}
.bubble {
  max-width: 84%;
  padding: 12px 16px;
  animation: brief-enter var(--dur-enter) var(--ease-enter) both;
}
.bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.bubble.is-user {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.bubble.is-nota {
  align-self: flex-start;
  max-width: 88%;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.live-actions {
  display: flex;
  gap: 10px;
}
.live-capsule {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.live-capsule svg {
  width: 18px;
  height: 18px;
}
.live-capsule[hidden] {
  display: none;
}
.live-capsule.is-primary {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.live-capsule[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.28);
}
.live-capsule .mute-slash {
  display: none;
}
.live-capsule[aria-pressed='true'] .mute-slash {
  display: block;
}
.live-capsule:disabled {
  opacity: 0.55;
}
.live-composer[hidden] {
  display: none;
}
.live-composer form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.live-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  resize: none;
}
.live-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.live-send {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.live-send:disabled {
  opacity: 0.55;
}
.live-history,
.live-diagnostics {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.live-history[hidden] {
  display: none;
}
.live-history summary,
.live-diagnostics summary {
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.live-history ol {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 200px;
  overflow: auto;
}
.live-history li {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.live-history li strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.live-history li p {
  margin: 4px 0 0;
  color: #fff;
}
.live-diagnostics .voice-action,
.live-diagnostics .hint,
.live-diagnostics p {
  color: rgba(255, 255, 255, 0.72);
}
.live-diagnostics .voice-action {
  display: block;
  width: 100%;
  margin: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  min-height: 44px;
}
.live-diagnostics audio {
  width: 100%;
}
/* 18 · le fil, en clair. */
#view-conversation h1 {
  margin: 0 0 6px;
}
.conversation-subtitle {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--muted);
}
.conversation-keep {
  margin: 0 0 22px;
  font-size: 13px;
  color: #8ba0b8;
}
.conversation-card {
  padding: 4px 18px 8px;
  margin-bottom: 16px;
}
.turn {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: var(--card-divider);
}
.turn:last-child {
  border-bottom: 0;
}
.turn-time {
  padding-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #8ba0b8;
}
.turn-author {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
}
.turn-author.is-assistant {
  color: var(--color-signal-blue);
}
.turn p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}
.conversation-link {
  margin: 20px 0 4px;
}
.conversation-link[hidden] {
  display: none;
}
.conversation-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: var(--ink);
}
@media (min-width: 901px) {
  #view-conversation {
    max-width: 760px;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .live-capsule,
  .bubble.is-user {
    background: rgba(255, 255, 255, 0.2);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .live-stage {
    background: #08233c;
  }
  .live-capsule,
  .bubble.is-user,
  .live-composer textarea {
    background: #123a5e;
    border-color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .live-glow {
    display: none;
  }
}
@media (forced-colors: active) {
  .live-stage {
    background: Canvas;
    color: CanvasText;
  }
  .live-capsule,
  .bubble,
  .live-close,
  .live-composer textarea,
  .live-send {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }
  .live-wave i {
    background: CanvasText;
    forced-color-adjust: none;
  }
  .live-glow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-wave i,
  .bubble {
    animation: none;
  }
  .live-stage[data-voice-state='listening'] .live-wave i,
  .live-stage[data-voice-state='speaking'] .live-wave i {
    transform: scaleY(0.7);
  }
}
.live-actions .live-capsule {
  flex: 1 1 auto;
  padding: 0 14px;
  white-space: nowrap;
}

/* ==========================================================================
   Nota — lot 7 : écran de démarrage « La chute », page d'installation, icône.
   ========================================================================== */
/* Le splash couvre tout dès le chargement ; il s'efface dès que la session répond. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(120% 60% at 50% 12%, #e8f1ff 0%, rgba(232, 241, 255, 0) 62%), #f7f9fc;
  color: var(--ink);
  animation: splash-safety 320ms var(--ease-enter) 8s both;
}
.splash[hidden] {
  display: none;
}
.splash.is-leaving {
  animation: splash-out var(--dur-enter) var(--ease-enter) both;
  pointer-events: none;
}
.splash-centre {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.splash-word {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -2.2px;
  line-height: 1;
}
.splash-mask {
  display: flex;
  overflow: hidden;
  padding-bottom: 6px;
}
.splash-mask i {
  display: block;
  font-style: normal;
  transform: translateY(105%);
  animation: splash-letter 220ms var(--ease-enter) both;
}
.splash-mask i:nth-child(2) {
  animation-delay: 70ms;
}
.splash-mask i:nth-child(3) {
  animation-delay: 140ms;
}
.splash-mask i:nth-child(4) {
  animation-delay: 210ms;
}
/* Le losange tombe de 260 px en tournant de 405°, rebondit de 22 px puis 6 px, puis se fige. */
.splash-diamond {
  position: relative;
  top: -8px;
  width: 13px;
  height: 13px;
  background: var(--color-signal-blue);
  border-radius: 2px;
  box-shadow: 0 8px 18px -6px rgba(0, 107, 255, 0.7);
  opacity: 0;
  animation: splash-fall 1410ms var(--ease-enter) 90ms both;
}
.splash-signature {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  opacity: 0;
  animation: splash-fade 320ms var(--ease-enter) 1100ms both;
}
/* Les trois points n'apparaissent que si la session met plus de 600 ms. */
.splash-dots {
  display: flex;
  gap: 6px;
  opacity: 0;
  animation: splash-fade 200ms var(--ease-enter) 600ms both;
}
.splash-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a6bbd1;
  animation: splash-dot 900ms ease-in-out infinite;
}
.splash-dots i:nth-child(2) {
  animation-delay: 150ms;
}
.splash-dots i:nth-child(3) {
  animation-delay: 300ms;
}
.splash-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: #8ba0b8;
}
@keyframes splash-letter {
  to {
    transform: translateY(0);
  }
}
@keyframes splash-fall {
  0% {
    opacity: 0;
    transform: translateY(-260px) rotate(0deg);
  }
  6% {
    opacity: 1;
  }
  55% {
    transform: translateY(0) rotate(405deg);
  }
  66% {
    transform: translateY(-22px) rotate(405deg);
  }
  77% {
    transform: translateY(0) rotate(405deg);
  }
  85% {
    transform: translateY(-6px) rotate(405deg);
  }
  93%,
  100% {
    opacity: 1;
    transform: translateY(0) rotate(405deg);
  }
}
@keyframes splash-fade {
  to {
    opacity: 1;
  }
}
@keyframes splash-dot {
  50% {
    transform: translateY(-3px);
    opacity: 0.5;
  }
}
@keyframes splash-out {
  to {
    opacity: 0;
  }
}
@keyframes splash-safety {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* L'accueil se révèle en sortant d'un léger flou. */
body.is-revealing .shell,
body.is-revealing .sidebar,
body.is-revealing #dock {
  animation: reveal var(--dur-enter) var(--ease-enter) both;
}
@keyframes reveal {
  from {
    opacity: 0.6;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
/* Page d'installation (iOS, navigateur non installé) : une seule action. */
.install-page {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: auto;
  background: radial-gradient(130% 50% at 50% -6%, #e6f0ff 0%, rgba(230, 240, 255, 0) 62%), #f7f9fc;
  color: var(--ink);
}
.install-page[hidden] {
  display: none;
}
.install-main {
  padding: calc(22px + env(safe-area-inset-top, 0px)) 24px
    calc(40px + env(safe-area-inset-bottom, 0px));
  max-width: 480px;
  margin: 0 auto;
}
.install-mark,
.install-step-tile {
  position: relative;
  display: block;
  border-radius: 27%;
  background: linear-gradient(180deg, #0f4370, #0b3558);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}
.install-mark b,
.install-step-tile b {
  position: absolute;
  font-weight: 700;
}
.install-mark i,
.install-step-tile i {
  position: absolute;
  background: #2f8bff;
  transform: rotate(45deg);
}
.install-mark {
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px -14px rgba(11, 53, 88, 0.5);
}
.install-mark b {
  left: 11px;
  bottom: 4px;
  font-size: 51px;
  letter-spacing: -2.6px;
}
.install-mark i {
  top: 11px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.install-main h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -1.3px;
  line-height: 1.12;
}
.install-lead {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.install-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.install-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.install-benefits p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.install-benefit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #eef4ff, #dce9ff);
  color: var(--color-signal-blue);
  box-shadow: inset 0 1px 0 #fff;
}
.install-benefit-icon svg {
  width: 18px;
  height: 18px;
}
.install-add {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 16px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), #006bff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px -8px rgba(0, 107, 255, 0.45);
}
.install-add svg {
  width: 20px;
  height: 20px;
}
.install-footnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.install-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 53, 88, 0.4);
  animation: sheet-fade-in var(--dur-enter) var(--ease-enter) both;
}
.install-backdrop[hidden] {
  display: none;
}
/* La feuille des trois étapes : les mots exacts du menu, pas de capture d'écran iOS. */
.install-steps {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92%;
  overflow: auto;
  padding: 12px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0;
  border-top: 1.5px solid #fff;
  background: linear-gradient(180deg, #fff, #f8fafd);
  box-shadow: 0 -28px 70px rgba(11, 53, 88, 0.3);
  animation: sheet-rise var(--dur-enter) var(--ease-enter) both;
}
.install-steps[hidden] {
  display: none;
}
.sheet-handle-bar {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 3px;
  background: #d4e0ed;
}
.install-steps h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -1px;
  line-height: 1.15;
}
.install-steps-lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
}
.install-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.install-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: var(--card-divider);
}
.install-list li:last-child {
  border-bottom: 0;
}
.install-list p {
  flex: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}
.install-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-ink-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.install-step-number.is-last {
  background: var(--color-signal-blue);
}
.install-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef4ff, #dce9ff);
  color: var(--color-signal-blue);
  box-shadow: inset 0 1px 0 #fff;
}
.install-step-icon svg {
  width: 20px;
  height: 20px;
}
.install-step-tile {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px -8px rgba(11, 53, 88, 0.5);
}
.install-step-tile b {
  left: 8px;
  bottom: 3px;
  font-size: 37px;
  letter-spacing: -2px;
}
.install-step-tile i {
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
}
.install-note {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f6fa;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.install-continue {
  width: 100%;
  min-height: 52px;
  margin-bottom: 12px;
  border: 1px solid rgba(11, 53, 88, 0.12);
  background: linear-gradient(180deg, #fff, #f2f6fb);
  font-weight: 600;
}
.install-help {
  margin: 0;
  padding-bottom: 24px;
  text-align: center;
  font-size: 12px;
  color: #8ba0b8;
}
@media (min-width: 901px) {
  .install-steps {
    left: 50%;
    width: 560px;
    margin-left: -280px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .install-backdrop {
    background: rgba(11, 53, 88, 0.7);
  }
  .install-benefit-icon,
  .install-step-icon,
  .install-note,
  .install-continue {
    background: #fff;
    border: 1px solid #476788;
    box-shadow: none;
  }
}
@media (forced-colors: active) {
  .splash,
  .install-page,
  .install-steps {
    background: Canvas;
    color: CanvasText;
  }
  .splash-diamond,
  .install-mark,
  .install-step-tile,
  .install-step-number {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .install-benefit-icon,
  .install-step-icon,
  .install-note,
  .install-continue,
  .install-add {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }
}
/* Mouvement réduit : le splash reste lisible, sans chute ni rebond, et s'efface aussitôt. */
@media (prefers-reduced-motion: reduce) {
  .splash-mask i,
  .splash-diamond,
  .splash-signature,
  .splash-dots,
  .splash-dots i,
  .splash,
  .install-steps,
  .install-backdrop,
  body.is-revealing .shell,
  body.is-revealing .sidebar,
  body.is-revealing #dock {
    animation: none !important;
  }
  .splash-mask i {
    transform: none;
  }
  .splash-diamond,
  .splash-signature {
    opacity: 1;
  }
  .splash.is-leaving {
    display: none;
  }
}

/* ==========================================================================
   Nota — lot 8 : fidélité aux maquettes (feuille, entête, suivi, réglages, direct).
   ========================================================================== */
/* Feuille : le centre est centré verticalement, les actions restent en bas (2d, 2e, 4b). */
.sheet-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  min-height: 0;
}
[data-phase-panel='review'] .sheet-body,
[data-phase-panel='text'] .sheet-body {
  gap: 20px;
}
#sheet-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.sheet-body > .sheet-message {
  margin: 0;
  min-height: 0;
}
.sheet-body > .sheet-message:empty,
.sheet-body > .sheet-state:empty {
  display: none;
}
.sheet-state .state-banner {
  margin-bottom: 0;
}
.sheet-stop-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sheet-stop-caption {
  color: #476788;
  font-size: 12px;
  font-weight: 600;
}
.sheet-link {
  min-height: 50px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.sheet-text-actions {
  margin-top: auto;
  padding: 12px 0 24px;
}
.sheet-secondary.is-danger {
  color: #e0483a;
  border-color: rgba(224, 72, 58, 0.3);
}
#sheet-timer {
  color: #0b3558;
}
.sheet-wave-glow,
.only-desktop {
  display: none;
}
@media (min-width: 901px) {
  .only-desktop {
    display: inline;
  }
  .only-touch {
    display: none;
  }
  .sheet-handle i {
    width: 40px;
  }
  .sheet-listening {
    font-size: 15px;
  }
  #sheet-timer {
    font-size: 16px;
  }
  .sheet-transcript {
    font-size: 26px;
    letter-spacing: -0.6px;
  }
  .sheet-wave-live {
    gap: 6px;
    height: 110px;
  }
  .sheet-wave-live .sheet-wave-bar {
    flex-basis: 4px;
    width: 4px;
    height: 100px;
  }
  .sheet-wave-glow {
    position: absolute;
    top: 50%;
    right: 6%;
    left: 6%;
    display: block;
    height: 130px;
    margin-top: -65px;
    border-radius: 50%;
    background: radial-gradient(
      ellipse at 50% 50%,
      rgba(0, 140, 255, 0.22),
      rgba(0, 140, 255, 0) 70%
    );
    filter: blur(8px);
    pointer-events: none;
  }
  .sheet-stop {
    width: 78px;
    height: 78px;
    min-height: 78px;
    box-shadow: 0 14px 30px -12px rgba(11, 53, 88, 0.5);
  }
  .sheet-stop-caption {
    font-size: 13px;
  }
  .sheet-rec-actions {
    padding-bottom: 30px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .sheet-wave-glow {
    display: none;
  }
}

/* Entête : le lien retour remplace le logotype sur téléphone (08, 18). */
.topbar-back {
  display: none;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-left: -6px;
  color: var(--color-signal-blue);
  font-size: 15px;
  font-weight: 600;
}
.topbar-back svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 900px) {
  .topbar-back:not([hidden]) {
    display: inline-flex;
  }
  .topbar:has(.topbar-back:not([hidden])) .mobile-brand,
  .view .back-link {
    display: none;
  }
  /* Hors ligne, la pastille prend la place de l'avatar (4c, 4e). */
  .topbar-right:has(#network:not([hidden])) .avatar-button {
    display: none;
  }
}
/* Le pied de page du prototype n'existe pas dans les maquettes. */
.page-footer {
  display: none;
}
/* Le focus programmatique (connexion, navigation) ne dessine pas d'anneau sur la page ni sur la
   carte de correction : le curseur suffit. */
#main:focus-visible,
.view:focus-visible {
  outline: none;
}
.editor-card:focus-within {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(11, 53, 88, 0.04),
    0 1px 2px rgba(11, 53, 88, 0.05),
    0 14px 34px -16px rgba(11, 53, 88, 0.25);
}
/* 08 : la ligne de réception, la note de décision et l'origine sortent de l'écran Modifier. */
#detail-load-state.is-meta,
#detail-result.is-meta {
  display: none;
}
.detail-more {
  margin-top: 28px;
}
.detail-more > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.detail-more .section-heading {
  margin-top: 12px;
}
/* 18 : ce qui en est sorti. */
.conversation-outcomes {
  margin: 22px 0 0;
}
.conversation-outcomes .eyebrow-label {
  display: block;
  margin: 0 4px 10px;
}
/* 10 : réglages. */
.profile-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.profile-card .row-chevron,
.settings-row-button .row-chevron {
  flex-shrink: 0;
  color: #a6bbd1;
}
.profile-card .row-chevron svg,
.settings-row-button .row-chevron svg {
  width: 18px;
  height: 18px;
}
.settings-row-button {
  width: 100%;
  border: 0;
  border-bottom: var(--card-divider);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.settings-row-button:last-child {
  border-bottom: 0;
}
.settings-row-button > span:first-child {
  flex: 1;
  min-width: 0;
}
.settings-row .connection-state {
  flex-shrink: 0;
  max-width: 45%;
  text-align: right;
}
.settings-colophon {
  margin-top: 28px;
  color: #a6bbd1;
}
/* 16-17 : le fil complet se relit dans Suivi ; le diagnostic de recette reste discret. */
.live-history {
  display: none;
}
.live-diagnostics {
  font-size: 12px;
  opacity: 0.55;
}
.live-diagnostics summary {
  min-height: 32px;
  padding: 4px 0;
  font-size: 12px;
}
/* Ordinateur : la pastille au bout de la ligne, l'agenda dans la colonne de droite. */
@media (min-width: 901px) {
  .sidebar .nav-item {
    position: relative;
  }
  .sidebar .nav-icon .nav-count {
    position: absolute;
    top: 50%;
    right: 12px;
    margin: 0;
    transform: translateY(-50%);
  }
  .brief-layout:not(:has(.brief-aside[hidden])) #brief-agenda {
    display: none;
  }
}
