/* The site-wide assistant's box (assistant-cards.js). Built on the site's own tokens and pieces (base.css, shell.css,
   pieces.css: the glass, the white Sheen capsule for the one main action, the chips, the spec rows). Black, greys and
   white; green only for "done", red only for "stopped". Nothing moves unless it means something, and with less motion
   asked for nothing moves at all. Every class starts with "a-". */

.a-box {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-200);
  padding: var(--sp-300); border-radius: var(--r-3xl); background: var(--s1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
@media (max-width: 479px) { .a-box { padding: var(--sp-200); border-radius: var(--r-2xl); } }
.a-box > * { min-width: 0; }

/* ---- The conversation ---- */
.a-log { display: flex; flex-direction: column; gap: var(--sp-200); min-height: 120px; }
.a-log:empty::before { content: "Ask for a coin, a lock, a buy or a sale, or what you earned."; color: var(--faint); font-size: 14px; line-height: 20px; }
.a-new { animation: a-in 260ms var(--ease) both; }
@keyframes a-in { from { opacity: 0; transform: translateY(4px); } }

.a-msg { max-width: 92%; overflow-wrap: anywhere; }
.a-msg p { margin: 0; }
.a-me { align-self: flex-end; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--fg); color: var(--p-ink); font-weight: 500; }
.a-ai { align-self: flex-start; color: var(--soft); }
.a-model { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--s2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.a-tag { display: block; margin-bottom: var(--sp-50); font-size: 11px; }
.a-removed { align-self: flex-end; padding: 8px 12px; border-radius: 14px; color: var(--dim); font-size: 14px; line-height: 20px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 6px, rgba(255, 255, 255, 0.01) 6px 12px), var(--s2); }
.a-ask p { color: var(--fg); }
.a-ask .a-chips { margin-top: var(--sp-100); justify-content: flex-start; }
.a-old { opacity: 0.55; }

