/* πrt (the store's cockpit): Symphony's direction (light, airy, chat-first, goal cards, counter pill, ask bar at the bottom),
   PYRT's accent (ember) instead of anyone else's. */
:root {
  --bg: #f2f2f0; --rail: #f2f2f0; --surface: #ffffff; --surface2: #f7f7f5; --line: #e6e5e1; --line2: #d9d8d3;
  --ink: #141414; --text: #1c1c1c; --mute: #77756f; --faint: #a9a7a1;
  --accent: #ff5a1f; --accent-soft: #ffece4; --accent-line: #ffc7b0; --accent-ink: #b8370a;
  --ok: #1f8a4c; --ok-soft: #e4f4ea; --warn: #a86400; --warn-soft: #fff1d9; --bad: #c4302b; --bad-soft: #fde7e5;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 20px; --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 24px rgba(20, 20, 20, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sub { color: var(--mute); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--mute); }

.btn { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.btn:hover { border-color: var(--faint); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #333; }
.btn.lime { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); text-align: center; }
.btn.wide { display: block; width: 100%; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.icon { background: none; border: 0; border-radius: 10px; padding: 6px 9px; color: var(--mute); line-height: 1; }
.icon:hover:not(:disabled) { background: var(--surface2); color: var(--ink); }
.icon:disabled { opacity: .4; cursor: default; }
.only-mobile { display: none; }

/* login */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 12px; text-align: center; }
.login-card h1 { margin: 6px 0 0; font-size: 26px; }
.login-card input { border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; font: inherit; background: var(--surface2); }
.err { color: var(--bad); min-height: 1em; margin: 0; font-size: 13px; }
.logo { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-size: 15px; }
.logo.big { width: 52px; height: 52px; font-size: 26px; margin: 0 auto; }

/* shell */
.app { display: grid; grid-template-columns: 248px 1fr auto; height: 100vh; }
.rail { background: var(--rail); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.rail a, .nav-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; color: var(--text); }
.nav-row { padding: 0; }
.nav-row a { flex: 1; }
.rail a i { font-style: normal; width: 18px; text-align: center; color: var(--mute); }
.rail a:hover { background: #e9e9e6; }
.rail a.on { background: #e4e4e0; font-weight: 600; }
.rail-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }
.budget { background: var(--surface); border-radius: 18px; padding: 14px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.bar { height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.bell { margin-left: auto; color: var(--faint); font-size: 10px; padding: 6px; }
.bell.on { color: var(--accent); }

.main { position: relative; overflow: auto; min-width: 0; background: var(--bg); padding-bottom: 150px; }
.top { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 28px 8px; background: linear-gradient(var(--bg) 70%, transparent); }
.counter { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13px; }
.counter b { font-size: 18px; }
.ticks { color: var(--accent); letter-spacing: -1px; margin: 0 4px; font-weight: 700; }
.top-actions { grid-column: 3; justify-self: end; display: flex; gap: 10px; }
.waiting { background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; }
.view { padding: 8px 28px 40px; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }

/* ask bar (bottom, every page) */
.askbar, .askbox { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 14px 10px 18px; display: grid; gap: 6px; }
.askbar { position: fixed; bottom: 18px; left: calc(248px + (100vw - 248px - var(--chat-w, 0px)) / 2); transform: translateX(-50%); width: min(720px, calc(100vw - 248px - var(--chat-w, 0px) - 48px)); z-index: 4; }
.askbar textarea, .askbox textarea { border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; background: transparent; color: var(--text); min-height: 26px; max-height: 160px; }
.ask-tools { display: flex; align-items: center; gap: 6px; }
.grow { flex: 1; }
.speak { padding: 7px 16px; }
.mic.listening { color: var(--accent); background: var(--accent-soft); }

/* home */
.hero { text-align: center; padding: 26px 0 4px; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0 0 8px; font-weight: 600; letter-spacing: -.02em; }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.goal { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; border: 1px solid transparent; }
.goal:hover { border-color: var(--line2); }
.goal h3 { margin: 0; font-size: 16px; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.goal .tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.goal .tag.soon { background: var(--surface2); color: var(--mute); }
.goal .crewline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.dots { display: flex; }
.dots span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; margin-right: -6px; border: 2px solid var(--surface); }
.uses { font-size: 11px; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.uses-row { display: flex; gap: 6px; flex-wrap: wrap; }
.conn { font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--mute); }
.goal .go { justify-self: start; font-weight: 600; font-size: 14px; background: none; border: 0; padding: 4px 0; }
.goal .go:hover { color: var(--accent-ink); }
.goal.add { background: transparent; box-shadow: none; border: 1.5px dashed var(--line2); place-items: center; color: var(--mute); min-height: 180px; }

/* blocks */
h2 { font-size: 18px; margin: 0 0 12px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .sub { font-size: 12px; }
.kpi b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.kpi.alert b { color: var(--accent-ink); }
.cards { display: grid; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.card.askcard { border: 1.5px solid var(--accent-line); }
.card .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card .ev { font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: pre-wrap; word-break: break-word; background: var(--surface2); border-radius: 12px; padding: 8px 10px; }
.card .actions { display: flex; gap: 8px; justify-content: flex-end; }
.who { font-weight: 600; text-transform: capitalize; }
.act { font-family: var(--mono); font-size: 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; overflow-wrap: anywhere; }
.st { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 2px 10px; background: var(--surface2); color: var(--mute); text-transform: capitalize; }
.st.done { background: var(--ok-soft); color: var(--ok); }
.st.pending, .st.queued, .st.running { background: var(--warn-soft); color: var(--warn); }
.st.refused, .st.failed, .st.rejected { background: var(--bad-soft); color: var(--bad); }
.when { margin-left: auto; font-size: 12px; color: var(--faint); }
.empty { color: var(--mute); padding: 18px; border: 1.5px dashed var(--line2); border-radius: var(--r); text-align: center; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.grid2 > *, .cards, .card, .kpis, .goals { min-width: 0; }

/* crew */
.orbit { display: grid; place-items: center; padding: 10px 0 0; }
.orbit svg { width: 220px; height: 220px; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.crew .card.off { opacity: .5; }
.crew .card > .row:first-child { flex-wrap: nowrap; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.switch { margin-left: auto; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line2); border: 0; position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--ink); }
.switch.on::after { left: 19px; }
details summary { cursor: pointer; color: var(--mute); font-size: 13px; }
details pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: var(--mute); margin: 8px 0 0; background: var(--surface2); border-radius: 12px; padding: 10px; }
.tabs { display: flex; gap: 6px; }
.tabs button { background: none; border: 0; border-radius: 999px; padding: 7px 14px; color: var(--mute); font-weight: 500; }
.tabs button.on { background: var(--ink); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
select, .field { background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; font: inherit; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--mute); }

/* chats list */
.chatlist { display: grid; gap: 8px; }
.chatrow { background: var(--surface); border-radius: 16px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); cursor: pointer; }
.chatrow:hover { outline: 1px solid var(--line2); }

/* chat column */
.chat { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; width: 420px; height: 100vh; }
.chat[data-mode="closed"] { display: none; }
.chat[data-mode="full"] { position: fixed; inset: 0 0 0 248px; width: auto; z-index: 6; border: 0; background: var(--bg); }
.chat[data-mode="full"] .msgs, .chat[data-mode="full"] .askbox, .chat[data-mode="full"] .chips { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.chat[data-mode="full"] .askbox { margin-bottom: 18px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px 20px; }
.chat-head b { font-size: 15px; }
.msgs { flex: 1; overflow: auto; padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 92%; white-space: pre-wrap; word-break: break-word; }
.msg.owner { align-self: flex-end; background: var(--surface2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 18px; }
.chat[data-mode="full"] .msg.owner { background: var(--surface); }
.msg.captain { align-self: flex-start; }
.msg-tools { display: flex; gap: 2px; align-items: center; margin-top: 6px; }
.msg-tools .t { margin-left: auto; font-size: 11px; color: var(--faint); }
.thinking { color: var(--mute); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.thinking > span:last-child::after { content: "…"; animation: blink 1s steps(3) infinite; }
.think-anim { width: 36px; height: 36px; flex: none; display: inline-block; }
.think-anim.fallback { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .2; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 10px; }
.chips button { background: var(--surface); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 13px; font-size: 13px; }
.chips button:hover { border-color: var(--ink); }
.askbox { margin: 0 14px 14px; }
.app.chat-open { --chat-w: 420px; }
.app.chat-full .askbar { display: none; }

.toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 9; font-weight: 500; }

/* ads */
.ad-group { margin: 18px 0 10px; font-size: 15px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ad-card { align-content: start; }
.ad-media { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #0b0b0c; }
.ad-media.empty { display: grid; place-items: center; text-align: center; padding: 12px; color: var(--faint); font-size: 13px; background: var(--surface2); border: 1.5px dashed var(--line2); }
.card > img.ad-media { max-width: 240px; }
.ad-hook { font-size: 15px; line-height: 1.35; }
.st.generating { background: var(--warn-soft); color: var(--warn); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 8; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .rail.open { transform: none; }
  .only-mobile { display: inline-block; }
  .top { grid-template-columns: auto 1fr auto; padding: 12px 16px 6px; }
  .counter { grid-column: 2; justify-self: center; }
  .view { padding: 8px 16px 40px; }
  .grid2 { grid-template-columns: 1fr; }
  .askbar { left: 50%; width: calc(100vw - 24px); bottom: 12px; }
  .chat, .chat[data-mode="full"] { position: fixed; inset: 0; width: auto; z-index: 7; }
  .app.chat-open { --chat-w: 0px; }
}
.chat-head { gap: 10px; }
.chat-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tools { flex: none; display: flex; }
.app.chat-open .askbar { display: none; }

/* Captain replies: sections and inline approvals */
.msg.captain { white-space: normal; display: grid; gap: 10px; }
.msg.captain .para { white-space: pre-wrap; }
.callout { border-radius: 14px; padding: 10px 12px; white-space: pre-wrap; border: 1px solid var(--line); background: var(--surface2); }
.callout-label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.callout-label i { font-style: normal; }
.callout.warn { background: var(--warn-soft); border-color: #f3d29a; }
.callout.warn .callout-label { color: var(--warn); }
.callout.wait { background: var(--accent-soft); border-color: var(--accent-line); }
.callout.wait .callout-label, .wait-label { color: var(--accent-ink); }
.callout.done .callout-label { color: var(--ok); }
.callout.next .callout-label { color: var(--ink); }
.chat-approvals { display: grid; gap: 8px; border: 1.5px solid var(--accent-line); border-radius: 18px; padding: 12px; background: var(--surface); }
.mini-ask { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-ask:first-of-type { border-top: 0; padding-top: 0; }
.mini-ask .ev { font-family: var(--mono); font-size: 12px; color: var(--mute); background: var(--surface2); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; }
.mini-ask .actions { display: flex; gap: 8px; justify-content: flex-end; }
.mini-ask .row { display: flex; gap: 8px; align-items: center; }
.brand .name { font-size: 20px; letter-spacing: .02em; }
.login-card h1 { font-size: 34px; }
.ship { width: 34px; height: 34px; object-fit: contain; flex: none; }
.ship.big { width: 120px; height: 120px; margin: 0 auto -4px; }
.brain { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.brain .uses { margin-right: 2px; }
.conn.off { text-decoration: line-through; opacity: .55; }
/* crew portraits */
.has-face { background-size: 118% auto; background-position: 50% 30%; background-repeat: no-repeat; }
.dots span.has-face { width: 28px; height: 28px; }
.avatar.has-face { width: 52px; height: 52px; }
.msg-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: -10px; }
.chatrow .dots span.has-face, .goal .dots span.has-face { width: 30px; height: 30px; }

/* the voyage (web/voyage.js) */
.voyage { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 18px; margin-top: 8px; }
.voyage-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: s; }
.voyage-steps li { font-size: 12px; color: var(--faint); border-top: 3px solid var(--line); padding-top: 8px; display: flex; gap: 6px; align-items: baseline; }
.voyage-steps li span { color: var(--ok); font-weight: 700; }
.voyage-steps li.done { color: var(--mute); border-color: var(--ok); }
.voyage-steps li.current { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.voyage-set { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.voyage-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voyage-form label { display: grid; gap: 4px; font-size: 13px; color: var(--mute); }
.voyage-form .btn { grid-column: 1 / -1; justify-self: start; }
.chips-row { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--surface2); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.voyage-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }
.voyage-goal .big { font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.voyage-goal .bar { margin: 8px 0; height: 8px; }
.voyage-goal b.ok { color: var(--ok); } .voyage-goal b.warn { color: var(--warn); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; font-size: 13px; }
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.funnel-step { background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.funnel-step b { display: block; font-size: 22px; font-weight: 600; }
.funnel-step.hot { border-color: var(--accent-line); background: var(--accent-soft); }
.assumed { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 1px 5px; }
.voyage-focus { border: 1.5px solid var(--accent-line); background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; justify-items: start; }
.voyage-focus .row { display: flex; gap: 10px; align-items: center; }
.voyage-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.task { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; }
.task input { width: 16px; height: 16px; accent-color: var(--ink); }
@media (max-width: 900px) {
  .voyage-steps { grid-template-columns: repeat(3, 1fr); }
  .voyage-set, .voyage-grid, .voyage-next, .voyage-form { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr; }
}
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); display: inline-block; }
.env { padding: 8px 0; border-bottom: 1px solid var(--line); }
.env:last-child { border-bottom: 0; }
.env .bar { margin-top: 6px; }
.plan-split { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.plan-split > div { display: grid; background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.money-switch .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.money-switch.is-paused { border: 1.5px solid var(--warn); background: var(--warn-soft); }

/* fewer things on screen */
.engine summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; color: var(--mute); margin-top: 8px; }
.engine summary::-webkit-details-marker { display: none; }
.engine summary i { font-style: normal; width: 18px; text-align: center; }
.engine[open] summary { color: var(--text); }
.engine a { padding: 6px 12px 6px 42px !important; font-size: 14px; color: var(--mute) !important; }
.engine a.on { color: var(--text) !important; }
.calm { background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.money-line .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.money-line .row .sub { flex: 1; }
.warn-text { color: var(--warn) !important; }
.feed { gap: 0; padding: 6px 18px; }
.feed-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.voyage-next.one { grid-template-columns: 1fr; }
.voyage-goal .row { display: flex; }
.charter .row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.charter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.charter-grid label { display: grid; gap: 4px; }
.charter-in { display: flex; align-items: center; gap: 6px; }
.charter-in input { width: 100%; }
.charter-in i { font-style: normal; color: var(--mute); font-size: 13px; }
.charter .actions { display: flex; justify-content: flex-end; }

/* the living orbit */
.orbit svg { width: min(360px, 90vw); height: auto; overflow: visible; }
.ring-slow { transform-origin: 150px 150px; animation: spin 90s linear infinite; }
.ring-slow.rev { animation-direction: reverse; animation-duration: 140s; }
@keyframes spin { to { transform: rotate(360deg); } }
.beam { stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .12; transition: opacity .4s; }
.beam.on { opacity: .9; animation: flow .8s linear infinite; }
.beam.pulse { animation: beamflash 1.4s ease-out 1; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes beamflash { 0% { opacity: 1; stroke-width: 3; } 100% { opacity: .12; stroke-width: 1.5; } }
.node .halo { fill: none; stroke: var(--c); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.node.working .halo { animation: halo 1.6s ease-out infinite; }
.node.flash .halo { animation: halo .9s ease-out 2; }
@keyframes halo { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
.node.is-off { opacity: .35; }
.node-name { font: 600 10px var(--sans); fill: var(--text); }
.node-doing { font: 9px var(--mono); fill: var(--mute); }
.node.working .node-doing { fill: var(--accent-ink); }
.core-halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.core-halo.on { animation: halo 2.2s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ring-slow, .beam.on, .node.working .halo, .core-halo.on, .node.flash .halo, .beam.pulse { animation: none; }
  .beam.on { opacity: .9; }
}
.node.waiting .halo { opacity: .35; stroke-dasharray: 2 3; }
.node.waiting .node-doing { fill: var(--warn); }

/* --- moves: what only the owner can do, one value or one tap each ----------------------------------------- */
.moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.move { align-content: start; gap: 10px; }
.move b { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.move-act { display: flex; gap: 8px; align-items: center; }
.move-act .field { flex: 1; min-width: 0; border-radius: 999px; padding: 9px 16px; }
.move a.sub { text-decoration: underline; text-underline-offset: 3px; }
.conn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.conn-row .conn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-line); }
.conn-row .conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.conn-row .conn.on i { background: var(--ok); }
.conn-row .conn.bad i { background: var(--bad); }
.conn-row .conn:hover { border-color: var(--ink); }

/* Charter: one number per row, − / + saves it */
.charter-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.charter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { min-width: 76px; text-align: center; font-weight: 500; }
.stepper b i { font-style: normal; color: var(--mute); font-size: 12px; }
.stepper .btn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }

/* --- mono glass (2026-11-03, Yani's reference): black and white, frosted panels on a soft grey field,
   black pills for what's active, black feature cards, big light headings. Colour only for state. ------------ */
:root {
  --bg: #e7e7e5; --rail: transparent; --surface: rgba(255, 255, 255, .66); --surface2: rgba(255, 255, 255, .5);
  --glass: rgba(255, 255, 255, .58); --glass-line: rgba(255, 255, 255, .85);
  --line: rgba(20, 20, 20, .08); --line2: rgba(20, 20, 20, .16);
  --ink: #0d0d0d; --text: #151515; --mute: #6f6f6c; --faint: #a5a5a1;
  --accent: #0d0d0d; --accent-soft: rgba(13, 13, 13, .06); --accent-line: rgba(13, 13, 13, .18); --accent-ink: #0d0d0d;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --r: 28px; --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 18px 40px -18px rgba(0, 0, 0, .18);
}
body {
  background:
    radial-gradient(38vw 38vw at 72% 6%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(30vw 30vw at 8% 92%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(26vw 22vw at 58% 96%, rgba(190, 190, 186, .55), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.app { padding: 18px; gap: 18px; height: 100vh; }
.rail, .budget, .card, .kpi, .goal, .askbar, .askbox, .voyage, .calm, .login-card, .funnel-step {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
}
.rail { border-radius: 32px; padding: 22px 12px; box-shadow: var(--shadow); }
.rail a { padding: 11px 16px; border-radius: 999px; }
.rail a:hover { background: rgba(255, 255, 255, .7); }
.rail a.on { background: var(--ink); color: #fff; font-weight: 500; }
.rail a.on i { color: #fff; }
.main { background: transparent; border-radius: 32px; }
.top { background: transparent; }
.counter, .waiting { background: var(--ink); color: #fff; border: 0; }
.counter .ticks { color: rgba(255, 255, 255, .5); }
.logo { background: var(--ink); }
.bar { background: rgba(13, 13, 13, .08); }
.bar span { background: var(--ink); }
.btn { background: rgba(255, 255, 255, .7); border-color: var(--line2); }
.btn:hover { border-color: var(--ink); }
.btn.dark:hover { background: #2a2a2a; }
select, .field { background: rgba(255, 255, 255, .75); border-color: var(--line2); }
.page-head h1, .hero h1 { font-weight: 300; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.02; }
h2 { font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.kpi b, .voyage-goal .big { font-weight: 300; letter-spacing: -.02em; }
.calm { border-radius: 999px; padding: 12px 22px; }

/* the voyage is the feature card: black, white type, like the reference's dark panels */
.voyage { background: radial-gradient(120% 140% at 100% 0%, #2b2b2b 0%, #0b0b0b 55%), #0b0b0b; color: #f4f4f2; border-color: #0b0b0b; }
.voyage .sub, .voyage-steps li { color: rgba(255, 255, 255, .55); }
.voyage-steps li { border-top-color: rgba(255, 255, 255, .14); }
.voyage-steps li.done { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .7); }
.voyage-steps li.current { color: #fff; border-color: #fff; }
.voyage-steps li span { color: #fff; }
.voyage .bar { background: rgba(255, 255, 255, .14); }
.voyage .bar span { background: #fff; }
.voyage .voyage-focus { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.voyage .callout-label, .voyage .wait-label { color: #fff; }
.voyage .chip { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.voyage .ok { color: #fff; } .voyage .warn { color: #ffb38a; }
.voyage-goal .big .sub { font-size: 13px; letter-spacing: 0; }
.voyage-goal .big { line-height: 1.2; }
@media (max-width: 900px) {
  .app { padding: 0; gap: 0; }
  .main { border-radius: 0; }
  .rail { border-radius: 0 32px 32px 0; }
}
