/* VSKS 2.0 beta. Layout from the "VSKS Planner Console" frontend handoff of 23 November 2026 (components, breakpoints 1200 and 760 px);
   colours and shapes from the "People in focus" design of December 2026 (warm dark ground, cream pills, peach labels). The font is served from this site; no outside hosts. */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/static/landing/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/static/landing/fonts/plus-jakarta-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --bg: #252827; --panel: #323533; --raised: #3a3d3b; --line: #4a4d4a; --muted: #b8b8ad; --text: #faf9f5;
  --lime: #f6f1e7; --lime-ink: #272a28; --purple: #c4a5f5; --mint: #a8e8c5; --coral: #ffab9c; --cyan: #a7e9ef;
  --peach: #edcdb5; --accent: #f7c5a3; --cream: #f6f1e7; --ink: #272a28;
  --glass: rgba(232, 230, 218, .08); --glass-fill: rgba(35, 35, 34, .48); --glass-accent: rgba(247, 197, 163, .12); --glass-line: rgba(255, 255, 255, .2); --glass-soft: rgba(255, 255, 255, .13);
  --glass-blur: blur(28px) saturate(105%); --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 36px rgba(0, 0, 0, .12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 32px; line-height: 1.3; letter-spacing: -1.3px; margin: 0; font-weight: 600; }