.a-busy { color: var(--dim); font-size: 14px; line-height: 20px; }
.a-busy::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: a-dots 1200ms steps(4, end) infinite; }
@keyframes a-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---- The plan: a short checklist in plain words ---- */
.a-plan { border-radius: var(--r-2xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.a-plan-sum { display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-200); cursor: pointer; font: 400 12px/16px var(--mono); text-transform: uppercase; color: var(--dim); list-style: none; }
.a-plan-sum::-webkit-details-marker { display: none; }
.a-plan-sum::after { content: "+"; margin-left: auto; font-size: 14px; color: var(--faint); }
.a-plan[open] .a-plan-sum::after { content: "\2212"; }
.a-plan-sum:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: var(--r-2xl); }
.a-steps { display: flex; flex-direction: column; gap: var(--sp-75); margin: 0; padding: 0 var(--sp-200) var(--sp-200); list-style: none; }
.a-step { display: flex; align-items: center; gap: var(--sp-100); font-size: 14px; line-height: 20px; color: var(--soft); }
.a-step-t { flex: 1; min-width: 0; }
.a-step-s { flex: none; font: 400 11px/16px var(--mono); text-transform: uppercase; color: var(--faint); }
.a-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--decor); }
.a-doing .a-dot, .a-working .a-dot { background: var(--fg); box-shadow: none; animation: a-pulse 1400ms ease-in-out infinite; }
@keyframes a-pulse { 50% { opacity: 0.35; } }
.a-waiting .a-dot { background: var(--fg); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
.a-step.a-done .a-dot, .a-state.a-done .a-dot { background: var(--safe); box-shadow: 0 0 0 4px rgba(51, 214, 74, 0.14); }
.a-step.a-skipped { color: var(--faint); }
.a-step.a-skipped .a-step-t { text-decoration: line-through; text-decoration-color: var(--decor); }
.a-step.a-failed .a-dot, .a-state.a-failed .a-dot { background: var(--help); box-shadow: 0 0 0 4px rgba(255, 69, 59, 0.14); }
.a-state.a-unknown .a-dot { box-shadow: inset 0 0 0 1.5px var(--fg); }

/* ---- Cards: one sheet of glass each ---- */
.a-card {
  display: flex; flex-direction: column; gap: var(--sp-200); padding: var(--sp-200) var(--sp-300) var(--sp-300); border-radius: var(--r-2xl);
  background: var(--s2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
@media (max-width: 479px) { .a-card { padding: var(--sp-200); } }
.a-card > * { min-width: 0; }
.a-confirm.a-is-waiting { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.a-is-replaced, .a-is-skipped { opacity: 0.6; }
.a-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-200); flex-wrap: wrap; }
.a-title { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.a-title:focus { outline: none; }
.a-title:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.a-kind { flex: none; font-size: 11px; }
.a-spec li { align-items: baseline; font-size: 14px; line-height: 20px; }
.a-spec li > span { flex: none; max-width: 45%; }
.a-spec b { min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.a-info .a-spec li > span { max-width: 62%; }
.a-line { font-size: 14px; line-height: 20px; }
.a-warn { color: var(--fg); font-weight: 500; font-size: 14px; line-height: 20px; }
.a-facts { display: flex; flex-direction: column; gap: var(--sp-75); margin: 0; padding: 0 0 0 var(--sp-200); color: var(--soft); font-size: 14px; line-height: 20px; }
.a-quote { margin: 0; padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.a-quote blockquote { margin: var(--sp-50) 0 0; color: var(--soft); font-size: 14px; line-height: 20px; white-space: pre-line; overflow-wrap: anywhere; }

/* The assistant's own note: set apart and labelled, never one of the card's facts */
.a-note { padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); border: 1px dashed var(--rule); }
.a-note p { margin-top: var(--sp-25); color: var(--soft); font-size: 14px; line-height: 20px; font-style: italic; overflow-wrap: anywhere; }

/* What is stored for good */
.a-stored { display: grid; gap: var(--sp-75); padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.a-stored-list { display: flex; flex-wrap: wrap; gap: var(--sp-50) var(--sp-200); margin: 0; padding: 0; list-style: none; color: var(--soft); font-size: 14px; line-height: 20px; }
.a-stored-list li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--soft); }

/* States */
.a-state { display: flex; align-items: flex-start; gap: var(--sp-100); padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); background: #0E0E0F; }
.a-state .a-dot { margin-top: 7px; }
.a-state > div { display: grid; gap: var(--sp-25); min-width: 0; font-size: 14px; line-height: 20px; }
.a-state b { font-weight: 600; }
.a-state.a-failed b { color: var(--help); }

/* Choices */
.a-chips { display: flex; flex-wrap: wrap; gap: var(--sp-75); }
.a-chips .p-chip { min-width: 44px; }
.a-chips .p-chip[disabled] { opacity: 0.55; cursor: default; filter: none; }
.a-chips .p-chip[aria-pressed="true"][disabled] { opacity: 1; }
.a-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-100); }
.a-tile {
  display: grid; place-items: center; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 16px -6px rgba(0, 0, 0, 0.8); transition: transform 160ms var(--p-ease), box-shadow 200ms ease;
}
.a-tile:hover:not([disabled]) { transform: translateY(-1px); }
.a-tile:active:not([disabled]) { transform: scale(0.96); }
.a-tile[aria-checked="true"] { box-shadow: 0 0 0 2px var(--s2), 0 0 0 4px var(--fg), 0 6px 16px -6px rgba(0, 0, 0, 0.8); }
.a-tile:focus-visible { outline: 2px solid var(--fg); outline-offset: 5px; border-radius: 50%; }
.a-tile[disabled] { cursor: default; }
.a-pic { display: block; border-radius: 50%; }
.a-tile-ai { position: relative; }
.a-logo { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.a-tile-mark { position: absolute; right: 2px; bottom: 2px; padding: 2px 5px; border-radius: 999px; font: 600 9px/12px var(--mono); letter-spacing: 0.06em; color: #0B0B0C; background: linear-gradient(180deg, #FFFFFF, #DADADF); }
.a-logos { display: grid; justify-items: start; gap: var(--sp-75); }
.a-logos .a-line { margin: 0; }
.a-pic-none { background: #0E0E0F; }
.a-sw { width: 34px; padding: 0; background: var(--sw, #333); }
.a-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--s2), 0 0 0 4px var(--fg); background: var(--sw, #333); }

/* The coin page: the Launch page's phone frame */
.a-site { display: grid; gap: var(--sp-300); }
@media (min-width: 720px) { .a-site { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.a-pickers { display: grid; gap: var(--sp-200); align-content: start; }
.a-pickset { display: grid; gap: var(--sp-75); }
.a-phone { justify-self: center; width: min(220px, 100%); padding: 8px; border-radius: 36px; background: linear-gradient(180deg, #2A2A2E, #141416); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 50px -24px rgba(0, 0, 0, 0.95); }
.a-phone-in { --k: 0.52; position: relative; overflow: hidden; aspect-ratio: 1 / 2; border-radius: 28px; background: #0B0B0C; }
.a-phone-in iframe { position: absolute; top: 0; left: 0; width: 390px; height: 780px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; background: #0B0B0C; }
.a-phone-sm { width: min(150px, 100%); padding: 6px; border-radius: 26px; }
.a-phone-sm .a-phone-in { border-radius: 20px; }
.a-launch { display: flex; align-items: center; justify-content: center; gap: var(--sp-300); flex-wrap: wrap; }

/* Actions: one white main action, glass for Edit, plain words for Skip */
.a-acts { gap: var(--sp-100); }
.a-acts .p-sheen { flex: 1 1 200px; }
.a-skip { min-height: 44px; padding: 0 var(--sp-200); border: 0; border-radius: var(--r-full); background: none; color: var(--dim); font: 500 15px/1 "Geist", system-ui, sans-serif; cursor: pointer; }
.a-skip:hover { color: var(--fg); }
.a-edit { height: 52px; padding: 0 22px; font-size: 15px; }

/* The edit form: the Launch page's and the vault's fields */
.a-edit-form { display: grid; gap: var(--sp-200); padding-top: var(--sp-100); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.a-field { display: grid; gap: var(--sp-75); }
.a-input { display: flex; align-items: center; min-height: 52px; border-radius: var(--r-xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 2px 8px rgba(0, 0, 0, 0.6); }
.a-input:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.6); }
.a-input input, .a-input textarea { flex: 1; width: 100%; min-width: 0; padding: 14px var(--sp-200); border: 0; background: none; outline: none; color: var(--fg); font: 500 16px/22px "Geist", system-ui, sans-serif; resize: vertical; }
.a-input textarea { min-height: 88px; }
.a-input:has(:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }
.a-say { min-height: 0; font-size: 14px; line-height: 20px; color: var(--soft); }
.a-say.bad { color: var(--help); }

/* ---- The composer ---- */
.a-compose { display: flex; align-items: flex-end; gap: var(--sp-100); padding: 6px; border-radius: 28px; background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 2px 8px rgba(0, 0, 0, 0.6); }
.a-compose:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 2px 8px rgba(0, 0, 0, 0.6); }
.a-in { flex: 1; min-width: 0; min-height: 52px; max-height: 160px; padding: 14px 4px 14px 16px; border: 0; background: none; outline: none; resize: none; color: var(--fg); font: 400 16px/24px "Geist", system-ui, sans-serif; }
.a-in::placeholder { color: var(--decor); }
.a-compose:has(.a-in:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }
.a-send { flex: none; height: 52px; }

/* ---- On a real page (assistant-page.js): one calm control in the page's own column, under its heading. It opens in
   the flow of the page, so it never covers the page's own controls, at any width. ---- */
.a-dock { display: grid; gap: var(--sp-200); }
.a-dock-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-100) var(--sp-200); }
.a-toggle { gap: var(--sp-100); }
.a-toggle-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.a-toggle[aria-expanded="true"] .a-toggle-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--decor); }
.a-toggle:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.a-dock-hint { color: var(--faint); font: 400 12px/16px var(--mono); text-transform: uppercase; }
.a-panel { display: grid; gap: var(--sp-200); }
.a-panel[hidden] { display: none; }
.a-about { display: grid; gap: var(--sp-25); padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.a-about p { color: var(--soft); font-size: 14px; line-height: 20px; }
.a-panel-foot { display: flex; justify-content: flex-end; gap: var(--sp-50); }
.a-steps-note { display: grid; gap: var(--sp-25); padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-size: 14px; line-height: 20px; }
.a-steps-note p { color: var(--soft); }
.a-notice { color: var(--fg); }
.a-launch img.a-pic { width: 72px; height: 72px; }

@media (prefers-reduced-motion: reduce) {
  .a-new, .a-doing .a-dot, .a-working .a-dot, .a-busy::after { animation: none; }
  .a-tile, .a-chips .p-chip { transition: none; }
}
@media (forced-colors: active) {
  .a-card, .a-box, .a-compose, .a-plan, .a-note, .a-stored, .a-state, .a-about, .a-steps-note { border: 1px solid CanvasText; }
  .a-dot { forced-color-adjust: none; }
}

/* The coin writer (2026-12-01): the writing line with Stop, and the coin card's talk (the model's words, its question,
   suggestions, the free line). */
.a-writing { align-items: center; }
.a-writing > div { flex: 1; }
.a-writing[hidden] { display: none; }
.a-stop { flex: none; }
.a-talk { display: grid; gap: var(--sp-100); }
.a-talk .a-q { font-size: 15px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.a-change { display: flex; gap: var(--sp-100); align-items: center; }
.a-change .a-input { flex: 1; min-width: 0; }
.a-change input { width: 100%; }

/* The colour buttons of the coin card show their palette (the chip's own glass background was painted over it). */
.a-chips .p-chip.a-sw, .a-chips .p-chip.a-sw.mo-chip, .a-chips .p-chip.a-sw[aria-pressed="true"] { background: var(--sw, #333) !important; }
.a-chips .p-chip.a-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--s2), 0 0 0 4px var(--fg) !important; }
