/* Dothiro visual system — editorial, quiet, and functional. */
:root {
  --paper: #eff0f1;
  --ink: #242122;
  --white: #ffffff;
  --line: #d7d7d2;
  --muted: #74706f;
  --acid: #d8ff72;
  --dothiro-serif: "Solway", Georgia, serif;
  --dothiro-sans: Arial, Helvetica, sans-serif;
  --dothiro-radius-lg: 30px;
  --dothiro-radius-md: 20px;
  --dothiro-radius-sm: 12px;
}

/* Decision delivery and versioned memory */
.delivery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.delivery-actions a,
.delivery-actions button,
.decision-resolved > .mark-sent,
.decision-resolved > .close-case {
  border: 1px solid var(--ink, #111);
  background: var(--ink, #111);
  color: #fff;
  padding: 11px 14px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}
.delivery-actions button { background: transparent; color: var(--ink, #111); }
.decision-resolved > .mark-sent,
.decision-resolved > .close-case { margin-top: 10px; }
.memory-scope-fields {
  border: 1px solid rgba(0,0,0,.16);
  background: rgba(255,255,255,.55);
  padding: 14px;
  margin: 12px 0;
}
.memory-scope-fields[hidden] { display: none; }
.decision-memory-list article > div > small { display: block; margin-top: 8px; opacity: .58; font-size: 9px; letter-spacing: .08em; }
.decision-memory-list [data-retire-memory] { width: auto; padding: 7px 9px; font-size: 8px; letter-spacing: .08em; }
.state-chip.ready_to_reply,
.decision-row em.ready_to_reply { background: #fff0a8; color: #111; }
.state-chip.waiting_customer,
.decision-row em.waiting_customer { background: #dcecff; color: #111; }
.state-chip.closed,
.decision-row em.closed { background: #e4e4e4; color: #111; }
.manual-send-status {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 9px;
  background: #dcecff;
  color: #111;
  font: 800 9px/1.2 monospace;
  letter-spacing: .06em;
}
.estimate-trust-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
}
.estimate-trust-note b { font: 800 9px/1.4 monospace; letter-spacing: .06em; }
.estimate-trust-note span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.structured-offers .structured-offer { padding: 16px; }
.structured-offer .offer-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.structured-offer > small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.4; }
@media (max-width: 760px) {
  .structured-offer .offer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate-trust-note { grid-template-columns: 1fr; }
}

html,
body,
#app {
  background: var(--paper);
}

body {
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  border-radius: var(--dothiro-radius-sm);
}

.logo,
.workspace-brand > b,
.workspace-header h1,
.auth-page h1,
.auth-card h2,
.startup-error h1,
.onboard-form > h1,
.assistant-card-v2 h2,
.people-intro h2,
.person-card h3,
.calendar-resource-card h3,
.workspace-settings-card h3,
.workspace-picker-modal h2,
.workspace-members-modal h2,
.response-detail-head h2,
.form-question h1,
.public-form .success h2 {
  font-family: var(--dothiro-serif);
  letter-spacing: -0.035em;
}

.eyebrow {
  letter-spacing: 0.15em;
}

.primary {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.primary:hover {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Login */
.auth-page.workspace-login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 14px;
  padding: 14px;
  background: var(--paper);
}

.auth-page.workspace-login > section,
.auth-page.workspace-login > aside {
  min-width: 0;
  border: 1px solid rgba(36, 33, 34, 0.08);
  border-radius: var(--dothiro-radius-lg);
  background: var(--white);
}

.auth-page.workspace-login > section {
  padding: clamp(32px, 5vw, 72px);
  border-right: 1px solid rgba(36, 33, 34, 0.08);
}

.auth-page.workspace-login > section > div:nth-child(2) {
  margin: auto 0;
}

.auth-page.workspace-login h1 {
  max-width: 760px;
  margin: 28px 0 30px;
  font-size: clamp(54px, 7vw, 112px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.auth-page.workspace-login section p:last-child {
  max-width: 610px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.62;
}

.auth-page.workspace-login > aside {
  padding: clamp(22px, 4vw, 52px);
  overflow: hidden;
}

.auth-card {
  width: 100%;
  min-width: 0;
  max-width: 470px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #f7f7f3;
  box-shadow: none;
}

.auth-card .mark {
  width: 52px;
  height: 52px;
  margin-bottom: clamp(52px, 8vh, 90px);
  border-radius: 50%;
}

.auth-card h2 {
  max-width: 380px;
  margin: 18px 0;
  font-size: clamp(40px, 3.6vw, 52px);
  line-height: 0.98;
  font-weight: 500;
  overflow-wrap: break-word;
}

.auth-card > p:not(.eyebrow) {
  max-width: 350px;
  line-height: 1.65;
}

.auth-card button {
  margin-top: 40px;
}

.auth-card button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-card .auth-error {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--dothiro-radius-sm);
  background: #fff4ef;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.auth-recovery {
  display: block;
  margin: 14px 0;
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font: 700 8px monospace;
  text-align: center;
  text-decoration: none;
}

.auth-recovery:hover {
  background: var(--acid);
}

/* Main workspace */
.workspace-shell {
  min-height: 100dvh;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--paper);
}

.workspace-nav {
  top: 12px;
  height: calc(100vh - 24px);
  padding: 24px 18px;
  border: 1px solid rgba(36, 33, 34, 0.08);
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
}

.workspace-brand {
  padding: 2px 5px 20px;
  border-bottom: 1px solid var(--line);
}

.workspace-brand > span {
  border-color: var(--ink);
  border-radius: 50%;
  background: var(--ink);
}

.workspace-brand > b {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.workspace-switcher {
  margin-top: 18px;
  border-color: var(--line);
  border-radius: 15px;
  background: #f6f6f2;
  color: var(--ink);
}

.workspace-switcher:hover {
  border-color: var(--ink);
  background: var(--acid);
}

.workspace-switcher em {
  color: var(--ink);
}

.workspace-nav nav {
  gap: 5px;
  margin-top: 20px;
}

.workspace-nav nav button {
  min-height: 43px;
  padding: 12px 11px;
  border: 0;
  border-radius: 999px;
  color: #777270;
}

.workspace-nav nav button:last-child {
  border-bottom: 0;
}

.workspace-nav nav button:hover {
  background: #f1f1ec;
  color: var(--ink);
}

.workspace-nav nav button.active {
  background: var(--ink);
  color: var(--white);
}

.workspace-nav nav button.active::before {
  display: none;
}

.workspace-nav nav button.active i {
  color: var(--acid);
}

.workspace-nav nav em,
.workspace-nav nav button.active em {
  border-radius: 999px;
}

.workspace-user {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.workspace-user > span {
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.workspace-main {
  min-width: 0;
}

.workspace-header {
  min-height: 164px;
  padding: 34px clamp(24px, 4vw, 58px) 30px;
  border: 1px solid rgba(36, 33, 34, 0.08);
  border-radius: var(--dothiro-radius-lg);
  background: var(--white);
}

.workspace-header h1 {
  margin: 12px 0 9px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.workspace-header > div > p:last-child {
  font-size: 13px;
  line-height: 1.6;
}

.workspace-member-button {
  border-color: var(--line);
  border-radius: 999px;
}

.workspace-member-button:hover {
  border-color: var(--ink);
}

.workspace-main > #workspace-screen {
  padding: 22px 6px 68px;
}

.workspace-stats,
.control-map,
.overview-columns > article,
.assistant-card-v2,
.inbox-v2 > aside,
.inbox-v2 > section,
.calendar-layout,
.person-card,
.calendar-resource-card,
.workspace-settings-card,
.workspace-danger-zone,
.assistant-editor-form > section,
.share-panel > section {
  overflow: hidden;
  border-color: var(--line);
  border-radius: var(--dothiro-radius-md);
  background: var(--white);
}

.workspace-stats {
  border: 1px solid var(--line);
}

.workspace-stats article {
  border-color: var(--line);
}

.workspace-stats b {
  font-family: var(--dothiro-serif);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.control-map {
  background: var(--ink);
}

.control-map > header h2 {
  font-family: var(--dothiro-serif);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.control-flow article {
  border-color: #494546;
}

.assistant-card-v2 {
  min-height: 315px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.assistant-card-v2:hover,
.person-card:hover,
.calendar-resource-card:hover {
  border-color: var(--ink);
  box-shadow: none;
  transform: translateY(-2px);
}

.assistant-card-v2 h2,
.person-card h3,
.calendar-resource-card h3 {
  font-weight: 500;
}

.capability-tags span,
.status,
.state-chip {
  border-radius: 999px;
}

.inbox-row {
  border-color: var(--line);
}

.inbox-row:hover,
.overview-columns button.overview-row:hover {
  background: #f4f4ef;
}

.calendar-toolbar button,
.calendar-toolbar select,
.workspace-settings-footer button,
.share-code button,
.scan-website,
.assistant-delete,
.assistant-publish {
  border-radius: 999px;
}

.calendar-day {
  border-color: var(--line);
}

.calendar-day.today > time,
.calendar-day > time {
  border-radius: 50%;
}

.person-card header > span,
.calendar-resource-card header > span,
.access-row > span,
.workspace-members-modal article > span {
  border-radius: 50%;
}

.editor-tabs,
.assistant-tabs {
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.editor-tabs button,
.assistant-tabs button {
  border-radius: 999px;
}

.editor-form input,
.editor-form textarea,
.editor-form select,
.assistant-editor-form input,
.assistant-editor-form textarea,
.assistant-editor-form select,
.workspace-settings-card input,
.workspace-settings-card select,
.people-modal input,
.people-modal select,
.people-modal textarea,
.appointment-modal input,
.appointment-modal select,
.appointment-modal textarea,
.lead-capture input,
.lead-capture textarea {
  border-color: #c9c9c3;
  border-radius: var(--dothiro-radius-sm);
  background: #f7f7f3;
}

.editor-form input:focus,
.editor-form textarea:focus,
.assistant-editor-form input:focus,
.assistant-editor-form textarea:focus,
.workspace-settings-card input:focus,
.lead-capture input:focus,
.lead-capture textarea:focus {
  outline: 2px solid var(--acid);
  outline-offset: 1px;
}

.modal-bg {
  padding: 22px;
  background: rgba(36, 33, 34, 0.56);
  backdrop-filter: blur(7px);
}

.create-modal,
.response-modal,
.people-modal,
.appointment-modal,
.appointment-detail,
.delete-modal,
.workspace-picker-modal,
.workspace-members-modal {
  border-color: rgba(36, 33, 34, 0.12);
  border-radius: 28px;
  background: #f7f7f3;
  box-shadow: none;
}

.modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.access-list,
.assignee-options,
.knowledge-review,
.service-profile-list {
  overflow: hidden;
  border-color: var(--line);
  border-radius: 15px;
}

.workspace-settings-footer {
  border: 0;
  border-radius: var(--dothiro-radius-md);
}

.workspace-danger-zone {
  border-color: #d8aba6;
  background: #fff8f6;
}

/* Decision desk */
.value-snapshot,
.decision-loop,
.decision-inbox > aside,
.decision-inbox > section,
.coverage-card,
.knowledge-gaps,
.decision-memory-list,
.estimate-policy {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--dothiro-radius-md);
  background: var(--white);
}

.value-snapshot > header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 42px;
  align-items: end;
  padding: clamp(30px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.value-snapshot > header .eyebrow,
.decision-loop .eyebrow {
  margin: 0 0 20px;
}

.value-snapshot > header h2,
.decision-loop > header h2 {
  margin: 0;
  font-family: var(--dothiro-serif);
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.value-snapshot > header > p {
  max-width: 410px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.value-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-metrics article {
  min-width: 0;
  padding: 24px;
}

.value-metrics article + article {
  border-left: 1px solid var(--line);
}

.value-metrics small,
.value-metrics b,
.value-metrics span {
  display: block;
}

.value-metrics small {
  font: 700 8px monospace;
  color: var(--muted);
}

.value-metrics b {
  margin: 20px 0 8px;
  font-family: var(--dothiro-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.value-metrics span {
  font-size: 10px;
  color: var(--muted);
}

.decision-loop {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.7fr);
  margin-top: 22px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.decision-loop > header {
  padding: clamp(28px, 4vw, 46px);
  border-right: 1px solid #4c4849;
}

.decision-loop > header h2 {
  font-size: clamp(36px, 4vw, 55px);
}

.decision-loop > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decision-loop article {
  min-height: 180px;
  padding: 25px;
  border-bottom: 1px solid #4c4849;
}

.decision-loop article:nth-child(odd) {
  border-right: 1px solid #4c4849;
}

.decision-loop article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.decision-loop article span,
.decision-loop article b {
  display: block;
}

.decision-loop article span {
  font: 700 8px monospace;
  color: var(--acid);
}

.decision-loop article b {
  margin-top: 42px;
  font-family: var(--dothiro-serif);
  font-size: 18px;
  font-weight: 500;
}

.decision-loop article p {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.55;
  color: #a9a6a6;
}

.decision-overview-row {
  grid-template-columns: 36px minmax(0, 1fr) 64px;
}

.decision-overview-row p b {
  display: block;
  margin-bottom: 4px;
}

.priority-dot {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 700 9px monospace;
  font-style: normal;
}

.priority-dot.urgent {
  border-color: #ac3326;
  background: #ac3326;
  color: #fff;
}

.decision-inbox {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}

.decision-inbox > aside {
  align-self: start;
  position: sticky;
  top: 20px;
  padding: 17px;
}

.decision-side-title {
  padding: 4px 4px 16px;
}

.decision-side-title .eyebrow {
  margin: 0 0 7px;
}

.decision-side-title > small {
  font: 700 7px monospace;
  color: var(--muted);
}

.decision-inbox > aside > button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 14px 7px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.decision-inbox > aside > button:last-child {
  border-bottom: 1px solid var(--line);
}

.decision-inbox > aside > button.active,
.decision-inbox > aside > button:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--ink);
  color: #fff;
}

.decision-inbox > aside b,
.decision-inbox > aside small {
  display: block;
}

.decision-inbox > aside b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-inbox > aside small {
  margin-top: 4px;
  font-size: 7px;
  color: var(--muted);
}

.decision-inbox > aside em {
  font: 700 9px monospace;
  font-style: normal;
}

.decision-inbox > section {
  min-width: 0;
}

.decision-inbox-head {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.decision-inbox-head .eyebrow,
.decision-inbox-head h2,
.decision-inbox-head p {
  margin: 0;
}

.decision-inbox-head h2 {
  margin-top: 13px;
  font-family: var(--dothiro-serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.decision-inbox-head p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.decision-status-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.decision-status-tabs button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 700 7px monospace;
  cursor: pointer;
}

.decision-status-tabs button.active {
  background: var(--ink);
  color: #fff;
}

.decision-status-tabs b {
  color: var(--muted);
}

.decision-table-head,
.decision-row {
  display: grid;
  grid-template-columns: 80px minmax(130px, 0.8fr) minmax(260px, 1.8fr) minmax(120px, 0.8fr) 92px;
  gap: 14px;
  align-items: center;
}

.decision-table-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 7px monospace;
}

.decision-row {
  width: 100%;
  min-height: 98px;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.decision-row:hover {
  background: #f4f4ef;
}

.decision-row > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.decision-row b,
.decision-row small {
  display: block;
}

.decision-row b {
  font-size: 11px;
  line-height: 1.4;
}

.decision-row small {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.35;
  color: var(--muted);
}

.decision-row p {
  min-width: 0;
  margin: 0;
}

.decision-row p b,
.decision-row p small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.decision-row p b {
  -webkit-line-clamp: 2;
}

.decision-row p small {
  -webkit-line-clamp: 1;
}

.decision-row > em {
  justify-self: end;
  font: 700 7px monospace;
  font-style: normal;
}

.decision-row > em.needs_answer {
  color: #9b2f22;
}

.decision-zero {
  margin: 0;
  border: 0;
}

/* Decision detail */
.brief-signal-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brief-signal-bar > div {
  min-width: 0;
  padding: 16px 20px;
}

.brief-signal-bar > div + div {
  border-left: 1px solid var(--line);
}

.brief-signal-bar small,
.brief-signal-bar b {
  display: block;
}

.brief-signal-bar small {
  margin-bottom: 7px;
  font: 700 7px monospace;
  color: var(--muted);
}

.brief-signal-bar b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  background: #fff;
}

.decision-brief-layout > main {
  min-width: 0;
  padding: 28px;
}

.decision-brief-card {
  margin-bottom: 22px;
  border: 1px solid var(--ink);
}

.decision-brief-card > header {
  padding: 24px;
  background: var(--ink);
  color: #fff;
}

.decision-brief-card > header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.decision-brief-card .eyebrow {
  margin: 0;
  color: var(--acid);
}

.decision-brief-card > header span {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font: 700 7px monospace;
}

.decision-brief-card h3 {
  max-width: 720px;
  margin: 24px 0 0;
  font-family: var(--dothiro-serif);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brief-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-facts article {
  padding: 22px;
}

.brief-facts article + article {
  border-left: 1px solid var(--line);
}

.brief-facts small {
  font: 700 7px monospace;
  color: var(--muted);
}

.brief-facts p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.decision-composer {
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--acid);
}

.memory-choice {
  margin: 18px 0;
  padding: 0;
  border: 1px solid var(--line);
}

.memory-choice legend {
  padding: 0 8px;
  font: 700 7px monospace;
  color: var(--muted);
}

.memory-choice label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin: 0;
  padding: 14px;
  cursor: pointer;
}

.memory-choice label + label {
  border-top: 1px solid var(--line);
}

.memory-choice input {
  margin: 3px 0 0;
}

.memory-choice b,
.memory-choice small {
  display: block;
}

.memory-choice b {
  font-size: 11px;
}

.memory-choice small {
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}

.decision-brief-side {
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.decision-brief-side > section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.decision-brief-side .eyebrow {
  margin: 0 0 14px;
}

.decision-brief-side h4 {
  margin: 0 0 5px;
  font-size: 17px;
}

.decision-brief-side a {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.decision-brief-side .assignee-options {
  border-radius: 10px;
}

.decision-brief-side .save-response-assignees {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: 700 7px monospace;
  cursor: pointer;
}

.memory-impact b,
.memory-impact span,
.memory-impact small {
  display: block;
}

.memory-impact b {
  font-family: var(--dothiro-serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.memory-impact span {
  font-size: 10px;
}

.memory-impact small {
  margin-top: 13px;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.response-conversation > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  list-style: none;
  cursor: pointer;
}

.response-conversation > summary::-webkit-details-marker {
  display: none;
}

.response-conversation > summary .eyebrow,
.response-conversation > summary h3 {
  margin: 0;
}

.response-conversation > summary h3 {
  margin-top: 5px;
  font-size: 11px;
}

.response-conversation > summary > b {
  font: 700 7px monospace;
}

.response-conversation[open] > summary {
  border-bottom: 1px solid var(--line);
}

.decision-resolved {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #f1f7df;
}

.decision-resolved p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.6;
}

.decision-resolved small {
  font: 700 7px monospace;
}

.decision-resolved a {
  width: max-content;
  display: block;
  margin-top: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 8px monospace;
  text-decoration: none;
}

.delivery-note {
  margin: 0 0 14px;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

/* Approved knowledge and estimate controls */
.coverage-card,
.knowledge-gaps,
.decision-memory-list,
.estimate-policy {
  margin-top: 20px;
}

.coverage-card > header,
.knowledge-gaps > header,
.decision-memory-list > header,
.estimate-policy > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.coverage-card > header .eyebrow,
.knowledge-gaps > header .eyebrow,
.decision-memory-list > header .eyebrow,
.estimate-policy > header .eyebrow {
  margin: 0;
}

.coverage-card > header > div {
  display: flex;
  gap: 15px;
  align-items: center;
}

.coverage-card > header b {
  font-family: var(--dothiro-serif);
  font-size: 26px;
  font-weight: 500;
}

.coverage-card > header > span,
.knowledge-gaps > header > span,
.decision-memory-list > header > span,
.estimate-policy > header > span {
  font: 700 7px monospace;
  color: var(--muted);
}

.coverage-card > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coverage-card article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.coverage-card article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.coverage-card article i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 700 8px monospace;
  font-style: normal;
}

.coverage-card article.gap i {
  background: var(--paper);
  color: var(--muted);
}

.coverage-card article b,
.coverage-card article small {
  display: block;
}

.coverage-card article b {
  font-size: 8px;
}

.coverage-card article small {
  margin-top: 3px;
  font-size: 8px;
  color: var(--muted);
}

.coverage-card > p {
  margin: 0;
  padding: 13px 16px;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.knowledge-gaps > header h4 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.knowledge-gaps > button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.knowledge-gaps > button:hover {
  background: var(--paper);
}

.knowledge-gaps > button > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  font: 700 8px monospace;
}

.knowledge-gaps > button b,
.knowledge-gaps > button small {
  display: block;
}

.knowledge-gaps > button b {
  font-size: 10px;
}

.knowledge-gaps > button small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-gaps > button em {
  font: 700 7px monospace;
  font-style: normal;
}

.decision-memory-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.decision-memory-list article b {
  font-size: 10px;
}

.decision-memory-list article p {
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.decision-memory-list article button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.estimate-policy {
  padding-bottom: 17px;
  background: var(--paper);
}

.estimate-policy > header {
  background: var(--ink);
  color: #fff;
}

.estimate-policy > header > span {
  color: var(--acid);
}

.estimate-policy > .two,
.estimate-policy > label {
  margin-right: 17px;
  margin-left: 17px;
}

@media (max-width: 1180px) {
  .decision-inbox-head {
    display: block;
  }
  .decision-status-tabs {
    width: max-content;
    max-width: 100%;
    margin-top: 18px;
    overflow: auto;
  }
  .decision-table-head,
  .decision-row {
    grid-template-columns: 72px minmax(120px, 0.8fr) minmax(220px, 1.6fr) 90px;
  }
  .decision-table-head > span:nth-child(4),
  .decision-row > span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .value-snapshot > header,
  .decision-loop,
  .decision-inbox,
  .decision-brief-layout {
    grid-template-columns: 1fr;
  }
  .value-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .value-metrics article:nth-child(3) {
    border-left: 0;
  }
  .value-metrics article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .decision-loop > header {
    border-right: 0;
    border-bottom: 1px solid #4c4849;
  }
  .decision-inbox > aside {
    position: static;
    display: flex;
    gap: 6px;
    overflow: auto;
  }
  .decision-side-title {
    flex: 0 0 140px;
  }
  .decision-inbox > aside > button {
    flex: 0 0 180px;
    border: 1px solid var(--line);
  }
  .decision-inbox > aside > button:last-child {
    border-bottom: 1px solid var(--line);
  }
  .decision-brief-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .decision-brief-side > section {
    min-width: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 650px) {
  .value-snapshot > header {
    display: block;
    padding: 28px 22px;
  }
  .value-snapshot > header > p {
    margin-top: 24px;
  }
  .value-metrics {
    grid-template-columns: 1fr;
  }
  .value-metrics article + article,
  .value-metrics article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .decision-loop > div {
    grid-template-columns: 1fr;
  }
  .decision-loop article,
  .decision-loop article:nth-child(odd),
  .decision-loop article:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #4c4849;
  }
  .decision-loop article:last-child {
    border-bottom: 0;
  }
  .decision-loop article b {
    margin-top: 25px;
  }
  .decision-inbox-head {
    padding: 22px;
  }
  .decision-table-head {
    display: none;
  }
  .decision-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 17px;
  }
  .decision-row > span:first-child small,
  .decision-row > p,
  .decision-row > span:nth-child(4) {
    display: none;
  }
  .decision-row > em {
    grid-column: 3;
  }
  .brief-signal-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brief-signal-bar > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .brief-signal-bar > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .decision-brief-layout > main {
    padding: 16px;
  }
  .brief-facts,
  .decision-brief-side {
    grid-template-columns: 1fr;
  }
  .brief-facts article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .decision-brief-side > section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .coverage-card > div {
    grid-template-columns: 1fr;
  }
  .coverage-card article:nth-child(odd) {
    border-right: 0;
  }
  .knowledge-gaps > button em {
    display: none;
  }
}

/* August 2026 — decision workflow, Memory, Insights, and private visitor threads */
.optional-workspace-nav {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.notification-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.notification-button > span {
  font: 800 12px/1 var(--dothiro-sans);
}

.notification-button > em {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0 4px;
  font: 800 8px/1 var(--dothiro-sans);
  font-style: normal;
}

.notification-button:not(.has-unread) > em,
.notification-button:not(.has-unread)::after {
  display: none;
}

.notification-button.has-unread {
  background: var(--acid);
}

.notification-panel {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  max-height: min(780px, calc(100dvh - 28px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  padding: 30px;
}

.notification-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 0 40px 24px 0;
  border-bottom: 1px solid var(--line);
}

.notification-panel > header h2,
.memory-overview h2,
.memory-library h2,
.insights-summary h2,
.insight-outcomes h2,
.assistant-insights h2 {
  margin: 8px 0 0;
  font: 500 clamp(30px, 4vw, 48px)/0.98 var(--dothiro-serif);
  letter-spacing: -0.045em;
}

.mark-all-notifications,
.notification-row,
.memory-record button,
.assistant-insight-row,
.run-assistant-tests,
.assistant-version button,
.visitor-portal-card button,
.visitor-portal-card a,
.follow-up-actions button,
.case-outcome button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 800 9px/1.2 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.mark-all-notifications {
  border-radius: 999px;
  padding: 10px 13px;
  white-space: nowrap;
}

.notification-list {
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
  text-align: left;
  letter-spacing: normal;
}

.notification-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-weight: 800;
}

.notification-row.unread > span {
  background: var(--acid);
}

.notification-row b,
.notification-row p,
.notification-row small {
  display: block;
  margin: 0;
}

.notification-row b {
  font-size: 13px;
}

.notification-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notification-row small {
  margin-top: 8px;
  color: var(--muted);
  font: 700 8px/1 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.notification-row.read {
  opacity: 0.58;
}

.editor-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: var(--white);
  font: 800 8px/1 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.memory-overview,
.memory-library,
.insights-summary,
.insight-outcomes,
.assistant-insights {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
}

.memory-overview > header,
.memory-library > header,
.insights-summary > header,
.insight-outcomes > header,
.assistant-insights > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 28px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
}

.memory-overview > header > p,
.memory-library > header > p,
.insights-summary > header > p,
.insight-outcomes > header > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.memory-library,
.insight-outcomes,
.assistant-insights,
.insight-metrics {
  margin-top: 14px;
}

.value-metrics,
.insight-funnel,
.insight-outcomes > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.value-metrics article,
.insight-funnel article,
.insight-outcomes > div > article {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: 20px;
}

.value-metrics article:last-child,
.insight-funnel article:last-child,
.insight-outcomes > div > article:last-child {
  border-right: 0;
}

.value-metrics small,
.insight-funnel small,
.insight-outcomes small {
  font: 800 8px/1.2 var(--dothiro-sans);
  letter-spacing: 0.1em;
}

.value-metrics b,
.insight-funnel b,
.insight-outcomes b {
  margin: auto 0 4px;
  font: 500 46px/0.9 var(--dothiro-serif);
  letter-spacing: -0.04em;
}

.value-metrics span,
.insight-funnel span {
  color: var(--muted);
  font-size: 10px;
}

.insight-funnel article:nth-child(2) { background: #f5f8e9; }
.insight-funnel article:nth-child(3) { background: #f1f5ff; }
.insight-funnel article:nth-child(4) { background: var(--acid); }

.memory-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(20px, 4vw, 42px) clamp(20px, 4vw, 42px);
}

.memory-record {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafaf8;
  padding: 20px;
}

.memory-record.superseded,
.memory-record.retired {
  opacity: 0.58;
}

.memory-record > header,
.memory-record > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.memory-record > header small,
.memory-record > header span,
.memory-record dt {
  font: 800 8px/1.2 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.memory-record > header span {
  border-radius: 999px;
  background: var(--acid);
  padding: 7px 9px;
}

.memory-record > header h3 {
  margin: 8px 0 0;
  font: 500 22px/1.06 var(--dothiro-serif);
  letter-spacing: -0.03em;
}

.memory-record > p {
  margin: 22px 0;
  color: #3e3a39;
  font-size: 13px;
  line-height: 1.65;
}

.memory-record dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: auto 0 18px;
}

.memory-record dl > div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.memory-record dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.memory-record > footer button,
.memory-record > footer span {
  padding: 9px 11px;
  border-radius: 999px;
  font: 800 8px/1 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.memory-record > footer button:last-child {
  border-color: #9b2f22;
  color: #8a1f18;
}

.insight-outcomes > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.assistant-insights {
  padding-bottom: 18px;
}

.assistant-insight-row {
  width: calc(100% - clamp(40px, 8vw, 84px));
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto) auto;
  gap: 20px;
  align-items: center;
  margin: 0 clamp(20px, 4vw, 42px);
  border: 0;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  text-align: left;
  letter-spacing: normal;
}

.assistant-insight-row span b,
.assistant-insight-row span small {
  display: block;
}

.assistant-insight-row span small,
.assistant-insight-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.assistant-insight-row > b {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.launch-readiness,
.assistant-test-lab,
.assistant-version-history {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  padding: 24px;
}

.assistant-test-lab,
.assistant-version-history {
  margin-top: 14px;
}

.launch-readiness > header,
.assistant-test-lab > header,
.assistant-version-history > header,
.test-run-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.launch-readiness h3,
.assistant-test-lab h3,
.assistant-version-history h3 {
  margin: 7px 0 0;
  font: 500 27px/1.05 var(--dothiro-serif);
  letter-spacing: -0.035em;
}

.launch-readiness > header > span {
  border-radius: 999px;
  padding: 8px 11px;
  font: 800 8px/1 var(--dothiro-sans);
  letter-spacing: 0.09em;
}

.launch-readiness > header > span.ready { background: var(--acid); }
.launch-readiness > header > span.not-ready { background: #ffe7a8; }

.launch-readiness > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.launch-readiness article,
.test-result,
.assistant-version {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
}

.launch-readiness article > span,
.test-result > span,
.assistant-version > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-weight: 800;
}

.launch-readiness article.passed > span,
.test-result.passed > span {
  background: var(--acid);
}

.launch-readiness article.missing > span,
.test-result.failed > span {
  background: #ffe7a8;
}

.launch-readiness article b,
.launch-readiness article small,
.test-result b,
.test-result small,
.assistant-version b,
.assistant-version small {
  display: block;
}

.launch-readiness article b,
.test-result b,
.assistant-version b {
  font-size: 11px;
}

.launch-readiness article small,
.test-result small,
.assistant-version small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.launch-readiness > p,
.assistant-test-lab > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.run-assistant-tests {
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  white-space: nowrap;
}

.test-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.test-case-editor {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafaf8;
  padding: 14px;
}

.test-case-editor label + label {
  margin-top: 10px;
}

.test-run-summary {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.test-run-summary > header {
  margin-bottom: 10px;
}

.test-result + .test-result,
.assistant-version + .assistant-version {
  margin-top: 8px;
}

.test-result p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.assistant-version {
  grid-template-columns: 36px 1fr auto;
  align-items: center;
}

.assistant-version button {
  border-radius: 999px;
  padding: 8px 10px;
}

.visitor-portal-card,
.owner-follow-up,
.case-outcome {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafaf8;
  padding: 18px;
}

.visitor-portal-card > header,
.owner-follow-up .decision-head,
.case-outcome .decision-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.visitor-portal-card h3 {
  margin: 6px 0 0;
  font: 500 22px/1.05 var(--dothiro-serif);
  letter-spacing: -0.03em;
}

.visitor-portal-card > header > span,
.portal-published-note {
  display: inline-flex;
  border-radius: 999px;
  background: var(--acid);
  padding: 7px 9px;
  font: 800 8px/1 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.visitor-portal-card > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.visitor-portal-card > div,
.follow-up-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.visitor-portal-card button,
.visitor-portal-card a,
.follow-up-actions button,
.case-outcome button {
  border-radius: 999px;
  padding: 10px 12px;
  text-decoration: none;
}

.owner-follow-up .two,
.case-outcome .two {
  margin-top: 14px;
}

.full-page-share {
  margin-top: 12px;
}

/* Public assistant review and private return thread */
.assistant-disclosure {
  max-width: 620px;
  margin: 16px 0 0;
  color: color-mix(in srgb, var(--ptext) 62%, transparent);
  font-size: 10px;
  line-height: 1.55;
}

.assistant-disclosure b {
  margin-right: 5px;
  color: var(--ptext);
  font: 800 8px/1 var(--dothiro-sans);
  letter-spacing: 0.1em;
}

.handoff-review {
  margin: 8px 0 4px;
  border: 1px solid color-mix(in srgb, var(--ptext) 22%, transparent);
  border-radius: max(14px, calc(var(--pradius) * 0.6));
  background: color-mix(in srgb, var(--psurface) 92%, var(--paccent));
  padding: clamp(18px, 4vw, 28px);
}

.handoff-review h2 {
  margin: 8px 0 0;
  font: 500 clamp(27px, 4vw, 38px)/1 var(--dothiro-serif);
  letter-spacing: -0.04em;
}

.handoff-review .lead-note {
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--ptext) 65%, transparent);
  font-size: 11px;
  line-height: 1.55;
}

.handoff-summary {
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--ptext) 18%, transparent);
  border-radius: 13px;
  background: var(--psurface);
  padding: 16px;
}

.handoff-summary p {
  margin: 0;
  color: var(--ptext);
  font-size: 13px;
  line-height: 1.65;
}

.handoff-summary small {
  display: block;
  margin-top: 12px;
  color: color-mix(in srgb, var(--ptext) 62%, transparent);
  font: 800 8px/1.4 var(--dothiro-sans);
  letter-spacing: 0.07em;
}

.handoff-review-actions,
.lead-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.handoff-review-actions button,
.lead-form-actions button,
.visitor-thread-link {
  min-height: 42px;
  border: 1px solid var(--ptext);
  border-radius: 999px;
  padding: 11px 15px;
  background: transparent;
  color: var(--ptext);
  cursor: pointer;
  font: 800 9px/1.2 var(--dothiro-sans);
  letter-spacing: 0.07em;
  text-decoration: none;
}

.handoff-review-actions .continue-contact,
.lead-form-actions button[type="submit"],
.visitor-thread-link {
  background: var(--paccent);
}

.private-link-note {
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--ptext) 65%, transparent);
  font-size: 10px;
  line-height: 1.55;
}

.public-thread .inquiry-form-shell {
  width: min(820px, calc(100% - 24px));
}

.public-thread .visitor-thread-card {
  border-radius: 24px;
}

.public-thread .chat-card > header {
  justify-content: space-between;
}

.public-thread .chat-card > header > .thread-status {
  width: auto;
  min-width: 0;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paccent);
  padding: 8px 10px;
  color: var(--ptext);
  font: 800 8px/1 var(--dothiro-sans);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.thread-heading h1 {
  max-width: 560px;
}

.thread-messages {
  scroll-padding-bottom: 20px;
}

.public-thread .msg small {
  width: auto;
  min-width: 38px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 7px;
  white-space: nowrap;
}

.thread-owner-answer,
.thread-waiting,
.thread-contact-correction {
  margin: 16px 0 2px;
  border: 1px solid color-mix(in srgb, var(--ptext) 20%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--psurface) 91%, var(--paccent));
  padding: 18px;
}

.thread-owner-answer > p:last-child,
.thread-waiting > p:last-child {
  margin: 10px 0 0;
  color: var(--ptext);
  font-size: 13px;
  line-height: 1.65;
}

.thread-error {
  margin-bottom: 10px;
}

.thread-contact-correction summary {
  cursor: pointer;
  font: 800 9px/1.2 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.thread-contact-correction form {
  margin-top: 16px;
}

.thread-contact-correction label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font: 800 8px/1.2 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

.thread-contact-correction input {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--ptext) 22%, transparent);
  background: var(--psurface);
  padding: 10px 12px;
  color: var(--ptext);
}

.thread-contact-correction button {
  margin-top: 14px;
  border: 1px solid var(--ptext);
  border-radius: 999px;
  background: var(--paccent);
  padding: 11px 14px;
  color: var(--ptext);
  font: 800 9px/1 var(--dothiro-sans);
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .memory-overview > header,
  .memory-library > header,
  .insights-summary > header,
  .insight-outcomes > header,
  .assistant-insights > header {
    grid-template-columns: 1fr;
  }
  .value-metrics,
  .insight-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .value-metrics article:nth-child(2),
  .insight-funnel article:nth-child(2) {
    border-right: 0;
  }
  .value-metrics article:nth-child(-n + 2),
  .insight-funnel article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .insight-outcomes > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .assistant-insight-row {
    grid-template-columns: minmax(160px, 1fr) repeat(2, auto) auto;
  }
  .assistant-insight-row em:nth-of-type(3) {
    display: none;
  }
}

@media (max-width: 680px) {
  .notification-panel {
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
    padding: 22px 18px;
  }
  .notification-panel > header {
    display: block;
    padding-right: 34px;
  }
  .mark-all-notifications {
    margin-top: 14px;
  }
  .memory-records,
  .test-case-grid,
  .launch-readiness > div {
    grid-template-columns: 1fr;
  }
  .value-metrics,
  .insight-funnel,
  .insight-outcomes > div {
    grid-template-columns: 1fr 1fr;
  }
  .value-metrics article,
  .insight-funnel article,
  .insight-outcomes > div > article {
    min-height: 118px;
    border-bottom: 1px solid var(--line);
  }
  .assistant-insight-row {
    grid-template-columns: 1fr auto;
  }
  .assistant-insight-row em {
    display: none;
  }
  .assistant-test-lab > header,
  .launch-readiness > header {
    flex-direction: column;
  }
  .run-assistant-tests {
    width: 100%;
  }
  .assistant-version {
    grid-template-columns: 34px 1fr;
  }
  .assistant-version button {
    grid-column: 1 / -1;
  }
  .handoff-review-actions,
  .lead-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .handoff-review-actions button,
  .lead-form-actions button,
  .visitor-thread-link {
    width: 100%;
  }
  .public-thread .inquiry-form-shell {
    width: 100%;
  }
  .public-thread .visitor-thread-card {
    border-radius: 0;
  }
}

/* Embedded/public assistant */
.public-inquiry.public-form {
  padding: 0;
  background: var(--pbg);
}

.public-form > .inquiry-form-shell {
  width: min(820px, calc(100% - 24px));
  padding: 12px 0;
}

.public-form .chat-card {
  border-color: color-mix(in srgb, var(--ptext) 16%, transparent);
  border-radius: max(var(--pradius), 28px);
  background: var(--psurface);
}

.public-form .chat-card > header {
  min-height: 68px;
  border-color: color-mix(in srgb, var(--ptext) 12%, transparent);
}

.public-form .form-brand > b {
  font-family: var(--dothiro-serif);
  font-size: 15px;
  letter-spacing: -0.03em;
}

.form-question {
  padding-top: clamp(28px, 6vh, 52px);
}

.form-question h1 {
  max-width: 680px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.public-form .messages {
  scroll-behavior: smooth;
}

.public-form .msg {
  gap: 12px;
}

.public-form .msg small {
  border-radius: 50%;
}

.public-form .msg p {
  border-radius: 16px;
  line-height: 1.62;
}

.inquiry-embed-page .public-form .msg.user p,
.inquiry-embed-page .public-form .msg.user small {
  border-color: color-mix(in srgb, var(--ptext) 18%, transparent);
}

.public-form .quick button,
.public-form .send-lead,
.public-form .lead-capture button {
  border-radius: 999px;
}

.public-form .composer {
  gap: 10px;
  border-color: color-mix(in srgb, var(--ptext) 12%, transparent);
}

.public-form .composer textarea {
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--ptext) 16%, transparent);
  border-radius: 999px;
  background: var(--pbg);
}

.public-form .composer textarea:focus {
  outline: 2px solid var(--paccent);
  outline-offset: 1px;
}

.public-form .composer button {
  border-radius: 50%;
}

.not-live button {
  margin-top: 20px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 8px monospace;
  cursor: pointer;
}

.boot {
  font-family: var(--dothiro-serif);
  font-size: 20px;
}

.boot span {
  font-family: var(--dothiro-sans);
}

@media (max-width: 1050px) {
  .workspace-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
  .assistant-grid,
  .people-grid,
  .calendar-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1220px) {
  .auth-page.workspace-login {
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  }
  .auth-page.workspace-login > section {
    padding: 44px;
  }
  .auth-page.workspace-login > aside {
    padding: 24px;
  }
  .auth-page.workspace-login h1 {
    font-size: clamp(58px, 6.5vw, 82px);
  }
  .auth-card {
    width: 100%;
    padding: 34px 30px;
  }
  .auth-card h2 {
    font-size: clamp(38px, 3.6vw, 43px);
  }
}

@media (max-width: 900px) {
  .auth-page.workspace-login {
    grid-template-columns: 1fr;
  }
  .auth-page.workspace-login > section {
    min-height: 56vh;
  }
  .auth-page.workspace-login > aside {
    min-height: 44vh;
  }
  .workspace-shell {
    display: block;
    padding: 8px 8px 74px;
  }
  .workspace-nav {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 8px;
    padding: 14px;
    border-radius: 22px;
  }
  .workspace-header {
    border-radius: 22px;
  }
  .mobile-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
  }
}

@media (max-width: 650px) {
  .auth-page.workspace-login {
    gap: 8px;
    padding: 8px;
  }
  .auth-page.workspace-login > section,
  .auth-page.workspace-login > aside {
    border-radius: 22px;
  }
  .auth-page.workspace-login > section {
    min-height: auto;
    padding: 28px 24px 34px;
  }
  .auth-page.workspace-login h1 {
    margin: 46px 0 24px;
    font-size: clamp(42px, 12vw, 54px);
    letter-spacing: -0.06em;
    overflow-wrap: anywhere;
  }
  .auth-page.workspace-login > aside {
    min-height: auto;
    padding: 14px;
  }
  .auth-card {
    padding: 28px 24px;
    border-radius: 18px;
  }
  .auth-card .mark {
    margin-bottom: 42px;
  }
  .auth-card h2 {
    font-size: 42px;
  }
  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 20px 22px;
  }
  .workspace-header h1 {
    font-size: 45px;
  }
  .workspace-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    justify-content: stretch;
  }
  .workspace-header-actions > .primary {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }
  .workspace-main > #workspace-screen {
    padding: 14px 0 40px;
  }
  .workspace-stats,
  .assistant-grid,
  .people-grid,
  .calendar-resource-grid {
    grid-template-columns: 1fr;
  }
  .workspace-stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-stats article:last-child {
    border-bottom: 0;
  }
  .editor-tabs,
  .assistant-tabs {
    border-radius: 15px;
  }
  .public-form > .inquiry-form-shell {
    width: 100%;
    padding: 0;
  }
  .public-form .chat-card {
    border-radius: 0;
  }
  .form-question h1 {
    font-size: 36px;
    letter-spacing: -0.045em;
  }
}

.mobile-more-panel {
  width: min(680px, 100%);
}

.mobile-more-list button {
  border-radius: 16px;
}

.mobile-more-list button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 2px;
}

.live-editor-lock {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--acid);
}

.live-editor-lock b {
  flex: 0 0 auto;
  font: 800 9px/1.3 var(--dothiro-mono, monospace);
  letter-spacing: 0.08em;
}

.live-editor-lock span {
  max-width: 620px;
  font-size: 11px;
  line-height: 1.5;
}

.assistant-editor-form :disabled {
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .workspace-header-actions {
    grid-template-columns: auto auto;
  }
  .workspace-header-actions > .primary {
    grid-column: 1 / -1;
  }
  .mobile-more-list {
    grid-template-columns: 1fr;
  }
  .mobile-more-list > button {
    min-height: 142px;
  }
  .live-editor-lock {
    display: grid;
  }
}

/* Final public-thread overrides must follow the base embedded-form rules. */
.public-thread.public-form .msg small {
  width: max-content;
  min-width: 22px;
  max-width: 82px;
  height: 24px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 7px;
  white-space: nowrap;
}

.public-form .composer[hidden] {
  display: none !important;
}

.public-form .composer textarea:disabled,
.public-form .composer button:disabled {
  cursor: wait;
  opacity: 0.62;
}

/* Readability scale — compact editorial typography without sub-10px UI text. */
:root {
  --dothiro-type-caption: 11px;
  --dothiro-type-small: 12px;
  --dothiro-type-body: 14px;
  --dothiro-type-input: 15px;
}

body {
  font-size: var(--dothiro-type-body);
}

.eyebrow {
  font-size: var(--dothiro-type-caption);
  line-height: 1.4;
}

.primary {
  font-size: var(--dothiro-type-caption);
}

/* Login */
.auth-page.workspace-login section p:last-child,
.auth-card > p:not(.eyebrow) {
  font-size: 15px;
}

.auth-card button,
.auth-recovery {
  font-size: var(--dothiro-type-caption);
}

.auth-card .auth-error {
  font-size: var(--dothiro-type-body);
}

/* Workspace navigation and overview */
.workspace-brand > b {
  font-size: 17px;
}

.workspace-switcher small,
.workspace-nav nav em,
.workspace-member-button i,
.workspace-member-button em {
  font-size: 10px;
}

.workspace-switcher b,
.workspace-user b {
  font-size: 13px;
}

.workspace-user small,
.workspace-nav nav button {
  font-size: var(--dothiro-type-caption);
}

.workspace-header > div > p:last-child {
  font-size: 15px;
}

.workspace-stats small,
.assistant-list-head,
.overview-columns header button,
.overview-row span,
.overview-row time,
.control-flow span,
.value-metrics small,
.insight-funnel small,
.insight-outcomes small {
  font-size: var(--dothiro-type-caption);
}

.workspace-stats span,
.value-metrics span,
.insight-funnel span,
.control-flow p,
.overview-row p {
  font-size: 13px;
}

.control-flow b {
  font-size: 18px;
}

.assistant-card-v2 > header small,
.assistant-card-v2 > div > small,
.assistant-card-v2 > footer > span,
.capability-tags span,
.status,
.state-chip {
  font-size: 10px;
  line-height: 1.25;
}

.assistant-card-v2 p,
.overview-empty {
  font-size: var(--dothiro-type-body);
}

.inbox-v2 > aside b,
.calendar-side b,
.person-card > p,
.calendar-resource-card > p {
  font-size: 13px;
}

.inbox-v2 > aside small,
.inbox-row span small,
.calendar-side small,
.person-card > small,
.calendar-resource-card > small {
  font-size: var(--dothiro-type-caption);
}

.inbox-v2 > aside em,
.inbox-table-head,
.inbox-row time,
.inbox-row em,
.calendar-toolbar button,
.calendar-toolbar label,
.calendar-month > header span,
.calendar-day > time,
.calendar-day > div > small,
.person-card header em,
.person-card footer,
.calendar-resource-card header em,
.calendar-resource-card footer,
.directory-section > header span {
  font-size: 10px;
  line-height: 1.3;
}

.inbox-row span,
.inbox-row p,
.calendar-side > section > p,
.people-intro > p,
.people-intro > div:last-child > p {
  font-size: var(--dothiro-type-body);
}

.calendar-event {
  font-size: var(--dothiro-type-caption);
}

/* Assistant editor, settings, testing, and memory */
.assistant-back,
.assistant-delete,
.assistant-publish,
.assistant-tabs button,
.editor-tabs button,
.editor-back,
.publish-toggle,
.workspace-settings label,
.workspace-settings-actions button,
.workspace-settings-footer > span,
.workspace-settings-footer button,
.assistant-editor-form label,
.run-assistant-tests,
.assistant-version button,
.editor-save-state {
  font-size: var(--dothiro-type-caption);
  line-height: 1.25;
}

.assistant-editor-form input,
.assistant-editor-form textarea,
.assistant-editor-form select,
.workspace-settings input,
.workspace-settings select,
.workspace-settings textarea,
.workspace-settings-card input,
.workspace-settings-card select,
.test-case-editor input,
.test-case-editor textarea {
  font-size: var(--dothiro-type-input);
  line-height: 1.45;
}

.assistant-editor-form label > small,
.field-help,
.editor-note p,
.action-boundary p,
.launch-readiness article small,
.test-result small,
.assistant-version small,
.launch-readiness > p,
.assistant-test-lab > p,
.test-result p,
.assistant-disclosure,
.visitor-portal-card > p,
.decision-memory-list article p,
.decision-memory-list article > div > small,
.estimate-trust-note span,
.structured-offer > small {
  font-size: var(--dothiro-type-small);
  line-height: 1.55;
}

.workspace-settings-card label,
.create-modal label,
.people-modal label,
.appointment-modal label,
.assignee-checklist > legend,
.share-code > small,
.share-code button,
.share-panel summary,
.share-panel a {
  font-size: var(--dothiro-type-caption);
  line-height: 1.3;
}

.people-modal input,
.people-modal select,
.people-modal textarea,
.appointment-modal input,
.appointment-modal select,
.appointment-modal textarea,
.create-modal input {
  font-size: var(--dothiro-type-input);
  line-height: 1.45;
}

.modal-copy,
.share-panel > section > p:not(.eyebrow) {
  font-size: var(--dothiro-type-body);
}

.share-code pre {
  font-size: var(--dothiro-type-caption);
  line-height: 1.55;
}

.launch-readiness article b,
.test-result b,
.assistant-version b,
.assistant-insight-row span small,
.assistant-insight-row em,
.memory-record dd {
  font-size: var(--dothiro-type-small);
}

.memory-record > p,
.memory-overview > header > p,
.memory-library > header > p,
.insights-summary > header > p,
.insight-outcomes > header > p {
  font-size: var(--dothiro-type-body);
}

.memory-record > header small,
.memory-record > header span,
.memory-record dt,
.memory-record > footer button,
.memory-record > footer span,
.assistant-insight-row > b,
.launch-readiness > header > span,
.visitor-portal-card > header > span,
.portal-published-note {
  font-size: 10px;
}

/* Response browser and decision detail */
.response-inquiry-list button b,
.decision-inbox > aside b,
.decision-row b {
  font-size: 13px;
}

.response-inquiry-list button small,
.response-empty-note,
.decision-inbox > aside small,
.decision-row small,
.decision-inbox-head p:not(.eyebrow),
.delivery-note,
.memory-choice small,
.decision-brief-side a,
.memory-impact small {
  font-size: var(--dothiro-type-caption);
  line-height: 1.5;
}

.response-inquiry-list button em,
.response-inquiry-list button i,
.response-results-head > span,
.response-head,
.response-row time,
.response-row em,
.decision-table-head,
.decision-row > em,
.brief-signal-bar small,
.response-context small,
.response-side dt,
.response-conversation > summary > b,
.response-turn small,
.decision-resolved small {
  font-size: 10px;
  line-height: 1.35;
}

.response-row b,
.response-row span,
.response-row p,
.response-context b,
.response-context span,
.response-context a,
.response-side dd,
.response-conversation > summary h3,
.brief-facts p,
.memory-choice b {
  font-size: 13px;
}

.response-side p:not(.eyebrow),
.response-turn p,
.decision-resolved p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.62;
}

.decision-card label,
.decision-head > span,
.delivery-actions a,
.delivery-actions button,
.decision-resolved > .mark-sent,
.decision-resolved > .close-case,
.decision-resolved a,
.response-actions > span,
.archive-response,
.delete-response {
  font-size: var(--dothiro-type-caption);
  line-height: 1.3;
}

.decision-card input,
.decision-card select,
.decision-card textarea,
.owner-answer textarea {
  font-size: var(--dothiro-type-input);
  line-height: 1.5;
}

.brief-signal-bar b,
.decision-brief-side h4,
.memory-impact span {
  font-size: 14px;
}

.decision-loop article p,
.value-snapshot > header > p {
  font-size: var(--dothiro-type-body);
}

/* Embedded assistant, handoff, and private visitor thread */
.public-form .form-brand > b {
  font-size: 17px;
}

.chat-card > header small,
.form-question small,
.public-form .msg small,
.public-thread.public-form .msg small,
.public-thread .chat-card > header > .thread-status,
.handoff-summary small,
.thread-contact-correction label,
.assistant-disclosure b {
  font-size: 10px;
  line-height: 1.3;
}

.public-form .msg p,
.thread-owner-answer > p:last-child,
.thread-waiting > p:last-child,
.handoff-summary p {
  font-size: 15px;
  line-height: 1.65;
}

.public-form .quick button,
.public-form .composer textarea,
.public-form .lead-capture input,
.public-form .lead-capture textarea,
.thread-contact-correction input {
  font-size: 16px;
  line-height: 1.45;
}

.public-form .send-lead,
.public-form .lead-capture > button,
.handoff-review-actions button,
.lead-form-actions button,
.visitor-thread-link,
.thread-contact-correction summary,
.thread-contact-correction button {
  font-size: var(--dothiro-type-caption);
}

.assistant-disclosure,
.handoff-review .lead-note,
.private-link-note,
.lead-capture .lead-consent,
.lead-capture .retention-note {
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 650px) {
  :root {
    --dothiro-type-body: 14px;
    --dothiro-type-input: 16px;
  }

  .workspace-header > div > p:last-child,
  .auth-card > p:not(.eyebrow) {
    font-size: 14px;
  }

  .public-form .msg p,
  .thread-owner-answer > p:last-child,
  .thread-waiting > p:last-child {
    font-size: 15px;
  }

  .mobile-nav button {
    font-size: 10px;
  }

  .calendar-event {
    font-size: 10px;
  }
}

/* Product UI convergence — premium workspace, decisions, and public assistant */
:root {
  --workspace-accent: #d8ff72;
  --ui-caption: 12px;
  --ui-small: 13px;
  --ui-body: 15px;
  --ui-input: 16px;
  --ui-control: 44px;
  --ui-card: 20px;
  --ui-shadow: 0 18px 48px rgba(36, 33, 34, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-size: var(--ui-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
[tabindex="0"] {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--ink) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px var(--acid) !important;
}

.primary,
.workspace-header-actions button,
.workspace-nav nav button,
.assistant-editor-head button,
.assistant-tabs button,
.editor-actions button,
.directory-actions button,
.calendar-toolbar button,
.calendar-toolbar select,
.decision-status-tabs button,
.overview-columns header button,
.response-actions button {
  min-height: var(--ui-control);
}

.workspace-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.workspace-nav {
  top: 14px;
  height: calc(100dvh - 28px);
  padding: 22px 16px 16px;
  border-color: rgba(36, 33, 34, 0.09);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(36, 33, 34, 0.05);
}

.workspace-brand {
  min-height: 54px;
  padding-inline: 8px;
}

.workspace-switcher {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f5f5f1;
}

.workspace-switcher::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--workspace-accent);
}

.workspace-switcher small,
.workspace-switcher b {
  min-width: 0;
}

.workspace-nav nav {
  gap: 4px;
  margin-top: 16px;
}

.workspace-nav nav button {
  min-height: 46px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 700;
}

.workspace-nav nav button i,
.workspace-nav nav button em {
  font-size: 11px;
}

.workspace-nav nav button.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.workspace-nav nav button.active i {
  color: var(--acid);
}

.optional-workspace-nav {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.optional-workspace-nav::before {
  content: "OPERATIONS";
  display: block;
  padding: 0 13px 7px;
  color: var(--muted);
  font: 800 10px/1 var(--dothiro-sans);
  letter-spacing: 0.1em;
}

.workspace-user {
  min-height: 64px;
  gap: 10px;
}

.workspace-user > span,
.workspace-user > button {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.workspace-user b {
  font-size: 13px;
}

.workspace-user small {
  font-size: 11px;
}

.workspace-header {
  min-height: 128px;
  padding: 26px clamp(22px, 3.2vw, 48px);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(36, 33, 34, 0.04);
}

.workspace-header h1 {
  margin: 8px 0 6px;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 0.98;
}

.workspace-header > div > p:last-child {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.5;
}

.workspace-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-header-actions > button {
  height: 46px;
}

.notification-button,
.workspace-member-button {
  border-color: var(--line);
  background: #fff;
}

.notification-button:hover,
.workspace-member-button:hover {
  border-color: var(--ink);
  background: #f5f5f1;
}

.notification-button.has-unread > span,
.workspace-member-button i {
  background: var(--acid);
}

.workspace-main > #workspace-screen {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 24px clamp(4px, 2vw, 28px) 76px;
}

[data-current-view="overview"] #workspace-screen {
  display: flex;
  flex-direction: column;
}

[data-current-view="overview"] .value-snapshot {
  order: 1;
}

[data-current-view="overview"] .overview-columns {
  order: 2;
  margin-top: 20px;
}

[data-current-view="overview"] .decision-loop {
  order: 3;
}

.value-snapshot,
.decision-loop,
.overview-columns > article,
.assistant-card-v2,
.decision-inbox > aside,
.decision-inbox > section,
.assistant-editor-form > section,
.workspace-settings-card,
.calendar-layout,
.directory-section {
  border-color: rgba(36, 33, 34, 0.12);
  border-radius: var(--ui-card);
  box-shadow: 0 8px 28px rgba(36, 33, 34, 0.035);
}

.value-snapshot > header {
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(30px, 4vw, 48px);
}

.value-snapshot > header h2 {
  font-size: clamp(38px, 4.4vw, 58px);
}

.value-snapshot > header > p {
  font-size: 15px;
  line-height: 1.65;
}

.value-metrics article {
  padding: 22px 24px;
}

.value-metrics small {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.value-metrics b {
  margin: 14px 0 7px;
  font-size: clamp(36px, 3vw, 48px);
}

.value-metrics span {
  font-size: 13px;
  line-height: 1.4;
}

.overview-columns {
  gap: 20px;
}

.overview-columns > article > header {
  min-height: 96px;
  padding: 20px 22px;
}

.overview-columns h3 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.overview-columns header button {
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 11px;
}

.overview-row {
  min-height: 70px;
}

.overview-row p,
.overview-row p b {
  font-size: 14px;
  line-height: 1.4;
}

.overview-row p small,
.overview-row time {
  font-size: 11px;
}

.overview-row p small {
  display: block;
  margin-top: 3px;
}

.overview-empty {
  padding: 34px 22px;
  font-size: 14px;
}

.decision-loop {
  grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.7fr);
  margin-top: 20px;
}

.decision-loop > header {
  padding: 30px;
}

.decision-loop > header h2 {
  font-size: clamp(31px, 3.1vw, 43px);
}

.decision-loop article {
  min-height: 136px;
  padding: 21px 22px;
}

.decision-loop article span {
  font-size: 10px;
}

.decision-loop article b {
  margin-top: 26px;
  font-size: 18px;
}

.decision-loop article p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #c4c1c1;
}

.assistant-list-head {
  margin-bottom: 14px;
  padding-inline: 4px;
  font-size: 11px;
}

.assistant-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.assistant-card-v2 {
  min-height: 272px;
  padding: 22px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.assistant-card-v2:hover {
  border-color: var(--ink);
  background: #fbfbf8;
  transform: translateY(-2px);
}

.assistant-card-v2 > header small,
.assistant-card-v2 > div > small,
.assistant-card-v2 > footer > span,
.capability-tags span {
  font-size: 11px;
}

.assistant-card-v2 h2 {
  margin-top: 9px;
  font-size: clamp(27px, 2.4vw, 34px);
}

.assistant-card-v2 p {
  overflow: hidden;
  display: -webkit-box;
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.assistant-card-v2 > footer {
  gap: 14px;
}

.decision-inbox {
  gap: 18px;
}

.decision-inbox > aside {
  padding-bottom: 12px;
}

.decision-inbox > aside button {
  min-height: 64px;
}

.decision-inbox > aside b {
  font-size: 13px;
}

.decision-inbox > aside small {
  font-size: 11px;
}

.decision-inbox-head {
  padding: 28px;
}

.decision-inbox-head h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.decision-inbox-head p:not(.eyebrow) {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.55;
}

.decision-status-tabs {
  gap: 6px;
}

.decision-status-tabs button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 10px;
}

.decision-table-head,
.decision-row {
  grid-template-columns: 86px minmax(135px, 0.8fr) minmax(260px, 1.8fr) minmax(135px, 0.85fr) 112px;
  gap: 16px;
}

.decision-table-head {
  padding: 14px 18px;
  font-size: 10px;
}

.decision-row {
  min-height: 106px;
  padding: 18px;
}

.decision-row b {
  font-size: 13px;
}

.decision-row small {
  font-size: 11px;
  line-height: 1.45;
}

.decision-row > em {
  max-width: 112px;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.priority-dot {
  width: 32px;
  height: 32px;
}

.assistant-editor-head {
  position: sticky;
  top: 12px;
  z-index: 22;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 33, 34, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(36, 33, 34, 0.09);
  backdrop-filter: blur(14px);
}

.assistant-editor-head > div {
  flex-wrap: wrap;
}

.assistant-editor-head button {
  border-radius: 999px;
  font-size: 11px;
}

.editor-save-state,
.assistant-editor-head .status {
  font-size: 10px;
}

.assistant-tabs {
  position: sticky;
  top: 88px;
  z-index: 20;
  overflow-x: auto;
  display: flex;
  gap: 4px;
  margin: 12px 0 18px;
  padding: 6px;
  border-radius: 16px;
  scrollbar-width: none;
  box-shadow: 0 8px 24px rgba(36, 33, 34, 0.055);
}

.assistant-tabs::-webkit-scrollbar {
  display: none;
}

.assistant-tabs button {
  flex: 1 0 max-content;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 11px;
  white-space: nowrap;
}

.assistant-tabs button span {
  margin-right: 7px;
  color: var(--muted);
  font-size: 10px;
}

.assistant-tabs button.active span {
  color: var(--acid);
}

.assistant-editor-form {
  max-width: 1280px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.assistant-editor-form > section {
  padding: clamp(26px, 3vw, 36px);
}

.assistant-editor-form > section > h3 {
  margin: 8px 0 28px;
  font-size: clamp(26px, 2.6vw, 36px);
}

.assistant-editor-form label {
  gap: 9px;
  margin-top: 22px;
  font-size: 12px;
}

.assistant-editor-form label > small,
.knowledge-source-note,
.knowledge-group small {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.assistant-editor-form input,
.assistant-editor-form textarea,
.assistant-editor-form select {
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: var(--ui-input);
}

.assistant-editor-form textarea {
  min-height: 116px;
}

.editor-actions {
  position: sticky;
  bottom: 14px;
  z-index: 18;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(36, 33, 34, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(36, 33, 34, 0.13);
  backdrop-filter: blur(14px);
}

.editor-actions > span {
  color: var(--muted);
  font-size: 13px;
}

.editor-actions .editor-save {
  width: auto;
  min-width: 190px;
  margin: 0;
  border-radius: 999px;
}

.live-editor-lock {
  margin-bottom: 18px;
  border-radius: 14px;
}

.response-modal-bg {
  padding: 16px;
}

.response-modal.response-detail {
  position: relative;
  width: min(1160px, 100%);
  height: min(920px, calc(100dvh - 32px));
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(20, 18, 19, 0.25);
}

.response-detail > .modal-close {
  position: absolute;
  float: none;
  right: 16px;
  top: 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.response-detail-head {
  flex: 0 0 auto;
  min-height: 116px;
  padding: 28px 76px 24px 30px;
}

.response-detail-head h2 {
  margin-top: 12px;
  font-size: clamp(25px, 3vw, 36px);
}

.brief-signal-bar {
  flex: 0 0 auto;
}

.brief-signal-bar > div {
  padding: 13px 18px;
}

.brief-signal-bar small {
  font-size: 10px;
}

.brief-signal-bar b {
  font-size: 13px;
}

.decision-brief-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.decision-brief-layout > main {
  padding: 26px;
}

.decision-brief-card,
.decision-card,
.visitor-portal-card,
.owner-follow-up,
.case-outcome,
.response-conversation {
  border-radius: 15px;
  overflow: hidden;
}

.decision-brief-card > header {
  padding: 24px;
}

.decision-brief-card h3 {
  margin-top: 18px;
  font-size: clamp(26px, 3vw, 39px);
}

.brief-facts article {
  padding: 20px 22px;
}

.brief-facts small,
.decision-head > span,
.response-conversation summary b,
.response-turn small {
  font-size: 10px;
}

.brief-facts p,
.response-turn p,
.decision-card textarea {
  font-size: 15px;
  line-height: 1.65;
}

.decision-brief-side {
  background: #f6f6f2;
}

.decision-brief-side > section {
  padding: 22px;
}

.decision-brief-side h4 {
  font-size: 16px;
}

.decision-brief-side a,
.decision-brief-side small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.response-actions {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 62px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.response-actions button {
  border-radius: 999px;
  font-size: 11px;
}

.calendar-toolbar {
  gap: 16px;
}

.calendar-toolbar button,
.calendar-toolbar select {
  min-height: 44px;
  font-size: 12px;
}

.calendar-day {
  position: relative;
  min-height: 126px;
  padding: 0;
  background: #fff;
}

.calendar-day-add {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.calendar-day-add:hover {
  background: #f5f5f1;
}

.calendar-day-add time {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
}

.calendar-day.today .calendar-day-add time {
  background: var(--ink);
  color: #fff;
}

.calendar-day > div {
  display: grid;
  gap: 5px;
  padding: 0 7px 9px;
}

.calendar-event {
  width: 100%;
  min-height: 33px;
  display: block;
  overflow: hidden;
  padding: 6px 7px;
  border: 0;
  border-left: 4px solid var(--event);
  border-radius: 7px;
  background: color-mix(in srgb, var(--event) 18%, white);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.calendar-event b {
  margin-right: 5px;
  font-size: 10px;
}

.notification-row.read {
  opacity: 1;
  background: #f7f7f3;
}

.notification-row.read p,
.notification-row.read small {
  color: #5f5b5b;
}

.notification-row b {
  font-size: 13px;
}

.notification-row p {
  font-size: 13px;
}

.notification-row small {
  font-size: 11px;
}

.knowledge-steps span,
.access-row small,
.access-row select,
.access-row em,
.workspace-members-modal article small,
.workspace-members-modal article em {
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.info-mark {
  width: 28px;
  height: 28px;
  margin-left: 6px;
  font-size: 11px;
}

.info-mark::after {
  left: 34px;
  top: -10px;
  width: min(280px, 70vw);
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.mobile-more-panel {
  border-radius: 22px;
}

.mobile-more-list > button {
  min-height: 126px;
}

.mobile-more-list > button b {
  font-size: 15px;
}

.mobile-more-list > button small {
  font-size: 12px;
  line-height: 1.45;
}

/* Embedded assistant and private visitor thread */
.public-form > .inquiry-form-shell {
  width: min(860px, calc(100% - 24px));
  padding-block: 12px;
}

.public-form .chat-card {
  overflow: hidden;
  border-width: 1px;
  border-radius: max(var(--pradius), 24px);
  box-shadow: 0 20px 55px rgba(20, 18, 19, 0.08);
}

.public-form .chat-card > header {
  min-height: 64px;
  padding-inline: clamp(20px, 4vw, 34px);
}

.public-form .form-brand > b {
  font-size: 18px;
}

.form-question {
  padding: clamp(28px, 5vh, 46px) clamp(20px, 5vw, 42px) 20px;
}

.form-question h1 {
  max-width: 720px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
}

.assistant-disclosure {
  font-size: 13px;
}

.assistant-disclosure b,
.form-question small,
.public-form .msg small,
.public-thread.public-form .msg small,
.public-thread .thread-status,
.handoff-summary small {
  font-size: 11px;
}

.public-form .messages {
  scroll-behavior: auto;
  padding-inline: clamp(20px, 5vw, 42px);
  scrollbar-gutter: stable;
}

.public-form .msg {
  align-items: flex-start;
  gap: 11px;
}

.public-form .msg p {
  max-width: min(640px, 84%);
  padding: 13px 16px;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.62;
}

.public-form .quick {
  gap: 8px;
  padding-inline: clamp(20px, 5vw, 42px);
}

.public-form .quick button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
}

.public-form .send-lead,
.handoff-review-actions button,
.lead-form-actions button,
.visitor-thread-link,
.copy-thread-link,
.thread-refresh {
  min-height: 44px;
  border: 1px solid var(--ptext);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.copy-thread-link,
.thread-refresh {
  background: transparent;
  color: var(--ptext);
  cursor: pointer;
}

.visitor-thread-link + .copy-thread-link {
  margin-left: 8px;
}

.thread-refresh {
  margin-top: 14px;
}

.thread-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--paccent) 32%, var(--psurface));
  color: var(--ptext);
  font-size: 13px;
  font-weight: 700;
}

.lead-capture h2 {
  margin: 8px 0 10px;
  color: var(--ptext);
  font: 500 clamp(28px, 4vw, 40px)/1.05 var(--dothiro-serif);
  letter-spacing: -0.04em;
}

.public-form .lead-capture input,
.public-form .lead-capture textarea,
.thread-contact-correction input {
  min-height: 48px;
  border-radius: 11px;
  font-size: 16px;
}

.handoff-review,
.handoff-summary,
.thread-owner-answer,
.thread-waiting,
.thread-contact-correction {
  border-radius: 15px;
}

.handoff-summary p,
.thread-owner-answer > p:last-child,
.thread-waiting > p:last-child {
  font-size: 15px;
  line-height: 1.62;
}

.public-form .composer {
  padding: 12px clamp(14px, 3vw, 24px);
  background: color-mix(in srgb, var(--psurface) 94%, var(--pbg));
}

.public-form .composer textarea {
  min-height: 48px;
  padding: 12px 17px;
  border-radius: 16px;
  font-size: 16px;
}

.public-form .composer textarea:focus {
  outline: 3px solid var(--ptext) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px var(--psurface) !important;
}

.public-form .composer button {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

@media (max-width: 1180px) {
  .workspace-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .assistant-editor-form {
    grid-template-columns: 1fr;
  }

  .decision-inbox {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .decision-table-head,
  .decision-row {
    grid-template-columns: 74px minmax(120px, 0.7fr) minmax(220px, 1.5fr) 106px;
  }

  .decision-table-head > span:nth-child(4),
  .decision-row > span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .workspace-shell {
    padding: 8px 8px calc(82px + env(safe-area-inset-bottom));
  }

  .workspace-nav {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 8px;
  }

  .workspace-nav > nav,
  .workspace-user {
    display: none;
  }

  .workspace-brand {
    min-height: 46px;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .workspace-switcher {
    margin-top: 12px;
  }

  .mobile-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .mobile-nav button {
    min-height: 50px;
    color: #c9c5c5;
    font-size: 11px;
  }

  .mobile-nav button.active {
    color: #fff;
  }

  .workspace-main > #workspace-screen {
    padding: 16px 0 52px;
  }

  .workspace-header {
    min-height: 0;
    flex-wrap: wrap;
  }

  .value-snapshot > header,
  .decision-loop {
    grid-template-columns: 1fr;
  }

  .decision-loop > header {
    border-right: 0;
    border-bottom: 1px solid #4c4849;
  }

  .decision-inbox {
    grid-template-columns: 1fr;
  }

  .decision-inbox > aside {
    overflow-x: auto;
    display: flex;
    gap: 8px;
    padding: 10px;
  }

  .decision-side-title {
    display: none;
  }

  .decision-inbox > aside button {
    min-width: 190px;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .decision-brief-layout {
    grid-template-columns: 1fr;
  }

  .decision-brief-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .decision-brief-side > section {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  :root {
    --ui-body: 14px;
  }

  .workspace-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 18px;
  }

  .workspace-header h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .workspace-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 48px 78px minmax(0, 1fr);
  }

  .workspace-header-actions > .primary {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .value-snapshot > header {
    padding: 26px 20px;
  }

  .value-snapshot > header h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .value-snapshot > header > p {
    margin-top: 20px;
  }

  .value-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-metrics article + article {
    border-left: 0;
  }

  .value-metrics article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .value-metrics article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .value-metrics article {
    padding: 18px;
  }

  .overview-columns {
    grid-template-columns: 1fr;
  }

  .overview-columns > article > header {
    align-items: flex-start;
  }

  .overview-columns header button {
    min-height: 38px;
  }

  .decision-loop > div {
    grid-template-columns: 1fr;
  }

  .decision-loop article,
  .decision-loop article:nth-child(odd),
  .decision-loop article:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #4c4849;
  }

  .decision-loop article:last-child {
    border-bottom: 0;
  }

  .assistant-editor-head {
    top: 8px;
    align-items: stretch;
    gap: 8px;
  }

  .assistant-editor-head,
  .assistant-editor-head > div {
    flex-wrap: wrap;
  }

  .assistant-editor-head > div {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .editor-save-state {
    grid-column: 1 / -1;
  }

  .assistant-tabs {
    top: 132px;
    margin-top: 8px;
  }

  .assistant-editor-form > section {
    padding: 22px 18px;
  }

  .editor-actions {
    bottom: calc(76px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .editor-actions > span {
    display: none;
  }

  .editor-actions .editor-save {
    width: 100%;
  }

  .decision-table-head {
    display: none;
  }

  .decision-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 16px;
  }

  .decision-row > span:first-child small,
  .decision-row > span:nth-child(4) {
    display: none;
  }

  .decision-row > span:nth-child(2) {
    grid-column: 2;
  }

  .decision-row > p {
    grid-column: 2 / -1;
    display: block;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .decision-row > p b {
    -webkit-line-clamp: 1;
  }

  .decision-row > p small {
    -webkit-line-clamp: 2;
  }

  .decision-row > em {
    grid-column: 3;
    grid-row: 1;
  }

  .response-modal-bg {
    padding: 6px;
  }

  .response-modal.response-detail {
    height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .response-detail-head {
    min-height: 112px;
    padding: 22px 64px 18px 18px;
  }

  .response-detail-head .state-chip {
    position: absolute;
    left: 18px;
    top: 76px;
  }

  .brief-signal-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-signal-bar > div:nth-child(3),
  .brief-signal-bar > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .brief-signal-bar > div:nth-child(3) {
    border-left: 0;
  }

  .decision-brief-layout > main {
    padding: 14px;
  }

  .decision-brief-side {
    grid-template-columns: 1fr;
  }

  .decision-brief-side > section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brief-facts {
    grid-template-columns: 1fr;
  }

  .brief-facts article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .calendar-day {
    min-height: 86px;
  }

  .calendar-event {
    min-height: 28px;
    font-size: 10px;
  }

  .info-mark::after {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: auto;
  }

  .public-form > .inquiry-form-shell,
  .public-thread .inquiry-form-shell {
    width: 100%;
    padding: 0;
  }

  .public-form .chat-card,
  .public-thread .visitor-thread-card {
    border-radius: 0;
    box-shadow: none;
  }

  .form-question {
    padding-inline: 18px;
  }

  .form-question h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .public-form .messages,
  .public-form .quick {
    padding-inline: 18px;
  }

  .public-form .msg p {
    max-width: calc(100% - 44px);
  }

  .visitor-thread-link,
  .copy-thread-link {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 8px 0 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .public-form .messages {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
