/* The bar on the left (new timeline, search, explore, your timelines, your
   account at the foot), and the dialogs of account.js. Open it is 260px;
   folded it is a strip of icons; on a phone it slides in over the road. */
:root { --sb: 56px; }
body.sb-open { --sb: 260px; }
.top { left: var(--sb); }
#stage, #dock { left: var(--sb); }
.top .grow { flex: 1; }
#sb-btn { display: none; }
#sb-fold[aria-expanded="true"]:not(:hover) { color: var(--faint); background: transparent; }

#sb { position: fixed; top: 0; left: 0; bottom: 0; z-index: 32; width: var(--sb); display: flex; flex-direction: column; gap: 2px; padding: 0 8px 10px; overflow: hidden; font-size: 13.5px; background: var(--surf); border-right: 1px solid var(--rule); }
#sb .sb-head { flex: none; display: flex; align-items: center; height: 52px; margin-bottom: 4px; padding-left: 8px; }
#sb .logo { font-size: 23px; color: var(--text); }
#sb .logo .lbl { display: inline; }
.nv { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; text-align: left; white-space: nowrap; color: var(--muted); background: none; border: 0; border-radius: 9px; }
.nv:hover, .sb-row.on > .nv, .nv[aria-expanded="true"] { color: var(--text); background: var(--raised); }
.nv svg { flex: none; }
.nv .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nv small { flex: none; font-size: 11.5px; color: var(--faint); }
.nv .dot { flex: none; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; }
.nv.danger { color: #e58f8f; }
#sb-list { flex: 1; min-height: 0; margin-top: 14px; overflow-y: auto; scrollbar-width: thin; }
#sb-list .cap { margin: 6px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sb-note { margin: 6px 10px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.sb-row { position: relative; display: flex; }
.sb-row .more { position: absolute; right: 3px; top: 3px; opacity: 0; background: var(--raised); }
.sb-row:hover .more, .sb-row .more:focus-visible { opacity: 1; }
.sb-row:hover small { visibility: hidden; }
#sb-foot { flex: none; }
#sb-foot .who { min-height: 52px; }
#sb-foot .who .lbl { display: flex; flex-direction: column; line-height: 1.25; }
#sb-foot .who b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
#sb-foot .who .chev { flex: none; color: var(--faint); }
.av { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-weight: 600; font-size: 13px; color: #141005; background: linear-gradient(140deg, #f0c77c, #c98f3c); }
.rail-only { display: none; }

/* Explore: a page over the road, like the gallery of a community. Every published timeline is a card. */
.nv.on { color: var(--text); background: var(--raised); }
#explore { position: fixed; top: 0; left: var(--sb); right: 0; bottom: 0; z-index: 30; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
#explore[hidden] { display: none; }
#explore::before { content: ''; position: absolute; inset: 0 0 auto; height: 380px; pointer-events: none; background: radial-gradient(55% 100% at 50% 0, color-mix(in srgb, var(--acc) 10%, transparent), transparent 70%); }
.ex-x { position: fixed; top: 14px; right: 14px; z-index: 2; }
body.exploring .tsearch, body.exploring #tl-state { display: none; }
.ex-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 44px 36px 72px; }
.ex-head { text-align: center; }
.ex-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; }
.ex-sub { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.ex-sub .scope { display: block; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.search.ex-search { max-width: 580px; height: 50px; margin: 28px auto 0; padding: 0 18px; gap: 12px; background: var(--surf); border-radius: 25px; }
.search.ex-search input { font-size: 15px; }
#explore .chipbar { margin: 18px 0 0 !important; }
#explore .chipbar::before { background: linear-gradient(to right, var(--bg) 30%, transparent); }
#explore .chipbar::after { background: linear-gradient(to left, var(--bg) 30%, transparent); }
#explore .chips { justify-content: safe center; gap: 6px; padding: 0 0 2px; }
#explore .chips button { height: 32px; padding: 0 15px; font-size: 13px; border-radius: 16px; border-color: var(--rule); }
#explore .chips button[aria-checked="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
#explore #vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
#explore #vlist li.vhead, #explore #vlist li.line, #explore #vlist li.none { grid-column: 1 / -1; }
#explore #vlist li.vhead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; padding: 0 2px; font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
#explore #vlist li.vhead:first-child { margin-top: 0; }
#explore #vlist li.vhead .lnk { font: 500 13px Inter, system-ui, sans-serif; color: var(--muted); }
#explore #vlist li.vhead .lnk:hover { color: var(--text); }
#explore #vlist li.line { width: 100%; max-width: 640px; margin: 0 auto; background: var(--surf); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
#explore #vlist li.none { text-align: center; padding: 40px 0; font-size: 14px; }
#explore #vlist li.card { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; color: var(--text); background: var(--surf); border: 1px solid var(--rule); border-radius: 14px; transition: transform .16s ease, border-color .16s, box-shadow .16s; }
#explore #vlist li.card:hover, #explore #vlist li.card[aria-selected="true"] { transform: translateY(-3px); background: var(--surf); border-color: var(--rule2); box-shadow: 0 16px 34px rgba(0, 0, 0, .34); }
.card .tb { width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; color: var(--muted); background: radial-gradient(120% 120% at 50% 0, var(--raised), var(--bg) 75%); }
.card .tb img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); border-radius: 3px; }
.card .tb .th-map { transform: scale(2.2); opacity: .7; }
.card .tb .th-mono { font-family: var(--serif); font-size: 44px; color: var(--acc); opacity: .9; }
.card .tb .st { position: absolute; left: 10px; top: 10px; padding: 3px 9px; font-size: 11px; font-weight: 600; color: var(--bg) !important; background: var(--c, var(--text)); border-radius: 10px; }
.card .r-txt { display: flex; flex-direction: column; gap: 6px; padding: 13px 15px 14px; }
.card .r-txt b { font-size: 15px; font-weight: 600; }
.card .r-txt .desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.9em; white-space: normal; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.card .r-txt .meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12px; color: var(--faint); }
.card .meta .av { width: 18px; height: 18px; font-size: 10px; }
.card .meta .fx { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .radd { position: absolute; top: 8px; right: 8px; color: var(--text); background: var(--chrome); border-color: var(--rule2); }
#explore #vlist li.card[aria-checked="true"] { border-color: var(--c); }
#explore #vlist li.card[aria-checked="true"] .tb { color: var(--c); }
#explore #vnote { margin-top: 18px; text-align: center; }
.ex-foot { margin-top: 48px; text-align: center; font-size: 13px; color: var(--faint); }
.ex-foot .lnk { font-size: 13px; }

/* New timeline: a page over the road with one box, like the first screen of a chat. */
#create { position: fixed; top: 0; left: var(--sb); right: 0; bottom: 0; z-index: 30; display: flex; overflow-y: auto; background: color-mix(in srgb, var(--bg) 52%, transparent); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
#create[hidden] { display: none; }
#create::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 55% at 50% 38%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 70%); }
body.creating .tsearch, body.creating #tl-state { display: none; }
.cr-in { position: relative; width: min(720px, 100%); margin: auto; padding: 32px 24px 96px; text-align: center; }
.cr-in h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1.02; }
.cr-box, .ask-box { background: var(--surf); border: 1px solid var(--rule2); border-radius: 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); transition: border-color .15s; }
.cr-box:focus-within, .ask-box:focus-within { border-color: color-mix(in srgb, var(--acc) 60%, var(--rule2)); }
.cr-box { margin-top: 32px; padding: 16px 14px 12px 20px; text-align: left; }
.cr-box textarea { display: block; width: 100%; min-height: 56px; max-height: 180px; padding: 2px 6px 0 0; resize: none; font: inherit; font-size: 16.5px; line-height: 1.5; color: var(--text); background: transparent; border: 0; outline: 0; field-sizing: content; }
.cr-box textarea::placeholder, .ask-box textarea::placeholder { color: var(--faint); }
.cr-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cr-row .grow { flex: 1; }
.cr-model { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 11px; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: 16px; white-space: nowrap; }
.cr-model:hover { color: var(--text); border-color: var(--rule2); }
.cr-model i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.cr-model svg { opacity: .7; }
.cr-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: #141005; background: var(--acc); border: 0; border-radius: 50%; transition: transform .12s, opacity .15s; }
.cr-go:hover { transform: scale(1.06); }
body.ai-busy .cr-go { opacity: .4; pointer-events: none; }
.cr-status { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.cr-status.err { display: inline-block; padding: 9px 14px; font-weight: 500; color: #f0a3a3; background: rgba(229, 143, 143, .12); border: 1px solid rgba(229, 143, 143, .45); border-radius: 10px; }
#ask .cr-status.err { display: block; width: fit-content; margin: 0 auto 8px; background: color-mix(in srgb, var(--surf) 90%, #e58f8f); text-shadow: none; }
.cr-status.busy { background: linear-gradient(90deg, var(--faint) 20%, var(--text) 50%, var(--faint) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 1.6s linear infinite; }
@keyframes shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
.cr-model span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
/* What people come to make: a row of kinds, and under the one that is pressed a few requests to start from. */
.cr-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.cr-ideas button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; font-size: 13.5px; color: var(--muted); background: color-mix(in srgb, var(--surf) 55%, transparent); border: 1px solid var(--rule); border-radius: 18px; }
.cr-ideas button svg { flex: none; opacity: .8; }
.cr-ideas button:hover, .cr-ideas button[aria-expanded="true"] { color: var(--text); border-color: var(--rule2); background: var(--surf); }
.cr-ideas button[aria-expanded="true"] svg { color: var(--acc); opacity: 1; }
.cr-list { margin: 14px auto 0; padding: 6px; text-align: left; background: color-mix(in srgb, var(--surf) 86%, transparent); border: 1px solid var(--rule); border-radius: 16px; }
.cr-list[hidden] { display: none; }
.cr-list button { display: block; width: 100%; padding: 11px 14px; font-size: 14.5px; line-height: 1.35; text-align: left; color: var(--muted); background: none; border: 0; border-radius: 10px; }
.cr-list button + button { box-shadow: 0 -1px 0 var(--rule); }
.cr-list button:hover { color: var(--text); background: var(--raised); box-shadow: none; }
.cr-list button:hover + button { box-shadow: none; }
.cr-list p { margin: 6px 14px 8px; font-size: 12.5px; color: var(--faint); }
body.ai-busy .cr-ideas, body.ai-busy .cr-list { visibility: hidden; }
/* The model menu. */
.pop.models .dlg { width: 300px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 6px; }
.pop.models .cap { margin: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pop.models hr { height: 1px; margin: 6px -6px; border: 0; background: var(--rule); }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; color: var(--muted); background: none; border: 0; border-radius: 9px; }
.mrow:hover { background: var(--raised); }
.mrow > span { flex: 1; min-width: 0; }
.mrow b { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.mrow small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--faint); }
.mrow > svg { flex: none; color: var(--acc); }
.mrow.more b { color: var(--muted); }
.mrow.more > svg { color: var(--faint); }
.seg { display: flex; gap: 2px; margin: 2px 6px 0; padding: 3px; background: var(--raised); border-radius: 10px; }
.seg button { flex: 1; height: 30px; font-size: 13px; color: var(--muted); background: none; border: 0; border-radius: 8px; }
.seg button[aria-checked="true"] { color: var(--text); background: var(--surf); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pop.models .dlg-fine { margin: 8px 10px 6px; text-align: left; }

/* Ask for a change: one box under the road, for a timeline made with AI. */
#ask { position: fixed; left: calc(var(--sb) + (100vw - var(--sb) - var(--bar)) / 2); bottom: 56px; z-index: 19; width: min(560px, calc(100vw - var(--sb) - var(--bar) - 32px)); transform: translateX(-50%); }
#ask[hidden], body.playing #ask, body.exploring #ask, body.creating #ask { display: none; }
body.side-open #ask { left: calc(var(--sb) + (100vw - var(--sb) - var(--bar) - var(--side)) / 2); width: min(560px, calc(100vw - var(--sb) - var(--bar) - var(--side) - 32px)); }
/* The box rises out of the strip at the foot, in its colour and with its edge, and meets it in two soft
   shoulders, so the two read as one piece (asked for, Nov 2026: "resting on the footer... not behind"). */
/* Ask AI (design B, Nov 2026): a lit pill standing just above the footer, clear of it. */
.ask-box { position: relative; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 7px 8px 7px 16px; background: var(--surf); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); border-radius: 25px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 22px color-mix(in srgb, var(--acc) 14%, transparent); }
.ask-box:focus-within { border-color: color-mix(in srgb, var(--acc) 75%, transparent); }
.ask-spark { flex: none; color: var(--acc); font-size: 15px; line-height: 1; }
.ask-box:hover, .ask-box:focus-within, body.ai-busy .ask-box { opacity: 1; }
.ask-box textarea { flex: 1; min-width: 0; height: auto; min-height: 22px; max-height: 88px; field-sizing: content; padding: 0; resize: none; font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--text); background: transparent; border: 0; outline: 0; }
.ask-box .cr-model, .ask-box .cr-go { flex: none; }
/* Folded (asked for, Nov 2026): the box is a small pill in the middle, a little lower than the open box, and a
   press opens it again; the small arrow at the end of the open box folds it at any time. Play folds it too. */