h2 { font-size: 19px; font-weight: 600; margin: 0 0 18px; letter-spacing: -.4px; }
h3 { font-size: 16px; margin: 0 0 10px; }
:lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; }
p { margin: .4rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.muted, .inline-note { color: var(--muted); font-size: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 20px; max-width: 1000px; }
.boot { padding: 3rem; text-align: center; color: var(--muted); }
.print-only { display: none; }

/* frame */
.top { min-height: 100px; display: flex; align-items: center; gap: 20px; padding: 20px 40px; border-bottom: 1px solid var(--line); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; background: var(--lime); color: var(--lime-ink); padding: .3rem .6rem; border-radius: 6px; z-index: 10; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand-name { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.brandmark { display: grid; place-items: center; flex: none; background: var(--lime); color: var(--lime-ink); width: 44px; height: 44px; border-radius: 14px; font-size: 32px; letter-spacing: -5px; padding-right: 5px; }
.brand-text small { display: block; font-size: 8px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.badge { display: inline-block; border: 1px solid #8a7767; color: var(--lime); font-size: 10px; font-weight: 600; letter-spacing: 1px; border-radius: 6px; padding: 3px 7px; text-transform: uppercase; white-space: nowrap; line-height: 1.6; }
.main-nav { display: flex; gap: 5px; margin-left: 15px; }
.nav-link { padding: 10px 16px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-link.active { background: var(--lime); color: var(--lime-ink); }
.nav-link:hover:not(.active) { background: var(--raised); color: #fff; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; background: var(--purple); border-radius: 50%; color: #282331; font-weight: 700; font-size: 12px; text-decoration: none; }
.who-box { line-height: 1.35; min-width: 0; flex: 0 1 auto; }
.who { display: block; font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.who:hover { text-decoration: underline; }
.ws { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
main { max-width: 1480px; margin: 0 auto; padding: 32px 48px 60px; min-height: calc(100vh - 220px); }
main:focus { outline: none; }
.banners { max-width: 1480px; margin: 0 auto; padding: 32px 48px 0; }
.banners + main { padding-top: 0; }
.foot { max-width: 1384px; margin: 0 auto; padding: 25px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; color: var(--muted); }
.footerbrand { font-size: 30px; color: var(--lime); font-weight: 800; line-height: 1; }
.foot p { font-size: 11px; line-height: 1.7; margin: 0; max-width: 62ch; }
.foot-right { margin-left: auto; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.foot-right b { margin-left: 20px; color: var(--text); }
@media (max-width: 1480px) { .foot { margin: 0 48px; } }

/* page heading */
.heading { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 22px; gap: 20px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--muted); font-weight: 600; margin: 0 0 8px; text-transform: uppercase; }
.sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.date { font-size: 12px; color: var(--muted); display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.date-icon { background: var(--raised); border-radius: 9px; padding: 8px 12px; line-height: 1; }

/* notices */
.notice { display: flex; align-items: flex-start; gap: 12px; background: #332c26; border: 1px solid #5a4a3d; border-radius: 12px; padding: 12px 16px; color: #ecd3bf; font-size: 12px; margin: 0 0 10px; }
.banners .notice:last-child { margin-bottom: 0; }
.notice::before { content: "i"; box-sizing: border-box; display: grid; place-items: center; flex: none; width: 19px; height: 19px; border: 1px solid #a08670; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; }
.notice.info { background: #2a302f; border-color: #46524f; color: #cfe0dc; }
.notice.info::before { border-color: #638387; }
.notice.small { font-size: 11px; padding: 10px 12px; }
.secret-box { background: #332c26; border: 1px solid #5a4a3d; border-radius: 12px; padding: 14px 16px; color: #ecd3bf; font-size: 13px; margin: 0 0 22px; }
.secret { display: inline-block; font-size: 16px; background: var(--bg); color: var(--lime); padding: 6px 12px; border-radius: 8px; user-select: all; }

/* controls */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  color: var(--text); background-color: #1f2221; border: 1px solid #555853; border-radius: 9px; padding: 11px 13px; width: 100%; font-size: 14px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23acafad' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
::placeholder { color: #9c9c92; opacity: 1; }
select option { background: var(--panel); }
input:focus, textarea:focus, select:focus { border-color: var(--lime); }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; accent-color: var(--lime); padding: 0; flex: none; }
input[type=file] { font-size: 13px; margin: 0 0 12px; max-width: 100%; }
textarea { resize: vertical; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; }
input:disabled, select:disabled, textarea:disabled { opacity: .55; }
.lang { width: auto; background-color: transparent; border: 0; font-size: 12px; padding: 8px 28px 8px 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #5a5d58; border-radius: 9px; padding: 9px 14px; color: var(--text); background: #3a3d3b; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.6; }
.btn:hover:not(:disabled) { background: #484b48; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: #272a28; }
.btn.primary:hover:not(:disabled) { background: #ffffff; }
.btn.primary.y-base { background: var(--purple); border-color: var(--purple); color: #282331; }
.btn.primary.y-base:hover:not(:disabled) { background: #d6c0f8; }
.btn.primary.y-future { background: var(--cyan); border-color: var(--cyan); color: #16292c; }
.btn.primary.y-future:hover:not(:disabled) { background: #c6f1f5; }
.btn.danger { color: var(--coral); }
.tools .btn { padding: 7px 12px; }
.btn.big { min-width: 140px; padding: 12px 28px; font-size: 14px; }
.field { display: block; margin: 0 0 17px; }
.field-label { display: block; font-size: 12px; color: #cfcfc4; margin-bottom: 7px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 12px; margin: 7px 0; color: var(--text); }
.form-msg { color: var(--coral); min-height: 1.2rem; font-size: 13px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* panels, cards, statistics */
.panel, .card { background: var(--panel); border: 1px solid #454845; border-radius: 18px; padding: 24px; margin: 0 0 22px; }
.panel > :last-child, .card > :last-child { margin-bottom: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.form-panel { max-width: 620px; }
.card.narrow { max-width: 460px; margin: 56px auto; padding: 32px; }
.card.narrow h1 { font-size: 26px; letter-spacing: -.8px; }
.card.narrow .notice { margin: 16px 0 0; }
.card.narrow .form { margin-top: 22px; }
.card.narrow .btn { min-width: 120px; padding: 11px 18px; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { padding: 20px 24px; background: var(--panel); border-radius: 18px; min-width: 0; position: relative; overflow: hidden; }
.stat:first-child { background: var(--lime); color: #272a28; }
.stat-label { font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
.stat strong { display: block; font-size: 34px; line-height: 1.4; letter-spacing: -1px; font-weight: 600; margin-top: 12px; }
.stat small { font-size: 11px; opacity: .65; }
.stat:first-child small { opacity: .8; }
.mini-bars { position: absolute; right: 23px; bottom: 24px; display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.mini-bars i { display: block; width: 5px; background: var(--purple); border-radius: 2px; }
.mini-bars i.zero { opacity: .35; }
/* Keeps the caption clear of the bars. One line is exactly as tall as before; a longer caption wraps beside the bars. */
.stat.has-bars small { display: block; padding: 4px 64px 0 0; min-height: 25.6px; }
.empty { text-align: center; padding: 65px 25px; }
.empty-icon { display: grid; place-items: center; border: 1px solid #6a6258; border-radius: 50%; width: 56px; height: 56px; color: var(--mint); font-size: 25px; margin: 0 auto 20px; }
.empty h2 { margin-bottom: 8px; }
.empty p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* small labels */
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { display: inline-block; font-size: 10px; font-weight: 600; border: 1px solid #5a5d58; border-radius: 7px; padding: 3px 8px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.chip.warn, .chip.outcome-shifts { color: var(--lime); border-color: #6a6258; }
.chip.ok, .chip.mint, .chip.change-better, .chip.outcome-holds { color: var(--mint); background: #2d4138; border-color: #3a5146; }
.chip.purple { color: var(--purple); background: #3c334a; border-color: #504261; }
.chip.coral, .chip.change-worse, .chip.outcome-moves { color: var(--coral); background: #46332d; border-color: #5d4036; }
#toasts { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 30; width: max-content; max-width: min(520px, 92vw); }
.toast { background: var(--lime); color: #272a28; padding: 12px 24px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: 0 6px 30px #0005; }
.toast.error { background: var(--coral); color: #2e1712; }

/* dialog */
dialog.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 32px; max-width: 760px; width: 90%; }
dialog.modal.wide { max-width: 980px; }
dialog.modal::backdrop { background: #000b; backdrop-filter: blur(5px); }
.modal-close { position: absolute; right: 14px; top: 8px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; padding: 6px 10px; border-radius: 8px; }
.modal-body > :last-child { margin-bottom: 0; }
.modal-body .actions { margin-top: 22px; }

/* new session */
.grid { display: grid; gap: 14px; }
.grid.women { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.times { display: flex; flex-wrap: wrap; gap: 12px; }
.grid.worlds, .grid.modes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.picker h2 { margin: 30px 0 16px; }
.picker > .notice { margin-bottom: 28px; }
.choice { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 17px; padding: 22px 18px; color: var(--text); display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: transform .15s, border-color .15s; }
.choice:hover { transform: translateY(-3px); border-color: #a59c8c; }
.choice.selected { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; background: #3b3933; }
.portrait { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 25px; margin-bottom: 14px; color: #272a28; }
.c0 { background: var(--lime); } .c1 { background: var(--cyan); } .c2 { background: var(--purple); } .c3 { background: var(--coral); } .c4 { background: var(--mint); }
.choice-title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.choice-sub { color: var(--muted); font-size: 12px; }
.choice-text { font-size: 12px; color: var(--muted); }
.quote { font-size: 14px; color: var(--lime); margin: 10px 0; }
.grid.women .chips { margin-top: auto; padding-top: 10px; }
.grid.women .chip { white-space: normal; overflow-wrap: anywhere; }
.grid.times .choice { padding: 17px 25px; border-radius: 12px; }
.grid.times .choice-title { font-size: 14px; font-weight: 600; }
.grid.times .choice.selected { background: var(--panel); box-shadow: none; color: var(--lime); }
.grid.worlds .choice, .grid.modes .choice { border-radius: 14px; padding: 18px 20px; }
.grid.worlds .choice-title, .grid.modes .choice-title { font-size: 15px; }
.begin-row { margin: 26px; text-align: center; }
.begin-row .inline-note { margin: 10px 0 0; }

/* session */
.session-head { align-items: flex-start; }
.sim-line { font-size: 12px; color: var(--muted); max-width: 78ch; margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.toolbar { gap: 10px; justify-content: flex-end; }
.strip { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 17px 24px; background: var(--panel); border: 1px solid #454845; border-radius: 18px; }
.strip-node { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 5.5rem; }
.strip-year { font-size: 20px; font-weight: 700; line-height: 1.3; }
.strip-node.base .strip-year { color: var(--purple); }
.strip-node.future .strip-year { color: var(--cyan); }
.strip-age { font-size: 12px; color: var(--muted); }
.strip-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--purple), var(--cyan)); position: relative; min-width: 3rem; }
.strip-world { position: absolute; left: 50%; top: -1.6rem; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.session-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.chat { background: var(--panel); border: 1px solid #454845; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 470px; }
.turns { list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 14px; flex: 1; max-height: 62vh; min-height: 30vh; overflow-y: auto; }
.turn { max-width: 90%; padding: 16px; border-radius: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; background: #323533; border: 1px solid #4a4d4a; }
.turn.user { align-self: flex-end; background: #3d3b35; border-color: #5e5a4f; }
.turn.persona.y-future { background: #27363a; border-color: #3f5c61; }
.turn-who { font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--purple); }
.turn.user .turn-who { color: var(--lime); }
.turn.persona.y-future .turn-who { color: var(--cyan); }
.turn-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn.streaming .turn-body::after { content: "▍"; color: var(--muted); }
.turn-note { font-size: 10px; color: var(--muted); }
.turn-note.warn { color: var(--coral); }
.turn-meta { font-size: 10px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.composer { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.composer textarea { min-height: 85px; }
.composer-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.composer.replay-bar { flex-direction: row; flex-wrap: wrap; align-items: center; }
.retry-row:empty { display: none; }
.side { display: flex; flex-direction: column; min-width: 0; }
.notes-panel h3 { color: var(--lime); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin: 20px 0 6px; }
.notes-panel p { font-size: 14px; }
.notes-panel .notice { font-size: 11px; }
.world-name { font-weight: 700; }
.life { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.life-label { font-weight: 600; }
.life-words { display: block; font-size: 13px; color: #d6d6cb; }
.conf { display: block; font-size: 11px; color: var(--muted); }
.planner-panel h2::after { content: " / Hakuhodo only"; font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.kv, .evidence { list-style: none; margin: 6px 0; padding: 0; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.kv .k, .evidence .k { color: var(--muted); }
.kv .v { font-weight: 600; overflow-wrap: anywhere; }
.evidence .src { display: block; font-size: 10px; color: var(--muted); }
.pl-det { border-top: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.pl-det:last-child { padding-bottom: 0; }
.pl-det summary { cursor: pointer; }
.pl-det p { color: var(--muted); font-size: 12px; }
.pl-head { font-weight: 600; margin-top: 10px; }
.prompt { background: var(--bg); border-radius: 12px; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; margin: 12px 0 0; }

/* lists and console */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; align-items: center; }
.filters > * { flex: 1 1 180px; }
.filters > .btn { flex: 0 0 auto; }
.avatar.c0, .avatar.c1, .avatar.c2, .avatar.c3, .avatar.c4 { color: #272a28; }
.actions .btn, td .btn { flex: none; }
.panel.inline-form.wide { max-width: none; }
.session-list { list-style: none; margin: 0; padding: 0; }
.session-list li { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.session-list li:first-child { padding-top: 0; }
.session-list li:last-child { border: 0; padding-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.row-title { font-size: 15px; font-weight: 600; text-decoration: none; }
.row-title:hover { color: var(--lime); }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; flex: none; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 0 26px; overflow-x: auto; white-space: nowrap; }
.tab { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 12px 13px 16px; border-bottom: 2px solid transparent; }
.tab.active { border-color: var(--lime); color: var(--lime); }
.tab:hover:not(.active) { color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 13px; }
th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 500; padding: 13px 14px; background: #2c2f2d; }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
td { padding: 22px 14px; border-bottom: 1px solid #444744; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td b, td strong { font-size: 13px; font-weight: 600; }
td small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
td a { text-decoration: none; font-weight: 600; }
td a:hover { color: var(--lime); }
.rowtitle { display: flex; align-items: center; gap: 11px; }
.ws-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 10px; background: var(--purple); color: #2c2538; font-size: 15px; }
.ws-icon.mint { background: var(--mint); color: #1f3329; }
input.cap { max-width: 115px; font-size: 12px; padding: 8px 10px; }
.resultcell { white-space: normal; min-width: 170px; }
.clip { display: block; white-space: normal; max-width: 60ch; max-height: 6.5rem; overflow: auto; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); }
.world-head { display: flex; gap: 12px; align-items: center; margin: 0 0 24px; }
.world-head h2 { margin: 0; }
.world-color { width: 10px; height: 28px; border-radius: 5px; background: var(--cyan); }
.world-color.worse { background: var(--coral); } .world-color.same { background: var(--purple); } .world-color.better { background: var(--mint); }
.dial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 18px; }
.dial { display: flex; flex-direction: column; margin-bottom: 5px; }
.dial-name { font-size: 12px; color: #cfcfc4; margin-bottom: 7px; }
.dial-hint { font-size: 10px; color: var(--muted); margin-top: 5px; }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

@media (max-width: 1200px) {
  .top { padding: 18px 24px; gap: 12px; }
  .brand .badge { display: none; }
  .brand-name { font-size: 13px; }
  .main-nav { margin-left: 0; }
  .nav-link { padding: 10px; }
  .who-box { display: none; }
  main { padding: 25px; }
  .banners { padding: 25px 25px 0; }
  .tab { padding: 12px 10px 16px; }
  .grid.women { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { margin: 0 25px; }
  .dial-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Header on two rows: brand and account on the first, the menu on the second. */
@media (max-width: 900px) {
  .top { flex-wrap: wrap; }
  .brand { flex: 1; min-width: 0; }
  .brand-name { min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tools { margin-left: 0; flex: none; }
  .lang { max-width: 104px; text-overflow: ellipsis; }
}
/* Narrow phones: the mark stands for the name, which stays available to screen readers. */
@media (max-width: 360px) {
  .top { padding: 14px 12px; gap: 8px; }
  .lang { max-width: 76px; padding-right: 22px; background-position: right 6px center; }
  .tools .btn { padding: 7px 9px; }
}
@media (max-width: 760px) {
  .top { padding: 16px; }
  .tools { gap: 8px; }
  .avatar { width: 32px; height: 32px; }
  main { padding: 20px 16px; }
  .banners { padding: 20px 16px 0; }
  .heading { align-items: flex-start; flex-wrap: wrap; margin-top: 20px; }
  h1 { font-size: 26px; }
  .date { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 17px; }
  .stat strong { font-size: 28px; }
  /* Narrow cards: the bars sit under the caption, so a label or caption that wraps can never run into them. */
  .mini-bars { position: static; margin-top: 10px; }
  .stat.has-bars small { display: inline; padding: 0; min-height: 0; }
  .panel, .card, .chat { padding: 18px; border-radius: 15px; }
  .card.narrow { margin: 24px auto; padding: 24px; }
  .grid.women { grid-template-columns: 1fr 1fr; }
  .choice { padding: 16px; }
  .formgrid, .lang-grid, .session-body { grid-template-columns: 1fr; }
  .dial-grid { grid-template-columns: 1fr 1fr; }
  .session-list li { align-items: flex-start; flex-direction: column; }
  .toolbar { justify-content: flex-start; }
  .turn { max-width: 96%; }
  .cmd-bar { padding: 9px; }
  .cmd-where { width: 100%; margin: 0 0 2px; }
  .turns { max-height: 55vh; }
  .strip { padding: 14px 16px; }
  .strip-world { display: none; }
  .btn { min-height: 40px; }
  .foot { margin: 0 16px; }
  .foot-right { display: none; }
  .begin-row { margin: 26px 0; }
}
/* Sessions on the planners' engine pack: the engine's replies, its commands as buttons, the setting panel. */
.turn.engine { max-width: 100%; align-self: stretch; }
.turn.engine.moderator { background: #2c302f; border-color: #4d524f; }
.turn.engine.moderator .turn-who { color: var(--mint); }
.turn.user.command { background: #303331; border-color: #555853; }
.turn.user.command .turn-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .4px; }
.turn.user.command .turn-who { color: var(--muted); }
.turn-body.md { white-space: normal; }
.turn-body.md > :first-child { margin-top: 0; }
.turn-body.md > :last-child { margin-bottom: 0; }
.turn-body.md p { margin: .55rem 0; }
.turn-body.md strong { font-weight: 700; color: #fff; }
.turn-body.md em { color: #d9dbd5; }
.turn-body.md code { background: #1f2221; border: 1px solid #4a4d4a; border-radius: 5px; padding: 1px 5px; white-space: pre-wrap; }
.turn-body.md hr { border: 0; border-top: 1px solid #555853; margin: 14px 0; }
.turn-body.md blockquote { margin: .55rem 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--purple); color: #dcdfd8; }
.md-h { font-weight: 700; font-size: 15px; color: var(--lime); margin: 1rem 0 .4rem; }
.md-pre { background: #1f2221; border: 1px solid #4a4d4a; border-radius: 9px; padding: 12px; margin: .55rem 0; overflow-x: auto; white-space: pre; line-height: 1.5; }
.md-list { margin: .45rem 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.md-table { margin: .6rem 0; border: 1px solid #4a4d4a; border-radius: 9px; }
.md-table table { white-space: normal; font-size: 12px; }
.md-table th { padding: 8px 10px; border-radius: 0; vertical-align: bottom; }
.md-table td { padding: 8px 10px; vertical-align: top; }
.md-table tr:last-child td { border-bottom: 0; }
.cmd-bar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.cmd-where { font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 6px; }
.cmd-where::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 7px; vertical-align: 1px; }
.btn.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .5px; padding: 7px 11px; }
.btn.cmd.future { color: var(--cyan); border-color: #3f5c61; }
.btn.cmd.future:hover:not(:disabled) { background: #27363a; }
.ended-box:empty { display: none; }
.ended-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.engine-line { text-align: center; margin: 0 0 8px; }
.picker .grid + .grid { margin-top: 14px; }
.kv.setting { gap: 9px; font-size: 13px; margin-bottom: 18px; }
.kv .v.pre { white-space: pre-line; }
.kv.setting li, .kv.totals li { display: flex; flex-direction: column; gap: 1px; }
.kv.totals { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.life.how { font-size: 12px; gap: 7px; color: #d6d6cb; margin-bottom: 14px; }
.life.how li { padding-left: 14px; position: relative; }
.life.how li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.notes-panel h3 { font-size: 13px; margin: 18px 0 8px; }
.file-view { max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #1f2221; border: 1px solid #4a4d4a; border-radius: 9px; padding: 12px; margin: 0 0 14px; line-height: 1.5; }
.file-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: 44vh; overflow: auto; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 5px 8px; border-radius: 7px; }
.file-list li:hover { background: var(--raised); }
.file-list .path { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* ---------- 2.0 look: ground, header, shapes ---------- */
/* The page ground: one blurred, darkened photograph fixed behind everything, so that the glass has something to show through. */
body { isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #151716 url(/static/app/ambient.webp) left center / cover no-repeat; }
h1 { font-size: 36px; font-weight: 650; letter-spacing: -1px; line-height: 1.15; }
.eyebrow, .notes-panel h3, .label { color: var(--peach); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.label { display: block; margin: 0 0 8px; }
.sub { font-size: 15px; max-width: 70ch; }
.top { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 20px; min-height: 88px; padding: 20px 40px; border-bottom: 0; }
.brand { gap: 14px; min-width: 0; }
.brand-name { align-items: baseline; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.brand-by { font-size: 12px; font-weight: 500; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--glass-line); letter-spacing: 0; }
.badge { color: var(--peach); border-radius: 999px; padding: 3px 10px; }
.main-nav { grid-column: 2; width: auto; margin: 0; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.nav-link { padding: 9px 20px; border-radius: 999px; color: #e5e5db; font-weight: 500; }
.nav-link.active { background: var(--cream); color: var(--ink); font-weight: 600; }
.nav-link:hover:not(.active) { background: rgba(232, 230, 218, .1); }
.tools { grid-column: 3; justify-self: end; margin-left: 0; }
.avatar { background: var(--peach); color: var(--ink); }
.ws-pill { display: inline-block; max-width: 220px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); font-size: 12px; color: #e5e5db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { border-top-color: var(--glass-line); }
.footerbrand { color: var(--peach); font-size: 15px; letter-spacing: -.3px; }
.btn { border-radius: 999px; padding: 9px 18px; background: var(--glass); border-color: var(--glass-line); }
.btn:hover:not(:disabled) { background: rgba(232, 230, 218, .16); }
.btn.primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn.small { padding: 6px 13px; font-size: 11px; }
.btn.cmd { border-radius: 9px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { border-radius: 14px; background-color: rgba(20, 22, 21, .45); border-color: var(--glass-line); }
.lang { border-radius: 999px; }
.panel, .card, .chat, .strip, .stat, .choice { border-radius: 24px; }

.stat:first-child { background: var(--cream); }
.card.narrow { border-radius: 28px; padding: 38px; }
.choice.selected { border-color: var(--cream); box-shadow: 0 0 0 1px var(--cream) inset; background: rgba(246, 241, 231, .1); }
.grid.times .choice { border-radius: 999px; }
.grid.times .choice.selected { background: var(--cream); color: var(--ink); }
.quote, .md-h, .tab.active, .row-title:hover, td a:hover { color: var(--peach); }
.tab.active { border-color: var(--peach); }
.turn { border-radius: 18px; }
.turn-who { color: var(--peach); }
.turn.user .turn-who { color: var(--cream); }
.cmd-bar { background: rgba(20, 22, 21, .35); border-color: var(--glass-line); border-radius: 16px; }
.life.how li::before { background: var(--peach); }
.empty-icon { color: var(--peach); }
dialog.modal { background: rgba(35, 35, 34, .52); -webkit-backdrop-filter: blur(32px) saturate(105%); backdrop-filter: blur(32px) saturate(105%); border: 1px solid rgba(255, 255, 255, .25); border-radius: 30px; padding: 36px; box-shadow: 0 24px 90px rgba(0, 0, 0, .33), inset 0 1px 0 rgba(255, 255, 255, .12); }
dialog.modal::backdrop { background: rgba(12, 12, 12, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.modal.wide { max-width: 1040px; }
.modal-body h2 { font-size: 30px; font-weight: 500; letter-spacing: -1px; margin: 0 0 6px; }
.toast { background: var(--cream); border-radius: 999px; }
.portrait, .face { overflow: hidden; padding: 0; }
.portrait img, .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--peach); border: 2px solid #2c2f2e; }
.faces { display: inline-flex; flex: none; }
.faces .face + .face { margin-left: -12px; }
.face.more { background: #4a4d4a; color: var(--text); font-size: 11px; }
.session-list li { gap: 16px; }
.session-list .faces { align-self: center; }
.session-list .row-main { flex: 1; }
.head-faces { margin: 0 0 14px; }
.head-faces .face { width: 54px; height: 54px; }

/* ---------- Explore: profile, people, the discussion bar ---------- */
.explore { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.profile { position: relative; overflow: hidden; padding: 0; min-height: 600px; display: flex; flex-direction: column; margin: 0; }
.profile-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 60px 30px; }
.profile-empty h2 { font-size: 30px; font-weight: 500; letter-spacing: -1px; margin: 0; }
.profile-empty p { color: var(--muted); font-size: 14px; margin: 0; }
.profile-empty .faces .face { width: 60px; height: 60px; }
.profile-empty .faces { margin-bottom: 14px; }
.profile-top { position: relative; height: 400px; flex: none; }
.profile-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.profile-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 14, 9, .06) 0%, rgba(7, 14, 9, .3) 46%, rgba(7, 14, 9, .8) 100%); }
.profile-top.plain { height: 210px; background: linear-gradient(135deg, rgba(247, 197, 163, .28), rgba(247, 197, 163, .04)); }
.profile-head { position: absolute; left: 32px; right: 32px; bottom: 22px; z-index: 1; }
.profile-head h2 { font-size: 40px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.15; margin: 0 0 4px; }
.profile-meta { font-size: 14px; color: #e5e5db; margin: 0; }
.profile-tag { font-size: 17px; color: var(--cream); margin: 12px 0 0; max-width: 56ch; line-height: 1.45; }
.profile-body { padding: 26px 32px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 34px; flex: 1; align-content: start; }
.profile-body section.full { grid-column: 1 / -1; }
.profile-body p, .profile-body li, .cmp-col p, .cmp-col li, .cmp-shared li { font-size: 14px; line-height: 1.6; color: #e5e5db; margin: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { padding-left: 16px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--peach); }
.profile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 32px 26px; }
.profile-foot .ai-note { font-size: 12px; color: var(--muted); }
.people-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); transition: border-color .15s, background .15s; }
.person:hover { border-color: #a59c8c; }
.person.viewing { border-color: var(--cream); background: rgba(246, 241, 231, .1); }
.person-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; text-align: left; border-radius: 16px; }
.person-photo { flex: none; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--peach); color: var(--ink); font-size: 28px; font-weight: 600; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-name { font-size: 16px; font-weight: 600; }
.person-role { font-size: 12px; color: var(--muted); }
.person-line { font-size: 12px; color: #e5e5db; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.person-add { flex: none; min-width: 74px; }
.person-add.on { background: var(--cream); border-color: var(--cream); color: var(--ink); }
/* Explore, laid out as in the reference design: the two panels and "Build your discussion" together fill the window under the page heading.
   The bar is an ordinary block at the bottom of that layout. It is not sticky and not fixed, and it never lies over other content.
   The profile and the list of people scroll inside their own panels. --ex-top (set by the script) is how far down the page the layout starts. */
html { --lift: 0px; scroll-padding-bottom: var(--lift); }
#app { padding-bottom: var(--lift); }
.explore-wrap { display: flex; flex-direction: column; height: calc(100vh - var(--ex-top, 250px) - 20px); height: calc(100dvh - var(--ex-top, 250px) - 20px); min-height: 380px; max-height: 1060px; }
.explore { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.profile { min-height: 0; }
.profile-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .32) transparent; }
.profile-scroll:focus-visible { outline-offset: -3px; }
.profile-foot { flex: none; }
.profile-foot .ai-note { flex: 1 1 220px; min-width: 0; }
.people-col { min-height: 0; }
.people-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: -4px -6px -4px -4px; padding: 4px 6px 4px 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .32) transparent; }
.people-list .person { flex: none; }
@media (min-width: 800px) { .profile-top { height: clamp(200px, 36vh, 400px); } }
/* A short window: the heading above the panels is drawn more tightly, so that the panels and the bar still fit the window. */
@media (min-width: 800px) and (max-height: 800px) { .explore-head { margin-top: 14px; margin-bottom: 14px; } .explore-head .sub { display: none; } }
.build-bar { flex: none; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px 14px 24px; border-radius: 999px; background: rgba(35, 35, 34, .6); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 44px rgba(0, 0, 0, .3); }
.build-label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; align-items: center; }
.picked .hint { margin: 0; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13px; }
.pick .face { width: 30px; height: 30px; border-width: 0; font-size: 12px; }
.pick-x { border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; padding: 2px 7px; border-radius: 50%; }
.pick-x:hover { color: var(--text); background: rgba(232, 230, 218, .14); }
.build-actions { display: flex; gap: 8px; flex: none; }
.build-actions .btn, .profile-foot .btn { padding: 11px 20px; font-size: 13px; }

/* ---------- Compare, discussion set-up, Blueprints ---------- */
.who-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.who-tabs .btn.on { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 0; }
.cmp-col { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.cmp-photo { height: 250px; background: linear-gradient(135deg, rgba(247, 197, 163, .28), rgba(247, 197, 163, .04)); }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.cmp-text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.cmp-name { font-size: 22px; font-weight: 500; letter-spacing: -.6px; margin: 2px 0 0; }
.cmp-year { color: var(--peach); font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; }
.cmp-shared { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 0; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--glass-line); }
.cmp-shared .label.wide { grid-column: 1 / -1; margin: 0; }
.cmp-note { font-size: 12px; color: var(--muted); margin: 0; flex: 1; }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.setup .label { margin-top: 22px; }
.setup .picked { flex: none; }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.format { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); }
.format:hover:not(:disabled) { border-color: #a59c8c; }
.format:disabled { opacity: .42; cursor: not-allowed; }
.format.selected { border-color: var(--cream); box-shadow: 0 0 0 1px var(--cream) inset; background: rgba(246, 241, 231, .1); }
.format-name { font-size: 15px; font-weight: 600; }
.format-count { font-size: 11px; color: var(--peach); font-weight: 600; }
.format-text { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13px; color: var(--text); }
.pill.selected { background: var(--cream); border-color: var(--cream); color: var(--ink); font-weight: 600; }
.setup textarea { min-height: 84px; }
.setup .hint { margin: 8px 0 0; }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.bp { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.bp h2 { font-size: 20px; font-weight: 500; letter-spacing: -.5px; margin: 0; overflow-wrap: anywhere; }
.bp-topic { font-size: 14px; color: #e5e5db; margin: 0; overflow-wrap: anywhere; }
.bp-meta { font-size: 12px; color: var(--muted); margin: 0; }
.bp .actions { margin-top: auto; padding-top: 6px; }
.bp .faces .face { width: 44px; height: 44px; }
.empty h2 { font-size: 26px; font-weight: 500; letter-spacing: -.8px; }
@media (max-width: 1400px) { .ws-pill, .brand .badge { display: none; } }
@media (max-width: 1200px) {
  .top { padding: 18px 24px; gap: 12px; }
  .explore { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); }
  .profile-body { grid-template-columns: 1fr; }
}
/* Header on two rows: name and account on the first, the menu on the second. */
@media (max-width: 1100px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; flex-wrap: wrap; justify-content: center; }
  .tools { grid-column: 2; }
}
@media (max-width: 980px) {
  .build-bar { border-radius: 26px; }
  .person-photo { width: 64px; height: 64px; }
}
/* Below 800 px, as in the reference: one column that flows down the page, and the bar fixed to the bottom of the window. */
@media (max-width: 799px) {
  .explore-wrap { display: block; height: auto; min-height: 0; max-height: none; }
  .explore { grid-template-columns: 1fr; grid-template-rows: none; align-items: start; }
  .people-col { order: -1; }
  .profile { min-height: 600px; }
  .profile-scroll, .people-list { overflow: visible; }
  .people-list { margin: 0; padding: 0; }
  .build-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; margin: 0; border-radius: 20px; }
}
@media (max-width: 520px) { .build-bar { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 760px) {
  h1 { font-size: 30px; letter-spacing: -1px; }
  .top { padding: 14px 16px; }
  .brand-by { display: none; }
  .nav-link { padding: 8px 14px; }
  .profile-top { height: 320px; }
  .profile-head { left: 20px; right: 20px; }
  .profile-head h2 { font-size: 30px; }
  .profile-body, .profile-foot { padding-left: 20px; padding-right: 20px; }
  .cmp-grid, .cmp-shared, .formats { grid-template-columns: 1fr; }
  .cmp-photo { height: 200px; }
  dialog.modal { padding: 26px 18px; width: 94%; }
  .modal-body h2 { font-size: 24px; }
  .build-bar { padding: 14px; }
  .build-actions { width: 100%; }
  .build-actions .btn { flex: 1; }
  .person-photo { width: 64px; height: 64px; }
  .bp-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .top { padding: 14px 12px; gap: 8px; } .lang { max-width: 76px; } .tools .btn { padding: 7px 9px; } }
/* ---------- Frosted material, after the People in Focus source (release 37: glass.css, material.css, portrait.css) ---------- */
.top { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.brand-text { font-size: 26px; font-weight: 750; letter-spacing: -.9px; }
.brand-ver { color: #f2c4a6; }
.brand-by { font-size: 13px; color: #eee9e1; border-left-color: rgba(255, 255, 255, .23); }
/* Large surfaces: a dark translucent fill, the page blurred behind it, a hairline of light on the top edge. */
.panel, .card, .chat, .strip, .stat { background: var(--glass-fill); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
/* Rows and small controls: a lighter layer of the same material. Only the ones that sit on the page itself blur it. */
.main-nav, .ws-pill, .btn, .person, .pick, .pill, .format, .choice, .cmp-col, .cmd-bar, .turn { background: var(--glass); border-color: var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.main-nav, .ws-pill, .person { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.btn:hover:not(:disabled), .person:hover, .pill:hover, .format:hover:not(:disabled) { background: rgba(255, 255, 255, .13); border-color: var(--glass-line); }
/* What is chosen: ivory for the place you are and the main action, peach glass for a selection. */
.nav-link.active, .pill.selected, .grid.times .choice.selected, .who-tabs .btn.on { background: rgba(246, 241, 231, .92); border-color: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: 0 2px 7px rgba(0, 0, 0, .08); }
.btn.primary { background: rgba(246, 241, 231, .92); border-color: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: 0 3px 9px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn.primary:hover:not(:disabled) { background: #fffaf2; }
.btn.primary:disabled { opacity: 1; background: rgba(246, 241, 231, .12); border-color: rgba(246, 241, 231, .08); color: rgba(250, 249, 245, .42); box-shadow: none; }
.person.viewing, .format.selected, .choice.selected { background: var(--glass-accent); border-color: rgba(247, 197, 163, .55); box-shadow: inset 0 0 0 1px rgba(247, 197, 163, .3), inset 0 1px 0 rgba(255, 255, 255, .1); }
.format.selected .format-name { color: var(--accent); }
.person-add.on { background: var(--glass-accent); border-color: rgba(247, 197, 163, .4); color: var(--accent); }
.person-name { font-size: 18px; letter-spacing: -.3px; }
/* Profile: the photograph is a card set into the glass panel; the text below it lies on the glass itself. */
.profile-top { margin: 10px 10px 0; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .14); }
.profile-head { text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.profile-head .eyebrow { color: #ffe0c7; }
.profile-head h2 { font-size: clamp(30px, 4.3vw, 60px); font-weight: 650; letter-spacing: -2px; line-height: 1.05; }
.profile-foot { margin: 0 18px; padding: 16px 14px 18px; border-top: 1px solid rgba(255, 255, 255, .17); }
.modal-body h2, .profile-empty h2 { font-weight: 600; }
/* Conversation: her words on neutral glass, yours on peach glass. */
.turn { border-color: var(--glass-soft); border-radius: 6px 23px 23px 23px; }
.turn.user { background: rgba(247, 197, 163, .1); border-color: rgba(247, 197, 163, .28); border-radius: 23px 6px 23px 23px; }
.turn.user.command { background: rgba(255, 255, 255, .05); border-color: var(--glass-soft); }
.turn.engine.moderator { background: rgba(35, 35, 34, .42); border-color: var(--glass-soft); }
.turn.persona.y-future { background: rgba(167, 233, 239, .08); border-color: rgba(167, 233, 239, .25); }
/* Notices, fields, tables and code blocks give up their solid fills. */
.notice, .secret-box { background: rgba(247, 197, 163, .1); border-color: rgba(247, 197, 163, .3); color: #f6dcc8; }
.notice::before { border-color: rgba(247, 197, 163, .6); }
.notice.info { background: var(--glass); border-color: var(--glass-line); color: #e0ddd6; }
.notice.info::before { border-color: rgba(255, 255, 255, .4); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { background-color: rgba(255, 255, 255, .04); border-color: var(--glass-line); }
.people-col input[type=search], .filters input[type=search] { border-radius: 25px; background-color: rgba(255, 255, 255, .085); padding-left: 18px; }
select option { background: #2b2e2d; color: var(--text); }
th { background: rgba(255, 255, 255, .06); }
td, .session-list li { border-bottom-color: rgba(255, 255, 255, .1); }
.tabs { border-bottom-color: rgba(255, 255, 255, .14); }
.foot { border-top-color: rgba(255, 255, 255, .14); }
.divider, .pl-det, .kv.totals { border-color: rgba(255, 255, 255, .14); }
.prompt, .file-view, .md-pre, .turn-body.md code, .secret { background: rgba(0, 0, 0, .28); border-color: var(--glass-soft); }
.md-table, .chip { border-color: var(--glass-line); }
.empty-icon { border-color: var(--glass-line); background: rgba(255, 255, 255, .08); color: #f2d1b3; }
.muted, .inline-note, .hint, .sub, .person-role, .bp-meta, .cmp-note, .format-text { color: #c9c6be; }
@media (max-width: 760px) { body::before { background-position: 68% center; } .brand-text { font-size: 22px; } .profile-top { margin: 8px 8px 0; } }
@media (max-width: 480px) { .brand-text { font-size: 19px; } }
/* Back to top: a round glass button at the bottom right, shown once the page has been scrolled. It sits above the fixed bar when there is one. */
.to-top { position: fixed; right: max(16px, calc((100% - 1384px) / 2 - 60px)); bottom: calc(max(20px, var(--lift)) + env(safe-area-inset-bottom, 0px)); z-index: 21; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(35, 35, 34, .6); color: var(--text); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .3); animation: to-top-in .2s ease; }
.to-top:hover { background: rgba(246, 241, 231, .92); border-color: rgba(255, 255, 255, .6); color: var(--ink); }
.to-top::before { content: ""; position: absolute; left: 50%; top: 16px; width: 10px; height: 10px; margin-left: -5px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
.to-top::after { content: ""; position: absolute; left: 50%; top: 15px; width: 2px; height: 15px; margin-left: -1px; border-radius: 1px; background: currentColor; }
@keyframes to-top-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Messages rise with the bar, and on a phone they clear the back-to-top button. */
#toasts { bottom: calc(25px + var(--lift)); }
@media (max-width: 760px) { body.scrolled #toasts { bottom: calc(78px + var(--lift)); } }
/* For people who ask their device for less transparency: the same shapes, solid. */
@media (prefers-reduced-transparency: reduce) {
  .panel, .card, .chat, .strip, .stat, .build-bar, .to-top, dialog.modal { background: #343735; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .main-nav, .ws-pill, .person { background: #3d403e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Print layout: used for "Print or save as PDF". */
@media print {
  :root { --bg: #fff; --panel: #fff; --raised: #fff; --line: #bbb; --text: #000; --muted: #444; --lime: #4d5a00; --purple: #4b2a8a; --cyan: #005f6e; --mint: #1c6b3c; --coral: #8a1f10; }
  html { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .banners, .foot, .actions, .composer, .retry-row, #toasts, .planner-panel, .skip, .notice.info, .turn-meta, .eyebrow, .date, dialog { display: none !important; }
  .print-only { display: block; font-size: 9pt; color: #444; }
  main { max-width: none; padding: 0; min-height: 0; }
  .heading { margin-top: 0; }
  .session-body { display: block; }
  .chat, .panel, .strip { border: 1px solid #bbb; margin-bottom: 10pt; min-height: 0; }
  .turns { max-height: none; overflow: visible; }
  .turn, .turn.persona.y-future { max-width: 100%; break-inside: avoid; background: #fff; border-color: #bbb; }
  .turn.user { align-self: stretch; background: #f2f2f2; }
  .turn.engine.moderator, .turn.user.command { background: #fff; border-color: #bbb; }
  .turn-body.md strong { color: #000; }
  .turn-body.md code, .md-pre { background: #fff; border-color: #bbb; }
  .md-h { color: #000; }
  .ended-box, .cmd-bar { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .panel, .card, .chat, .strip, .stat { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .turn, .turn.user { box-shadow: none; }
  .head-faces, .build-bar, .to-top { display: none !important; }
  #app { padding-bottom: 0; }
  .explore-wrap { display: block; height: auto; min-height: 0; max-height: none; }
  .profile-scroll, .people-list { overflow: visible; }
  .badge, .chip { border: 1px solid #000; background: #fff; color: #000; }
  .notice { background: #fff; border-color: #bbb; color: #000; }
  .strip-line { background: #888; }
  .strip-world { display: block; color: #444; }
  .life-words, .notes-panel p { color: #222; }
}
