/* Palit Preview: the online Palit on this computer. Dark glass and magenta, Geist and Geist Mono, from the Palit designs. */

@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #000000;
  --panel: #0B060B;
  --panel-2: #120912;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F8F3F8;
  --text-2: #E4DAE4;
  --muted: #B4A9B4;
  --muted-2: #9D929D;
  --magenta: #F100EB;
  --pink: #FF7AF6;
  --pink-2: #FFB3FA;
  --amber: #FFC27A;
  --white-btn: #FFF5FE;
  --ink: #1A0019;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --sans: 'Geist', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--pink); }
a:hover { color: var(--pink-2); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker.pink { color: var(--pink); }
.kicker.amber { color: var(--amber); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); display: inline-block; flex: none; }
.dot.amber { background: var(--amber); }
.dot.grey { background: #6E646E; }
.dot.blink { animation: hzBlink 1.4s ease-in-out infinite; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.app { display: flex; height: 100vh; min-height: 560px; }
.side { flex: 0 0 280px; display: flex; flex-direction: column; gap: 6px; padding: 24px 16px 16px; border-right: 1px solid rgba(255,255,255,.07); overflow-y: auto; scrollbar-width: none; }
.main { flex: 1 1 auto; min-width: 0; display: flex; padding: 24px clamp(16px, 2.2vw, 32px); }
.rail { flex: 0 0 300px; display: flex; flex-direction: column; gap: 16px; padding: 24px 32px 24px 0; overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar, .side::-webkit-scrollbar { display: none; }

/* ---------- sidebar ---------- */
.brand { display: flex; align-items: center; height: 36px; padding: 0 8px; margin-bottom: 18px; }
.brand img { height: 28px; width: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 12px; border: none; border-radius: 12px; background: transparent; color: var(--muted); font-size: 15px; text-align: left; transition: background .2s ease, color .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-item[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--text); }
.nav-item[aria-current="page"] .icon { color: var(--pink); }
.nav-item .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.side-label { margin: 22px 12px 8px; }
.pal-list { display: flex; flex-direction: column; gap: 4px; }
.pal-row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 10px; border-radius: 14px; border: 1px solid transparent; background: transparent; text-align: left; transition: background .2s ease; width: 100%; }
.pal-row:hover { background: rgba(255,255,255,.05); }
.pal-row[aria-current="true"] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.pal-row .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pal-row .name { font-size: 15px; font-weight: 500; }
.pal-row .st { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row .st.pink { color: var(--pink); }
.pal-row .st.amber { color: var(--amber); }
.pal-row .flag { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); flex: none; }
.side-status { margin-top: auto; text-align: left; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.03); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; transition: background .2s ease, border-color .2s ease; }
.side-status:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.side-status .t { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.side-status .s { font-size: 12.5px; color: var(--muted); }
.side-status.warn { border-color: rgba(255,194,122,.32); }

/* ---------- stage ---------- */
.stage { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.10); border-radius: 28px; background: #050205; overflow: hidden; }
.stage-head { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 18px 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(5,2,5,.85); }
.head-av { display: flex; flex: none; }
.head-who { min-width: 0; flex: 1; }
.head-name { font-size: 17px; font-weight: 500; }
.head-status { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pill { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s ease; white-space: nowrap; }
.pill:hover { background: rgba(255,255,255,.07); }
.pill .icon { width: 17px; height: 17px; color: var(--pink); }
.pill.stop { border-color: rgba(255,194,122,.45); color: var(--amber); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; border: none; background: transparent; color: var(--muted); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.12); color: var(--text); }
.seg button .icon { width: 16px; height: 16px; }
/* Manual / Auto approvals (Settings > Profile) and the "auto-approved" note on activity lines */
.apmode { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); gap: 2px; align-self: flex-start; }
.apmode button { height: 34px; padding: 0 18px; border-radius: 999px; border: none; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.apmode button[aria-pressed="true"] { background: rgba(255,255,255,.12); color: var(--text); }
.auto-note { font-size: 11px; line-height: 16px; padding: 0 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: var(--muted-2); font-weight: 400; white-space: nowrap; }
.confirm { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.confirm button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; }
.confirm button.yes { background: var(--white-btn); color: var(--ink); border: none; font-weight: 600; }
.stage-body { position: relative; flex: 1; min-height: 0; display: flex; }

/* ---------- voice ---------- */
@keyframes hzBreathe { 0%,100% { transform: translate(-50%,0) scale(1); } 50% { transform: translate(-50%,-12px) scale(1.03); } }
@keyframes hzFlicker { 0%,100% { transform: scaleY(.55); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes hzCore { 0%,100% { opacity: .7; transform: translate(-50%,0) scale(1); } 50% { opacity: 1; transform: translate(-50%,0) scale(1.12); } }
@keyframes hzBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes hzIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.voice { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.v-top { position: relative; z-index: 2; width: 100%; max-width: 640px; padding: 34px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; overflow-y: auto; scrollbar-width: none; max-height: calc(100% - 300px); }
.v-top::-webkit-scrollbar { display: none; }
.greet { margin: 2px 0 6px; font-size: 46px; line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
.v-state { display: inline-flex; align-items: center; gap: 8px; }
.v-heard { font-size: 15px; color: var(--muted); max-width: 560px; }
.v-heard:empty { display: none; }
.v-caption { font-size: 24px; line-height: 1.32; color: #D9CFDA; letter-spacing: -0.01em; width: 100%; max-width: 600px; text-wrap: balance; flex: none; max-height: 6.6em; overflow: hidden; }
.v-caption.reply { color: var(--text); font-size: 22px; text-wrap: pretty; }
/* Teleprompter: what Pal has said dims as it rises and fades out at the top; the sentence it's
   saying is at full strength near the bottom; what's still to come waits below, faint. */
.v-caption .cap-said { opacity: .45; transition: opacity .5s ease; }
.v-caption .cap-next { opacity: .3; }
.v-caption.scrolled { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 1.1em, #000 2.6em); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 1.1em, #000 2.6em); }
.v-cards { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
/* 2026-10-30-sendlink: link, photo and price cards in the chat (notice kind 'card'), and the newest
   one on the voice-call screen (#vShow). */
.v-show { width: 100%; max-width: 460px; margin-top: 10px; position: relative; z-index: 2; }
.v-show[hidden] { display: none; }
.msg.ccard-msg { display: flex; }
.ccard { box-sizing: border-box; max-width: 560px; width: 100%; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ccard.on-screen { background: rgba(14,7,16,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ccard.has-x { position: relative; } /* 2026-10-30-photoalwaysopen: the X ("Remove") in the top-right corner */
.ccard-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(14,7,16,.72); color: var(--text); font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .85; } /* photoalwaysopen */
.ccard-x:hover, .ccard-x:focus-visible { opacity: 1; background: rgba(255,107,122,.85); color: #fff; } /* photoalwaysopen */
.ccard-x:focus-visible { outline: 2px solid #FF7AF6; outline-offset: 2px; } /* photoalwaysopen */
.ccard.has-x.ccard-price .ccard-head, .ccard.has-x.ccard-link .ccard-linkrow { padding-right: 28px; } /* photoalwaysopen: text never under the X */
.ccard-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #FF7AF6; }
.ccard-title { font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ccard-btns a.btn { text-decoration: none; }
.ccard-image { max-width: 520px; padding: 8px; }
/* 2026-10-30-photoalwaysopen (Joshua: "show it to me in full pictures"): the whole photo, never cropped. */
.ccard-photo { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.06); }
.ccard.on-screen .ccard-photo { max-height: min(300px, 38vh); }
/* 2026-10-30-photocardclick: the whole photo card opens its page in Pal's cloud browser (no buttons). */
.ccard-click { cursor: pointer; transition: border-color .15s, background-color .15s; }
.ccard-click:hover { border-color: rgba(255,122,246,.45); background-color: rgba(255,255,255,.07); }
.ccard-click:focus-visible { outline: 2px solid #FF7AF6; outline-offset: 2px; }
.ccard-body { display: flex; flex-direction: column; gap: 4px; padding: 2px 4px; min-width: 0; }
.ccard-linkrow { display: flex; gap: 12px; align-items: center; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; min-width: 0; text-decoration: none; }
.ccard-head { display: flex; align-items: baseline; gap: 8px; }
.ccard-sym { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ccard-big { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.ccard-chg { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ccard-chg.up { color: #4ADE80; }
.ccard-chg.down { color: #FF6B7A; }
.v-stage { position: absolute; left: 0; right: 0; bottom: 0; height: 420px; pointer-events: none; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; transform-origin: 50% 100%; }
.s-listening .v-stage { transform: translateY(-22px) scale(1.04); }
.s-thinking .v-stage { transform: translateY(-12px) scale(1.02); filter: saturate(1.25); }
.s-speaking .v-stage { transform: translateY(-46px) scale(1.08); filter: brightness(1.12); }
.s-paused .v-stage { filter: saturate(.35) brightness(.6); }
.hz-glow { position: absolute; left: 50%; bottom: -460px; width: 1400px; height: 640px; transform: translate(-50%,0); border-radius: 50%; background: radial-gradient(ellipse at 50% 42%, #FFE6FD 0%, #FF8FF4 14%, #E01FD9 30%, #8C13B8 48%, rgba(48,10,92,.55) 62%, rgba(0,0,0,0) 73%); filter: blur(26px); animation: hzBreathe 6s ease-in-out infinite; }
.s-thinking .hz-glow { animation-duration: 1.6s; }
.hz-core { position: absolute; left: 50%; bottom: -70px; width: 440px; height: 220px; transform: translate(-50%,0); border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(255,240,254,.92) 0%, rgba(255,165,248,.55) 40%, rgba(224,31,217,0) 70%); filter: blur(16px); animation: hzCore 3.2s ease-in-out infinite; }
.s-speaking .hz-core { animation-duration: .8s; }
.s-listening .hz-core { animation-duration: 1.4s; }
/* --level (0 to 1, set on a call) swells and brightens the glow with the sound of the conversation. */
.hz-react { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scale(calc(1 + var(--level, 0) * .1)); }
.hz-boost { position: absolute; left: 50%; bottom: -96px; width: 640px; height: 300px; transform: translate(-50%,0); border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(255,246,254,.95) 0%, rgba(255,160,248,.6) 36%, rgba(224,31,217,0) 70%); filter: blur(22px); opacity: calc(var(--level, 0) * .9); pointer-events: none; }
.hz-streaks { position: absolute; left: 0; right: 0; bottom: 40px; height: 240px; opacity: .18; transition: opacity .9s ease; transform-origin: 50% 100%; transform: scaleY(calc(1 + var(--level, 0) * .45)); -webkit-mask-image: radial-gradient(ellipse 40% 100% at 50% 100%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 40% 100% at 50% 100%, #000 40%, transparent 75%); }
.s-listening .hz-streaks { opacity: .55; }
.s-speaking .hz-streaks { opacity: 1; }
.hz-streak { position: absolute; bottom: 0; width: 26px; border-radius: 40px; background: linear-gradient(to top, rgba(224,31,217,0) 0%, rgba(255,165,248,.6) 45%, rgba(255,220,252,0) 100%); filter: blur(6px); transform-origin: 50% 100%; animation: hzFlicker 1.6s ease-in-out infinite; }
.v-orb { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 2; pointer-events: auto; background: none; border: none; padding: 0; }
.v-orb .av { animation: avFloat 3.6s ease-in-out infinite; }
/* Three fixed slots so the big button stays centred: before a call Type · Call · Stop, on a call Mute · Hang up · Type. */
.v-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 28px; }
.ctl { grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ctl[hidden] { display: none; }
.ctl .round { margin: 12px 0; }
#ctlType, #ctlMute { grid-column: 1; justify-self: end; }
.ctl-main { grid-column: 2; }
#ctlStop { grid-column: 3; justify-self: start; }
.in-call #ctlType { grid-column: 3; justify-self: start; }
/* 2026-10-29-videobtn: Video sits in the right slot too, just after Type (on a call) or Stop (when shown). */
#ctlVideo { grid-column: 3; justify-self: start; }
.in-call #ctlVideo, .v-controls:has(#ctlStop:not([hidden])) #ctlVideo { margin-left: 80px; } /* 52px button + 28px gap */
/* The glow behind the buttons is bright, so each label sits on its own small dark pill. */
.ctl-label { font-size: 12px; line-height: 1; color: var(--text-2); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(10,3,10,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ctl-main .ctl-label { color: var(--text); }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(12,4,12,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .2s ease; }
.round:hover { background: rgba(40,18,40,.92); }
.round .icon { width: 21px; height: 21px; }
.round[aria-pressed="true"] { background: var(--white-btn); color: var(--ink); border-color: transparent; }
.mic { width: 76px; height: 76px; border-radius: 50%; border: none; background: var(--white-btn); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .25s ease, box-shadow .5s ease, background .25s ease; }
.mic:hover { transform: scale(1.05); }
.mic .icon { width: 26px; height: 26px; stroke-width: 1.9; transition: transform .3s ease; }
.mic.hangup { background: #E5484D; color: #fff; }
.mic.hangup .icon { transform: rotate(135deg); }
.s-listening .mic:not(.hangup), .s-speaking .mic:not(.hangup) { box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 0 50px rgba(255,170,250,.5); }
.in-call.s-listening .mic.hangup { box-shadow: 0 0 0 10px rgba(229,72,77,.16); }
.s-muted .v-stage { filter: saturate(.6) brightness(.75); }
/* In Voice, notices sit just above the orb, so they never cover it, the call buttons or the greeting. */
.toast.in-voice { position: absolute; top: auto; bottom: 290px; z-index: 6; background: #1C0E1C; }

/* ---------- chat ---------- */
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; background: radial-gradient(ellipse 60% 100% at 50% 140%, rgba(224,31,217,.35), rgba(0,0,0,0) 70%); }
.msgs { flex: 1; overflow-y: auto; padding: 22px clamp(16px, 4vw, 48px) 24px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.msgs-inner { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.empty { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; }
.empty .suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.empty .suggest button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,190,250,.24); background: rgba(255,255,255,.03); color: var(--text-2); font-size: 14px; }
.empty .suggest button:hover { background: rgba(255,255,255,.07); }
.msg { display: flex; flex-direction: column; gap: 6px; animation: hzIn .3s ease both; }
.msg.user { align-items: flex-end; }
.msg .ubub { max-width: 78%; padding: 11px 16px; border-radius: 20px 20px 6px 20px; background: rgba(241,0,235,.16); border: 1px solid rgba(255,122,246,.28); white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg .meta { font-size: 12px; color: var(--muted-2); display: flex; gap: 8px; align-items: center; }
.msg .meta button { border: none; background: none; color: var(--pink); padding: 0; font-size: 12px; }
.msg .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 78%; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: var(--text-2); }
.chip .icon { width: 14px; height: 14px; }
.chip button { border: none; background: none; padding: 0 0 0 2px; color: var(--muted); display: inline-flex; }
.msg.pal { align-items: stretch; }
.pal-head { display: flex; align-items: center; gap: 8px; }
.bubble { align-self: flex-start; max-width: 92%; padding: 11px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255,255,255,.08); font-size: 15px; line-height: 1.5; word-wrap: break-word; }
.bubble > :first-child { margin-top: 0; }
.bubble > :last-child { margin-bottom: 0; }
.bubble p { margin: 0 0 10px; }
.bubble ul, .bubble ol { margin: 0 0 10px; padding-left: 22px; }
.bubble li { margin: 3px 0; }
.bubble h4 { margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.bubble code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 6px; }
.bubble pre { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); overflow-x: auto; }
.bubble pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.5; }
.bubble blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid rgba(255,122,246,.5); color: var(--text-2); }
.bubble hr { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 12px 0; }
.bubble a { word-break: break-word; }
.md-table { overflow-x: auto; margin: 0 0 10px; }
.bubble table { border-collapse: collapse; font-size: 14px; }
.bubble th, .bubble td { border-bottom: 1px solid rgba(255,255,255,.1); padding: 6px 12px 6px 0; text-align: left; vertical-align: top; }
.bubble th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
/* 2026-10-30-newsthumbs: ```news link cards (app/markdown.js). The picture comes from our own
   /api/thumb; if it fails it's hidden and the letter tile under it shows. */
.md-news-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; max-width: 560px; }
.bubble a.md-news { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; word-break: normal; min-width: 0; }
.bubble a.md-news:hover, .bubble a.md-news:focus-visible { border-color: var(--line-2); background: rgba(255,255,255,.07); }
.md-news-pic { position: relative; flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, rgba(255,122,246,.22), rgba(255,194,122,.18)); }
.md-news-letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 22px; color: var(--text-2); }
.md-news-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.md-news-img.gone { display: none; }
.md-news-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.md-news-title { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.md-news-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .md-news-pic { width: 56px; height: 56px; } .md-news-title { font-size: 13.5px; } }
.cursor { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--pink); border-radius: 2px; animation: hzBlink 1s ease-in-out infinite; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.06); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-2); animation: bdDot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bdDot { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.acts { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.act { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); padding: 3px 0; }
.act .ic { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.act .ic .icon { width: 16px; height: 16px; }
.act .tx { min-width: 0; display: flex; flex-direction: column; }
.act .lb { display: flex; align-items: center; gap: 8px; }
.act .dt { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 560px; }
.act .dt.mono { font-family: var(--mono); font-size: 12px; }
.act .state { flex: none; display: inline-flex; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,122,246,.25); border-top-color: var(--pink); animation: isSpin .9s linear infinite; display: inline-block; }
@keyframes isSpin { to { transform: rotate(360deg); } }
.act .ok { color: #8FE3C4; }
.act .no { color: var(--amber); }
/* 2026-10-27-mainport (main build 2026-10-26-actfold): a run of steps folds into one summary line. */
.actfold { align-self: flex-start; max-width: 92%; }
.actsum { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px 5px 6px; margin: 2px 0; border-radius: 10px; font-size: 13.5px; color: var(--text-2); user-select: none; }
.actsum::-webkit-details-marker { display: none; }
.actsum:hover { background: rgba(255,255,255,.05); color: var(--text); }
.actsum:focus-visible { outline: 2px solid rgba(255,122,246,.6); outline-offset: 1px; }
.actsum .chev { width: 14px; height: 14px; flex: none; color: var(--muted); transition: transform .15s ease; }
.actfold[open] > .actsum .chev { transform: rotate(90deg); }
.actsum .ok, .actsum .no { width: 15px; height: 15px; flex: none; }
.actsum .ok { color: #8FE3C4; }
.actsum .no { color: var(--amber); }
.actsum .spin { flex: none; }
.actsum .sm-t { flex: none; white-space: nowrap; }
.actsum .sm-live { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.actfold > .acts { max-width: 100%; padding: 2px 0 4px 12px; margin-left: 12px; border-left: 1px solid rgba(255,255,255,.08); }
.act.team { padding: 6px 10px; margin: 4px 0; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.act.team .lb { font-weight: 500; color: var(--text); }
.act .sub { margin: 6px 0 2px 2px; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid rgba(255,255,255,.1); padding-left: 10px; }
.act .sub .act { font-size: 12.5px; }
.act details { margin-top: 6px; }
.act summary { cursor: pointer; color: var(--pink); font-size: 13px; list-style: none; }
.act summary::-webkit-details-marker { display: none; }
.act .found p { margin: 0 0 8px; }
.act .found > :last-child { margin-bottom: 0; }
.act .found ul, .act .found ol { margin: 0 0 8px; padding-left: 20px; }
.act .found { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: var(--text-2); max-height: 320px; overflow-y: auto; }
.time { font-size: 12px; color: var(--muted-2); padding-left: 4px; }

/* Needs your OK (chat, voice and rail) */
.okc { border: 1px solid rgba(255,107,245,.55); border-radius: 22px; background: linear-gradient(180deg, rgba(241,0,235,.13), rgba(241,0,235,.05)); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; animation: hzIn .3s ease both; }
.okc.done { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.okc .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.okc .who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.okc .title { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.okc .detail { margin: 0; font-family: var(--sans); font-size: 13.5px; color: #CFC4D0; white-space: pre-wrap; word-break: break-word; max-height: 7.6em; overflow: hidden; }
.okc .detail.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; background: rgba(0,0,0,.35); border-radius: 12px; padding: 10px 12px; }
.okc .detail.open { max-height: 420px; overflow-y: auto; }
.okc .more { align-self: flex-start; border: none; background: none; color: var(--pink); padding: 0; font-size: 13px; }
.okc .warn { font-size: 13.5px; color: var(--amber); }
.okc .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.btn { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); background: transparent; color: var(--text); font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s ease, background .2s ease; }
.btn:hover { background: rgba(255,255,255,.08); }
.btn.white { background: var(--white-btn); color: var(--ink); border: none; font-weight: 600; }
.btn.white:hover { transform: translateY(-1px); background: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.linkish { border: none; background: none; padding: 0 4px; color: var(--pink); font-size: 13.5px; }
.linkish:hover { color: var(--pink-2); }
.okc .outcome { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.okc .q { display: flex; flex-direction: column; gap: 8px; }
.okc .q + .q { margin-top: 6px; }
.okc .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 40px; padding: 6px 14px; border-radius: 14px; border: 1px solid rgba(255,190,250,.3); background: rgba(255,255,255,.04); text-align: left; display: flex; flex-direction: column; justify-content: center; }
.opt:hover { background: rgba(255,255,255,.08); }
.opt[aria-pressed="true"] { background: var(--white-btn); color: var(--ink); border-color: transparent; }
.opt small { font-size: 12px; color: var(--muted); }
.opt[aria-pressed="true"] small { color: #5D4A5C; }
.other { display: flex; gap: 8px; }
.other input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid rgba(255,190,250,.3); background: rgba(10,3,10,.55); padding: 0 16px; color: var(--text); }
.other input::placeholder { color: var(--muted-2); }

/* Notices: amber means "needs fixing" */
.notice { border: 1px solid rgba(255,194,122,.42); border-radius: 22px; background: rgba(255,194,122,.05); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; animation: hzIn .3s ease both; text-align: left; }
.notice .title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.notice .text { font-size: 14px; color: #CFC4D0; }
.notice .btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.notice.info { border: none; background: none; padding: 0; color: var(--muted-2); font-size: 13px; }
.notice.info .title { font-size: 13px; font-weight: 400; color: var(--muted-2); }
/* 2026-10-29-vcbuttons: the "Video call ended · 1:36" call-log line in Pal's chat */
.msg.calllog { display: flex; justify-content: center; }
.calllog-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted-2); font-size: 12.5px; }
.calllog-pill .icon { width: 13px; height: 13px; transform: rotate(135deg); color: #E5484D; }

/* Composer */
.composer { position: relative; z-index: 2; padding: 10px clamp(16px, 4vw, 48px) 22px; }
.composer-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; }
.compose-row { display: flex; gap: 10px; align-items: flex-end; }
.input-wrap { flex: 1; min-width: 0; border-radius: 27px; border: 1px solid rgba(255,190,250,.3); background: rgba(10,3,10,.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: flex; transition: box-shadow .2s ease; }
.input-wrap:focus-within { box-shadow: 0 0 0 2px var(--pink); }
.input-wrap textarea { flex: 1; min-width: 0; resize: none; border: none; background: transparent; padding: 15px 22px; min-height: 54px; max-height: 200px; font-size: 15px; line-height: 1.5; color: var(--text); outline: none; }
.input-wrap textarea::placeholder { color: var(--muted-2); }
.cbtn { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(10,3,10,.55); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .2s ease, transform .2s ease; }
.cbtn:hover { background: rgba(255,255,255,.08); }
.cbtn .icon { width: 21px; height: 21px; }
.cbtn.white { background: var(--white-btn); color: var(--ink); border: none; }
.cbtn.white:hover { transform: scale(1.05); background: #fff; }
.cbtn.send { background: rgba(255,255,255,.12); border: none; color: var(--muted); }
.cbtn.send.ready { background: var(--magenta); color: #fff; }
.cbtn.listening { box-shadow: 0 0 0 8px rgba(255,255,255,.12), 0 0 40px rgba(255,170,250,.5); }
.hint { font-size: 12px; color: var(--muted-2); text-align: center; }

/* ---------- rail ---------- */
.card { border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.02); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.rail .okc { padding: 18px; }
.rail .okc .title { font-size: 18px; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 14px; border: none; background: transparent; text-align: left; width: calc(100% + 16px); }
.team-row:hover { background: rgba(255,255,255,.05); }
.team-row .who { min-width: 0; display: flex; flex-direction: column; }
.team-row .name { font-size: 15px; font-weight: 500; }
.team-row .st { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row .st.pink { color: var(--pink); }
.team-row .st.amber { color: var(--amber); }
.plan-line { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; }
.plan-sub { font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--magenta), var(--pink)); }
.meter.amber i { background: var(--amber); }
.uses { display: flex; flex-direction: column; gap: 6px; }
.use { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.use .bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.use .bar i { display: block; height: 100%; background: rgba(255,122,246,.7); border-radius: 999px; }
.use .n { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.quiet { font-size: 13px; color: var(--muted); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); animation: hzFade .25s ease; }
@keyframes hzFade { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: fixed; z-index: 41; top: 16px; right: 16px; bottom: 16px; width: min(520px, calc(100vw - 32px)); border-radius: 26px; border: 1px solid rgba(255,190,250,.2); background: rgba(14,6,14,.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; animation: sheetIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; }
.sheet-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 22px 24px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.lead { margin: 0; font-size: 14px; color: var(--text-2); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; }
.step.bad { border-color: rgba(255,194,122,.4); background: rgba(255,194,122,.04); }
.step .mark { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--muted); font-size: 13px; font-family: var(--mono); }
.step.good .mark { background: rgba(92,230,184,.16); color: #8FE3C4; }
.step.bad .mark { background: rgba(255,194,122,.16); color: var(--amber); }
.step .mark .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.step .body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.step .t { font-size: 15px; font-weight: 500; }
.step .s { font-size: 13.5px; color: var(--muted); }
.step ol { margin: 2px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 8px 10px; color: var(--text); scrollbar-width: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; color: var(--text-2); }
.field input, .field select { height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.4); padding: 0 14px; color: var(--text); }
.field select option { background: #140a14; }
.field .s { font-size: 12.5px; color: var(--muted-2); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.switch input { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: rgba(255,255,255,.16); position: relative; cursor: pointer; transition: background .2s ease; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch input:checked { background: var(--magenta); }
.switch input:checked::after { transform: translateX(18px); }
.sect-title { margin: 6px 0 -6px; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist .h { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.hist .h .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist .h .r { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 112px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 16px; background: rgba(28,14,28,.97); border: 1px solid rgba(255,190,250,.25); box-shadow: 0 18px 50px rgba(0,0,0,.5); font-size: 14px; animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.offline { position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(40,22,8,.95); border: 1px solid rgba(255,194,122,.45); color: var(--amber); font-size: 13.5px; display: flex; gap: 8px; align-items: center; }

/* ---------- avatars ---------- */
@keyframes avBlink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.av-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: avBlink 5.5s ease-in-out infinite; }
@keyframes avFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes avLook { 0%,30%,100% { transform: translateX(0); } 40%,58% { transform: translateX(3px); } 68%,86% { transform: translateX(-3px); } }
.av-look { animation: avLook 7s ease-in-out infinite; }
@keyframes avHop { 0%,58%,100% { transform: translateY(0); } 66% { transform: translateY(-7px); } 74% { transform: translateY(0); } 80% { transform: translateY(-3px); } 86% { transform: translateY(0); } }
@keyframes avTalk { 0%,100% { transform: translateX(3px); } 50% { transform: translateX(-2px); } }
@keyframes avScan { 0%,100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes avBreath { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.03,.97); } }
.av { flex: none; overflow: visible; display: block; }
.av-all { transform-box: fill-box; transform-origin: 50% 100%; }
.av-gaze { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.av-lid { opacity: 0; transform: translateY(-9px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.av-happy, .av-closed { display: none; }
.av-st-working .av-lid { opacity: 1; transform: none; }
.av-st-working .av-eyes { animation-duration: 9s; }
.av-st-needs .av-gaze, .av-st-listening .av-gaze { transform: translateY(-4px); }
.av-st-needs .av-all { animation: avHop 2.4s ease-in-out infinite; }
.av-st-talking .av-gaze { animation: avTalk 2.6s ease-in-out infinite; }
.av-st-watching .av-gaze { animation: avScan 3.4s ease-in-out infinite; }
.av-st-done .av-open, .av-st-asleep .av-open { display: none; }
.av-st-done .av-happy, .av-st-asleep .av-closed { display: inline; }
.av-st-asleep .av-all { animation: avBreath 4s ease-in-out infinite; }

/* ---------- smaller screens ---------- */

/* ================================================================ Palit Preview additions */

/* ---------- buttons ---------- */
.btn.magenta { background: var(--magenta); color: #1A0019; border: none; font-weight: 600; }
.btn.magenta:hover { background: #FF2BF8; transform: translateY(-1px); }
.btn.big { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn.danger { border-color: rgba(255,120,120,.55); color: #FFB0B0; }
.btn.danger:hover { background: rgba(255,90,90,.12); }
.btn:disabled { opacity: .6; transform: none; }
.btn .icon { width: 16px; height: 16px; }
.btn { white-space: nowrap; }
.plan-card .row { flex-wrap: nowrap; }
.plan-card .row .btn { min-width: 0; padding: 0 10px; }
a.btn { text-decoration: none; }
.round.sm { width: 40px; height: 40px; }
.round.sm .icon { width: 18px; height: 18px; }
.linkish.arrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 0; }
.linkish.arrow .icon { width: 15px; height: 15px; }

/* ---------- full-page screens: sign-in and setup ---------- */
.screen { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 16px 48px; }
.ob-glow-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: 560px; pointer-events: none; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.ob-glow-wrap.quiet { transform: translateY(240px); opacity: .5; }
.ob-glow { position: absolute; left: 50%; bottom: -300px; width: 720px; height: 620px; transform: translate(-50%, 0); border-radius: 50%; background: radial-gradient(ellipse at 50% 42%, #FFE6FD 0%, #FF8FF4 16%, #E01FD9 32%, #8C13B8 50%, rgba(48,10,92,.55) 64%, rgba(0,0,0,0) 74%); filter: blur(22px); animation: obBreathe 6s ease-in-out infinite; }
.ob-core { position: absolute; left: 50%; bottom: -60px; width: 260px; height: 200px; transform: translate(-50%, 0); border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(255,240,254,.92) 0%, rgba(255,165,248,.55) 40%, rgba(224,31,217,0) 70%); filter: blur(14px); animation: obCore 3.2s ease-in-out infinite; }
@keyframes obBreathe { 0%, 100% { transform: translate(-50%, 0) scale(1); } 50% { transform: translate(-50%, -10px) scale(1.035); } }
@keyframes obCore { 0%, 100% { opacity: .7; transform: translate(-50%, 0) scale(1); } 50% { opacity: 1; transform: translate(-50%, 0) scale(1.12); } }
.ob-head { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 30px 32px; z-index: 2; }
.ob-head img { height: 28px; width: auto; }
.ob-step { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.ob-step .t { font-size: 16px; font-weight: 500; }
.ob-step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.ob-step .round { position: absolute; right: calc(100% + 120px); }
.who-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); font-size: 14.5px; }
.who-pill .init, .acct-pill .init, .acct-btn .init, .acct-menu .init { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(160deg, #5B3A86, #2A1747); color: #EDE4FF; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.ob-col { position: relative; z-index: 2; width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; animation: hzIn .4s ease both; }
.ob-col.wide { width: min(460px, 100%); }
.ob-logo { height: 34px; width: auto; margin-bottom: 8px; }
.ob-pals { height: 100px; display: flex; align-items: center; justify-content: center; }
.ob-av { margin-bottom: 4px; }
.ob-title { margin: 2px 0 0; font-size: clamp(28px, 4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ob-sub { margin: 0; font-size: 15.5px; color: var(--text-2); line-height: 1.5; max-width: 360px; }
.ob-fine { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ob-col .kicker { display: inline-flex; align-items: center; gap: 8px; }
.choice { width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,4,10,.65); cursor: default; }
.choice.on { border-color: rgba(255,107,245,.6); background: linear-gradient(180deg, rgba(241,0,235,.16), rgba(241,0,235,.06)); }
.choice > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.choice .t { font-size: 16px; font-weight: 500; }
.choice .s { font-size: 13.5px; color: var(--text-2); }
.choice .kicker { margin-top: 4px; }
.choice .radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); margin-top: 1px; position: relative; }
.choice.on .radio { border-color: var(--pink); }
.choice.on .radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--pink); }
.choice .play { align-self: center; }
/* Pick Pal's voice (HD voice, 2026-10-25): sign-up and Settings › Voice */
.voice-pick { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.voice-pick .choice { cursor: pointer; }
.voice-pick .choice:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.hd-status { display: flex; flex-direction: column; gap: 6px; padding: 2px 4px; }
.hd-status .s { font-size: 13px; color: var(--text-2); }
.hd-status progress { width: 100%; height: 6px; accent-color: var(--pink); }
/* "Setting up your Pal" (2026-10-26) */
.sp-bar { width: 100%; max-width: 360px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.sp-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--pink); transition: width .4s ease; }
.sp-bar.wait > i { width: 30%; animation: sp-wait 1.4s ease-in-out infinite; }
@keyframes sp-wait { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.sp-pct { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sp-parts { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .sp-bar.wait > i { animation: none; width: 100%; opacity: .5; } .sp-bar > i { transition: none; } }
/* Palit Browser, the optional extension step (2026-10-27-xbrowser) */
.xb-card { width: 100%; max-width: 440px; text-align: left; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.xb-head { display: flex; align-items: center; gap: 10px; }
.xb-title { font-size: 16px; font-weight: 600; }
.xb-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.xb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xb-how { font-size: 13px; line-height: 1.5; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.xb-how[hidden] { display: none; }
.xb-how p, .xb-how ol { margin: 0; }
.xb-how ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.xb-how code { font-family: var(--mono); font-size: 12px; background: rgba(0,0,0,.35); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.switchcard { align-items: center; cursor: pointer; }
.switchcard input { width: 46px; height: 28px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: rgba(255,255,255,.16); position: relative; cursor: pointer; transition: background .2s ease; flex: none; }
.switchcard input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switchcard input:checked { background: var(--magenta); }
.switchcard input:checked::after { transform: translateX(18px); }
.ob-line { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ob-line .linkish { text-decoration: underline; text-underline-offset: 3px; }
.onlist { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); }
.onlist .icon { width: 15px; height: 15px; }
.ob-lock { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; color: var(--text-2); }
.ob-lock .icon { color: var(--pink); width: 16px; height: 16px; margin-top: 2px; }
.ob-col > .btn.big { margin-top: 12px; }
.asks { width: 100%; border-radius: 22px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,4,10,.7); padding: 6px 18px; text-align: left; }
.ask { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.ask:last-child { border-bottom: none; }
.ask .icon { color: var(--pink); width: 17px; height: 17px; margin-top: 3px; }
.ask .t { font-size: 15px; font-weight: 500; }
.ask .s { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(40,10,40,.55); font-size: 12.5px; color: var(--text-2); }
.chip.on { border-color: rgba(255,107,245,.55); color: var(--pink-2); }
.signin-box { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; text-align: left; }
.acct-list { display: flex; flex-direction: column; gap: 8px; }
.acct-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(12,4,12,.75); text-align: left; transition: border-color .2s ease, background .2s ease; }
.acct-btn:hover { border-color: rgba(255,107,245,.5); background: rgba(40,8,40,.75); }
.acct-btn .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-btn .t { font-size: 15px; font-weight: 500; }
.acct-btn .s { font-size: 12.5px; color: var(--muted); }
.acct-btn .icon { color: var(--pink); }
.newrow { display: flex; gap: 10px; }
.newrow input { flex: 1; min-width: 0; height: 56px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.55); padding: 0 22px; color: var(--text); font-size: 15px; }
.newrow input:focus { border-color: rgba(255,107,245,.6); outline: none; }
/* 2026-10-29-emailsignin: Google only (Oct 29) */
.google-signin { display: flex; flex-direction: column; gap: 10px; }
.btn.google { width: 100%; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn.google:hover { background: #f2f2f2; }
.btn.google:disabled { opacity: .6; cursor: default; }
.btn.google svg { flex: none; }
.signin-note { margin: 0; font-size: 14px; color: var(--muted); }
.signin-note.err { color: #ff9a9a; }
.signin-test { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; }

/* ---------- sidebar ---------- */
.brand { gap: 10px; }
.preview-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-2); border: 1px solid rgba(255,107,245,.4); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.preview-chip.moved { color: var(--amber); border-color: rgba(255,194,122,.5); }
.nav-item.sim { margin-top: 6px; border: 1px dashed rgba(255,255,255,.14); }
.nav-item .tag, .sheet-head .tag { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet-head .tag { margin-left: 0; margin-right: auto; }
.pal-row .st.tone, .pal-row .st:not(.pink):not(.amber) { color: var(--muted); }
.team-card { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.2); background: transparent; transition: background .2s ease; }
.team-card:hover { background: rgba(255,255,255,.04); }
.team-card .faces { display: flex; margin-bottom: 4px; }
.team-card .faces .avwrap + .avwrap { margin-left: -7px; }
.team-card .t { font-size: 14.5px; color: var(--pink); font-weight: 500; }
.team-card .s { font-size: 12.5px; color: var(--muted); }
.side-status { margin-top: auto; }
.acct-pill { margin-top: 8px; display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02); font-size: 14px; text-align: left; }
.acct-pill:hover { background: rgba(255,255,255,.06); }
.acct-pill .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-pill .icon { width: 16px; height: 16px; color: var(--muted); }
.acct-menu { position: fixed; z-index: 45; left: 16px; bottom: 74px; width: 260px; border-radius: 20px; border: 1px solid rgba(255,190,250,.24); background: #120712; box-shadow: 0 24px 60px rgba(0,0,0,.75); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.acct-menu .mh { padding: 8px 10px 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.acct-menu .mh .t { font-size: 15px; font-weight: 500; }
.acct-menu .mh .s { font-size: 12.5px; color: var(--muted); }
.acct-menu > button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border-radius: 12px; border: none; background: transparent; text-align: left; font-size: 14px; }
.acct-menu > button:hover { background: rgba(255,255,255,.06); }
.acct-menu .init { width: 24px; height: 24px; font-size: 11px; }
.acct-menu .mnew { display: flex; gap: 6px; padding: 6px 4px; }
.acct-menu .mnew input { flex: 1; min-width: 0; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.4); padding: 0 10px; color: var(--text); font-size: 13.5px; }

/* ---------- the rail ---------- */
.plan-card.amber { border-color: rgba(255,194,122,.5); background: linear-gradient(180deg, rgba(255,194,122,.07), rgba(255,194,122,.02)); }
.plan-card .kicker { display: flex; align-items: center; gap: 8px; }
.big-pct { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.big-pct.sm { font-size: 24px; }
.meter.mk { position: relative; overflow: visible; height: 8px; }
.meter.mk i { position: relative; }
.meter .mark { position: absolute; top: -5px; width: 2px; height: 18px; border-radius: 2px; background: var(--amber); transform: translateX(-1px); }
.plan-card .row .btn { flex: 1; }
/* 2026-10-26-v1a: the rail's portfolio list (.pf, .pf-top, .mixbar) went with the rail; pages.css styles the Portfolio page. */

.notice.soft { border-color: rgba(255,107,245,.4); background: rgba(241,0,235,.05); }
.notice.past { border-color: rgba(255,255,255,.1); background: transparent; }
.notice.past .kicker, .notice.past .kicker .dot { color: var(--muted); background-color: transparent; }
.notice.past .kicker .dot { background: var(--muted-2); }
.notice.past .title { font-size: 15px; color: var(--text-2); }
.notice.past .text { color: var(--muted); }
.notice .kicker { display: flex; align-items: center; gap: 6px; }
.v-cards .notice { max-width: 560px; margin: 0 auto; width: 100%; }

/* ---------- settings ---------- */
.app.on-settings .main { padding-right: clamp(16px, 2.2vw, 32px); }
.settings { flex: 1; min-width: 0; overflow-y: auto; padding: 6px 6px 40px 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.set-head h1 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -0.025em; }
.set-head p { margin: 4px 0 22px; color: var(--muted); font-size: 15px; }
.set-grid { display: grid; grid-template-columns: minmax(240px, 284px) minmax(0, 1fr); gap: 26px; align-items: start; }
.set-left { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; }
.set-plan { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: left; padding: 16px; border-radius: 20px; border: 1px solid rgba(255,107,245,.4); background: radial-gradient(120% 120% at 30% 100%, rgba(224,31,217,.45), rgba(80,10,90,.25) 50%, rgba(20,4,20,.6)); }
.set-plan.amber { border-color: rgba(255,194,122,.5); background: radial-gradient(120% 120% at 30% 100%, rgba(255,160,80,.28), rgba(60,30,10,.25) 50%, rgba(20,10,4,.6)); }
.set-plan .t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.set-plan .s { font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.set-nav { display: flex; flex-direction: column; gap: 4px; }
.set-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; border: 1px solid transparent; background: transparent; text-align: left; transition: background .2s ease; }
.set-item:hover { background: rgba(255,255,255,.04); }
.set-item[aria-current="true"] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.set-item .si, .line .si { width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.set-item[aria-current="true"] .si { color: var(--pink); }
.set-item .st { display: flex; flex-direction: column; min-width: 0; }
.set-item .t { font-size: 15px; font-weight: 500; }
.set-item .s { font-size: 12.5px; color: var(--muted); }
.set-right { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sec-head h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.kicker.grp { margin: 8px 0 8px 2px; }
.box { border-radius: 20px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.015); padding: 4px 18px; display: flex; flex-direction: column; }
.box.pad { padding: 16px 18px; gap: 10px; }
.box > .field { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.box > .field:last-child { border-bottom: none; }
.line { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14.5px; }
.line:last-child { border-bottom: none; }
.line .lt { flex: 1; min-width: 0; }
.line .lv { color: var(--text-2); text-align: right; }
.line .lt2 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line .lt2 .t { font-size: 15px; font-weight: 500; }
.line .lt2 .s { font-size: 12.5px; color: var(--muted); }
.line.note { color: var(--text-2); font-size: 13.5px; min-height: 48px; }
.line.note .icon { color: var(--pink); width: 16px; height: 16px; }
.line.warn { color: var(--amber); font-size: 13.5px; }
.line.warn .icon { width: 16px; height: 16px; }
.line.use { align-items: flex-start; }
.line.use .lv { font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.ubar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 6px; }
.ubar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--magenta), var(--pink)); }
.soon { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hero { border-radius: 22px; border: 1px solid rgba(255,107,245,.35); background: radial-gradient(120% 140% at 70% 110%, rgba(224,31,217,.38), rgba(60,8,70,.25) 45%, rgba(10,3,10,.7) 75%); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.hero.amber { border-color: rgba(255,194,122,.45); background: radial-gradient(120% 140% at 70% 110%, rgba(255,150,60,.25), rgba(60,30,10,.2) 45%, rgba(10,6,3,.7) 75%); }
.hero-t { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.hero-s { font-size: 14px; color: var(--text-2); }
.hero .chips { justify-content: flex-start; }
.hero.big .hero-pct { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.hero-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.hero-row .warnat { color: var(--amber); }
.days { display: flex; flex-direction: column; gap: 6px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.bars i { flex: 1; min-width: 3px; border-radius: 3px 3px 1px 1px; background: #B300AE; }
.bars i.today { background: var(--pink-2); }
.bars i.later { background: rgba(255,255,255,.1); }
.bar-labels { position: relative; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); height: 16px; }
.bar-labels .today { position: absolute; transform: translateX(-50%); color: var(--pink-2); }
.segpick { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); align-self: flex-start; }
.segpick button { height: 36px; padding: 0 16px; border-radius: 999px; border: none; background: transparent; color: var(--text-2); font-size: 14px; }
.segpick button:hover { background: rgba(255,255,255,.06); }
.segpick button[aria-checked="true"] { background: rgba(255,255,255,.14); color: var(--text); font-weight: 500; }
.keyform { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
.keyform .lbl, .field .lbl { font-size: 13.5px; color: var(--text-2); }
.keyform input, .keyrow input { height: 52px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.45); padding: 0 16px; color: var(--text); font-family: var(--mono); font-size: 14px; }
.keyform input:focus, .keyrow input:focus { border-color: rgba(255,107,245,.6); outline: none; }
.keyform .line { border-bottom: none; padding-bottom: 0; }
.formmsg { font-size: 13.5px; color: var(--text-2); min-height: 1em; }
.formmsg:empty { display: none; }
.formmsg.bad { color: var(--amber); }
.keyrow { display: flex; gap: 8px; }
.keyrow input { flex: 1; min-width: 0; height: 40px; border-radius: 12px; font-size: 13px; }
.quiet.pad { padding: 4px 4px 0; }

/* ---------- dialogs ---------- */
.dialog { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); animation: hzFade .2s ease; }
.dialog-card { width: min(580px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 28px; border: 1px solid rgba(255,190,250,.22); background: rgba(14,6,14,.98); box-shadow: 0 30px 80px rgba(0,0,0,.6); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 4px; animation: hzIn .25s ease both; }
.dialog-card.small { width: min(440px, 100%); gap: 12px; }
.dialog-card h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.dhead { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dwho { flex: 1; min-width: 0; }
.brow { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bic { width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; color: var(--pink); }
.btx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bline { font-size: 15px; line-height: 1.45; }
.bline .up { color: var(--pink); }
.bline .down { color: var(--muted); }
.bnews { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.bnews a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.bnews a:hover { color: var(--pink-2); }
.bnews .src { color: var(--muted); font-size: 13px; }
.credit { font-size: 12.5px; color: var(--muted); padding: 14px 0 6px; }
.dnote { padding: 22px 0; font-size: 15px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.dialog-card .row { margin-top: 8px; }

/* 2026-10-26-v1a: the Simulator sheet went (the Preview has no Simulator now). */

@media (max-width: 1240px) { .rail { display: none; } .main { padding-right: 16px; } }
@media (max-width: 900px) {
  .app { flex-direction: column; height: auto; min-height: 100vh; }
  .side { flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 12px 16px; gap: 8px; }
  .brand { margin: 0 8px 0 0; }
  .nav { flex-direction: row; }
  .nav-item { height: 38px; }
  .side-label, .side-status { display: none; }
  .pal-list { flex-direction: row; overflow-x: auto; width: 100%; }
  .pal-row { width: auto; min-height: 44px; }
  .pal-row .st { display: none; }
  .main { padding: 12px 16px 16px; height: calc(100vh - 140px); min-height: 520px; }
  .head-actions .label-wide { display: none; }
  .greet { font-size: 34px; }
  .v-caption { max-height: 5.28em; } /* about 4 lines on a narrow window */
}
@media (max-width: 600px) { .stage-head { flex-wrap: wrap; } .head-actions { width: 100%; justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Preview: narrower windows ---------- */
@media (max-width: 1100px) { .set-grid { grid-template-columns: 1fr; } .set-left { position: static; } }
@media (max-width: 900px) {
  .team-card, .acct-pill, .nav-item .tag { display: none; }
  .settings { padding: 0 0 32px; }
  .set-head h1 { font-size: 32px; }
  .acct-menu { top: 64px; bottom: auto; }
}
@media (max-width: 600px) {
  .ob-head { padding: 18px 16px; }
  .ob-step .round { right: calc(100% + 24px); }
  .who-pill { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl .tr { grid-template-columns: 1fr 1fr !important; }
  .newrow { flex-direction: column; }
}

/* The Creative panel beside the chat (2026-10-27-palport, after v1.0A's dock): Pal's show_file. */
.split { flex: 0 0 12px; position: relative; cursor: col-resize; touch-action: none; outline: none; }
.split::after { content: ''; position: absolute; top: 18px; bottom: 18px; left: 5px; width: 2px; border-radius: 2px; background: transparent; transition: background .15s ease; }
.split:hover::after, .split:focus-visible::after, .app.resizing .split::after { background: rgba(255,122,246,.55); }
.app.resizing, .app.resizing * { cursor: col-resize !important; user-select: none; }
.app.resizing .pv-el { pointer-events: none; }
.dock { flex: 0 1 560px; min-width: 240px; display: flex; min-height: 0; }
.pv { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--panel-2); }
.pv-bar { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); }
.pv-t { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-b { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2, #E4DAE4); font-size: 13px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pv-b:hover { background: rgba(255,255,255,.07); }
.pv-b .icon, .pv-x .icon { width: 15px; height: 15px; }
.pv-x { width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pv-x:hover { background: rgba(255,255,255,.08); color: var(--text, #F8F3F8); }
.pv-view { flex: 1; min-height: 0; position: relative; background: #fff; }
.pv-el { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #fff; }
@media (max-width: 760px) {
  .split { display: none; }
  .dock:not([hidden]) { position: fixed; inset: 12px; z-index: 35; flex: none !important; }
  .pv-b span { display: none; }
}

/* 2026-10-30-mobilevoice: the browser refused to start Pal's voice; a tap here starts it. */
.tap-hear { position: fixed; z-index: 61; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255,190,250,.45); background: #1C0E1C; color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; }
.tap-hear[hidden] { display: none; }
