:root {
  color-scheme: light;
  --paper: #f1ede2;
  --paper-light: #fffaf0;
  --paper-deep: #e5dfd0;
  --ink: #172522;
  --teal: #123f39;
  --teal-light: #2f7064;
  --sea: #76b5a5;
  --coral: #df6d52;
  --mustard: #d3a443;
  --blue: #537b84;
  --muted: #687570;
  --line: #bdb8aa;
  --danger: #a93232;
}

* { box-sizing: border-box; }

/* Shared interaction, readability and recovery states. */
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
[hidden] { display: none !important; }
a, p, h1, h2, h3, strong, small, label, button { overflow-wrap: anywhere; }
fieldset { min-width: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
textarea, select { width: 100%; min-width: 0; padding: 11px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper-light); color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }
select { min-height: 48px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px; transform: translateY(-180%); background: var(--mustard); color: var(--ink); font-weight: 800; }
.skip-link:focus { transform: none; }
.prototype-note { margin: 12px 0; padding: 11px 12px; border-left: 3px solid var(--blue); background: #e4e5dc; color: #344e47; font-size: .75rem; line-height: 1.5; }
.field-hint { margin: 6px 0 12px; color: #52635b; font-size: .76rem; line-height: 1.5; }
.secondary-action { display: inline-flex; min-height: 44px; padding: 10px 12px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper-light); color: var(--teal); font-size: .78rem; font-weight: 750; text-decoration: none; text-align: center; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-actions > * { flex: 1 1 120px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.filter-tabs button { flex: 1 1 120px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--paper-light); color: var(--teal); font-size: .75rem; font-weight: 750; }
.filter-tabs button[aria-pressed="true"] { background: var(--teal); color: var(--paper-light); }
.decision-list { display: grid; gap: 22px; }
.empty-state { margin: 20px 0; padding: 22px 16px; border: 2px dashed var(--line); background: var(--paper-light); }
.empty-state h1, .empty-state h2 { font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.15; }
.empty-state p { font-size: .85rem; line-height: 1.55; }
.access-denied { margin-top: 55px; }
.settings-option { display: flex; gap: 10px; align-items: center; }
.settings-option input { width: 22px; height: 22px; flex: 0 0 22px; }
.success-message { color: var(--teal) !important; background: #d9e9dd !important; border-color: var(--teal-light) !important; }
.info-message { color: #334e55 !important; background: #e0e9e9 !important; }
.criterion-editor { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.criterion-editor label { display: block; margin-bottom: 6px; }
.criterion-editor .remove-criterion { grid-column: 1 / -1; justify-self: end; }
.comparison-rating { width: 100%; min-height: 44px; margin-top: 8px; padding: 8px; }
.demo-controls { margin: 16px 0; padding: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: .76rem; line-height: 1.5; }
.demo-controls summary { min-height: 32px; font-weight: 750; }
.demo-controls label { display: block; margin: 9px 0 6px; }
.mode-description { display: block; margin-top: 8px; font-size: .7rem; font-weight: 400; line-height: 1.4; }
.reflection-actions button[aria-pressed="true"] { background: var(--teal); color: var(--paper-light); }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

html { background: #0c2c28; }

body {
  margin: 0;
  color: var(--ink);
  background: #0c2c28;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input { font: inherit; }

a { color: inherit; }

.phone {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 21px 18px;
  overflow-x: hidden;
  position: relative;
}

.hidden { display: none !important; }

.site-header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
}

.wordmark-stamp {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--teal);
  color: var(--paper-light);
  box-shadow: 3px 3px 0 var(--coral);
  font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.08em;
}

.folio {
  color: var(--muted);
  font: 750 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--teal-light);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section-label > span {
  width: 30px;
  height: 3px;
  background: var(--coral);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border: 1px solid currentColor;
  font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.panel-heading p,
.panel-heading h2 { margin: 0; }

.panel-heading p {
  margin-bottom: 3px;
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.panel-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label,
legend {
  font-size: .72rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  outline: none;
  background: var(--paper-light);
  color: var(--ink);
}

input::placeholder { color: #8c918b; }

input:focus {
  border-color: var(--coral);
  box-shadow: 3px 3px 0 var(--mustard);
}

.primary-action {
  display: flex;
  width: 100%;
  min-height: 49px;
  padding: 0 10px 0 15px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 850;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}

.primary-action > span:last-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid var(--ink);
  background: var(--paper-light);
  font-size: 1rem;
}

.primary-action:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.primary-action:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(4px, 4px);
}

.wordmark:focus-visible,
.text-link:focus-visible,
.primary-action:focus-visible,
.new-action:focus-visible,
.open-sheet:focus-visible,
.workspace-nav a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: #777c76;
  font-size: .57rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* E-mail entry — an editorial field-note cover. */
.auth-page { background: #0c2c28; }

.auth-shell {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.auth-shell::before {
  width: 47px;
  height: 7px;
  position: absolute;
  top: 0;
  left: 21px;
  background: var(--coral);
  content: "";
}

.auth-intro { padding: 48px 2px 27px; }

.auth-intro h1 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 13vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .88;
}

.auth-intro h1 em {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 5px;
  text-underline-offset: 2px;
}

.decision-path {
  display: flex;
  margin-top: 23px;
  align-items: center;
}

.decision-path span {
  padding: 5px 7px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  font: 750 .56rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.decision-path i {
  height: 1px;
  flex: 1;
  position: relative;
  background: var(--ink);
}

.decision-path i::after {
  width: 4px;
  height: 4px;
  position: absolute;
  top: -1.5px;
  right: -1px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.intro-copy {
  max-width: 320px;
  margin: 18px 0 0;
  color: #58655f;
  font-size: .83rem;
  line-height: 1.5;
}

.auth-panel {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--teal);
  color: var(--paper-light);
  box-shadow: 6px 6px 0 var(--mustard);
}

.auth-panel .panel-heading > span {
  border-color: #9acdc0;
  background: var(--coral);
  color: var(--paper-light);
}

.auth-panel .panel-heading p { color: #91b9ae; }
.auth-panel form { margin-top: 16px; }
.auth-panel label { color: #d9e8e3; }

/* Entry choices reuse the notebook palette and stay within the email panel. */
.entry-shell .auth-intro { padding-top: 34px; }

.auth-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.auth-choice {
  min-width: 0;
  min-height: 46px;
  padding: 10px;
  border: 1.5px solid #91b9ae;
  border-radius: 2px;
  background: transparent;
  color: var(--paper-light);
  font-size: .88rem;
  font-weight: 800;
}

.auth-choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  box-shadow: 3px 3px 0 var(--mustard);
}

.auth-choice:hover:not(:disabled) { border-color: var(--mustard); }

.auth-description {
  margin: 13px 0 0;
  color: #d8e6df;
  font-size: .78rem;
  line-height: 1.5;
}

.plain-note {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #abc7c0;
  font-size: .62rem;
  line-height: 1.45;
}

.plain-note > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 3px;
  border: 2px solid var(--mustard);
  transform: rotate(45deg);
}

/* Verification — a numbered insert inside the same notebook. */
.verify-page { background: #0c2c28; }

.verify-shell {
  display: flex;
  flex-direction: column;
  background: var(--teal);
  color: var(--paper-light);
}

.verify-shell::before {
  width: 7px;
  height: 80px;
  position: absolute;
  top: 0;
  right: 21px;
  background: var(--mustard);
  content: "";
}

.inverse-wordmark { color: var(--paper-light); }

.inverse-wordmark .wordmark-stamp {
  border-color: var(--paper-light);
  background: var(--paper-light);
  color: var(--teal);
  box-shadow: 3px 3px 0 var(--coral);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
  color: #bed2cd;
  font-size: .65rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}

.verify-intro {
  min-height: 270px;
  padding: 49px 3px 26px;
  position: relative;
}

.editorial-number {
  position: absolute;
  top: 16px;
  right: -5px;
  color: rgba(255, 255, 255, .055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8.5rem;
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: 1;
  pointer-events: none;
}

.inverse-label { color: #b6cec8; }
.inverse-label > span { background: var(--mustard); }

.verify-intro h1 {
  margin: 14px 0 12px;
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  letter-spacing: -.055em;
  line-height: .9;
}

.verify-intro > p:not(.section-label):not(.sent-address) {
  max-width: 285px;
  margin: 0;
  color: #c0d2cd;
  font-size: .78rem;
  line-height: 1.5;
}

.sent-address {
  display: inline-block;
  max-width: 100%;
  margin: 15px 0 0;
  padding: 6px 8px;
  border-left: 4px solid var(--coral);
  background: rgba(255, 255, 255, .08);
  color: #a9c4bd;
  font-size: .65rem;
}

.sent-address strong {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  color: var(--paper-light);
  vertical-align: bottom;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-panel {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--coral);
}

.ink-heading > span { background: var(--mustard); }
.ink-heading p { color: var(--teal-light); }
.verify-panel form { margin-top: 17px; }

.otp-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.otp-fieldset legend { margin-bottom: 8px; }

.otp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.otp-digit {
  height: 57px;
  padding: 0;
  border-radius: 1px;
  font: 800 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.otp-digit[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff0ec;
}

.form-error {
  margin: 0;
  padding: 9px 10px;
  border-left: 5px solid var(--danger);
  background: #f4d8d2;
  color: #732424;
  font-size: .67rem;
  font-weight: 750;
}

.coral-action { background: var(--coral); color: var(--paper-light); }
.coral-action > span:last-child { color: var(--ink); }

.expiry-note {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  margin-top: 15px;
  padding-top: 13px;
  align-items: center;
  border-top: 2px solid var(--ink);
}

.expiry-note strong {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--blue);
  color: var(--paper-light);
  font: 800 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.expiry-note p {
  margin: 0;
  color: #5e6965;
  font-size: .63rem;
  line-height: 1.4;
}

.inverse-footer { color: #a4bdb7; }

/* Workspace — loose sheets on a decision desk. */
.workspace-page { background: #0c2c28; }

.workspace-shell {
  display: flex;
  flex-direction: column;
  background: var(--paper-deep);
}

.workspace-shell::before {
  width: 100%;
  height: 5px;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--teal);
  content: "";
}

.account-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--mustard);
}

.account-mark > span {
  width: 13px;
  height: 13px;
  position: relative;
  border: 2px solid var(--paper-light);
  border-radius: 50%;
}

.account-mark > span::after {
  width: 19px;
  height: 8px;
  position: absolute;
  top: 12px;
  left: -5px;
  border: 2px solid var(--paper-light);
  border-bottom: 0;
  content: "";
}

.workspace-heading { padding: 35px 0 22px; }

.workspace-heading > div {
  display: flex;
  margin-top: 8px;
  align-items: flex-end;
  justify-content: space-between;
}

.workspace-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  letter-spacing: -.055em;
  line-height: .95;
}

.new-action {
  display: inline-flex;
  min-height: 37px;
  padding: 0 11px 0 8px;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--ink);
  background: var(--teal);
  color: var(--paper-light);
  box-shadow: 3px 3px 0 var(--mustard);
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none;
}

.new-action > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--coral);
  font-size: .95rem;
}

.status-strip {
  display: grid;
  min-height: 72px;
  grid-template-columns: 54px 1fr auto;
  gap: 11px;
  padding: 11px 0;
  align-items: center;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.status-strip > div {
  display: flex;
  min-height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.status-strip > div span {
  color: var(--muted);
  font: 750 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.status-strip > div strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.status-strip p {
  margin: 0;
  color: #53615c;
  font-size: .68rem;
  line-height: 1.4;
}

.today-mark {
  padding: 5px 4px;
  border-bottom: 3px solid var(--coral);
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}

.desk-section { margin-top: 23px; }

.desk-heading {
  display: flex;
  margin-bottom: 11px;
  align-items: baseline;
  justify-content: space-between;
}

.desk-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.desk-heading > span {
  color: var(--muted);
  font: 700 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.decision-sheet {
  padding: 16px;
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 var(--mustard);
}

.paper-tab {
  width: 50px;
  height: 12px;
  position: absolute;
  top: -7px;
  right: 18px;
  background: var(--coral);
  transform: rotate(2deg);
}

.sheet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.private-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.private-label > span {
  width: 7px;
  height: 7px;
  border: 2px solid var(--teal-light);
  transform: rotate(45deg);
}

.sheet-caption {
  margin: 14px 0 5px;
  color: var(--coral);
  font: 800 .56rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .075em;
}

.decision-sheet h3 {
  max-width: 285px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.12;
}

.choice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.choice-list > div {
  display: flex;
  min-height: 35px;
  align-items: center;
  border: 1px solid var(--ink);
}

.choice-list span {
  display: grid;
  width: 28px;
  height: 100%;
  place-items: center;
  border-right: 1px solid var(--ink);
  background: var(--sea);
  font: 850 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.choice-list > div:last-child span { background: var(--blue); color: var(--paper-light); }
.choice-list strong { padding: 0 8px; font-size: .66rem; }

.sheet-metadata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 0;
  padding: 11px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.sheet-metadata > div { display: flex; flex-direction: column-reverse; gap: 3px; }
.sheet-metadata > div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.sheet-metadata dt { color: var(--muted); font-size: .54rem; }
.sheet-metadata dd { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 700; }

.open-sheet {
  display: flex;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 0 0 2px;
  align-items: center;
  justify-content: space-between;
  color: var(--teal);
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none;
}

.open-sheet > span:last-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--coral);
  color: var(--paper-light);
}

.margin-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 11px;
  border-left: 6px solid var(--coral);
  background: #d3e3dc;
}

.margin-note > span {
  padding-top: 2px;
  color: var(--teal);
  font: 850 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.margin-note p {
  margin: 0;
  color: #45534f;
  font-size: .64rem;
  line-height: 1.4;
}

.workspace-nav {
  display: grid;
  min-height: 49px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 17px;
  background: var(--teal);
}

.workspace-nav a {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, .22);
  color: #afc7c1;
  font-size: .6rem;
  font-weight: 800;
  text-decoration: none;
}

.workspace-nav a:last-child { border-right: 0; }
.workspace-nav a.active { background: var(--coral); color: var(--paper-light); }

@media (max-width: 350px) {
  .phone { padding-right: 16px; padding-left: 16px; }
  .auth-shell::before { left: 16px; }
  .auth-intro { padding-top: 41px; }
  .auth-intro h1 { font-size: 2.7rem; }
  .verify-intro h1 { font-size: 2.7rem; }
  .workspace-heading h1 { font-size: 2.15rem; }
  .choice-list { grid-template-columns: 1fr; }
  .folio { font-size: .53rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* New decision — natural-language intake before AI-assisted structuring. */
.create-page { background: #0c2c28; }

.create-shell {
  background: var(--paper);
  color: var(--ink);
}

.create-shell::before {
  width: 76px;
  height: 6px;
  position: absolute;
  top: 0;
  left: 21px;
  background: var(--mustard);
  content: "";
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: .64rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}

.paper-link:focus-visible,
.add-row-button:focus-visible,
.form-actions > a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.create-intro { padding: 39px 1px 27px; }

.create-intro h1 {
  margin: 9px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  letter-spacing: -.055em;
  line-height: .92;
}

.create-intro > p:last-child {
  max-width: 325px;
  margin: 0;
  color: #58655f;
  font-size: .75rem;
  line-height: 1.5;
}

.decision-form { gap: 0; }

.form-message {
  margin: 0 0 16px;
  padding: 11px 12px;
  border: 2px solid var(--ink);
  border-left: 7px solid var(--danger);
  background: #f3d8d0;
  color: #702a25;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.45;
}

.form-section {
  padding: 18px 0 20px;
  border-top: 2px solid var(--ink);
}

.form-section-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 11px;
}

.form-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.form-section:nth-of-type(2) .form-section-heading > span { background: var(--blue); }
.form-section:nth-of-type(3) .form-section-heading > span { background: var(--teal); }
.form-section-heading p,
.form-section-heading h2 { margin: 0; }
.form-section-heading p { color: var(--teal-light); font: 800 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.form-section-heading h2 { margin-top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; }
.form-section > label { display: block; margin-bottom: 7px; }
.form-section input { background: var(--paper-light); }

.add-row-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 11px;
  padding: 4px 0;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid var(--coral);
  background: transparent;
  color: var(--teal);
  font-size: .66rem;
  font-weight: 850;
  cursor: pointer;
}

.add-row-button > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
}

.form-actions {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  padding: 19px 0 9px;
  align-items: center;
  border-top: 2px solid var(--ink);
}

.form-actions > a {
  color: var(--teal);
  font-size: .68rem;
  font-weight: 850;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}

.create-footer {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  align-items: center;
  border-left: 6px solid var(--coral);
  background: #d3e3dc;
}

.create-footer > span {
  color: var(--teal);
  font: 850 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.create-footer p { margin: 0; color: #4c5b56; font-size: .61rem; line-height: 1.4; }

@media (max-width: 350px) {
  .create-shell::before { left: 16px; }
  .create-intro h1 { font-size: 2.35rem; }
}

/* Decision intake — context first, structure second. */
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  outline: none;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

textarea::placeholder { color: #858d87; }

textarea:focus {
  border-color: var(--coral);
  box-shadow: 3px 3px 0 var(--mustard);
}

textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff0ec;
}

.intake-intro h1 { max-width: 330px; }
.intake-intro > p:last-child { max-width: 335px; }
.problem-section > label { margin-bottom: 7px; }

.field-guidance {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 8px;
  margin-top: 9px;
  align-items: start;
}

.field-guidance > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  background: var(--mustard);
  font-size: .72rem;
}

.field-guidance p,
.section-explainer,
.skip-note {
  margin: 0;
  color: var(--muted);
  font-size: .63rem;
  line-height: 1.45;
}

.known-options-section .form-section-heading {
  display: grid;
  grid-template-columns: 34px 1fr auto;
}

.form-section-heading > .optional-mark {
  display: inline-block;
  width: auto;
  height: auto;
  padding: 4px 5px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font: 800 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .055em;
}

.section-explainer { margin: -4px 0 12px; }

.known-option-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.known-option-field {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 35px;
}

.known-option-field > label {
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-right: 0;
  background: var(--sea);
  font: 850 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.known-option-field:nth-child(even) > label {
  background: var(--blue);
  color: var(--paper-light);
}

.known-option-field input { height: 46px; border-radius: 0; }

.remove-option {
  border: 2px solid var(--ink);
  border-left: 0;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.remove-option:hover { background: #f0d5cd; color: var(--danger); }

.skip-note {
  margin-top: 13px;
  padding: 9px 10px;
  border-left: 5px solid var(--mustard);
  background: #e4dfcf;
}

.skip-note strong { color: var(--teal); }

.ai-handoff { padding-bottom: 17px; }

.analysis-sequence {
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-sequence li {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
  padding: 10px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.analysis-sequence li:first-child { border-top: 1px solid var(--line); }

.analysis-sequence li > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 800 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.analysis-sequence strong { display: block; color: var(--teal); font-size: .7rem; }
.analysis-sequence p { margin: 3px 0 0; color: var(--muted); font-size: .61rem; line-height: 1.4; }

.control-note {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 8px;
  margin: 13px 0 0;
  padding: 10px;
  align-items: center;
  background: #d3e3dc;
  color: #3f514b;
  font-size: .63rem;
  line-height: 1.4;
}

.control-note > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font-weight: 900;
}

.intake-actions { grid-template-columns: 72px 1fr; }
.continue-analysis { background: var(--coral); color: var(--paper-light); }
.continue-analysis > span:last-child { color: var(--ink); }

.intake-footer { margin-bottom: 5px; }

@media (max-width: 350px) {
  .known-options-section .form-section-heading { grid-template-columns: 34px 1fr; }
  .form-section-heading > .optional-mark { grid-column: 2; justify-self: start; margin-top: 3px; }
}

/* Decision details — an AI-prepared model the owner can still shape. */
.details-page { background: #0c2c28; }

.details-shell {
  background: var(--paper);
  color: var(--ink);
}

.details-shell::before {
  width: 76px;
  height: 6px;
  position: absolute;
  top: 0;
  left: 21px;
  background: var(--coral);
  content: "";
}

.details-intro { padding: 36px 1px 24px; }

.details-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--teal);
  font: 800 .53rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .065em;
}

.details-kicker > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.details-kicker i {
  width: 7px;
  height: 7px;
  border: 2px solid var(--teal-light);
  transform: rotate(45deg);
}

.details-intro .folio { margin: 21px 0 7px; color: var(--coral); }

.details-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.32rem;
  letter-spacing: -.055em;
  line-height: .95;
}

.details-intro > p:last-child {
  max-width: 330px;
  margin: 12px 0 0;
  color: #58655f;
  font-size: .71rem;
  line-height: 1.5;
}

.details-section {
  padding: 18px 0 20px;
  border-top: 2px solid var(--ink);
}

.details-section-heading {
  display: flex;
  gap: 11px;
  margin-bottom: 13px;
  align-items: center;
}

.details-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.options-section .details-section-heading > span { background: var(--blue); }
.model-section .details-section-heading > span { background: var(--teal); }
.comparison-preview .details-section-heading > span { background: var(--mustard); color: var(--ink); }

.details-section-heading p,
.details-section-heading h2 { margin: 0; }

.details-section-heading p {
  color: var(--teal-light);
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.details-section-heading h2 {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.06;
}

.question-copy,
.section-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.45;
}

.priority-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.priority-answers button {
  min-height: 48px;
  padding: 8px 9px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font-size: .62rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.priority-answers button:last-child { border-color: var(--blue); }

.priority-answers button.selected {
  background: var(--teal);
  color: var(--paper-light);
  box-shadow: 3px 3px 0 var(--mustard);
}

.answer-feedback,
.micro-feedback,
.save-feedback {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #53635e;
  font-size: .61rem;
  line-height: 1.4;
}

.detail-option {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  min-height: 59px;
  margin-top: 8px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
}

.detail-option > span {
  display: grid;
  place-items: center;
  border-right: 2px solid var(--ink);
  background: var(--sea);
  font: 850 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.option-b > span { background: var(--blue); color: var(--paper-light); }

.detail-option > div { padding: 10px 10px 9px; }
.detail-option strong { display: block; color: var(--teal); font-size: .69rem; }
.detail-option p { margin: 3px 0 0; color: var(--muted); font-size: .58rem; line-height: 1.25; }

.quiet-edit {
  align-self: center;
  margin-right: 8px;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid var(--coral);
  background: transparent;
  color: var(--teal);
  font-size: .58rem;
  font-weight: 850;
  cursor: pointer;
}

.add-path {
  display: inline-flex;
  gap: 7px;
  margin-top: 10px;
  padding: 4px 0;
  align-items: center;
  border: 0;
  border-bottom: 2px solid var(--coral);
  background: transparent;
  color: var(--teal);
  font-size: .64rem;
  font-weight: 850;
  cursor: pointer;
}

.add-path > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
}

.criterion-stack {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.criterion-stack li {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-size: .67rem;
  font-weight: 800;
}

.importance-chip {
  min-width: 74px;
  padding: 5px 6px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .035em;
  cursor: pointer;
}

.importance-chip.leading { background: var(--teal); color: var(--paper-light); }
.importance-chip.important { background: var(--mustard); color: var(--ink); }
.importance-chip.in-view { background: var(--paper-deep); color: #58655f; }

.model-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  margin: 13px 0 0;
  padding: 10px;
  align-items: center;
  background: #d3e3dc;
  color: #3f514b;
  font-size: .61rem;
  line-height: 1.4;
}

.model-note > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font-weight: 900;
}

.observation-list { border-top: 1px solid var(--line); }

.observation-list > div {
  display: grid;
  grid-template-columns: 61px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.observation-list span {
  padding-top: 2px;
  color: var(--teal-light);
  font: 850 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}

.observation-list p {
  margin: 0;
  color: #53635e;
  font-size: .62rem;
  line-height: 1.4;
}

.comparison-action {
  display: flex;
  min-height: 43px;
  margin-top: 13px;
  padding: 0 8px 0 12px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
  font-size: .67rem;
  font-weight: 850;
  text-decoration: none;
}

.comparison-action > span:last-child {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.review-strip {
  margin-top: 2px;
  padding: 13px 12px 12px;
  border-left: 6px solid var(--coral);
  background: #d3e3dc;
}

.review-strip > span {
  color: var(--teal);
  font: 850 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .065em;
}

.review-strip > p {
  margin: 7px 0 10px;
  color: #40534d;
  font-size: .63rem;
  line-height: 1.42;
}

.review-strip button {
  width: 100%;
  min-height: 38px;
  padding: 0 9px 0 11px;
  border: 1.5px solid var(--ink);
  background: var(--teal);
  color: var(--paper-light);
  font-size: .64rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.review-strip button span { float: right; color: var(--mustard); font-size: .95rem; }
.review-strip .save-feedback { margin: 8px 0 0; color: var(--teal); font-weight: 700; }
.ask-from-details { display: block; margin-top: 10px; color: var(--teal); font-size: .59rem; font-weight: 800; text-align: center; text-underline-offset: 3px; }
.details-nav { margin-top: 16px; }

.priority-answers button:focus-visible,
.quiet-edit:focus-visible,
.add-path:focus-visible,
.importance-chip:focus-visible,
.comparison-action:focus-visible,
.review-strip button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (max-width: 350px) {
  .details-shell::before { left: 16px; }
  .details-intro h1 { font-size: 2.08rem; }
  .priority-answers { grid-template-columns: 1fr; }
}

/* AI analysis chat — lightweight sample conversation for the prototype. */
.analysis-page { background: #0c2c28; }

.analysis-shell {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

.analysis-shell::before {
  width: 76px;
  height: 6px;
  position: absolute;
  top: 0;
  left: 21px;
  background: var(--mustard);
  content: "";
}

.analysis-intro { padding: 34px 1px 17px; }

.analysis-intro h1 {
  margin: 9px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  letter-spacing: -.055em;
  line-height: .9;
}

.analysis-intro > p:last-child {
  margin: 0;
  color: #58655f;
  font-size: .7rem;
  line-height: 1.45;
}

.analysis-context {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 10px 11px;
  border-left: 5px solid var(--blue);
  background: #e3dfd2;
}

.analysis-context > span {
  grid-column: 1 / -1;
  color: var(--teal-light);
  font: 850 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .065em;
}

.analysis-context p { margin: 0; color: var(--teal); font-size: .66rem; font-weight: 850; }
.analysis-context p b { padding: 0 4px; color: var(--coral); }
.analysis-context a { align-self: center; color: var(--teal); font-size: .55rem; font-weight: 800; text-underline-offset: 3px; }

.chat-area { padding: 17px 0 7px; }

.chat-day {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 750 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .055em;
}

.chat-day::before,
.chat-day::after { height: 1px; flex: 1; background: var(--line); content: ""; }

.chat-message {
  display: flex;
  gap: 8px;
  margin: 0 0 11px;
  align-items: flex-start;
}

.speaker-mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--teal);
  box-shadow: 2px 2px 0 var(--coral);
  color: var(--paper-light);
  font: 800 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.assistant-message > div { max-width: calc(100% - 38px); }
.assistant-message > div > p,
.message-bubble p { margin: 0; font-size: .67rem; line-height: 1.48; }
.assistant-message small { display: block; margin-top: 5px; color: var(--muted); font-size: .49rem; }

.user-message { justify-content: flex-end; }

.message-bubble {
  max-width: 84%;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
}

.user-message .message-bubble { box-shadow: 2px 2px 0 var(--ink); }
.conversation .assistant-message > div { padding: 9px 10px; border-left: 3px solid var(--sea); background: var(--paper-light); }

.prompt-shelf {
  margin-top: 5px;
  padding: 12px 0 13px;
  border-top: 1px solid var(--line);
}

.prompt-shelf > p { margin: 0 0 8px; color: var(--teal); font-size: .6rem; font-weight: 850; }

.prompt-list { display: flex; flex-wrap: wrap; gap: 6px; }

.prompt-chip {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--teal-light);
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  font-size: .56rem;
  line-height: 1.2;
  cursor: pointer;
}

.prompt-chip:hover,
.prompt-chip:focus-visible { background: #d3e3dc; }

.question-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 7px;
  padding: 7px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  align-items: end;
}

.question-composer textarea {
  min-height: 43px;
  max-height: 120px;
  padding: 9px 5px;
  border: 0;
  background: transparent;
  font-size: .67rem;
  resize: vertical;
}

.question-composer textarea:focus { border: 0; box-shadow: none; }
.question-composer textarea::placeholder { color: #78837d; }

.question-composer button {
  display: flex;
  min-height: 42px;
  padding: 5px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  background: var(--coral);
  color: var(--paper-light);
  font-size: .56rem;
  font-weight: 850;
  cursor: pointer;
}

.question-composer button b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--paper-light);
  color: var(--ink);
  font-size: .8rem;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prototype-note { margin: 7px 0 0; color: var(--muted); font-size: .5rem; text-align: center; }
.analysis-nav { margin-top: auto; }

.question-composer button:focus-visible,
.analysis-nav a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

@media (max-width: 350px) {
  .analysis-shell::before { left: 16px; }
  .analysis-intro h1 { font-size: 2.2rem; }
  .analysis-context { grid-template-columns: 1fr; }
  .analysis-context > span { grid-column: auto; }
}

/* Profile — personal account sheet inside the decision desk. */
.profile-page { background: #0c2c28; }

.profile-shell {
  background: var(--paper);
  color: var(--ink);
}

.profile-shell::before {
  width: 76px;
  height: 6px;
  position: absolute;
  top: 0;
  left: 21px;
  background: var(--sea);
  content: "";
}

.profile-intro {
  padding: 39px 1px 23px;
}

.profile-identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  position: relative;
  border: 2px solid var(--ink);
  background: var(--teal);
  box-shadow: 5px 5px 0 var(--coral);
}

.profile-avatar::after {
  width: 17px;
  height: 17px;
  position: absolute;
  right: -7px;
  bottom: -7px;
  border: 2px solid var(--ink);
  background: var(--mustard);
  content: "";
  transform: rotate(45deg);
}

.profile-avatar span {
  color: var(--paper-light);
  font: 850 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.04em;
}

.profile-caption {
  margin: 0 0 5px;
  color: var(--coral);
  font: 850 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.profile-identity h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: -.045em;
  line-height: .95;
}

.profile-email {
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-description {
  max-width: 310px;
  margin: 20px 0 0;
  color: #58655f;
  font-size: .69rem;
  line-height: 1.45;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 4px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.profile-stats > div {
  display: flex;
  min-height: 67px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-stats > div + div {
  border-left: 1px solid var(--line);
}

.profile-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.profile-stats span {
  margin-top: 4px;
  color: var(--muted);
  font: 750 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-section {
  padding: 19px 0;
  border-bottom: 2px solid var(--ink);
}

.profile-section-heading {
  display: flex;
  gap: 11px;
  margin-bottom: 14px;
  align-items: center;
}

.profile-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.profile-section-heading-alt > span {
  background: var(--blue);
}

.profile-section-heading-danger > span {
  background: var(--teal);
}

.profile-section-heading p,
.profile-section-heading h2 {
  margin: 0;
}

.profile-section-heading p {
  color: var(--teal-light);
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.profile-section-heading h2 {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.profile-field {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-height: 43px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.profile-field:last-of-type {
  border-bottom: 1px solid var(--line);
}

.profile-field > span {
  color: var(--muted);
  font: 750 .53rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-field strong {
  overflow: hidden;
  color: var(--teal);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-note {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-left: 5px solid var(--mustard);
  background: #e4dfcf;
  color: #56635f;
  font-size: .6rem;
  line-height: 1.45;
}

.profile-menu {
  border-top: 1px solid var(--line);
}

.profile-menu > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29px;
  gap: 10px;
  min-height: 70px;
  padding: 11px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.profile-menu > a > span:last-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--mustard);
  font-weight: 850;
}

.profile-menu-label {
  color: var(--coral);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.profile-menu strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .88rem;
}

.profile-menu p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.35;
}

.sign-out-action {
  display: flex;
  min-height: 55px;
  padding: 8px 9px 8px 12px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  color: var(--ink);
  text-decoration: none;
}

.sign-out-action > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sign-out-action strong {
  color: var(--danger);
  font-size: .68rem;
}

.sign-out-action small {
  color: var(--muted);
  font-size: .55rem;
}

.sign-out-action > span:last-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font-weight: 850;
}

.profile-menu a:focus-visible,
.sign-out-action:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.profile-nav {
  margin-top: 18px;
}

@media (max-width: 350px) {
  .profile-shell::before {
    left: 16px;
  }

  .profile-identity {
    grid-template-columns: 61px minmax(0, 1fr);
  }

  .profile-avatar {
    width: 57px;
    height: 57px;
  }

  .profile-identity h1 {
    font-size: 1.5rem;
  }
}

/* Fixed application navigation. */

.workspace-shell {
  padding-bottom: 88px;
}

.fixed-app-nav {
  width: 100%;
  max-width: 390px;
  height: 65px;

  position: fixed;
  z-index: 50;

  bottom: 0;
  left: 50%;

  margin: 0;

  transform: translateX(-50%);

  border-top: 2px solid var(--ink);
  background: var(--teal);

  box-shadow: 0 -5px 0 rgba(23, 37, 34, .12);
}

.fixed-app-nav a {
  display: flex;
  flex-direction: column;

  gap: 5px;

  align-items: center;
  justify-content: center;

  color: #afc7c1;

  font-size: .54rem;
  font-weight: 800;

  letter-spacing: .025em;

  text-decoration: none;
}

.fixed-app-nav a.active {
  background: var(--coral);
  color: var(--paper-light);
}


/* Bottom navigation symbols */

.nav-symbol {
  font-size: 1.05rem;
  line-height: .8;
}

.nav-create-symbol {
  display: grid;

  width: 25px;
  height: 25px;

  place-items: center;

  border: 1.5px solid var(--paper-light);

  background: var(--mustard);
  color: var(--ink);

  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.nav-profile-symbol {
  width: 17px;
  height: 17px;

  position: relative;

  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.nav-profile-symbol::after {
  width: 23px;
  height: 9px;

  position: absolute;

  top: 17px;
  left: -5px;

  border: 1.7px solid currentColor;
  border-bottom: 0;

  content: "";
}


/* Header profile button is now clickable. */

a.account-mark {
  cursor: pointer;
  text-decoration: none;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

a.account-mark:hover {
  box-shadow: 1px 1px 0 var(--mustard);
  transform: translate(2px, 2px);
}

a.account-mark:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}


/*
 * Prevent the last content on the page from
 * disappearing behind the fixed navigation.
 */

.margin-note {
  margin-bottom: 10px;
}


/* Keep the fixed bar aligned with the narrower phone shell. */

@media (max-width: 390px) {
  .fixed-app-nav {
    max-width: 100%;
  }
}
/* Global application navigation. */

.header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.menu-button {
  display: flex;
  width: 34px;
  height: 34px;
  padding: 7px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.menu-button span:nth-child(2) {
  width: 70%;
}

.menu-button:focus-visible,
.menu-close:focus-visible,
.menu-item:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.menu-backdrop {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(8, 28, 25, .68);
}

.app-menu {
  width: min(350px, calc(100vw - 25px));
  height: 100vh;
  height: 100svh;
  padding: 21px 19px 18px;
  position: fixed;
  z-index: 100;
  top: 0;
  left: max(0px, calc((100vw - 390px) / 2));
  overflow-y: auto;
  border-right: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 0 0 var(--coral);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-100% - 10px));
  transition: transform .22s ease, visibility 0s linear .22s;
}

.app-menu.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: transform .22s ease;
}

.app-menu-header {
  display: flex;
  padding-bottom: 17px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.app-menu-header p,
.app-menu-header h2 {
  margin: 0;
}

.app-menu-header h2 {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  letter-spacing: -.04em;
}

.menu-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--paper-light);
  font-size: 1.3rem;
  cursor: pointer;
}

.menu-sections section {
  padding: 17px 0 5px;
}

.menu-section-title {
  margin: 0 0 7px;
  color: var(--teal-light);
  font: 850 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.menu-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 17px;
  gap: 9px;
  min-height: 55px;
  padding: 8px 2px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.menu-item:last-child {
  border-bottom: 1px solid var(--line);
}

.menu-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.menu-item.active .menu-number {
  background: var(--coral);
}

.ai-number {
  background: var(--mustard);
  color: var(--ink);
}

.menu-item strong {
  display: block;
  color: var(--teal);
  font-size: .67rem;
}

.menu-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.3;
}

.menu-item > b {
  color: var(--coral);
  font-size: .85rem;
}

.menu-item:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
}

.menu-footer {
  display: flex;
  margin-top: 20px;
  padding-top: 13px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
}

.menu-footer span {
  max-width: 185px;
  overflow: hidden;
  color: var(--muted);
  font-size: .55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-footer a {
  color: var(--danger);
  font-size: .61rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .app-menu {
    transition: none;
  }
}

@media (max-width: 390px) {
  .app-menu { left: 0; }
}
/* =========================================================
   Contributions — collaborative decision discussion
========================================================= */

.contributions-page {
  background: #0c2c28;
}

.contributions-shell {
  background: var(--paper);
  color: var(--ink);
}

.contributions-header {
  border-bottom: 2px solid var(--ink);
}


/* INTRO */

.contributions-intro {
  padding: 32px 0 25px;
  border-bottom: 2px solid var(--ink);
}

.contributions-kicker {
  margin: 20px 0 8px;
  color: var(--coral);
  font: 850 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.contributions-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}

.contributions-intro > p:last-child {
  max-width: 310px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}


/* CURRENT DECISION */

.contribution-decision {
  padding: 18px 0;
  border-bottom: 2px solid var(--ink);
}

.contribution-decision h2 {
  margin: 9px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.contribution-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.contribution-options span {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--teal);
  font-size: .58rem;
  font-weight: 700;
}

.contribution-options b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 800 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* SECTIONS */

.contribution-section,
.add-contribution-section {
  padding: 21px 0;
  border-bottom: 2px solid var(--ink);
}

.contribution-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}

.contribution-heading > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contribution-heading > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font: 800 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.add-contribution-section
.contribution-heading > div > span {
  background: var(--mustard);
  color: var(--ink);
}

.contribution-heading p,
.contribution-heading h2 {
  margin: 0;
}

.contribution-heading p {
  color: var(--teal-light);
  font: 850 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.contribution-heading h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.contribution-heading > strong {
  color: var(--muted);
  font: 750 .51rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* CONTRIBUTION CARDS */

.contribution-card {
  margin-top: 10px;
  padding: 12px 12px 10px;
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.contribution-card::before {
  width: 5px;
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  background: var(--sea);
  content: "";
}

.contribution-card.challenge::before {
  background: var(--coral);
}

.contribution-card.alternative-note::before {
  background: var(--mustard);
}

.contribution-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contribution-type {
  color: var(--teal-light);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.contribution-target {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 850 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.contribution-card.challenge
.contribution-target {
  background: var(--coral);
}

.contribution-card.alternative-note
.contribution-target {
  background: var(--mustard);
  color: var(--ink);
}

.contribution-card > p {
  margin: 11px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  line-height: 1.45;
}

.contribution-card footer {
  display: flex;
  padding-top: 8px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* CONTRIBUTION FORM */

.contribution-form {
  margin-top: 6px;
}

.contribution-fieldset {
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.contribution-fieldset legend,
.contribution-form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font: 850 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.contribution-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.contribution-choice {
  min-width: 0;
  min-height: 82px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  cursor: pointer;
}

.contribution-choice > span {
  display: grid;
  width: 24px;
  height: 24px;
  margin: 0 auto 7px;
  place-items: center;
  background: var(--paper-deep);
  font: 850 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.contribution-choice strong,
.contribution-choice small {
  display: block;
}

.contribution-choice strong {
  font-size: .57rem;
}

.contribution-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .46rem;
  line-height: 1.2;
}

.contribution-choice.selected {
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--paper-light);
}

.contribution-choice.selected > span {
  background: var(--mustard);
  color: var(--ink);
}

.contribution-choice.selected small {
  color: #c9d9d5;
}


/* FORM FIELDS */

.contribution-form-field {
  margin-top: 17px;
}

.contribution-form-field select,
.contribution-form-field textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}

.contribution-form-field select {
  min-height: 43px;
  padding: 0 10px;
  font-size: .63rem;
}

.contribution-form-field textarea {
  min-height: 112px;
  padding: 11px;
  resize: vertical;
  font-size: .66rem;
  line-height: 1.45;
}

.contribution-form-field textarea:focus,
.contribution-form-field select:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.contribution-feedback {
  min-height: 18px;
  margin: 11px 0 7px;
  color: var(--teal-light);
  font-size: .58rem;
  font-weight: 750;
  line-height: 1.4;
}

.contribution-feedback.error {
  color: var(--danger);
}

.contribution-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
}


/* SHARED NOTE */

.contribution-note {
  margin: 19px 0;
  padding: 11px 12px;
  border-left: 6px solid var(--mustard);
  background: var(--paper-deep);
}

.contribution-note span {
  color: var(--coral);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.contribution-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.45;
}


/* NAV */

.contribution-nav {
  margin-top: 18px;
}


/* SMALL PHONE */

@media (max-width: 350px) {

  .contributions-intro h1 {
    font-size: 2.1rem;
  }

  .contribution-type-grid {
    grid-template-columns: 1fr;
  }

  .contribution-choice {
    min-height: 65px;
  }

}
/* =========================================================
   AI Chat — contextual multi-turn decision conversation
========================================================= */

.chat-page {
  background: #0c2c28;
}

.chat-shell {
  background: var(--paper);
  color: var(--ink);
}

.chat-header {
  border-bottom: 2px solid var(--ink);
}


/* INTRO */

.chat-intro {
  padding: 30px 0 24px;
  border-bottom: 2px solid var(--ink);
}

.chat-title-row {
  display: flex;
  margin-top: 19px;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
}

.chat-kicker {
  margin: 0 0 7px;
  color: var(--coral);
  font: 850 .53rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.chat-title-row h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}

.ai-status {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 8px;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font: 850 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ai-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea);
}

.chat-intro-copy {
  max-width: 310px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.5;
}


/* DECISION CONTEXT */

.chat-context {
  padding: 17px 0;
  border-bottom: 2px solid var(--ink);
}

.chat-context h2 {
  margin: 8px 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.15;
}

.chat-context-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-context-options span {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--teal);
  font-size: .56rem;
  font-weight: 750;
}

.chat-context-options b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 800 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.chat-context > p {
  margin: 10px 0 0;
  color: var(--muted);
  font: 700 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* CONVERSATION */

.conversation-section {
  padding: 21px 0;
  border-bottom: 2px solid var(--ink);
}

.conversation-heading {
  display: flex;
  margin-bottom: 17px;
  align-items: center;
  justify-content: space-between;
}

.conversation-heading > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.conversation-heading > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--blue);
  color: var(--paper-light);
  font: 850 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.conversation-heading p,
.conversation-heading h2 {
  margin: 0;
}

.conversation-heading p {
  color: var(--teal-light);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.conversation-heading h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.conversation-heading > strong {
  color: var(--muted);
  font: 750 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* MESSAGES */

.chat-message {
  width: 91%;
  margin: 11px 0;
  padding: 11px 12px;
  border: 1px solid var(--ink);
}

.chat-page .chat-message, .analysis-page .chat-message { display: block; }
.chat-page .chat-message > p, .analysis-page .chat-message > p { white-space: pre-wrap; }
.chat-page .user-message footer, .analysis-page .user-message footer { color: #c5d9d1; }

.ai-message {
  margin-right: auto;
  border-left: 5px solid var(--sea);
  background: var(--paper-light);
}

.user-message {
  margin-left: auto;
  border-right: 5px solid var(--coral);
  background: var(--teal);
  color: var(--paper-light);
}

.chat-message header {
  display: flex;
  gap: 7px;
  align-items: center;
}

.ai-message header {
  color: var(--teal-light);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.user-message header {
  justify-content: flex-end;
  color: var(--mustard);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.message-author {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 850 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.chat-message > p {
  margin: 10px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  line-height: 1.48;
}

.user-message > p {
  text-align: left;
}

.chat-message footer {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 .46rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* AI OBSERVATION */

.ai-observation {
  margin-top: 11px;
  padding: 9px;
  border-left: 4px solid var(--mustard);
  background: var(--paper-deep);
}

.ai-observation span {
  color: var(--coral);
  font: 850 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.ai-observation p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .56rem;
  line-height: 1.4;
}


/* AI QUESTION LIST */

.chat-question-list {
  margin: 10px 0 2px;
  padding: 0;
  list-style: none;
  counter-reset: chat-question;
}

.chat-question-list li {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  align-items: start;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .59rem;
  line-height: 1.4;
  counter-increment: chat-question;
}

.chat-question-list li::before {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  background: var(--mustard);
  color: var(--ink);
  content: counter(chat-question);
  font: 850 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* QUICK PROMPTS */

.chat-prompts {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.prompt-scroll {
  display: flex;
  margin-top: 10px;
  gap: 6px;
  flex-wrap: wrap;
  scrollbar-width: none;
}

.prompt-scroll::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: normal;
  padding: 8px 9px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font-size: .54rem;
  font-weight: 750;
  cursor: pointer;
}

.prompt-chip:hover {
  background: var(--mustard);
  color: var(--ink);
}


/* COMPOSER */

.chat-composer {
  padding: 18px 0 20px;
  border-bottom: 2px solid var(--ink);
}

.chat-composer > label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font: 850 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 43px;
  gap: 7px;
}

.chat-input-row textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px;
  resize: none;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
  font-size: .63rem;
  line-height: 1.4;
}

.chat-input-row textarea:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.chat-input-row button {
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--paper-light);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
}

.chat-composer-meta {
  display: flex;
  margin-top: 7px;
  gap: 10px;
  justify-content: space-between;
}

.chat-composer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: .5rem;
  line-height: 1.35;
}

.chat-composer-meta span {
  color: var(--teal-light);
  font: 850 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.chat-feedback {
  min-height: 16px;
  margin: 9px 0 0;
  color: var(--teal-light);
  font-size: .55rem;
  font-weight: 750;
}

.chat-feedback.error {
  color: var(--danger);
}


/* CONVINCE ME */

.chat-tools {
  padding: 19px 0;
  border-bottom: 2px solid var(--ink);
}

.chat-tools h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.chat-tools p {
  margin: 0;
  color: var(--muted);
  font-size: .59rem;
  line-height: 1.45;
}

.chat-debate-link {
  display: flex;
  margin-top: 13px;
  min-height: 43px;
  padding: 0 11px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
  font-size: .63rem;
  font-weight: 850;
  text-decoration: none;
}

.chat-debate-link span:last-child {
  font-size: .9rem;
}


/* NAV */

.chat-nav {
  margin-top: 18px;
}


/* SMALL PHONE */

@media (max-width: 350px) {

  .chat-title-row h1 {
    font-size: 2.05rem;
  }

  .chat-message {
    width: 95%;
  }

}
/* =========================================================
   Convince Me — AI debate / challenge mode
========================================================= */

.debate-page {
  background: #0c2c28;
}

.debate-shell {
  background: var(--paper);
  color: var(--ink);
}

.debate-header {
  border-bottom: 2px solid var(--ink);
}


/* INTRO */

.debate-intro {
  padding: 30px 0 24px;
  border-bottom: 2px solid var(--ink);
}

.debate-title-row {
  display: flex;
  margin-top: 19px;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.debate-kicker {
  margin: 0 0 7px;
  color: var(--coral);
  font: 850 .53rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.debate-title-row h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .94;
}

.debate-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin-top: 4px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--mustard);
  box-shadow: 5px 5px 0 var(--coral);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.debate-intro-copy {
  max-width: 315px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.5;
}


/* CONTEXT */

.debate-context {
  padding: 17px 0;
  border-bottom: 2px solid var(--ink);
}

.debate-context h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.debate-context p {
  margin: 0;
  color: var(--muted);
  font-size: .57rem;
}


/* SECTIONS */

.debate-section {
  padding: 21px 0;
  border-bottom: 2px solid var(--ink);
}

.debate-section-heading {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.debate-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font: 850 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mode-heading > span {
  background: var(--mustard);
  color: var(--ink);
}

.debate-section-heading p,
.debate-section-heading h2 {
  margin: 0;
}

.debate-section-heading p {
  color: var(--teal-light);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.debate-section-heading h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}


/* ALTERNATIVES */

.debate-options {
  display: grid;
  gap: 8px;
}

.debate-option {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) 25px;
  gap: 10px;
  min-height: 62px;
  padding: 9px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.debate-option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--paper-deep);
  color: var(--teal);
  font: 900 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.debate-option small,
.debate-option strong {
  display: block;
}

.debate-option small {
  margin-bottom: 4px;
  color: var(--muted);
  font: 800 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.debate-option strong {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .77rem;
}

.debate-option > b {
  display: none;
}

.debate-option.selected {
  border: 2px solid var(--teal);
  background: var(--teal);
}

.debate-option.selected
.debate-option-letter {
  background: var(--mustard);
  color: var(--ink);
}

.debate-option.selected small {
  color: #b8d0ca;
}

.debate-option.selected strong {
  color: var(--paper-light);
}

.debate-option.selected > b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font-size: .55rem;
}


/* MODES */

.debate-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.debate-mode {
  min-height: 145px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mode-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  background: var(--paper-deep);
  font-size: 1rem;
  font-weight: 900;
}

.debate-mode small,
.debate-mode strong {
  display: block;
}

.debate-mode small {
  color: var(--muted);
  font: 850 .46rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.debate-mode strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.debate-mode p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .53rem;
  line-height: 1.4;
}

.debate-mode.selected {
  border: 2px solid var(--ink);
}

.for-mode.selected {
  background: var(--teal);
  color: var(--paper-light);
}

.against-mode.selected {
  background: var(--coral);
  color: var(--paper-light);
}

.debate-mode.selected
.mode-symbol {
  background: var(--mustard);
  color: var(--ink);
}

.debate-mode.selected small,
.debate-mode.selected p {
  color: #d6e0dc;
}

.debate-run {
  display: flex;
  width: 100%;
  margin-top: 12px;
  justify-content: space-between;
}


/* RESULT */

.debate-result {
  padding: 22px 0;
  border-bottom: 2px solid var(--ink);
}

.debate-result-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.debate-result-header > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.ai-result-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 850 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.debate-result-header p,
.debate-result-header h2 {
  margin: 0;
}

.debate-result-header p {
  color: var(--coral);
  font: 850 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.debate-result-header h2 {
  max-width: 215px;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .93rem;
  line-height: 1.15;
}

.result-time {
  padding: 5px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 750 .46rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.result-lead {
  margin: 17px 0 13px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .71rem;
  line-height: 1.45;
}


/* ARGUMENTS */

.debate-arguments {
  border-top: 1px solid var(--line);
}

.debate-argument {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.debate-argument > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--mustard);
  color: var(--ink);
  font: 850 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.debate-argument strong {
  color: var(--teal);
  font-size: .64rem;
}

.debate-argument p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .57rem;
  line-height: 1.45;
}


/* CAUTION */

.debate-caution {
  margin-top: 14px;
  padding: 10px 11px;
  border-left: 5px solid var(--coral);
  background: var(--paper-deep);
}

.debate-caution span {
  color: var(--coral);
  font: 850 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.debate-caution p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .56rem;
  line-height: 1.45;
}


/* REFLECTION */

.debate-reflection {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.debate-reflection h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.debate-reflection > p {
  margin: 0;
  color: var(--muted);
  font-size: .57rem;
  line-height: 1.45;
}

.reflection-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.reflection-actions button {
  min-height: 38px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font-size: .55rem;
  font-weight: 800;
  cursor: pointer;
}

.reflection-actions button:focus {
  background: var(--mustard);
  color: var(--ink);
}


/* SWITCH */

.switch-side {
  padding: 19px 0;
  border-bottom: 2px solid var(--ink);
}

.switch-side > div > span {
  color: var(--coral);
  font: 850 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.switch-side h2 {
  margin: 6px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.switch-side p {
  margin: 0;
  color: var(--muted);
  font-size: .55rem;
}

.switch-side button {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--paper-light);
  font-size: .59rem;
  font-weight: 850;
  cursor: pointer;
}


/* NOTE */

.debate-note {
  margin: 18px 0;
  padding: 10px 11px;
  border-left: 5px solid var(--mustard);
  background: var(--paper-deep);
}

.debate-note span {
  color: var(--teal);
  font: 850 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.debate-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.4;
}


/* NAV */

.debate-nav {
  margin-top: 18px;
}


@media (max-width: 350px) {

  .debate-title-row h1 {
    font-size: 1.9rem;
  }

  .debate-modes {
    grid-template-columns: 1fr;
  }

  .debate-mode {
    min-height: auto;
  }

}
/* =========================================================
   Compare — side-by-side decision analysis
========================================================= */

.compare-page {
  background: #0c2c28;
}

.compare-shell {
  background: var(--paper);
  color: var(--ink);
}

.compare-header {
  border-bottom: 2px solid var(--ink);
}


/* INTRO */

.compare-intro {
  padding: 30px 0 24px;
  border-bottom: 2px solid var(--ink);
}

.compare-kicker {
  margin: 19px 0 7px;
  color: var(--coral);
  font: 850 .53rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.compare-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .93;
}

.compare-intro-copy {
  max-width: 315px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.5;
}


/* CONTEXT */

.compare-context {
  padding: 17px 0;
  border-bottom: 2px solid var(--ink);
}

.compare-context h2 {
  margin: 8px 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.compare-context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-context-meta span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--muted);
  font: 750 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* SECTION */

.compare-section {
  padding: 21px 0;
  border-bottom: 2px solid var(--ink);
}

.compare-section-heading {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.compare-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font: 850 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.criteria-heading > span {
  background: var(--mustard);
  color: var(--ink);
}

.compare-section-heading p,
.compare-section-heading h2 {
  margin: 0;
}

.compare-section-heading p {
  color: var(--teal-light);
  font: 850 .49rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.compare-section-heading h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}


/* ALTERNATIVES */

.compare-alternatives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compare-alternative {
  min-width: 0;
  min-height: 135px;
  padding: 11px;
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper-light);
}

.compare-alternative.option-a {
  box-shadow: 4px 4px 0 var(--sea);
}

.compare-alternative.option-b {
  box-shadow: 4px 4px 0 var(--coral);
}

.compare-letter {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 850 .56rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.option-b .compare-letter {
  background: var(--coral);
}

.compare-alternative > p {
  margin: 0 0 4px;
  color: var(--muted);
  font: 850 .46rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.compare-alternative h3 {
  margin: 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .87rem;
  line-height: 1.1;
}

.alternative-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .5rem;
  line-height: 1.35;
}


/* EXPLAINER */

.comparison-explainer {
  margin: 0 0 15px;
  padding: 9px 10px;
  border-left: 5px solid var(--mustard);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.45;
}


/* CRITERIA */

.criteria-comparison {
  border-top: 2px solid var(--ink);
}

.comparison-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-row-header {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  justify-content: space-between;
}

.comparison-row-header > div {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.criterion-number {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 800 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.comparison-row-header h3,
.comparison-row-header p {
  margin: 0;
}

.comparison-row-header h3 {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
}

.comparison-row-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .48rem;
  line-height: 1.3;
}


/* IMPORTANCE */

.comparison-row-header .importance-chip {
  flex: 0 0 auto;
  padding: 5px 6px;
  font: 850 .42rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em;
}

.comparison-row-header .importance-chip.leading {
  background: var(--coral);
  color: var(--paper-light);
}

.comparison-row-header .importance-chip.important {
  background: var(--mustard);
  color: var(--ink);
}

.comparison-row-header .importance-chip.in-view {
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--muted);
}


/* VALUES */

.comparison-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 11px;
}

.comparison-value {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.comparison-value.stronger {
  border-top: 4px solid var(--sea);
}

.comparison-value.concern {
  border-top: 4px solid var(--coral);
}

.value-option {
  display: grid;
  width: 21px;
  height: 21px;
  margin-bottom: 7px;
  place-items: center;
  background: var(--paper-deep);
  color: var(--teal);
  font: 850 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.comparison-value strong {
  display: block;
  color: var(--teal);
  font-size: .56rem;
}

.comparison-value p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .48rem;
  line-height: 1.4;
}


/* SUMMARY */

.comparison-summary {
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
}

.comparison-summary > header {
  display: flex;
  gap: 9px;
  align-items: center;
}

.summary-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: var(--teal);
  color: var(--paper-light);
  font: 850 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.comparison-summary header p,
.comparison-summary header h2 {
  margin: 0;
}

.comparison-summary header p {
  color: var(--coral);
  font: 850 .47rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.comparison-summary header h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.comparison-summary > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .59rem;
  line-height: 1.5;
}

.comparison-tension {
  margin-top: 14px;
  padding: 11px;
  border: 2px solid var(--ink);
  background: var(--mustard);
}

.comparison-tension span,
.comparison-tension strong {
  display: block;
}

.comparison-tension span {
  font: 850 .46rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.comparison-tension strong {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
}

.summary-warning {
  padding-left: 9px;
  border-left: 4px solid var(--coral);
}


/* UNCERTAINTY */

.uncertainty-section {
  padding: 19px 0;
  border-bottom: 2px solid var(--ink);
}

.uncertainty-section h2 {
  margin: 8px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.uncertainty-list {
  border-top: 1px solid var(--line);
}

.uncertainty-list > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.uncertainty-list > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: var(--coral);
  color: var(--paper-light);
  font-weight: 900;
}

.uncertainty-list p {
  margin: 0;
  color: var(--muted);
  font-size: .53rem;
  line-height: 1.4;
}

.uncertainty-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: .57rem;
}


/* ACTIONS */

.compare-actions {
  display: grid;
  gap: 8px;
  padding: 19px 0;
  border-bottom: 2px solid var(--ink);
}

.compare-actions .primary-action {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}

.secondary-compare-action {
  display: flex;
  min-height: 42px;
  padding: 0 11px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  color: var(--teal);
  font-size: .59rem;
  font-weight: 850;
  text-decoration: none;
}


/* NAV */

.compare-nav {
  margin-top: 18px;
}

/* Final cross-screen overrides, after the original editorial screen styles. */
.prototype-note { margin: 12px 0; padding: 11px 12px; border-left: 3px solid var(--blue); background: #e4e5dc; color: #344e47; font-size: .75rem; line-height: 1.5; text-align: left; }
.auth-panel .field-hint { color: #d8e6df; }
.verify-panel .field-hint { color: #52635b; }
.settings-option strong, .settings-option small { display: block; line-height: 1.5; }
.settings-option small { font-size: .75rem; font-weight: 400; }
.model-fieldset { margin: 10px 0; padding: 12px; border: 1px solid var(--line); }
.model-row, .criterion-editor-row { position: relative; display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.model-row > .remove-option, .criterion-editor-row > .remove-option { width: auto; min-width: 44px; min-height: 44px; justify-self: end; padding: 6px 12px; border: 1px solid var(--ink); background: var(--paper-light); }
.chat-page .chat-message, .analysis-page .chat-message { display: block; }
.chat-message > p { font-size: .88rem; line-height: 1.6; white-space: pre-wrap; }
.chat-message footer { font-size: .65rem; line-height: 1.5; }
.chat-message header { font-size: .65rem; line-height: 1.4; }
.prompt-scroll { flex-wrap: wrap; overflow: visible; }
.prompt-chip { flex: 0 1 auto; min-height: 44px; font-size: .74rem; white-space: normal; }
.chat-intro-copy, .debate-intro-copy, .compare-intro-copy, .analysis-intro > p:last-child, .section-explainer, .comparison-explainer, .result-lead { font-size: .84rem; line-height: 1.55; }
.chat-input-row textarea, .question-composer textarea { font-size: .85rem; line-height: 1.5; }
.comparison-value p, .uncertainty-list p, .debate-argument p, .debate-caution p, .debate-note p, .summary-warning { font-size: .78rem; line-height: 1.55; }
.comparison-value strong, .uncertainty-list strong { font-size: .8rem; }
.compare-alternative .alternative-note { font-size: .73rem; line-height: 1.5; }
.comparison-rating { font-size: .9rem; min-height: 44px; }
.workspace-nav a, .details-nav a, .paper-link, .text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .76rem; }
.form-message, .form-error, .chat-feedback { font-size: .8rem; line-height: 1.5; }
.filter-tabs button, .secondary-action, .add-row-button, .reflection-actions button { min-height: 44px; }
.profile-email, .sent-address strong { overflow-wrap: anywhere; }
[aria-disabled="true"] { opacity: .5; }


@media (max-width: 350px) {

  .compare-intro h1 {
    font-size: 2rem;
  }

  .comparison-values {
    grid-template-columns: 1fr;
  }

}

/* The language control replaces the entry page folio. */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 78px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line, #d6d0c5);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.language-toggle:hover { background: rgba(35, 53, 42, .06); }
.language-toggle:focus-visible { outline: 2px solid #345843; outline-offset: 4px; }
.language-flag { width: 30px; height: 20px; border: 1px solid rgba(0, 0, 0, .12); }
.flag-tr { display: none; }
.language-code::after { content: 'EN'; font: 600 11px/1 monospace; letter-spacing: .08em; }
.language-toggle[data-language="tr"] .flag-en { display: none; }
.language-toggle[data-language="tr"] .flag-tr { display: block; }
.language-toggle[data-language="tr"] .language-code::after { content: 'TR'; }
html[lang="tr"] .auth-intro h1 { letter-spacing: -.045em; }
