/* ryft.dexlaboratory.com: DEXLab colours (Flight Deck tokens, _system/dexlab-design-system) with RYFT's typeface, JetBrains Mono
   (SIL OFL, served from /fonts). Dex, 2026-10-17: "stick to my branding while attaching RYFT's fonts ... their pink is eye-hurting". */
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/JetBrainsMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/JetBrainsMono-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ground: #0B0B16; --base: #121227; --raise: #1A1A33; --line: #262647; --line-hi: #34345e;
  --blue: #548CFF; --blue-2: #3A6FE6; --blue-deep: #07204D; --blue-soft: rgba(84, 140, 255, .14); --blue-glow: rgba(84, 140, 255, .45);
  --paper: #FAFCFF; --stone: #A29688; --ok: #34D99B; --caut: #F2B33D; --warn: #FF5C6E;
  --r: 14px; --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--paper); font: 15px/1.65 var(--mono); background-color: var(--ground);
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(84, 140, 255, .16), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(7, 32, 77, .55), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px; background-attachment: fixed;
}
a { color: var(--blue); }
::selection { background: var(--blue); color: #fff; }
button, .btn { font: inherit; color: var(--paper); background: var(--raise); border: 1px solid var(--line-hi); border-radius: 10px; padding: 10px 16px; cursor: pointer; min-height: 42px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
button:hover, .btn:hover { border-color: var(--blue); }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button.primary, .btn.primary { background: linear-gradient(180deg, var(--blue), var(--blue-2)); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 8px 24px -10px var(--blue-glow), 0 1px 0 rgba(255, 255, 255, .25) inset; }
button.primary:hover, .btn.primary:hover { box-shadow: 0 10px 30px -8px var(--blue-glow), 0 1px 0 rgba(255, 255, 255, .25) inset; transform: translateY(-1px); }
button:disabled { opacity: .6; cursor: default; transform: none; }
.btn-big { font-size: 17px; padding: 16px 26px; border-radius: 12px; }

/* Header */
.top, .pn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; max-width: 1040px; margin: 0 auto; }
.brands { display: flex; align-items: center; gap: 12px; }
.brands a { display: inline-flex; align-items: center; }
.brands a:hover { opacity: .85; }
.brands .ryft { height: 20px; }
.brands .x { color: var(--stone); }
.brands .dexfull { height: 32px; width: auto; }
.dex { height: 24px; width: auto; }
.langs { display: flex; gap: 4px; padding: 3px; background: rgba(18, 18, 39, .7); border: 1px solid var(--line); border-radius: 12px; }
.langs button { padding: 5px 10px; min-height: 32px; font-size: 13px; border: 0; background: transparent; color: var(--stone); }
.langs button[aria-pressed="true"] { background: var(--blue-soft); color: var(--paper); box-shadow: 0 0 0 1px var(--blue) inset; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }

/* Season 1 banner with the big countdown */
.season { position: relative; overflow: hidden; margin: 10px 0 8px; padding: 26px 20px 22px; border: 1px solid rgba(84, 140, 255, .55); border-radius: 20px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(84, 140, 255, .28), rgba(7, 32, 77, .55) 50%, var(--base)); box-shadow: 0 30px 80px -40px var(--blue-glow), var(--shadow); }
.season::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); background-size: 250% 100%; animation: sheen 6s linear infinite; pointer-events: none; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.season-tag { margin: 0 0 14px; font-weight: 700; font-size: clamp(13px, 2.2vw, 16px); letter-spacing: .14em; color: var(--paper); }
.season-tag::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); vertical-align: middle; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.timer { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); }
.timer div { min-width: clamp(64px, 16vw, 124px); padding: 12px 6px 10px; background: linear-gradient(180deg, rgba(11, 11, 22, .85), rgba(18, 18, 39, .85)); border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.timer b { display: block; font-size: clamp(38px, 9vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer span { display: block; margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--stone); }
.season-ends { margin: 16px 0 10px; font-size: 14px; color: var(--paper); }
.announce { display: inline-flex; font-weight: 700; padding: 9px 16px; border: 1px solid rgba(84, 140, 255, .6); border-radius: 999px; text-decoration: none; color: var(--paper); background: rgba(84, 140, 255, .12); }
.announce:hover { background: rgba(84, 140, 255, .25); }

/* Hero + step tiles */
.hero { padding: 30px 0 6px; }
h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.sub { color: #d6d9e8; max-width: 62ch; margin: 0 0 10px; }
.collab { margin: 0 0 20px; font-size: 12px; color: var(--stone); text-transform: uppercase; letter-spacing: .12em; }
.steps-nav { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; background: linear-gradient(180deg, var(--raise), var(--base)); border: 1px solid var(--line); border-radius: var(--r); color: var(--paper); text-decoration: none; font-size: 17px; font-weight: 700; line-height: 1.25; height: 100%; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.steps-nav a:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.steps-nav a b { font-size: 34px; line-height: 1; color: var(--blue); }
.steps-nav small { font-size: 12px; font-weight: 400; color: #bcd0ff; }
/* Step 3 = the AI planner: the one tile that moves (Dex: prominent, slightly pulsating, powered by our assistant). */
.ai-step a { border-color: rgba(84, 140, 255, .7); background: linear-gradient(160deg, rgba(84, 140, 255, .3), rgba(7, 32, 77, .6) 60%, var(--base)); animation: aipulse 2.6s ease-in-out infinite; }
@keyframes aipulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(84, 140, 255, 0), 0 0 16px rgba(84, 140, 255, .25); transform: scale(1); } 50% { box-shadow: 0 0 0 6px rgba(84, 140, 255, .1), 0 0 34px rgba(84, 140, 255, .55); transform: scale(1.025); } }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, var(--blue), var(--blue-2)); box-shadow: 0 0 18px var(--blue-glow); animation: aipulse 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ai-step a, .ai-badge, .season::after, .season-tag::before { animation: none; } }

/* Sections */
.step { padding: 34px 0 6px; border-top: 1px solid var(--line); margin-top: 30px; }
h2 { font-size: 21px; margin: 0 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
h2 > b:first-child { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); border: 1px solid rgba(84, 140, 255, .5); color: var(--blue); font-size: 17px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.lead { color: var(--stone); margin: 0 0 18px; max-width: 72ch; }

/* Tool cards with logo watermark */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool { position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; padding: 18px; background: linear-gradient(180deg, var(--raise), var(--base)); border-color: var(--line); border-radius: var(--r); height: 100%; min-height: 160px; box-shadow: var(--shadow); }
.tool b { font-size: 16px; position: relative; }
.tool-name { display: flex; align-items: center; gap: 9px; }
.tool-ic { width: 22px; height: 22px; flex: none; }
.tool-wm { position: absolute; right: -20px; bottom: -20px; width: 124px; height: 124px; opacity: .1; pointer-events: none; transition: opacity .2s, transform .3s; }
.tool:hover .tool-wm { opacity: .18; transform: rotate(-6deg); }
.tool[aria-checked="true"] { border-color: var(--blue); background: linear-gradient(180deg, rgba(84, 140, 255, .2), var(--base)); box-shadow: 0 0 0 1px var(--blue) inset, 0 16px 40px -20px var(--blue-glow); }
.tool[aria-checked="true"] .tool-wm { opacity: .26; }
.tool .need { position: relative; color: var(--stone); font-size: 12px; line-height: 1.55; }

/* Connection steps */
.how { padding-left: 0; margin: 0; display: grid; gap: 18px; }
.how li::marker { color: var(--blue); font-weight: 700; }
.how p { margin: 0 0 10px; }
.code { position: relative; background: #07070f; border: 1px solid var(--line); border-radius: 10px; }
.code pre { margin: 0; padding: 13px 90px 13px 14px; overflow-x: auto; font-size: 13px; color: #cfe0ff; white-space: pre; }
.code .copy { position: absolute; top: 7px; right: 7px; min-height: 32px; padding: 4px 12px; font-size: 12px; }
.path { position: relative; background: var(--base); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 8px; overflow: hidden; }
.path-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: relative; }
.pchip { padding: 6px 10px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); font-size: 13px; transition: background .25s, border-color .25s; white-space: nowrap; }
.pchip.on { background: var(--blue-soft); border-color: var(--blue); }
.pchip.done { color: var(--stone); }
.arrow { color: var(--stone); }
.ring { position: absolute; left: 14px; top: 14px; border: 3px solid var(--blue); border-radius: 10px; pointer-events: none; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s, height .45s; box-shadow: 0 0 18px var(--blue-glow); }
.shot { position: relative; margin: 0 0 10px; border: 1px solid var(--line-hi); border-radius: 12px; overflow: hidden; background: #000; max-width: 640px; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9); }
.shot img { display: block; width: 100%; height: auto; }
.shot-ring { position: absolute; border: 3px solid var(--caut); border-radius: 10px; margin: -5px 0 0 -5px; padding: 5px; box-sizing: content-box;
  box-shadow: 0 0 0 9999px rgba(11, 11, 22, .3), 0 0 18px rgba(242, 179, 61, .6); pointer-events: none;
  transition: left .5s cubic-bezier(.3, 1.3, .5, 1), top .5s cubic-bezier(.3, 1.3, .5, 1), width .5s, height .5s; }
@media (prefers-reduced-motion: reduce) { .ring, .pchip, .shot-ring { transition: none; } }

/* Step 2, box by box (2026-10-17): phase cards, typed values, buttons, keys, a terminal that types, fields typed on screenshots. */
.ospick { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 16px; padding: 3px 3px 3px 12px; background: rgba(18, 18, 39, .7); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--stone); }
.ospick span { margin-right: 6px; }
.ospick button { padding: 5px 12px; min-height: 32px; font-size: 13px; border: 0; background: transparent; color: var(--stone); }
.ospick button[aria-pressed="true"] { background: var(--blue-soft); color: var(--paper); box-shadow: 0 0 0 1px var(--blue) inset; }
.how { list-style: none; padding: 0; gap: 14px; }
.phase { padding: 18px 18px 8px; border-radius: var(--r); background: linear-gradient(180deg, var(--raise), var(--base)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phase h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 12px; }
.phase h3 b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; box-shadow: 0 0 14px var(--blue-glow); }
.phase > * + * { margin-top: 0; }
.rich { margin: 0 0 12px; line-height: 1.9; }
.rich .val { display: inline; min-height: 0; padding: 2px 8px; margin: 0 1px; border-radius: 7px; font-size: .95em; font-weight: 700; color: #dce8ff; background: var(--blue-soft); border: 1px solid rgba(84, 140, 255, .7); cursor: copy; vertical-align: baseline; }
.rich .val:hover { background: rgba(84, 140, 255, .3); transform: none; }
.rich .val.copied { color: var(--ok); border-color: var(--ok); }
.rich .ui { display: inline; padding: 2px 8px; margin: 0 1px; border-radius: 7px; font-size: .95em; font-weight: 700; color: #ffe0a3; background: rgba(242, 179, 61, .12); border: 1px solid rgba(242, 179, 61, .55); white-space: nowrap; }
kbd { display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 6px; font: 700 .85em/1.7 var(--mono); color: var(--paper); background: #24244a; border: 1px solid var(--line-hi); border-bottom-width: 3px; vertical-align: baseline; }
.code { margin: 0 0 12px; }
.code.msg pre { white-space: pre-wrap; overflow-wrap: anywhere; color: #e6ecff; }
.term { position: relative; margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: #05050c; border: 1px solid var(--line-hi); box-shadow: 0 16px 40px -26px rgba(0, 0, 0, .9); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #15152c; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--stone); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a62; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term-line { padding: 14px 90px 14px 14px; font-size: 13px; color: #e6ecff; overflow-wrap: anywhere; min-height: 50px; }
.term-ps { color: var(--ok); margin-right: 8px; user-select: none; }
.term-cmd { white-space: pre-wrap; }
.term-cur, .shot-cur { display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--paper); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-enter { margin-left: 10px; opacity: .25; transition: opacity .3s, box-shadow .3s, background .3s; font-size: 11px; }
.term-enter.on { opacity: 1; background: var(--blue); border-color: var(--blue-2); box-shadow: 0 0 14px var(--blue-glow); animation: press 2.4s ease-in-out infinite; }
@keyframes press { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(2px); } }
.term .copy { position: absolute; top: 40px; right: 8px; min-height: 30px; padding: 3px 12px; font-size: 12px; }
.shot { container-type: inline-size; }
.shot-type { position: absolute; display: flex; align-items: center; padding-left: 1.5%; overflow: hidden; white-space: nowrap; color: #ecebe8; font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; border-radius: 4px; pointer-events: none; }
.shot-type .shot-cur { width: 1px; background: #ecebe8; }
.final .note { font-size: 13px; margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .term-cur, .shot-cur, .term-enter.on { animation: none; } }

/* Step 3 launch card */
.launch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px; border-radius: 20px; border: 1px solid rgba(84, 140, 255, .55);
  background: radial-gradient(120% 160% at 0% 0%, rgba(84, 140, 255, .24), rgba(7, 32, 77, .5) 45%, var(--base)); box-shadow: 0 30px 70px -40px var(--blue-glow), var(--shadow); }
.launch-ava { width: 72px; height: auto; padding: 14px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line-hi); box-shadow: 0 0 30px var(--blue-glow); }
.launch-lead { margin: 0 0 12px; font-size: 16px; }
.launch-topics, .pn-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.launch-topics li, .pn-grid li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(11, 11, 22, .6); border: 1px solid var(--line); font-size: 12px; color: #d6d9e8; }
.launch-topics b, .pn-grid b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 11px; }
.launch-go { white-space: nowrap; animation: aipulse 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .launch-go { animation: none; } }

.final { padding-left: 24px; display: grid; gap: 8px; }
.final li::marker { color: var(--blue); font-weight: 700; }
.warn { color: var(--caut); }
.note { color: var(--stone); font-size: 13px; }
.err { color: var(--warn); margin: 12px 0 0; }

footer { max-width: 1040px; margin: 0 auto; padding: 22px 16px 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.by .dex { height: 20px; }
.privacy { margin-top: 12px; }
.privacy summary { cursor: pointer; }
.privacy ul { padding-left: 18px; }
[hidden] { display: none !important; }

/* ---------- Planner screen (plan.html) ---------- */
body.pn { min-height: 100vh; }
.pn-back { color: var(--stone); text-decoration: none; font-size: 13px; white-space: nowrap; }
.pn-back:hover { color: var(--paper); }
.pn-right { display: flex; align-items: center; gap: 12px; }
.pn-clock { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18, 18, 39, .7); white-space: nowrap; }
.pn-wrap { max-width: 1040px; margin: 0 auto; padding: 4px 16px 40px; display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
.pn-rail { position: sticky; top: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, var(--raise), var(--base)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pn-rail h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 0 0 12px; }
.pn-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pn-t { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.pn-t b { display: block; font-size: 13px; }
.pn-t span { display: block; font-size: 12px; color: var(--stone); overflow-wrap: anywhere; line-height: 1.45; }
.pn-tn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700; border: 1px solid var(--line-hi); color: var(--stone); }
.pn-t.done .pn-tn { background: rgba(52, 217, 155, .14); border-color: rgba(52, 217, 155, .6); color: var(--ok); }
.pn-t.done span { color: #cfd3e6; }
.pn-t.now { background: var(--blue-soft); }
.pn-t.now .pn-tn { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 14px var(--blue-glow); animation: live 1.6s ease-in-out infinite; }
.pn-t.next b { color: #9a9fbf; }
.pn-main { min-width: 0; padding: 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(26, 26, 51, .92), rgba(18, 18, 39, .92)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pn-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pn-head b { display: block; font-size: 15px; }
.pn-head span { display: block; font-size: 12px; color: var(--stone); }
.pn-ava, .pn-mava { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--base); border: 1px solid var(--line-hi); flex: none; }
.pn-dots { display: none; margin-left: auto; gap: 4px; }
.pn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-hi); }
.pn-dot.done { background: var(--ok); }
.pn-dot.now { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.pn-intro { text-align: center; padding: 18px 6px 8px; }
.pn-intro h1, .pn-done h1 { font-size: clamp(26px, 4vw, 38px); }
.pn-intro > p { color: #d6d9e8; max-width: 56ch; margin: 0 auto 18px; }
.pn-grid { justify-content: center; margin-bottom: 22px; }
.pn-start { font-size: 18px; padding: 16px 32px; border-radius: 14px; animation: aipulse 2.6s ease-in-out infinite; }
#ts-box { display: flex; justify-content: center; margin-bottom: 12px; }
#ts-box:empty { display: none; }
.pn-log { display: grid; gap: 14px; max-height: min(58vh, 620px); overflow-y: auto; padding: 4px 4px 8px; scroll-behavior: smooth; }
.pn-msg { display: flex; gap: 10px; align-items: flex-end; }
.pn-msg.me { justify-content: flex-end; }
.pn-mava { width: 32px; height: 32px; padding: 5px; border-radius: 10px; }
.pn-bub { max-width: 82%; padding: 12px 15px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pn-msg.guide .pn-bub { background: var(--raise); border: 1px solid var(--line-hi); border-bottom-left-radius: 4px; }
.pn-msg.guide.warn .pn-bub { background: rgba(242, 179, 61, .1); border-color: rgba(242, 179, 61, .55); color: #ffe7b8; }
.pn-closed { display: flex; justify-content: center; margin-top: 16px; }
.pn-msg.me .pn-bub { background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: #fff; border-bottom-right-radius: 4px; }
.pn-msg.typing .pn-bub { display: inline-flex; gap: 5px; padding: 15px 16px; }
.pn-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: dot 1.1s ease-in-out infinite; }
.pn-msg.typing i:nth-child(2) { animation-delay: .15s; } .pn-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.pop { animation: pop .28s ease-out; }
/* Slide only: text never depends on an animation finishing (paused tabs froze a fade at 0 opacity). */
@keyframes pop { from { transform: translateY(8px); } to { transform: none; } }
.pn-sugs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; }
.pn-sugs:empty { display: none; }
.pn-sug { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; text-align: left; padding: 14px; min-height: 92px; border-radius: 14px; background: linear-gradient(180deg, var(--raise), var(--base)); border-color: var(--line-hi); font-size: 13px; line-height: 1.45; }
.pn-sug b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 12px; flex: none; }
.pn-sug:hover { border-color: var(--blue); box-shadow: 0 12px 30px -16px var(--blue-glow); transform: translateY(-2px); }
.pn-hint { margin: 2px 0 10px; font-size: 12px; color: var(--stone); }
.pn-ask { display: grid; gap: 10px; margin-top: 8px; }
.pn-ask textarea { width: 100%; font: inherit; color: var(--paper); background: #07070f; border: 1px solid var(--line-hi); border-radius: 12px; padding: 12px; resize: vertical; }
.pn-ask textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.pn-askbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-prompt { background: #07070f; border: 1px solid var(--line-hi); border-radius: 14px; padding: 6px 18px; max-height: 56vh; overflow-y: auto; margin: 0 0 16px; }
.pn-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pn-sec:last-child { border-bottom: 0; }
.pn-sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: var(--blue); }
.pn-sec p { margin: 0 0 4px; font-size: 13px; color: #dfe6ff; overflow-wrap: anywhere; }
.pn-done pre { background: #07070f; border: 1px solid var(--line-hi); border-radius: 14px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 52vh; overflow-y: auto; color: #dfe6ff; }
.pn-big { font-size: 17px; padding: 14px 28px; }
/* Language switch while a chat is open: ask before restarting (Dex, 2026-10-17). */
.pn-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 12, .72); backdrop-filter: blur(4px); }
.pn-modal-box { max-width: 440px; width: 100%; padding: 22px; border-radius: 18px; background: linear-gradient(180deg, var(--raise), var(--base)); border: 1px solid var(--line-hi); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.pn-modal-box h3 { font-size: 18px; margin: 0 0 8px; }
.pn-modal-box p { color: #d6d9e8; margin: 0 0 18px; }
@media (prefers-reduced-motion: reduce) { .pn-start, .pn-t.now .pn-tn, .pn-msg.typing i, .pop { animation: none; } }

/* Grid children default to min-width:auto and grow to fit long code lines; keep them inside the phone width. */
.how > li, .tools > *, .final > li, .steps-nav > li, .launch > *, .phase > * { min-width: 0; }

@media (max-width: 860px) {
  .pn-wrap { grid-template-columns: 1fr; }
  .pn-rail { display: none; }
  .pn-dots { display: flex; }
  .launch { grid-template-columns: 1fr; text-align: left; }
  .launch-ava { width: 60px; }
}
@media (max-width: 720px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .steps-nav { grid-template-columns: 1fr 1fr; }
  .steps-nav a { font-size: 15px; padding: 14px 12px; }
  .steps-nav a b { font-size: 28px; }
  .brands .dexfull { height: 26px; }
  .pn-sugs { grid-template-columns: 1fr; }
  .pn-sug { min-height: 0; flex-direction: row; align-items: center; }
  .pn-bub { max-width: 90%; }
  .pn-clock { display: none; }
  .pn-hint { display: none !important; } /* number keys mean nothing on a phone */
}
@media (max-width: 480px) {
  .top, .pn-top { flex-wrap: wrap; row-gap: 10px; }
  .brands .ryft { height: 16px; }
  .brands .dexfull { height: 22px; }
  .langs button { padding: 4px 7px; min-height: 30px; font-size: 12px; }
  .timer div { min-width: 0; flex: 1; }
  .season { padding: 20px 12px; }
  .tools { grid-template-columns: 1fr; }
  .pn-main { padding: 14px; }
}
