/* Genograms (G1, 27 October): the cleared mock-up's look (Timeline/genograms/genogram-mu.html), in the client apps' palette. */
@font-face{font-family:'Nunito Sans';font-weight:400;font-display:swap;src:url('/shared/brand/fonts/nunito-sans-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Nunito Sans';font-weight:700 900;font-display:swap;src:url('/shared/brand/fonts/nunito-sans-latin-700-normal.woff2') format('woff2')}
:root {
  --page: #fafaf7; --card: #fffdf9; --btn: #ffffff; --line: #deded9; --ink: #242423; --soft: #6b6b67; --grid: #ecebe6;
  --tint: #e3f5ef; --aqua: #91d9c1; --aquaInk: #1f3d35; --aquaText: #23866f; --cross: #6b6b67;
}
html[data-theme="dark"] {
  --page: #171b1d; --card: #1f2628; --btn: #252c2e; --line: #475053; --ink: #f3eee6; --soft: #b8b5ae; --grid: #262d30;
  --tint: #1f3a33; --aquaText: #91d9c1; --cross: #b8b5ae;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--page); color: var(--ink); font-family: 'Nunito Sans', system-ui, sans-serif; font-size: 16px; overflow: hidden; }
button, input { font-family: inherit; color: inherit; font-size: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app { display: flex; flex-direction: column; height: 100vh; }
/* Home's shared client header: 72 px, 40 px icon boxes, watercolour band (atelier-brand-header.css), actions right */
header.gg-top { position: relative; height: 72px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px 0 10px; border-bottom: 1px solid var(--line); background: #f8f7f3; }
html[data-theme="dark"] header.gg-top { background: #1f1e1d; }
.gg-title { font-family: Georgia, serif; font-size: 22px; }
.nav-ico { width: 40px; height: 40px; border-radius: 9px; border: 1px solid #deded9; background: #fffdf9; display: inline-grid; place-items: center; color: #242423; text-decoration: none; }
.nav-ico .ico { width: 24px; height: 24px; stroke-width: 1.5; }
html[data-theme="dark"] .nav-ico { background: #283032; border-color: #3d4648; color: #efe9e2; }
.spacer { flex: 1; }
.gg-break { display: none; }
.gg-nav { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
button.nav-ico { padding: 0; cursor: pointer; }
.seg .short { display: none; }
/* Right: the two toggles and the Timeline button, as wide as the right panel and aligned with it (Nicolas, 30 October). */
.gg-right { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 525px; flex: none; }
/* The Timeline button: Home header's own (atelier-client-chat.css #chat-to-timeline), 80 x 40 with the long mark. */
.gg-timeline { display: inline-grid; place-items: center; width: 80px; height: 40px; border: 1px solid #deded9; border-radius: 9px; background: transparent; color: #242423; text-decoration: none; }
.gg-timeline:hover, .gg-timeline:focus-visible { background: #2424230d; }
.gg-timeline .tl-long { display: block; width: 48px; height: 24px; }
html[data-theme="dark"] .gg-timeline { background: #283032; border-color: #3d4648; color: #efe9e2; }
.hbtn { height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid #deded9; background: #fffdf9; color: #242423; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.hbtn .ico { width: 20px; height: 20px; }
.hbtn.ico-only { width: 40px; padding: 0; justify-content: center; }
.hbtn:disabled { opacity: .45; cursor: default; }
.seg { display: inline-flex; }
.seg .hbtn { border-radius: 0; }
.seg .hbtn:first-child { border-radius: 9px 0 0 9px; border-right-width: 0; }
.seg .hbtn:last-child { border-radius: 0 9px 9px 0; }
.seg .hbtn[aria-pressed="true"] { font-weight: 700; border-right-width: 1px; }
.seg .hbtn[aria-pressed="true"] + .hbtn { border-left-width: 0; }
/* The Tree sits in the middle of the canvas it fills. */
.chart.tree { display: flex; }
.chart.tree svg { margin: auto; flex: none; }
/* A relative's own timeline (G2c-2): their one lane sits in the middle of the chart's height. */
.chart.solo { display: flex; }
.chart.solo svg { margin: auto 0; flex: none; }
.kin { font-size: 15px; color: var(--soft); }
.kin b { color: var(--ink); }
.chart.zoomed svg { cursor: grab; }
.chart.dragging svg { cursor: grabbing; }
.years textarea { min-height: 96px; border-radius: 8px; border: 1px solid var(--line); background: var(--btn); padding: 10px; font-size: 16px; color: var(--ink); width: 100%; resize: vertical; font-family: inherit; }
/* Cancelling an invitation is a stop action: orange text and outline (Design Review, G2a). */
.row-back.row-stop { background: transparent; color: #d06f56; border: 1px solid #d06f56; }
.row-back.row-stop:hover, .row-back.row-stop:focus-visible { background: rgba(208, 111, 86, .1); }
/* The invitation note absorbs the panel's leftover height (Invite panel, G2a). */
.p-body > .grow { flex: 1 0 auto; display: flex; }
.p-body > .grow label { flex: 1; display: flex; flex-direction: column; }
.p-body > .grow textarea { flex: 1; min-height: 140px; }
.years textarea:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aquaText); }
.years.two { grid-template-columns: 1fr 1fr; }
/* Fit To Me is a toggle: aqua tint and border when on; full aqua stays for the panel's main button (Design Review, G1). */
.hbtn[aria-pressed="true"] { background: var(--tint); border-color: var(--aquaText); color: var(--ink); }
html[data-theme="dark"] .hbtn:not([aria-pressed="true"]) { background: #283032; border-color: #3d4648; color: #efe9e2; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.main-btn { height: 64px; border-radius: 8px; border: 0; background: var(--aqua); color: var(--aquaInk); font-weight: 900; font-size: 20px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; flex: none; text-decoration: none; }
.gate { flex: 1; display: grid; place-items: center; padding: 24px; }
.gate-card { max-width: 520px; padding: 32px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gate-card h1 { font-size: 30px; font-weight: 900; }
.gate-card p { color: var(--soft); font-size: 18px; }
/* A relative's invitation (G2c; mock-up screen 4): welcome, the four agreement points opening like an accordion, I Agree
   centred, then the year and the account. The page scrolls when the card is taller than the screen. */
#join { overflow: auto; place-items: start center; }
.join-card { width: 100%; max-width: 560px; text-align: left; margin: auto 0; }
.join-card h1 { text-align: center; }
.j-col { display: flex; flex-direction: column; gap: 14px; }
/* On a computer the agreement sits left and the account right, so the page needs no scrolling (Nicolas: no desktop scroll). */
@media (min-width: 1000px) {
  .join-card.split { max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; align-items: start; }
  .join-card.split .j-head { grid-column: 1 / -1; }
}
.j-head { display: flex; flex-direction: column; gap: 14px; }
.join-card:not(.split) { text-align: center; }
.join-card .main-btn:disabled { opacity: .45; cursor: default; }
.join-card .lead { font-size: 16px; line-height: 1.5; text-align: center; }
.jps { display: flex; flex-direction: column; gap: 8px; }
.jp { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--btn); font-size: 15px; font-weight: 700; }
.jp[aria-expanded="true"] { background: var(--tint); border-color: var(--aquaText); }
.jp-ico { color: var(--aquaText); display: inline-flex; }
.jp-t { display: flex; flex-direction: column; gap: 4px; }
.jp-e { font-weight: 400; color: var(--soft); line-height: 1.45; }
.agree { align-self: center; height: 44px; padding: 0 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--btn); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.agree .ico { opacity: .35; }
.agree[aria-pressed="true"] { background: var(--tint); border-color: var(--aquaText); color: var(--aquaText); }
.agree[aria-pressed="true"] .ico { opacity: 1; }
.join-card .years input[readonly] { color: var(--soft); }
.j-switch { align-self: flex-start; border: 0; background: none; color: var(--aquaText); font-weight: 700; font-size: 14px; padding: 0; }
.gate-card p.j-err { min-height: 18px; font-size: 14px; color: #d06f56; text-align: center; }
.join-card .main-btn { flex: none; }
/* A relative's own timeline (G2c-2): the sign-in card reads left like a form; Leave is a stop action. */
.join-card.f-sign { text-align: left; }
.join-card.f-sign h1, .join-card.f-sign .lead, .join-card.f-sign .j-err { text-align: center; }
.main-btn.stop { background: #d06f56; color: #fff; }
.link-row.row-leave .nm { color: #d06f56; }
.join-card:not(.split):not(.f-sign) .j-switch { align-self: center; }

main { flex: 1; min-height: 0; display: flex; position: relative; gap: 20px; padding: 20px 24px; }
/* The shared header sheet moves every desktop main 72 px down for pages whose header floats; this header sits in the flow, so main stays put. */
.app > main { top: 0 !important; }
.edge-chip { position: absolute; width: 34px; height: 24px; border-radius: 12px; border: 0; background: var(--tint); color: var(--ink); font-size: 14px; z-index: 2; }
.edge-chip:hover, .edge-chip:focus-visible { background: var(--aqua); outline: none; }
/* The chart absorbs the leftover width and height; it scrolls inside itself when the family is tall. */
.chart-col { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.chart { flex: 1; min-width: 0; min-height: 0; overflow: auto; border-radius: 8px; background: var(--page); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 6px; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend svg { width: 20px; height: 20px; flex: none; }
.view-tag { margin-left: auto; min-width: 0; padding: 3px 8px; font-size: 12px; border-radius: 6px; background: var(--tint); color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 901px) { .legend { flex-wrap: nowrap; gap: 6px 12px; } }
@media (max-width: 900px) { .view-tag { display: none; } }
.chart svg { display: block; }
.chart svg text { font-family: 'Nunito Sans', system-ui, sans-serif; }
.chart .hit { cursor: pointer; }
.chart .hit { outline: none; }
.chart .hit:hover > :first-child, .chart .hit:focus-visible > :first-child { stroke: var(--aquaText); stroke-width: 2; }
.panel { width: 525px; flex: none; display: flex; flex-direction: column; min-height: 0; }
.p-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.p-head h2 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--btn); display: grid; place-items: center; }
.x-btn .ico { width: 18px; height: 18px; }
/* The panel body absorbs the height; the main button stays at the bottom. */
.p-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.p-body > * { flex-shrink: 0; }
/* The panel body scrolls above the fixed button, fading out at its foot (Design Review, Tree view). */
.p-foot { padding: 0 18px 18px; position: relative; }
.p-foot::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
.lead { color: var(--soft); font-size: 14px; line-height: 1.45; }
.label { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); text-align: left; width: 100%; }
.row .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.row .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rel { font-size: 13px; color: var(--soft); }
.row .rel.unset { color: var(--aquaText); }
.row-wrap { position: relative; }
.row-wrap .row { padding-right: 48px; }
.row .nm .rel { font-weight: 400; font-size: 15px; }
.row-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--soft); display: grid; place-items: center; }
.row-wrap .row:has(+ .row-back) { padding-right: 120px; }
.row-back { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--tint); color: var(--aquaText); font-weight: 800; font-size: 14px; font-family: inherit; }
.row-back:hover, .row-back:focus-visible { outline: 2px solid var(--aqua); outline-offset: 1px; }
.chart .arrow { cursor: pointer; }
.chart .arrow:hover rect { fill: var(--aqua); }
.row-x .ico { width: 16px; height: 16px; }
.row-x:hover, .row-x:focus-visible { color: #d06f56; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--btn); font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--tint); border-color: var(--aquaText); }
.years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.years label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.years input { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--btn); padding: 0 10px; font-size: 16px; color: var(--ink); width: 100%; }
.years input:focus, .row:focus-visible, .chip:focus-visible, .x-btn:focus-visible, .hbtn:focus-visible { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aquaText); }
.years.one { grid-template-columns: 1fr; }
.link-row .nm { color: var(--aquaText); }
.sec-btn { height: 56px; border-radius: 8px; border: 2px solid var(--aqua); background: transparent; color: var(--aquaText); font-weight: 900; font-size: 18px; width: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.sec-btn:hover, .sec-btn:focus-visible { background: color-mix(in srgb, var(--aqua) 14%, transparent); outline: none; }
.main-btn .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.main-btn:disabled { opacity: .5; cursor: default; }
/* A main button that is off reads as off in both themes: a tint outline, no fill (Design Review, 31 October). */
.p-foot .main-btn:disabled { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); opacity: 1; }
.cap-line { margin: 8px 0 0; }
/* The remove × on a name box turns orange on hover (stop actions are orange). */
.chart .pbox.sel .pb { stroke: var(--aquaText); stroke-width: 1.6; }
.chart .pbox .rm { opacity: 0; transition: opacity .15s; }
.chart .pbox:hover .rm, .chart .pbox:focus-within .rm, .chart .pbox.open .rm { opacity: 1; }
.chart .hit.rm:hover > circle, .chart .hit.rm:focus-visible > circle { stroke: #d06f56; }
.chart .hit.rm:hover > path, .chart .hit.rm:focus-visible > path { stroke: #d06f56; }
.confirm { position: fixed; left: 50%; top: 36px; transform: translate(-50%, -50%); background: #000; border: 1px solid #3d4648; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 15px; z-index: 5; white-space: nowrap; }
.saved { font-size: 13px; color: var(--aquaText); min-height: 18px; }
/* An impossible date is refused; the reason shows in orange under the years (Nicolas, 1 November). */
.date-warn { margin: 6px 0 0; font-size: 13px; color: #d06f56; }
.years input.bad, .years input.bad:focus { border-color: #d06f56; outline-color: #d06f56; }
.date-ask { display: flex; gap: 6px; margin-top: 6px; }
.date-warn.ask { color: var(--soft); }
.date-ask .chip { color: var(--ink); }
.ev-dates { color: var(--soft); font-size: 14px; }
.ev-text { line-height: 1.5; white-space: pre-wrap; }
.ev-list { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  header.gg-top { padding: 0 16px; }
  main { flex-direction: column; padding: 16px; }
  .chart { min-height: 360px; }
  .chart.solo { min-height: 0; flex: none; }
  .panel { width: 100%; }
  .gg-right { width: auto; }
}
/* Phone header (Design Review, G2d; 30 October): only Home on the left, short Me / Family labels, the Timeline
   link as its icon, and the header confirmation is its own row under the header. */
@media (max-width: 600px) {
  header.gg-top { gap: 8px; }
  /* Home's phone row (Home #1274): Sign Out pointing left, the house (or the photo) in the middle, Settings; Chat stays on a computer. */
  .gg-title, #nav-chat { display: none; }
  header.gg-top .brand-mark { display: none; }
  #nav-signout { order: -3; } #nav-home, header.gg-top .brand-mark { order: -2; } #nav-settings { order: -1; }
  #nav-signout .ico { transform: scaleX(-1); }
  header.gg-top:has(.brand-mark.has-photo) #nav-home { display: none; }
  .seg .long { display: none; }
  .seg .short { display: inline; }
  .gg-timeline { width: 40px; }
  .gg-timeline .tl-long { width: 30px; height: 18px; }
  .seg .hbtn { padding: 0 9px; }
  .gg-nav { margin-left: 0; }
  /* Two rows so the header fits a 390 px phone (Design Review, 11 November): the icons and the Timeline button, then
     Tree | Timeline and Me | Family under them. The band runs the full width; the first icon sits 10 px from the left. */
  header.gg-top { height: auto; flex-wrap: wrap; row-gap: 10px; padding: 12px 16px 14px 10px; }
  .gg-right { display: contents; }
  header.gg-top:has(#mode:not(.hidden)) .gg-break { display: block; flex-basis: 100%; height: 0; order: 10; }
  #mode { order: 11; } #fit { order: 12; margin-left: auto; }
  .ivl button { font-size: 14px; padding: 0 4px; }
  .tog { white-space: nowrap; }
  .confirm { position: static; transform: none; flex: none; margin: 8px 16px 0; border-radius: 8px; padding: 8px 14px; font-size: 14px; white-space: normal; text-align: center; }
}

/* Answering without an account (G5, 29 October; mock-up Timeline/genograms/answer-without-account-mu.html). The page
   fills the screen below the header: the chart on the left, the moment and the answer on the right (one column on a
   phone, the chart a short strip on top). */
.ans-ro { font-size: 14px; color: var(--soft); margin-left: 4px; }
.ans { flex: 1; min-height: 0; display: flex; }
.ans > .gate-card { margin: auto; }
.ans-page { flex: 1; min-height: 0; display: flex; }
.ans-chart { flex: 1; min-width: 0; padding: 22px 24px; display: flex; }
.ans-chart svg { width: 100%; height: 100%; }
.ans-grid { stroke: var(--line); stroke-width: 1; }
.ans-kin { stroke: var(--soft); stroke-dasharray: 3 4; }
.ans-soft { fill: var(--soft); }
.ans-ink { fill: var(--ink); }
.ans-ring { stroke: var(--aquaText); }
.ans-dot { cursor: pointer; outline: none; }
.ans-dot:focus-visible circle:first-child { stroke: var(--aquaText); stroke-width: 2; }
.ans-side { width: 440px; flex: none; border-left: 1px solid var(--line); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ans-h { font-family: Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.15; }
.ans-yr { font-size: 14px; color: var(--soft); margin-top: -6px; }
.ans-who { display: block; font-size: 13px; color: var(--soft); margin-bottom: 2px; }
.ans-view, .ans-sent, .ans-next { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--btn); font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ans-soft-t { color: var(--soft); }
.ans-q { border: 1px solid var(--aquaText); border-radius: 8px; padding: 12px 14px; background: var(--tint); font-size: 17px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.ans-next { text-align: left; border-color: var(--aquaText); background: var(--tint); font-size: 17px; }
.ans-area { flex: 1; min-height: 120px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.45; resize: none; }
.ans-consent { font-size: 13px; color: var(--soft); line-height: 1.4; }
.ans-send { height: 56px; font-size: 18px; }
.ans-send:disabled { opacity: .5; cursor: default; }
.ans-sent { display: flex; flex-direction: column; gap: 8px; }
.ans-ok { display: flex; align-items: center; gap: 8px; color: var(--aquaText); font-weight: 700; font-size: 15px; }
.ans-qa { background: var(--page); border-radius: 8px; padding: 10px 12px; }
.ans-done { font-size: 15px; color: var(--soft); line-height: 1.45; }
.ans-fill { flex: 1; }
.ans-promo { flex: none; border: 1px dashed var(--aquaText); border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.ans-promo b { display: block; font-size: 15px; }
.ans-promo span { font-size: 13px; color: var(--soft); }
.ans-promo-btn { margin-left: auto; height: 40px; padding: 0 14px; border: 1.5px solid var(--aqua); border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.ans-page.small { flex-direction: column; }
.ans-page.small .ans-chart { flex: none; height: 140px; padding: 10px 16px 0; }
.ans-page.small .ans-side { width: auto; flex: 1; border-left: 0; padding: 14px 16px; }
.ans-page.small .ans-h { font-size: 24px; }
.ans-page.small .ans-promo { flex-direction: column; align-items: stretch; gap: 8px; }
.ans-page.small .ans-promo-btn { margin-left: 0; }
.ans-side .j-err { font-size: 14px; color: #d06f56; }
html[data-theme="dark"] button.ans-next { background-color: var(--tint) !important; border-color: var(--aquaText) !important; }
.ans-chart { align-items: center; justify-content: center; overflow: hidden; }
.ans-chart svg { width: auto; height: auto; flex: none; }
.ans-next { display: flex; flex-direction: column; }
.ans-go { align-self: flex-end; margin-top: 8px; height: 36px; padding: 0 16px; border: 1.5px solid var(--aqua); border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .ans-ro { display: none; } }
/* A Message For Alex: an outlined row under the answer; writing it fills the column like an answer. */
.ans-write, .ans-back { flex: none; height: 44px; border: 1px solid var(--aquaText); border-radius: 8px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; }
.ans-pair { display: flex; gap: 10px; flex: none; }
.ans-pair .ans-back { width: 120px; height: 56px; }
.ans-pair .ans-send { flex: 1; width: auto; }
label.ans-who { margin-bottom: -6px; }
html[data-theme="dark"] button.ans-write, html[data-theme="dark"] button.ans-back { background-color: transparent !important; border-color: var(--aquaText) !important; }
.ans-area:focus, .ans-area:focus-visible { outline: none; border-color: var(--aqua); }
/* A few words for Alex: a lead line, the starters opening in place (they push the box down, never cover it). */
.ans-lead { font-size: 16px; line-height: 1.45; color: var(--soft); }
.ans-starters-btn { flex: none; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.ans-chev { font-size: 18px; color: var(--soft); }
.ans-starters { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ans-starter { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font-size: 14px; text-align: left; line-height: 1.35; }
.ans-starter:hover { border-color: var(--aquaText); background: var(--tint); }
html[data-theme="dark"] button.ans-starters-btn, html[data-theme="dark"] button.ans-starter { background-color: var(--btn) !important; border-color: var(--line) !important; }
.ans-side #ans-msg { min-height: 90px; }
/* On a phone the starters wrap tighter, so the box stays near the top. */
@media (max-width: 900px) { .ans-starter { min-height: 32px; padding: 5px 10px; font-size: 13px; } .ans-starters { gap: 6px 8px; } }
/* The answer's quiet counter sits on the consent line's right (Nicolas, 29 October: 600 characters). */
.ans-count { display: flex; justify-content: space-between; gap: 12px; }
.ans-count span:last-child { flex: none; font-variant-numeric: tabular-nums; }
/* Free messages switch (involvement mock-up screen 1, Design Review cleared 29 October): aqua tint when on. */
.ivl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: none; }
.ivl button { min-height: 46px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font: inherit; font-size: 15px; white-space: nowrap; }
.ivl button[aria-pressed="true"] { border-color: var(--aquaText); background: var(--tint); font-weight: 700; }
/* Two lines kept for every choice, so the buttons below never jump (Nicolas, 1 November). */
.tog { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font: inherit; font-size: 16px; text-align: left; flex: none; }
.tog .sw { margin-left: auto; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; }
.tog .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); transition: left .15s; }
.tog[aria-pressed="true"] { background: var(--tint); border-color: var(--aquaText); }
.tog[aria-pressed="true"] .sw { background: var(--aquaText); }
.tog[aria-pressed="true"] .sw::after { left: 21px; }
/* The invited email wraps beside Cancel, never cut (Design Review, 29 October). */
.row-wrap .row:has(+ .row-stop) .nm { white-space: normal; overflow-wrap: anywhere; }

/* Person panel, 31 October (Nicolas): a relation dropdown instead of every chip, and Invite as the panel's one big card. */
.rel-pick { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.sel-wrap { position: relative; display: block; }
.sel-wrap select { appearance: none; -webkit-appearance: none; height: 40px; width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--btn); padding: 0 36px 0 10px; font-size: 16px; color: var(--ink); font-family: inherit; }
.sel-wrap select:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aquaText); }
.sel-wrap .ico { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; pointer-events: none; color: var(--soft); }
.invite-card { color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.invite-card .ico { width: 20px; height: 20px; flex: none; color: var(--aquaText); }
.invite-card:disabled { color: var(--soft); cursor: default; }
.invite-card:disabled .ico { color: var(--soft); }
/* Off at the level's limit: dimmed, with the lock (Design Review, 11 November). */
.invite-card.locked { opacity: .55; }
/* Relatives without accounts (Nicolas, 1 November; mock-up relatives-no-account-mu.html screens 5 and 6, Design Review
   cleared): the pager on the title's line, Your Side Of This Moment, and Build Your Own Story with its sign-up. */
.ans-titlerow { display: flex; align-items: center; gap: 10px; }
.ans-titlerow .ans-h { margin-right: auto; }
.ans-pager { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); white-space: nowrap; flex: none; }
.ans-ar { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font-size: 18px; display: grid; place-items: center; }
.ans-view { border-left: 3px solid #bc664a; }
.ans-offer { flex: none; border: 1px solid var(--aquaText); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.ans-offer b { font-family: Georgia, serif; font-weight: 400; font-size: 22px; }
.ans-offer p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.ans-pill { align-self: flex-start; background: var(--aqua); color: var(--aquaInk); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.ans-offer-btn { height: 48px; border-radius: 8px; background: var(--tint); border: 1px solid var(--aquaText); color: var(--ink); font-weight: 700; font-size: 16px; }
.ans-in { height: 48px; width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font: inherit; font-size: 16px; flex: none; }
.ans-in[readonly] { color: var(--soft); }
.ans-in:focus, .ans-area:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aquaText); }
.ans-tick { display: flex; gap: 10px; align-items: flex-start; }
.ans-tick a { color: var(--aquaText); }
.ans-tick input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #23866f; }
.ans-lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--soft); }
/* Sharing starts from a moment (1 November): Invite To This Moment beside the title, the people to share with, and the
   invitation's moments with + Moment (choosing on the chart). */
.p-head .ev-inv { margin-left: auto; }
.p-head .ev-inv + .x-btn { margin-left: 8px; }
.ev-inv.on, .ev-inv[aria-pressed="true"] { background: var(--tint); border-color: var(--aquaText); }
.ev-view { border-left: 3px solid #bc664a; padding: 4px 0 4px 12px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-view .label { display: block; margin-bottom: 4px; }
.share-with { flex: 1; min-height: 0; overflow-y: auto; }
.inv-m { cursor: default; }
.inv-add { border-style: dashed; color: var(--aquaText); font-weight: 700; }
.inv-add.on { background: var(--tint); border-color: var(--aquaText); border-style: solid; }
/* Test 394: each moment list says who sees it, in the same label, lighter. */
.label-soft { font-weight: 600; letter-spacing: 1px; }
/* Test 394 (Nicolas, 4 November): each person in words, and the panel's leftover height explains the genogram. */
.person-row { align-items: center; }
.person-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-row .who .nm { flex: none; }
.person-row .say { font-size: 13px; color: var(--soft); line-height: 1.35; }
.p-body > .fam-help { flex: 1 0 auto; display: flex; flex-direction: column; gap: 8px; }
.help-box { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 1px; border-radius: 8px; background: var(--btn); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.help-box .tile { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; }
.help-box .tile .ico { width: 18px; height: 18px; }
.help-box[aria-expanded="true"] { align-items: flex-start; }
.help-box > .ico { width: 16px; height: 16px; flex: none; color: var(--soft); transition: transform .15s; }
.help-box[aria-expanded="true"] > .ico { transform: rotate(180deg); }
.help-box .who { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.help-box .nm { font-weight: 700; font-size: 15px; }
.help-box .say { font-size: 13px; line-height: 1.45; color: var(--soft); }
.help-lane .tile { background: rgba(178, 139, 57, .16); color: #b28b39; }
.help-invite .tile { background: var(--tint); color: var(--aquaText); }
.help-private .tile { background: var(--line); color: var(--soft); }
.ask-row { color: var(--ink); font: inherit; cursor: pointer; }
.ask-row > .ico { width: 20px; height: 20px; flex: none; color: var(--aquaText); }
.ask-row .who { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ask-row .say { font-size: 13px; color: var(--soft); }
.pick-row[aria-pressed="true"] { background: var(--tint); border-color: var(--aquaText); }
/* Their years: the word inside the field (placeholder when empty, a muted prefix once filled). */
.years label.yf { position: relative; display: block; }
.years label.yf .pre { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--soft); pointer-events: none; }
.years label.yf input:placeholder-shown + .pre { display: none; }
.years label.yf input:not(:placeholder-shown) { padding-left: var(--pre); }
.years label.yf input::placeholder { color: var(--soft); }
.years label.yf:nth-child(3) { grid-column: 1 / -1; }

/* The logo leads Home on a computer (Home #1274, 4 November); the house is for phones until there is a photo. Pages
   without Home's way back (a relative answering) hide the logo as they hide the house. */
@media (min-width: 601px) { #nav-home { display: none !important; } }
header.gg-top .brand-mark { margin-right: 2px; }
header.gg-top:has(#nav-home.hidden) .brand-mark:not(.has-photo) { display: none; }

/* A relative answering without an account (Design Review, 11 November): the logo leads the header, not linked, and
   no Settings or Chat, which belong to an account. */
body.ans-mode header.gg-top .brand-mark { display: inline-flex !important; pointer-events: none; }
body.ans-mode #nav-settings, body.ans-mode #nav-chat, body.ans-mode #nav-signout, body.ans-mode #nav-timeline { display: none !important; }

/* Preview Invitation (Nicolas, 11 November): above Send; the preview fills the panel until its cross. */
.inv-foot { display: flex; flex-direction: column; gap: 10px; }
.inv-foot .sec-btn { height: 52px; font-size: 17px; font-family: inherit; cursor: pointer; }
.inv-foot .sec-btn:disabled { border-color: var(--line); color: var(--soft); cursor: default; background: transparent; }
.p-body.inv-preview { padding: 0; }
.inv-preview iframe { flex: 1; width: 100%; min-height: 0; border: 0; border-radius: 0 0 8px 8px; background: #e9ece9; }
@media (max-width: 900px) { .inv-preview iframe { min-height: 75vh; } }
/* New Moments Join: a small switch beside A Whole Timeline. */
.chips .tog.mini { width: auto; min-height: 0; height: 32px; padding: 0 8px 0 12px; gap: 10px; font-size: 14px; border-radius: 8px; }
.chips .tog.mini .sw { width: 36px; height: 22px; }
.chips .tog.mini .sw::after { width: 16px; height: 16px; }
.chips .tog.mini[aria-pressed="true"] .sw::after { left: 17px; }

/* Rosa's welcome over the chart (Nicolas, 11 November): centred above the lanes; on a phone, above the short chart. */
.ans-page:not(.small) .ans-chart { flex-direction: column; gap: 8px; }
.ans-intro { flex: none; max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.ans-intro b { font-family: Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink); }
.ans-intro span { font-size: 16px; line-height: 1.45; color: var(--soft); }
.ans-page.small .ans-intro { padding: 16px 16px 0; }
.ans-page.small .ans-intro b { font-size: 21px; }
.ans-page.small .ans-intro span { font-size: 14px; }
/* Rosa's two small tabs (Nicolas, 11 November): Moments, and A Few Words when Alex lets her write freely. */
.ans-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ans-tabs button { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--btn); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.ans-tabs button[aria-selected="true"] { background: var(--tint); border-color: var(--aquaText); font-weight: 700; }
html[data-theme="dark"] .ans-tabs button { background-color: var(--btn) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .ans-tabs button[aria-selected="true"] { background-color: var(--tint) !important; border-color: var(--aquaText) !important; }

.ans-wb { display: inline-flex; align-items: center; gap: 8px; }
.ans-wb .ico { width: 18px; height: 18px; color: var(--aquaText); }