.ask-lab { display: none; font-size: 13.5px; font-weight: 500; color: var(--text); }
.ask-fold { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.ask-fold:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
body.ask-min:not(.ai-busy) #ask:not(.open) { width: auto; margin-bottom: -22px; cursor: pointer; }
body.ask-min:not(.ai-busy) #ask:not(.open) .ask-box { min-height: 36px; padding: 0 6px 0 14px; gap: 7px; border-radius: 18px; }
body.ask-min:not(.ai-busy) #ask:not(.open) .ask-lab { display: inline; }
body.ask-min:not(.ai-busy) #ask:not(.open) .ask-fold { pointer-events: none; transform: rotate(180deg); }
body.ask-min:not(.ai-busy) #ask:not(.open) :is(textarea, .cr-model, .cr-go, .cr-status) { display: none; }
#ask .cr-status { margin: 0 0 8px; text-align: center; text-shadow: 0 1px 8px var(--bg); }
#ask .cr-status:empty { display: none; }
body:has(#ask:not([hidden])) #toast { bottom: 124px; }
/* While a timeline is being made: one line over the road, saying how far it has come. */
/* While a timeline is made: its steps at the horizon in the middle of the road, and a bar along the top edge of the strip at the foot. */
#ai-live { position: fixed; left: calc(var(--sb) + (100vw - var(--sb) - var(--bar)) / 2); top: 30%; z-index: 19; transform: translateX(-50%); padding: 16px 22px 14px; color: var(--text); background: color-mix(in srgb, var(--surf) 82%, transparent); border: 1px solid var(--rule2); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: none; }
#ai-live ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
#ai-live li { position: relative; padding-left: 26px; font-size: 14px; white-space: nowrap; color: var(--muted); transition: color .3s; }
#ai-live li::before { content: ''; position: absolute; left: 3px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border: 1.5px solid var(--rule2); border-radius: 50%; }
#ai-live li.now { color: var(--text); }
#ai-live li.now::before { border-color: var(--acc); border-top-color: transparent; animation: spin .8s linear infinite; }
#ai-live li.done::before { width: 11px; height: 11px; border: 0; background: var(--acc); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
#ai-live li b { margin-left: 4px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--acc); }
/* The step being done ends in three dots that come and go, so it is seen to be working (asked for, Nov 2026). */
#ai-live .dots { display: inline-block; width: 1.3em; text-align: left; }
#ai-live .dots i { font-style: normal; opacity: .2; animation: aidot 1.2s infinite; }
#ai-live .dots i:nth-child(2) { animation-delay: .2s; }
#ai-live .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes aidot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
#ai-live[hidden], #ai-bar[hidden] { display: none; }
/* With the panel open the road is narrower: the steps stay in the middle of what is left, the bar stops at the panel. */
body.side-open #ai-live { left: calc(var(--sb) + (100vw - var(--sb) - var(--bar) - var(--side)) / 2); }
body.side-open #ai-bar { right: var(--side); }
#ai-bar { position: fixed; left: var(--sb); right: 0; bottom: 43px; z-index: 20; height: 2px; overflow: hidden; background: color-mix(in srgb, var(--acc) 18%, transparent); pointer-events: none; }
#ai-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--acc); box-shadow: 0 0 10px var(--acc); transition: width .8s ease; }
#ai-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: sweep 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* The year range: a quiet, see-through pill at the bottom right of the road. Pressed, it opens. */
#filters { position: fixed; right: calc(var(--bar) + 14px); bottom: 56px; z-index: 17; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body.side-open #filters { right: calc(var(--side) + var(--bar) + 14px); }
.yr-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 15px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .55; transition: opacity .15s, color .15s; }
.yr-pill:hover, .yr-pill:focus-visible, .yr.open .yr-pill { opacity: 1; color: var(--text); }
.yr-pill:has(output:empty) { display: none; }
.yr-pop { display: none; width: 290px; padding: 14px 16px 12px; background: color-mix(in srgb, var(--surf) 86%, transparent); border: 1px solid var(--glass-edge); border-radius: 14px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.yr.open .yr-pop { display: block; }
body.playing #filters:not(.open), body.exploring #filters { display: none; }
#toggle-side { display: none; }
:is(#more-menu, #vo-menu) { position: fixed; right: 8px; bottom: 52px; z-index: 40; min-width: 250px; padding: 6px; background: var(--surf); border: 1px solid var(--glass-edge); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
body.side-open :is(#more-menu, #vo-menu) { right: calc(var(--side) + 8px); }
:is(#more-menu, #vo-menu) .cap { margin: 6px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
:is(#more-menu, #vo-menu) hr { height: 1px; margin: 6px -6px; border: 0; background: var(--rule); }
:is(#more-menu, #vo-menu) .nv img { flex: none; margin: 0 1px; }
:is(#more-menu, #vo-menu) .to-dark, [data-theme="light"] :is(#more-menu, #vo-menu) .to-light { display: none; }
[data-theme="light"] :is(#more-menu, #vo-menu) .to-dark { display: inline; }
:is(#more-menu, #vo-menu)[hidden] { display: none; }
body :is(#more-menu, #vo-menu) .nv { justify-content: flex-start; padding: 0 10px; text-decoration: none; }
@media (min-width: 861px) { #info { left: calc(var(--sb) + 12px); right: auto; } }

/* folded: icons only */
body:not(.sb-open) #sb { padding: 0 8px 10px; }
body:not(.sb-open) #sb .lbl, body:not(.sb-open) #sb-list .cap, body:not(.sb-open) .sb-note, body:not(.sb-open) .sb-row .more { display: none; }
/* Like a chat app (asked for, Nov 2026): open, the fold button shows while the pointer is over the
   head; folded, the logo turns into the open button while the pointer is over the strip, and a click
   anywhere on the empty strip opens it. */
body:not(.sb-open) #sb .sb-head { position: relative; justify-content: center; padding: 0; }
body:not(.sb-open) #sb .logo { flex: none; transition: opacity .12s; }
body:not(.sb-open) #sb-fold { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
body:not(.sb-open) #sb:hover .logo { opacity: 0; }
body:not(.sb-open) #sb { cursor: e-resize; }
body:not(.sb-open) #sb button, body:not(.sb-open) #sb a { cursor: pointer; }
body:not(.sb-open) .nv { justify-content: center; padding: 0; }
body:not(.sb-open) #sb-foot .big { height: 40px; padding: 0; }
body:not(.sb-open) .rail-only { display: flex; transform: rotate(90deg); }

/* top right: the three dots of this timeline (Publish is in their menu) */
#tl-state { display: flex; align-items: center; gap: 12px; margin-right: 6px; }
#tl-state .st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
#tl-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
#tl-state .dot.live { background: #8fcdb2; }
#tl-state .ebtn .narrow { display: none; }
@media (max-width: 699px) { #tl-state .ebtn .narrow { display: inline; } }
.pbtn { height: 34px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--bg); background: var(--text); border: 0; border-radius: 17px; }
.pbtn:hover { opacity: .9; }

/* dialogs, menus, messages */
#layer { position: fixed; inset: 0; z-index: 60; }
#layer.modal { display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 7, 12, .72); }
#layer[hidden] { display: none; }
.dlg { position: relative; color: var(--text); background: var(--surf); border: 1px solid var(--glass-edge); box-shadow: 0 24px 64px rgba(0, 0, 0, .55), inset 0 1px 0 var(--glass-hi); }
.modal .dlg { width: min(420px, 100%); max-height: 100%; overflow-y: auto; padding: 40px 36px 30px; border-radius: 22px; text-align: center; }
.modal.small .dlg { padding: 28px 28px 24px; text-align: left; }
.pop .dlg { position: fixed; border-radius: 16px; }
.pop.menu .dlg { min-width: 150px; padding: 6px; }
.pop.menu.wide .dlg { width: 240px; max-height: calc(100vh - 16px); overflow-y: auto; }
.pop.menu hr { height: 1px; margin: 6px -6px; border: 0; background: var(--rule); }
.pop.menu .me { display: flex; flex-direction: column; padding: 8px 10px; }
/* Requests left today: a line and a thin bar that empties (asked for, Nov 2026). */
.pop.menu #me-ai span, .pop.menu #me-say span { font-size: 13.5px; }
.pop.menu #me-ai i { display: block; height: 3px; margin-top: 7px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.pop.menu #me-say i { display: block; height: 3px; margin-top: 7px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.pop.menu #me-ai u { display: block; height: 100%; background: var(--acc); border-radius: 2px; }
.pop.menu #me-say u { display: block; height: 100%; background: var(--acc); border-radius: 2px; }
.pop.menu #me-ai.none span { color: #e58f8f; }
.pop.menu #me-say.none span { color: #e58f8f; }
.pop.menu #me-ai { padding-bottom: 10px; }
.pop.menu #me-say { padding-bottom: 10px; }
.pop.menu #me-ai u { width: 0; text-decoration: none; transition: width .3s; }
.pop.menu #me-say u { width: 0; text-decoration: none; transition: width .3s; }
.pop.menu #me-ai span { min-height: 1.3em; }
.pop.menu #me-say span { min-height: 1.3em; }
/* The account's menu: small and quiet, with the theme as a Light / Dark switch (asked for, Nov 2026). */
.pop.menu.acct .dlg { width: 224px; padding: 5px; border-radius: 13px; font-size: 13px; }
.pop.menu.acct .me { padding: 6px 9px; }
.pop.menu.acct .me b { font-size: 13.5px; }
.pop.menu.acct .me small { font-size: 11.5px; }
.pop.menu.acct .me span, .pop.menu.acct #me-ai span { font-size: 12.5px; }
.pop.menu.acct .me span, .pop.menu.acct #me-say span { font-size: 12.5px; }
.pop.menu.acct hr { margin: 4px -5px; }
.pop.menu.acct #me-ai { padding-bottom: 8px; }
.pop.menu.acct #me-say { padding-bottom: 8px; }
.pop.menu.acct #me-ai i { margin-top: 5px; }
.pop.menu.acct #me-say i { margin-top: 5px; }
.pop.menu.acct .me-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 9px; color: var(--muted); }
.pop.menu.acct #me-plan b { margin-left: 4px; color: var(--text); font-weight: 600; }
.pop.menu.acct #me-plan button { height: 26px; padding: 0 12px; border: 0; border-radius: 8px; font-size: 12px; cursor: pointer; }
.pop.menu.acct #me-plan .go { background: var(--acc); color: #fff; font-weight: 600; }
.pop.menu.acct #me-plan .quiet { background: var(--raised); color: inherit; }
.pop.menu.acct .seg { padding: 2px; border-radius: 8px; }
.pop.menu.acct .seg button { flex: none; height: 24px; padding: 0 10px; font-size: 12px; cursor: pointer; }
.pop.menu.acct .nv.out { min-height: 32px; gap: 8px; padding: 0 9px; font-size: 13px; color: var(--muted); }
.pop.menu.acct .nv.out:hover { color: #e58f8f; background: rgba(229, 143, 143, .1); }
.pop.menu .me small, .pop.menu .cap { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.pop.menu .cap { display: block; padding: 6px 10px; }
.pop.publish .dlg { width: min(410px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; padding: 22px 22px 18px; border-radius: 20px; }
.dlg-x { position: absolute; right: 12px; top: 12px; }
.dlg-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.dlg h1 { margin: 0; font: 400 38px/1.05 var(--serif); }
.dlg h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dlg-sub { margin: 8px 0 22px; font-size: 14.5px; color: var(--muted); }
.pop .dlg-sub { margin: 2px 0 0; font-size: 13.5px; }
.dlg .cap { display: block; margin: 20px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dlg-fine { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.dlg-fine.center, .signin .dlg-fine { margin-top: 14px; text-align: center; font-size: 12px; }
.dlg-err { min-height: 0; margin: 8px 0 0; font-size: 13px; color: #e58f8f; }
.dlg-err:empty { display: none; }
.dlg-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12.5px; color: var(--faint); }
.dlg-or span { flex: 1; height: 1px; background: var(--rule); }
.dlg-row { display: flex; gap: 10px; margin-top: 18px; }
.big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--text); background: transparent; border: 1px solid var(--rule2); border-radius: 12px; }
.big:hover { background: var(--raised); }
.big.pri { font-weight: 600; color: var(--bg); background: var(--text); border-color: var(--text); }
.big.pri:hover { opacity: .9; background: var(--text); }
.big.danger { font-weight: 600; color: #fff; background: #b4443f; border-color: #b4443f; }
.big:disabled { opacity: .5; pointer-events: none; }
.dlg-row .big { margin-top: 0; }
#sb-foot .big { height: 42px; margin-top: 0; font-size: 14px; }
.dlg input[type="text"], .dlg input[type="email"] { width: 100%; height: 46px; padding: 0 14px; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--rule2); border-radius: 12px; outline: 0; }
.dlg input:focus { border-color: var(--text); }
.dlg form.code input { text-align: center; font-size: 20px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.dlg form.code input::placeholder { font-size: 15px; letter-spacing: 0; }
.fld { display: block; }
.fld span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.addr { display: flex; align-items: center; height: 46px; padding: 0 12px; font-size: 14px; background: var(--bg); border: 1px solid var(--rule2); border-radius: 12px; }
.addr:focus-within { border-color: var(--text); }
.addr span { color: var(--faint); white-space: nowrap; }
.addr input[type="text"] { flex: 1; min-width: 0; height: 30px; padding: 0 4px; font-size: 14px; font-weight: 500; color: var(--acc); background: transparent; border: 0; border-radius: 5px; }
.addr .ok { display: none; color: #8fcdb2; }
.addr.good .ok { display: flex; }
.pick { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.pick:has(input:checked) { background: var(--raised); }
.pick input { position: absolute; opacity: 0; }
.pick i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule2); }
.pick input:checked + i { border: 5.5px solid var(--text); }
.pick input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.pick span { display: flex; flex-direction: column; }
.pick b { font-weight: 500; }
.pick small { font-size: 12.5px; color: var(--faint); }
.big.copy { height: 40px; font-size: 14px; }
#toast { position: fixed; left: 50%; bottom: 60px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 9px 16px; font-size: 13.5px; color: var(--text); background: var(--raised); border: 1px solid var(--glass-edge); border-radius: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
#toast[hidden] { display: none; }
#toast button { padding: 0; font-weight: 600; color: var(--acc); background: none; border: 0; }

/* No bar across the top (asked for, Nov 2026: "only on the left side, so the middle canvas stays
   full"). What it held is in the bar on the left; the search is a box that shows while it is used. */
.top { height: 52px; padding: 0 calc(var(--bar) + 14px) 0 14px; background: none !important; border: 0; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; pointer-events: none; }
.top > * { pointer-events: auto; }
body.side-open .top { right: var(--side); }
#axisbar { top: 0; }
@media (min-width: 700px) { #side { top: 0; } }
#info { top: 16px; }
#road-views { top: 22px; }
/* The year stands under the three dots at the top right. */
#road-head { top: 58px; }
/* The search stands at the top left, always (asked for, Nov 2026: "search: person, place, event"),
   see-through until it is used, then wider; it steps away with the rest of the top while play travels. */
.tsearch { position: fixed; left: calc(var(--sb) + 16px); top: 12px; z-index: 45; transform: none; width: 280px; height: 38px; padding: 0 12px 0 14px; gap: 10px; color: var(--muted); background: var(--glass) !important; border-color: var(--glass-edge) !important; border-radius: 19px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: width .18s ease, background .15s; }
.tsearch:focus-within, body.searching .tsearch { width: min(480px, calc(100vw - var(--sb) - var(--bar) - 32px)); background: var(--surf) !important; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.tsearch input { font-size: 14px; }
.tsearch input::placeholder { color: var(--muted); }
.tsearch kbd { display: inline; }
.tsearch:focus-within kbd { display: none; }
.tsearch #qlist { top: 44px; border-radius: 12px; }
body.side-open .tsearch:focus-within { width: min(480px, calc(100vw - var(--sb) - var(--side) - var(--bar) - 32px)); }
#unzoom { position: fixed; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; color: #141005; background: var(--acc); border: 0; border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transform-origin: 50% 0; }
#unzoom[hidden] { display: none; }
/* Two fingers travel the road; they do not zoom the page. */
html, body { touch-action: pan-x pan-y; }
/* Phones: the bar slides in from the left, over the road, behind a menu button. */
@media (max-width: 699px) {
  :root, body.sb-open { --sb: 0px; }
  /* the menu button floats over the road, top left */
  #sb-btn { display: inline-flex; flex: none; width: 42px; height: 42px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 50%; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .top { padding: 0 calc(var(--bar) + 8px) 0 10px; }
  .tsearch { left: 60px; top: 5px; width: 108px; height: 42px; padding: 0 10px 0 12px; border-radius: 21px; }
  .tsearch:focus-within, body.searching .tsearch { left: 10px; width: calc(100vw - 20px); z-index: 60; }
  .tsearch kbd { display: none; }
  /* the search stands top left beside the menu button, so the names of the views go under it */
  #road-views { top: 62px; max-width: calc(100% - 28px); }
  /* On a phone the period stands in the top corner, level with the search (asked for, Nov 2026). */
  #road-head { top: 58px; }
  body.side-open :is(#more-menu, #vo-menu) { right: 8px; }
  /* a field under 16px makes a phone's browser zoom in when it is tapped */
  input, textarea, select { font-size: 16px !important; }
  #sb { width: min(310px, 82vw); padding-bottom: 18px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 40px rgba(0, 0, 0, .4); }
  body.sb-open #sb { transform: none; }
  body:not(.sb-open) #sb .lbl { display: revert; }
  .ex-in { padding: 36px 16px 48px; }
  .ex-head h1 { font-size: 42px; }
  .ex-sub { font-size: 14px; }
  #explore .chips { justify-content: flex-start; margin: 0 -16px; padding: 0 16px 2px; }
  #explore #vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
  #explore #vlist li.vhead { font-size: 23px; }
  .card .tb { padding: 10px 14px; }
  .card .r-txt { padding: 10px 11px 12px; }
  .card .r-txt b { font-size: 14px; }
  .card .meta .fx { display: none; }
  .cr-in { padding: 24px 16px 64px; }
  .cr-in h1 { font-size: 38px; }
  #ask { left: 12px; right: calc(var(--bar) + 12px); bottom: 52px; width: auto; transform: none; }
  body.ask-min:not(.ai-busy) #ask:not(.open) { left: 50%; right: auto; transform: translateX(-50%); }
  #ai-live { left: calc((100vw - var(--bar)) / 2); top: 26%; }
  #ai-bar { left: 0; }
  body.side-open #ai-live { left: calc((100vw - var(--bar)) / 2); }
  body.side-open #ai-bar { right: 0; bottom: var(--sheet); }
  body.side-open #ask { display: none; }
  #ask .cr-model span { display: none; }
  body:has(#ask:not([hidden])) #filters { bottom: 114px; }
  #filters { right: calc(var(--bar) + 8px); bottom: 52px; }
  body.side-open #filters { right: calc(var(--bar) + 8px); bottom: calc(var(--sheet) + 8px); }
  .yr-pop { width: min(290px, calc(100vw - var(--bar) - 24px)); }
  #sb-fold { display: none; }
  #sb-scrim { position: fixed; inset: 0; z-index: 31; background: rgba(5, 7, 12, .6); opacity: 0; pointer-events: none; transition: opacity .22s; }
  body.sb-open #sb-scrim { opacity: 1; pointer-events: auto; }
  #tl-state .st { display: none; }
  #tl-state .ebtn .wide { display: none; }
  .modal .dlg { padding: 32px 22px 24px; }
  .nv { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { #sb, #sb-scrim { transition: none; } }

@media (min-width: 700px) {
  #sb-fold { opacity: 0; transition: opacity .12s; }
  #sb .sb-head:hover #sb-fold, #sb-fold:focus-visible, body:not(.sb-open) #sb:hover #sb-fold { opacity: 1; }
}
/* Create timeline: the one lit button of the bar, so it is seen at once (asked for, Nov 2026). */
#sb-list #sb-new { margin: 2px 0 10px; min-height: 38px; font-weight: 600; color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 46%, transparent); border-radius: 10px; transition: background .15s, border-color .15s; }
#sb-list #sb-new:hover, #sb-list #sb-new.on { color: var(--acc); background: color-mix(in srgb, var(--acc) 22%, transparent); border-color: var(--acc); }
body:not(.sb-open) #sb-list #sb-new { width: 36px; margin-inline: auto; }
:is(#more-menu, #vo-menu) .state { margin-left: auto; font-size: 12px; color: var(--faint); }
.ex-gh { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; margin: 14px auto 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.ex-gh:hover { color: var(--text); }
body.fine #filters { display: none; }
/* the search's filter in Explore: whether people's published timelines are searched too */
.ex-sw { position: relative; max-width: 580px; margin: 0 auto; }
.ex-filter { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: -8px; padding: 0; color: var(--faint); background: transparent; border: 0; border-radius: 17px; }
.ex-filter:hover, .ex-filter[aria-expanded="true"] { color: var(--text); background: var(--raised); }
.ex-filter.on { color: var(--acc); }
.ex-filter.on::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.ex-fpop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(320px, calc(100vw - 32px)); padding: 6px; text-align: left; background: var(--surf); border: 1px solid var(--rule2); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.ex-fpop[hidden] { display: none; }
.ex-fopt { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; cursor: pointer; }
.ex-fopt:hover { background: var(--raised); }
.ex-fopt input { margin: 3px 0 0; accent-color: var(--acc); width: 16px; height: 16px; flex: none; }
.ex-fopt span { display: flex; flex-direction: column; gap: 2px; }
.ex-fopt b { font-size: 14px; font-weight: 600; }
.ex-fopt small { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
/* Several views, each with its own globe: the year stands small at the top, over the grid. */
body.multi #road-head { top: 10px; right: auto; left: 50%; transform: translateX(-50%); align-items: center; }
body.multi #road-year { font-size: 36px; }
body.multi #road-unit { display: none; }
@media (max-width: 699px) {
  body.multi #road-head { top: 12px; left: auto; right: 14px; transform: none; }
  body.multi #road-year { font-size: 26px; }
  body.multi #globe .g-grid { top: 56px; }
}
/* Explore: what is on the timeline now, and a plain Add button on each card (asked for, Nov 2026). */
.ex-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 26px 0 0; padding: 12px 16px; background: var(--surf); border: 1px solid var(--rule); border-radius: 14px; }
.ex-now[hidden] { display: none; }
.ex-now .cap { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ex-now .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ex-now .now-p { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; font-size: 13px; background: var(--raised); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 15px; }
.ex-now .now-p i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ex-now .now-p b { font-weight: 500; }
.ex-now .now-p button { display: inline-flex; margin: 0 -5px 0 0; padding: 3px; color: var(--faint); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.ex-now .now-p button:hover { color: var(--text); background: var(--bg); }
.ex-now small { flex-basis: 100%; text-align: center; font-size: 12.5px; color: var(--faint); }
#explore .card .radd { width: auto; height: 30px; gap: 5px; padding: 0 12px 0 9px; font-size: 12.5px; font-weight: 600; border-radius: 15px; opacity: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#explore .card .radd:hover { color: var(--bg); background: var(--text); border-color: var(--text); }
#explore .card .radd:disabled { opacity: 0 !important; }
/* Ask AI: its steps stand in a row just above its box at the foot while the timeline is rewritten (asked for, Nov 2026). */
#ai-live.low { top: auto; bottom: 122px; padding: 10px 18px; border-radius: 22px; }
#ai-live.low ol { display: flex; gap: 6px 20px; }
#ai-live.low li { font-size: 13px; }
body.globe:has(.g-shelf:not([hidden])) #ai-live.low { bottom: 238px; }
@media (max-width: 699px) {
  #ai-live.low { top: auto; bottom: 116px; max-width: calc(100vw - 24px); }
  #ai-live.low ol { display: grid; grid-template-columns: auto auto; }
  body.globe:has(.g-shelf:not([hidden])) #ai-live.low { bottom: 232px; }
}

/* The three dots at the top right (what can be done with this timeline), the pill and the script shown
   while a voiceover is recorded, and the small form of the voiceover. */
#tl-more { position: relative; width: 36px; height: 36px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#tl-more.live::after { content: ''; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; background: #8fcdb2; border: 2px solid var(--bg); border-radius: 50%; }
.pop.menu.tl .dlg { width: 288px; padding: 8px; }
.pop.menu.tl .cap { margin: 0; padding: 10px 10px 3px; font-size: 10.5px; line-height: 1.3; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pop.menu.tl .nv { min-height: 32px; margin: 0; font-size: 13.5px; }
.pop.menu.tl hr { margin: 6px 2px 4px; }
.tl-head { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 10px; margin: 0 0 2px; border-bottom: 1px solid var(--rule); }
.tl-head b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-head small { font-size: 12px; color: var(--muted); }
.tl-pub { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 6px 0 0; padding: 8px 8px 8px 10px; font: inherit; color: var(--text); text-align: left; background: transparent; border: 1px solid var(--rule2); border-radius: 12px; cursor: pointer; }
.tl-pub:hover { background: var(--raised); }
.tl-pub > svg { flex: none; }
.tl-pub span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-pub b { font-size: 14px; font-weight: 500; }
.tl-pub small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-pub i { flex: none; padding: 6px 10px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--bg); background: var(--acc); border-radius: 8px; }
.pop.menu.tl .nv.has small { color: var(--acc); }
.tl-foot { display: flex; justify-content: space-between; gap: 4px; }
.tl-foot button { min-height: 34px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.tl-foot button:hover { color: var(--text); background: var(--raised); }
.tl-foot button.danger { color: #e58f8f; }
.tl-foot button.danger:hover { background: rgba(229, 143, 143, .1); }
.pop.menu.tl .nv span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pop.menu.tl .nv small { display: inline-flex; align-items: center; gap: 2px; }
.pop.menu.tl .nv img { flex: none; margin: 0 1px; }
.pop.menu.tl .nv.lit { color: var(--acc); font-weight: 600; background: color-mix(in srgb, var(--acc) 13%, transparent); }
.pop.menu.tl .nv.lit:hover { background: color-mix(in srgb, var(--acc) 20%, transparent); }
.pop.menu.tl .dot { background: var(--faint); }
.pop.menu.tl .dot.live { background: #8fcdb2; }
.vo-pill { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; border-color: color-mix(in srgb, var(--acc) 55%, var(--glass-edge)); }
.vo-pill .rec { width: 8px; height: 8px; background: var(--acc); border-radius: 50%; animation: vorec 1.2s ease-in-out infinite; }
@keyframes vorec { 50% { opacity: .25; transform: scale(.7); } }
#vo-panel { position: fixed; z-index: 31; top: 52px; right: calc(var(--bar) + 20px); width: min(340px, calc(100vw - 24px)); padding: 14px 14px 10px; color: var(--text); background: var(--chrome); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: auto; }
#ex-done { position: fixed; z-index: 32; top: 52px; right: calc(var(--bar) + 20px); display: flex; align-items: center; gap: 12px; width: min(340px, calc(100vw - 24px)); padding: 12px 10px 12px 14px; color: var(--text); background: var(--chrome); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
#ex-done .ok { flex: none; display: grid; place-items: center; width: 26px; height: 26px; font-size: 13px; font-weight: 700; color: var(--on-acc); background: var(--acc); border-radius: 50%; }
#ex-done .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#ex-done b { font-size: 13.5px; font-weight: 600; }
#ex-done small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ex-done button { flex: none; width: 28px; height: 28px; padding: 0; font-size: 18px; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer; }
#ex-done button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
#vo-panel[hidden], body.playing #vo-panel, body.exploring #vo-panel, body.creating #vo-panel, body.editing #vo-panel { display: none; }
.vp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.vp-head small { font-size: 12px; color: var(--faint); }
.vp-steps { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--faint); }
.vp-steps li { display: flex; align-items: center; gap: 8px; }
.vp-steps i { display: grid; place-items: center; width: 18px; height: 18px; font-size: 11px; font-style: normal; border: 1px solid var(--line); border-radius: 50%; }
.vp-steps .now { color: var(--text); }
.vp-steps .now i { border-color: var(--acc); color: var(--acc); }
.vp-steps .done i { background: var(--acc); border-color: var(--acc); color: #111; }
.vp-bar { height: 3px; margin: 10px 0 8px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.vp-bar i { display: block; height: 100%; background: var(--acc); border-radius: 2px; transition: width .5s ease; }
.vp-bar.run i { width: 35%; animation: vprun 1.4s ease-in-out infinite; }
@keyframes vprun { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.vp-lines { max-height: min(300px, 42vh); margin: 0; padding: 0; overflow-y: auto; list-style: none; position: relative; }
.vp-lines li { display: flex; gap: 8px; padding: 5px 2px; font-size: 13px; line-height: 1.4; color: var(--faint); }
.vp-lines li i { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--acc); }
.vp-lines li.done { color: var(--muted); }
.vp-lines li.now { color: var(--text); }
.vp-lines li.now i { width: 8px; height: 8px; margin: 5px 3px 0; background: var(--acc); border-radius: 50%; animation: vorec 1.2s ease-in-out infinite; }
.vp-note { margin: 4px 0; font-size: 13px; color: var(--muted); }
.vp-note .dots i { font-style: normal; opacity: .2; animation: aidot 1.2s infinite; }
.vp-note .dots i::before { content: '.'; }
.vp-note .dots i:nth-child(2) { animation-delay: .2s; }
.vp-note .dots i:nth-child(3) { animation-delay: .4s; }
.vp-foot { margin: 8px 0 0; font-size: 11.5px; color: var(--faint); }
@media (max-width: 699px) { #vo-panel { right: 12px; } .vo-pill { padding: 0 11px; } }
.modal.vodlg .dlg { padding: 0; overflow: hidden; border-radius: 18px; text-align: left; max-height: calc(100vh - 32px); }
.modal.vodlg.va .dlg { width: min(640px, calc(100vw - 24px)); }
.modal.vodlg.vb .dlg { width: min(900px, calc(100vw - 24px)); }
.vo-form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 34px); }
.vo-form h2 { margin: 0; font-size: 19px; font-weight: 600; }
.vo-head { padding: 22px 56px 14px 24px; }
.vo-head .dlg-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.vo-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.vo-form .cap { margin: 0 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.vo-voices.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vo-voice { position: relative; display: flex; align-items: center; gap: 10px; color: var(--text); border: 1px solid var(--rule2); cursor: pointer; transition: border-color .15s, background .15s; }
.vo-voice:hover { background: var(--raised); }
.vo-voice input { position: absolute; opacity: 0; pointer-events: none; }
.vo-voice > span { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.vo-voice b { font-size: 14px; font-weight: 600; }
.vo-voice small { font-size: 12px; color: var(--muted); }
.vo-voice > i { flex: none; display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306182c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vo-voice:has(input:checked) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.vo-voice:has(input:checked) > i { display: block; }
.vo-voice:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.vo-voice.card { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 124px; padding: 12px; border-radius: 14px; }
.vo-voice.card b { font-size: 15px; }
.vo-voice.card > i { position: absolute; right: 10px; top: 10px; }
.vo-voice.row { min-height: 52px; padding: 0 12px 0 10px; border-radius: 12px; }
.vo-voice.dev { border-style: dashed; }
.vo-listen { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--text); background: none; border: 1px solid var(--rule2); border-radius: 50%; cursor: pointer; }
.vo-listen span { display: none; }
.vo-listen:hover { border-color: var(--acc); color: var(--acc); }
.vo-voice:has(input:checked) .vo-listen, .vo-listen.on { color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
.vo-listen.wait { border-color: var(--acc); border-right-color: transparent; animation: vospin .8s linear infinite; }
@keyframes vospin { to { transform: rotate(360deg); } }
.vo-form .dlg-err:empty { display: none; }
.vo-form .dlg-err { margin: 0; }
.vo-form .exf .big.pri { min-width: 0; }
.vo-rm { color: #e58a7a; border-color: transparent; background: none; }
/* B: the voices at the left, the script at the right */
.vo-form.vb { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: min(620px, calc(100vh - 34px)); }
.vo-list { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 22px 12px 14px; overflow-y: auto; background: color-mix(in srgb, #000 22%, transparent); border-right: 1px solid var(--rule); }
.vo-list h2 { padding: 0 10px 6px; }
.vo-list .cap { margin-bottom: -4px; }
.vo-list .vo-voices { display: grid; gap: 2px; }
.vo-list .vo-voice.row { border-color: transparent; }
.vo-list .vo-voice.row:has(input:checked) { border-color: var(--acc); }
.vo-script { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px 0 0 26px; }
.vo-shead { display: flex; align-items: center; gap: 12px; padding: 0 60px 14px 0; }
.vo-shead > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vo-shead small { font-size: 12px; font-weight: 600; color: var(--muted); }
.vo-shead b { font-family: var(--serif, 'Instrument Serif', serif); font-size: 24px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vo-shead .big { flex: none; width: auto; height: 34px; margin: 0; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.vo-fetch { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.vo-fetch[hidden] { display: none; }
.vo-del { flex: none; padding: 4px 6px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.vo-del:hover { color: #e58a7a; }
.vo-re { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 26px 12px 0; }
.vo-re small { font-size: 12px; color: var(--muted); }
.vo-re .big { flex: none; width: auto; height: 34px; margin: 0; padding: 0 16px; font-size: 13px; border-radius: 9px; }
.vo-guide { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.vo-guide small { margin-left: 6px; font-weight: 400; }
.vo-guide textarea { width: 100%; min-height: 44px; max-height: 96px; box-sizing: border-box; padding: 9px 12px; resize: vertical; font: inherit; font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--rule2); border-radius: 10px; outline: 0; }
.vo-guide textarea:focus { border-color: color-mix(in srgb, var(--acc) 70%, transparent); }
.vo-script .vo-guide { margin: 0 26px 12px 0; }
.vo-body > .vo-guide { margin-top: 2px; }
.ex-span.vo-span { margin: 12px 0 4px; padding: 0; }
.vo-span .ex-span-h small { margin-left: 6px; font-weight: 400; }
.vo-script .ex-span.vo-span { margin: 0 26px 14px 0; width: auto; }
.vo-script ol { flex: 1; min-height: 0; margin: 0; padding: 0 26px 16px 0; overflow-y: auto; list-style: none; }
.vo-script li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.vo-script li > span { padding-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vo-script li.edge > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.vo-script li b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.vo-script li p { margin: 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 699px) {
  .vo-voices.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vo-form.vb { display: flex; height: auto; overflow-y: auto; }
  .vo-list { overflow: visible; border-right: 0; }
  .vo-script { padding: 16px 0 0 16px; } .vo-script ol { overflow: visible; padding-right: 16px; }
  .vo-script li { grid-template-columns: 1fr; gap: 2px; }
}
.vo-gpu { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.vo-gpu[hidden] { display: none; }
.vo-gpu > span { flex: 1; min-width: 0; }
.vo-gpu .big { flex: none; width: auto; height: 32px; margin: 0; padding: 0 12px; font-size: 12.5px; border-radius: 9px; white-space: nowrap; }
.vo-gpu:not(.on) .big { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.vo-gpu b { display: block; font-size: 13.5px; font-weight: 600; }
.vo-gpu small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vo-slow[hidden] { display: none; }
.vo-slow { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; color: var(--text); background: color-mix(in srgb, #e8a33c 16%, transparent); }
.vo-load { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--raised); font-size: 12.5px; color: var(--muted); }
.vo-load b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.vo-load i { grid-column: 1 / -1; height: 3px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.vo-load u { display: block; height: 100%; background: var(--acc); border-radius: 2px; transition: width .25s; }
.vo-load[hidden] { display: none; }


.vx-list { margin: 12px 0 0; padding-left: 18px; list-style: disc; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }

.vo-voice.off { opacity: .45; }

/* Export: the film as it will look on the left, the choices on the right (asked for, Nov 2026: a professional
   dialog, "like the Canva standard"). Every choice is a tile, a switch or a pair, and the preview follows it. */
#layer.exdlg .dlg { width: min(860px, 100%); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border-radius: 18px; }
.ex { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; max-height: calc(100vh - 34px); }
.ex-prev { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(120% 90% at 20% 0%, #151b2b 0%, #090c14 70%); border-right: 1px solid var(--rule); }
.ex-stage { flex: 1; display: grid; place-items: center; min-height: 380px; padding: 28px; }
.ex-meta { margin: 0; padding: 12px 20px 16px; font-size: 12.5px; color: rgba(255, 255, 255, .6); text-align: center; }
.ex-meta b { font-weight: 600; color: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; }
.ex-frame { position: relative; overflow: hidden; width: 416px; height: 234px; max-width: 100%; color: #f4efe6; background: linear-gradient(#06080f, #0c1120); border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); transition: width .32s cubic-bezier(.3, .7, .2, 1), height .32s cubic-bezier(.3, .7, .2, 1); }
.ex-frame[data-shape="tall"] { width: 189px; height: 336px; }
.ex-frame[data-shape="square"] { width: 290px; height: 290px; }
.ex-frame > * { position: absolute; transition: all .32s cubic-bezier(.3, .7, .2, 1); }
.ex-globe { left: -14%; top: 50%; width: 62%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #2b3040 0%, #151924 55%, #0b0e15 100%); box-shadow: inset 0 0 0 1px rgba(232, 176, 74, .5), 0 0 26px rgba(120, 160, 255, .16); }
.ex-globe u { position: absolute; left: 58%; top: 44%; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 28%, transparent); }
.ex-frame[data-scene="full"] .ex-globe { opacity: 0; scale: .8; }
.ex-frame:not([data-shape="wide"]) .ex-globe { left: 50%; top: -12%; width: 104%; translate: -50% 0; }
.ex-title { left: 0; right: 0; top: 5%; font: 400 10px/1 var(--serif); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 24%; opacity: .92; }
.ex-year { right: 5%; top: 4.5%; font: 400 17px/1 var(--serif); }
.ex-frame:not([data-shape="wide"]) .ex-title { padding: 0 8%; }
.ex-frame:not([data-shape="wide"]) .ex-year { right: 0; left: 0; top: 10%; text-align: center; }
.ex-card { right: 5%; top: 50%; width: 42%; translate: 0 -50%; display: grid; justify-items: center; gap: 4px; padding: 9px 8px; text-align: center; background: rgba(7, 9, 14, .78); border: 1px solid rgba(255, 255, 255, .09); border-radius: 6px; }
.ex-frame[data-scene="full"] .ex-card { right: 50%; translate: 50% -50%; width: 62%; background: transparent; border-color: transparent; }
.ex-frame:not([data-shape="wide"]) .ex-card { right: 50%; top: auto; bottom: 13%; translate: 50% 0; width: 84%; }
.ex-frame[data-shape="tall"][data-scene="full"] .ex-card, .ex-frame[data-shape="square"][data-scene="full"] .ex-card { bottom: 50%; translate: 50% 50%; }
.ex-card .ex-img { width: 100%; height: 54px; background: center / contain no-repeat; border-radius: 3px; }
.ex-card small { font-size: 6.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.ex-card b { max-width: 100%; font: 400 14px/1.1 var(--serif); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-card > i { width: 86%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.ex-card > i:last-child { width: 60%; }
.ex-line { left: 50%; bottom: 8%; translate: -50% 0; max-width: 86%; padding: 2px 6px; font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; background: rgba(0, 0, 0, .7); opacity: 0; }
.ex-frame.subs .ex-line { opacity: 1; }
.ex-bar { left: 5%; right: 5%; bottom: 4%; height: 1.5px; background: rgba(255, 255, 255, .16); }
.ex-bar u { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: var(--acc); }
.ex-side { text-align: left; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 22px 18px; overflow-y: auto; }
.ex-side h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.ex-side h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ex-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ex-scenes { display: grid; gap: 8px; }
.ex-tile { display: grid; justify-items: center; gap: 1px; padding: 10px 6px 9px; color: var(--text); text-align: center; background: none; border: 1px solid var(--rule2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ex-tile.row { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; }
.ex-tile.row svg { color: var(--muted); }
.ex-tile.row span { display: grid; gap: 1px; }
.ex-tile .ex-fr { display: grid; place-items: center; height: 36px; }
.ex-tile .ex-fr i { border: 1.5px solid var(--muted); border-radius: 3px; }
.ex-tile b { font-size: 13px; font-weight: 600; }
.ex-tile small { font-size: 11.5px; color: var(--muted); }
.ex-tile:hover { border-color: var(--muted); }
.ex-tile[aria-checked="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.ex-tile[aria-checked="true"] .ex-fr i { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 24%, transparent); }
.ex-tile[aria-checked="true"] svg { color: var(--acc); }
.ex-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 6px 0; border-top: 1px solid var(--rule); }
.ex-side h3 + .ex-opt { border-top: 0; }
.ex-opt > span { display: grid; gap: 1px; min-width: 0; }
.ex-opt b { font-size: 13.5px; font-weight: 500; }
.ex-opt small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.ex-tog { flex: none; position: relative; width: 38px; height: 22px; padding: 0; background: color-mix(in srgb, var(--text) 16%, transparent); border: 0; border-radius: 11px; cursor: pointer; transition: background .18s; }
.ex-tog i { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: translate .18s; }
.ex-tog[aria-checked="true"] { background: var(--acc); }
.ex-tog[aria-checked="true"] i { translate: 16px 0; }
.ex-tog:disabled { opacity: .4; cursor: default; }
.ex-q { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2px; padding: 2px; background: color-mix(in srgb, var(--text) 6%, transparent); border-radius: 9px; }
.ex-q button:disabled { opacity: .35; cursor: default; }
.ex-span { width: 100%; margin: 16px 0 18px; padding: 0 24px; box-sizing: border-box; text-align: left; }
.ex-span-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.ex-span-h b { font-weight: 600; }
.ex-span-h span { color: var(--text); font-variant-numeric: tabular-nums; }
.ex-yb { height: 30px; }
.ex-yb::before { background: var(--acc); }
.ex-hist { position: absolute; inset: 0 0 1px; display: flex; align-items: flex-end; gap: 2px; }
.ex-hist i { flex: 1; height: 62%; background: color-mix(in srgb, var(--acc) 55%, transparent); border-radius: 1px 1px 0 0; }
.ex-hist i.off { background: var(--rule2); opacity: .5; }
.ex-yb input::-webkit-slider-thumb { height: 36px; border-color: var(--acc); }
.ex-yb input::-moz-range-thumb { height: 32px; border-color: var(--acc); }
.ex-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.ex-ends span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-ends span:last-child { text-align: right; }
.ex-qnote { min-height: 16px; margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.ex-q button { height: 30px; padding: 0 12px; font-size: 12px; color: var(--muted); background: none; border: 0; border-radius: 7px; cursor: pointer; }
.ex-q button[aria-checked="true"] { font-weight: 600; color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule2); }

.exf { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: color-mix(in srgb, var(--text) 3%, transparent); border-top: 1px solid var(--rule); }
.ex-say { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.ex-say svg { flex: none; }
.ex-say span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.exf .big { flex: none; width: auto; height: 38px; margin: 0; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.exf .big.pri { min-width: 132px; color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
/* While it exports: a line along the foot's top edge, the status in place of the note, and the choices at rest. */
.ex-run { position: absolute; left: 0; right: 0; top: -1px; height: 2px; opacity: 0; }
.ex-run u { display: block; width: 0; height: 100%; background: var(--acc); box-shadow: 0 0 10px var(--acc); transition: width .25s linear; }
.ex.busy .ex-run { opacity: 1; }
.ex.busy .ex-say { color: var(--text); }
.ex.busy .ex-say svg { display: none; }
.ex.busy .ex-side { opacity: .45; pointer-events: none; }
.ex.busy .exf .big.pri { color: var(--text); background: transparent; border-color: var(--rule2); }
.ex :is(button, [role="radio"]):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 760px) {
  .ex { grid-template-columns: 1fr; overflow-y: auto; }
  .ex-prev { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ex-stage { min-height: 0; height: 200px; padding: 14px; }
  .ex-frame { zoom: .6; max-width: none; }
  .ex-meta { padding: 0 16px 10px; }
  .ex-side { overflow: visible; padding: 16px; }
  .exf { position: sticky; bottom: 0; flex-wrap: wrap; background: var(--surf); }
  .ex-say { flex-basis: 100%; }
  .exf .big { flex: 1; }
}
.vo-form .exf .big { gap: .3em; }

.ex-say.fast svg { color: var(--acc); }

.ex.asking [data-ex-cancel] { color: #e58a7a; border-color: color-mix(in srgb, #e58a7a 50%, transparent); }
.ex.asking .ex-say { color: var(--text); }

/* ---- Menus, design A "Glass list" (picked from three, Nov 2026): the account menu, the timeline's three dots,
   the settings and the menu by play are one sheet. Each opens with who or what it is about (.m-head), a row has
   an icon, an On / Off pair is a switch (.seg.sw: both buttons stay, the one that is on lets the press through
   to the other), what is left is a meter (.m-meter) and the one thing to press is lit (.m-pri, .m-out). ---- */
.pop.menu:is(.acct, .tl) .dlg, #more-menu, #vo-menu { padding: 8px; font-size: 13.5px; background: color-mix(in srgb, var(--surf) 94%, transparent); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.pop.menu.acct .dlg { width: 296px; }
.pop.menu.tl .dlg { width: 300px; }
#more-menu { width: 340px; }
#vo-menu { width: 312px; }
.m-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; }
.m-head > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-head b { font-size: 14.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-head small { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-head small:empty { display: none; }
.m-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; font-style: normal; font-weight: 600; color: var(--text); background: var(--raised); border: 1px solid var(--glass-edge); border-radius: 50%; }
.m-av.sq { width: 42px; height: 42px; font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--acc); border-radius: 10px; }
.m-chip { flex: none; padding: 3px 8px; font-size: 11px; font-style: normal; color: var(--muted); border: 1px solid var(--rule2); border-radius: 99px; white-space: nowrap; }
.m-chip.pro { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 60%, transparent); }
.m-meter { padding: 5px 10px 8px; }
.m-meter > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.m-meter small { font-size: 12.5px; color: var(--muted); }
.m-meter span { color: var(--text); font-variant-numeric: tabular-nums; }
.m-meter > i { display: block; height: 4px; margin-top: 6px; background: var(--raised); border-radius: 9px; overflow: hidden; }
.m-meter u { display: block; width: 0; height: 100%; background: var(--acc); border-radius: 9px; text-decoration: none; transition: width .3s; }
.m-meter.none span { color: #e58f8f; }
.m-pri, .m-out { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: calc(100% - 8px); box-sizing: border-box; height: 44px; margin: 6px 4px; padding: 0 14px; font: inherit; border-radius: 11px; cursor: pointer; }
.m-pri { color: var(--on-acc); background: var(--acc); border: 0; }
.m-pri b, .m-out b { font-size: 14px; font-weight: 600; }
.m-pri small { font-size: 12px; font-weight: 500; }
.m-pri:hover { filter: brightness(1.07); }
.m-out { color: var(--acc); background: transparent; border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); }
.m-out small { font-size: 12px; color: var(--muted); }
.m-out:hover { background: color-mix(in srgb, var(--acc) 10%, transparent); }
[data-theme="light"] .m-pri { color: #fff; }
.pop.menu.acct #me-plan { padding: 0; }
.pop.menu.acct #me-plan .nv small { margin-left: auto; color: var(--acc); }
.m-row { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 6px 0 10px; color: var(--text); }
.m-row > span { flex: 1; min-width: 0; }
.m-row > small { font-size: 12.5px; color: var(--faint); padding-right: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.m-row > svg, .pop.menu:is(.acct, .tl) .nv > svg, :is(#more-menu, #vo-menu) .ic { flex: none; width: 16px; height: 16px; color: var(--muted); }
.pop.menu:is(.acct, .tl) .nv { min-height: 38px; gap: 11px; padding: 0 10px; font-size: 13.5px; color: var(--text); }
.pop.menu:is(.acct, .tl) hr { margin: 6px 2px; }
.pop.menu.acct .seg { margin: 0; padding: 2px; border-radius: 9px; }
.pop.menu.acct .seg button { flex: none; height: 26px; padding: 0 10px; font-size: 12px; }
.pop.menu.acct .nv.out { color: var(--text); }
.pop.menu.tl .cap, :is(#more-menu, #vo-menu) .cap { margin: 0; padding: 9px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
:is(#more-menu, #vo-menu) .set { min-height: 38px; padding: 0 6px 0 10px; }
:is(#more-menu, #vo-menu) .set .lbl { display: flex; align-items: center; gap: 11px; }
:is(#more-menu, #vo-menu) .m-head { padding-bottom: 8px; }
/* A switch for an On / Off pair. */
:is(#more-menu, #vo-menu) .seg.sw { position: relative; display: block; justify-self: end; width: 34px; height: 20px; padding: 0; background: color-mix(in srgb, var(--text) 18%, transparent); border-radius: 99px; transition: background .15s; }
:is(#more-menu, #vo-menu) .seg.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--muted); border-radius: 50%; pointer-events: none; transition: left .15s, background .15s; }
:is(#more-menu, #vo-menu) .seg.sw:has(button[data-v="on"][aria-pressed="true"]) { background: var(--acc); }
:is(#more-menu, #vo-menu) .seg.sw:has(button[data-v="on"][aria-pressed="true"])::after { left: 17px; background: var(--on-acc); }
:is(#more-menu, #vo-menu) .seg.sw button { position: absolute; inset: -9px -6px; width: auto; height: auto; padding: 0; opacity: 0; cursor: pointer; }
:is(#more-menu, #vo-menu) .seg.sw button[aria-pressed="true"] { pointer-events: none; }
:is(#more-menu, #vo-menu) .seg.sw:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.m-pri b { color: inherit; }
:is(#more-menu, #vo-menu) .set:has(.sw) { grid-template-columns: minmax(0, 1fr) auto; padding-right: 10px; }
#more-menu { width: 358px; }
#vo-menu :is(#gen-row, #pick-row) { padding-right: 4px; }
/* Settings as drawn in design A: flat groups under small capitals (the groups no longer fold), and choices as
   quiet pairs at the right, the one that is on a shade lighter, not amber. */
#more-menu .grp { margin: 0; padding: 0; border: 0; }
#more-menu .grp[open] { padding-bottom: 0; }
#more-menu .grp summary { height: auto; padding: 9px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); pointer-events: none; cursor: default; }
#more-menu .grp summary .chev, #more-menu .grp summary small { display: none; }
#more-menu .m-head { padding-bottom: 2px; }
#more-menu hr, #more-menu .grp + hr { margin: 6px 2px; }
#more-menu #more-info { min-height: 38px; gap: 11px; color: var(--text); font-size: 13.5px; }
:is(#more-menu, #vo-menu) .set { grid-template-columns: minmax(0, 1fr) auto; padding-right: 8px; }
:is(#more-menu, #vo-menu) .seg:not(.sw) { display: flex; justify-self: end; gap: 0; padding: 2px; background: var(--raised); border: 0; border-radius: 9px; }
:is(#more-menu, #vo-menu) .seg:not(.sw) button { flex: none; height: 26px; padding: 0 9px; font-size: 12px; font-weight: 400; color: var(--muted); background: none; border: 0; border-radius: 7px; box-shadow: none; }
:is(#more-menu, #vo-menu) .seg:not(.sw) button[aria-pressed="true"] { font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--text) 16%, var(--raised)); box-shadow: none; }
.pop.menu.acct .seg { background: var(--raised); }
.pop.menu.acct .seg button[aria-checked="true"] { font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--text) 16%, var(--raised)); box-shadow: none; }
#vo-menu #pace-row { grid-template-columns: auto minmax(0, 1fr); }
#more-menu { width: 336px; }
:is(#more-menu, #vo-menu) .cap[hidden] { display: none; }
:is(#more-menu, #vo-menu) .set:has(.sw) { padding-right: 9px; }
#vo-menu :is(#gen-row, #pick-row) { padding-right: 0; }
/* The globe's View, Look and Detail as a grid of tiles, a symbol over its name (asked for, Nov 2026). */
#more-menu .set:has(.tiles) { grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 0; padding: 3px 8px 3px 10px; }
#more-menu .set:has(.tiles) .lbl { font-size: 12.5px; color: var(--muted); }
#more-menu .seg.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: stretch; gap: 6px; padding: 0; background: none; }
#more-menu .seg.tiles button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 54px; padding: 0 2px; font-size: 11.5px; color: var(--muted); background: var(--raised); border: 1px solid transparent; border-radius: 10px; }
#more-menu .seg.tiles button:hover { color: var(--text); }
#more-menu .seg.tiles button[aria-pressed="true"] { font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--acc) 12%, var(--raised)); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
#more-menu .seg.tiles button[aria-pressed="true"] svg { color: var(--acc); }
#more-menu details[hidden] { display: none; }
#more-menu .seg.tiles button { height: 44px; gap: 2px; font-size: 11px; border-radius: 9px; }
#more-menu .seg.tiles button svg { width: 16px; height: 16px; }
#more-menu .set:has(.tiles) { padding-top: 2px; padding-bottom: 2px; }
#more-menu .seg.tiles button[data-tip] { position: relative; }
#more-menu .seg.tiles button[data-tip]:is(:hover, :focus-visible)::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 2; width: 168px; transform: translateX(-50%); padding: 7px 9px; font-size: 11.5px; font-weight: 400; line-height: 1.4; white-space: normal; text-align: left; color: var(--text); background: var(--bg); border: 1px solid var(--glass-edge); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); pointer-events: none; }
/* Where the voice is made: Online or Offline, one switch at the top of the voice dialog. */
.vo-mode { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 10px 12px; background: color-mix(in srgb, var(--raised) 60%, transparent); border: 1px solid var(--rule2); border-radius: 12px; }
.vo-mode[hidden] { display: none; }
.vo-mode.off { border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.vo-mode-top { display: flex; align-items: center; gap: 12px; }
.vo-mode-top > span { flex: 1; min-width: 0; }
.vo-mode-top b { display: block; font-size: 13.5px; font-weight: 600; }
.vo-mode-top small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vo-mode .seg { flex: none; margin: 0; padding: 2px; background: var(--raised); border-radius: 9px; }
.vo-mode .seg button { flex: none; height: 28px; padding: 0 12px; font-size: 12.5px; cursor: pointer; }
.vo-mode .seg button[aria-checked="true"] { font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--text) 16%, var(--raised)); box-shadow: none; }
.vo-mode.off .seg button[aria-checked="true"] { color: var(--on-acc); background: var(--acc); }
.vo-mode .vo-gpu { border-color: var(--rule); }
.vo-list .vo-mode { margin: 0 10px 10px; }
.vo-list .vo-mode .vo-mode-top { flex-direction: column; align-items: stretch; gap: 8px; }
.vo-list .vo-mode .seg button { flex: 1; }
/* The pill beside the voice dialog's title: green, Online; grey, Offline. */
.vo-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: 8px; padding: 0 10px 0 8px; font: inherit; font-size: 12px; font-weight: 500; vertical-align: middle; color: var(--text); background: color-mix(in srgb, #57c08a 14%, transparent); border: 1px solid color-mix(in srgb, #57c08a 55%, transparent); border-radius: 99px; cursor: pointer; }
.vo-pill[hidden] { display: none; }
.vo-pill i { width: 8px; height: 8px; background: #57c08a; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, #57c08a 22%, transparent); }
.vo-pill.off { color: var(--muted); background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--rule2); }
.vo-pill.off i { background: var(--faint); box-shadow: none; }
.vo-pill:hover { filter: brightness(1.15); }
.vo-mode, .vo-mode.off { border-color: var(--rule2); }
.vo-mode-top .big { flex: none; width: auto; height: 32px; margin: 0; padding: 0 12px; font-size: 12.5px; border-radius: 9px; white-space: nowrap; color: var(--acc); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.vo-mode-top .big[hidden] { display: none; }

/* ---- The voice dialog, design A ("Two tabs", picked from three, Nov 2026). One column: the title, Online and
   Offline as tabs, the voice as one row (the list opens from Change), the script, the prompt, one lit button.
   On Offline, until the voice is downloaded, everything but the tabs and the download panel is grey. */
.modal.vodlg.vx .dlg { width: min(600px, calc(100vw - 24px)); }
.vo-form.vx { display: flex; flex-direction: column; height: auto; max-height: calc(100vh - 34px); }
.vo-top { display: flex; align-items: baseline; gap: 12px; padding: 20px 56px 0 22px; min-width: 0; }
.vo-top h2 { flex: none; }
.vo-top small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--muted); }
.vo-tabs { display: flex; gap: 4px; margin: 14px 22px 0; padding: 4px; background: color-mix(in srgb, #000 28%, transparent); border: 1px solid var(--rule); border-radius: 12px; }
.vo-tabs[hidden] { display: none; }
.vo-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 9px; cursor: pointer; }
.vo-tabs button i { width: 8px; height: 8px; border-radius: 50%; background: #57c08a; }
.vo-tabs button[data-mode="off"] i { background: var(--faint); }
.vo-tabs button[aria-selected="true"] { color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule2); }
.vo-main { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 22px 16px; display: flex; flex-direction: column; gap: 12px; }
.vo-main .dlg-sub { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.vo-cur { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: color-mix(in srgb, var(--raised) 55%, transparent); border: 1px solid var(--rule); border-radius: 12px; }
.vo-av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 600; background: var(--raised); border-radius: 50%; }
.vo-cur-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.vo-cur-tx b { font-size: 14px; font-weight: 600; }
.vo-cur-tx small { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vo-btn, .vo-listen.vo-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; width: auto; height: 34px; padding: 0 14px; font: inherit; font-size: 12.5px; color: var(--text); background: none; border: 1px solid var(--rule2); border-radius: 99px; cursor: pointer; }
.vo-listen.vo-btn span { display: inline; }
.vo-listen.vo-btn svg { width: 12px; height: 12px; }
.vo-btn:hover { border-color: var(--text); }
.vo-pickall[hidden] { display: none; }
.vo-pickall .vo-voices { display: grid; gap: 4px; }
.vo-pickall .vo-voice.row { min-height: 48px; }
.vo-shead.dimmable { padding: 4px 0 0; }
.vo-shead .cap { margin: 0; flex: 1; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.vo-lines { margin: 0; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; }
.vo-lines li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.vo-lines li > span { padding-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vo-lines li.edge > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.vo-lines li b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.vo-lines li p { margin: 0; font-size: 14px; line-height: 1.5; }
.vx .vo-mode { flex-direction: row; align-items: flex-start; gap: 14px; margin: 0; padding: 16px; border: 1px dashed var(--rule2); border-radius: 14px; }
.vx .vo-mode[hidden] { display: none; }
.vx .vo-mode > svg { flex: none; width: 28px; height: 28px; color: var(--muted); }
.vx .vo-mode.ready { padding: 10px 14px; border-style: solid; align-items: center; }
.vx .vo-mode.ready > svg { width: 20px; height: 20px; color: #57c08a; }
.vo-mode-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vo-mode-tx > b { font-size: 14.5px; font-weight: 600; }
.vo-mode-tx > small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.vo-mode-do { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.vo-mode-do[hidden] { display: none; }
.vo-mode-do .big { flex: none; width: auto; height: 36px; margin: 0; padding: 0 16px; font-size: 13px; color: var(--bg); background: var(--text); border-color: var(--text); border-radius: 10px; }
.vo-mode-do span { font-size: 12px; color: var(--faint); }
.vx .vo-mode .vo-load, .vx .vo-mode .vo-gpu { margin: 8px 0 0; }
.vo-form.vx.dim .dimmable { opacity: .35; filter: grayscale(1); pointer-events: none; }
.vo-form.vx .exf .big.pri:disabled { opacity: .45; }
@media (max-width: 699px) { .vo-lines li { grid-template-columns: 1fr; gap: 2px; } .vo-top { padding-left: 16px; } .vo-main { padding: 14px 16px; } }

.vo-form.vx [data-revoice][hidden] { display: none; }
.m-pri, .m-pri b, .m-pri small, .m-pri span { color: var(--on-acc); }
/* The voice dialog's order (asked for, Nov 2026): the prompt first, then the voice and the period as two small
   choices that open in place, then the script. */
.vx .vo-guide { gap: 8px; font-size: 13px; color: var(--text); }
.vx .vo-guide textarea { min-height: 78px; font-size: 14px; }
.vo-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vo-opt { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 6px; font: inherit; color: var(--text); text-align: left; background: color-mix(in srgb, var(--raised) 55%, transparent); border: 1px solid var(--rule2); border-radius: 12px; cursor: pointer; }
.vo-opt:hover { border-color: var(--text); }
.vo-opt .vo-av { width: 32px; height: 32px; font-size: 13px; }
.vo-opt-tx { display: flex; flex-direction: column; line-height: 1.2; }
.vo-opt-tx small { font-size: 11px; color: var(--faint); }
.vo-opt-tx b { font-size: 13.5px; font-weight: 600; }
.vo-caret { color: var(--muted); transition: transform .15s; }
.vo-opt[aria-expanded="true"] { border-color: var(--acc); }
.vo-opt[aria-expanded="true"] .vo-caret { transform: rotate(180deg); }
.vo-opts .vo-btn { margin-left: auto; }
.vo-said { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
.vo-said:empty { display: none; }
.vo-periodbox[hidden] { display: none; }
.vo-periodbox .ex-span.vo-span { margin: 0; }
.vo-periodbox .ex-span-h > b { display: none; }
/* Upgrade to Pro: a name and one quiet line under it, like the upgrade row of the big apps. */
.pop.menu.acct #me-plan .m-pri { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 1px; height: auto; padding: 8px 14px; font-size: 12px; text-align: left; border-radius: 11px; }
.pop.menu.acct #me-plan .m-pri b { grid-column: 1; margin: 0; color: var(--on-acc); font-size: 14px; }
.pop.menu.acct #me-plan .m-pri small { grid-column: 1; color: var(--on-acc); opacity: .75; font-weight: 400; }
.pop.menu.acct #me-plan .m-pri::after { content: "›"; grid-column: 2; grid-row: 1 / 3; font-size: 20px; color: var(--on-acc); }

/* Publish: a way back to the menu it came from, and a cross, on the title's row (asked for, Nov 2026). */
.pub-top { display: flex; align-items: center; gap: 6px; margin: -4px -6px 2px; }
.pub-top h2 { flex: 1; margin: 0; }
.pub-top .ibtn { width: 30px; height: 30px; flex: none; }
/* Full screen on a phone: the search and the menu button have gone, so the title of the view and the period move
   up into the room they leave, under the notch (asked for, Nov 2026). They step back down while the top peeks in. */
@media (max-width: 699px) {
  #road-views, #road-head { transition: top .3s; }
  body.fullscreen:not(.peek) #road-views { top: calc(14px + env(safe-area-inset-top)); }
  body.fullscreen:not(.peek):not(.multi) #road-head { top: calc(10px + env(safe-area-inset-top)); }
}
