/* shell.css - AiAD STUDIO IN THE SHOWROOM'S LOOK (11 Oct 2026, his go of 02:50: "THIS IS THE CHOSEN LOOK OF AIAD STUDIO -
 * THE SOFTWARE AND THE SHOWROOM", "continue with the same design system, make all the icons and the tools ... match this style").
 *
 * A MOUNT, NOT A REWRITE: the Studio's own elements (header, #tabs, #ribbon, .grp, .tool, #tree, #part, #term, #log, #prompt, #hud,
 * #selbar) are dressed in the kit's values (ak-tokens.css, kit.css); shell.js adds what the page lacks (the sprite's icons, the
 * groups' names, the doors, the terminal's header, the view cube). Every hook app.js and the acceptance set use stays as it was:
 * #tabs button[data-tab] with .on, #ribbon .tool[data-tool], the ids. Loaded after the page's own <style>, so equal weight wins here.
 * Values only from the kit: one face (mono), its sizes, its colours by job (ice = chosen, gold = the mark, an accent, a selection). */

body { background: var(--ak-body); background-attachment: fixed; color: var(--ak-ink); font-family: var(--ak-font); }

/* ---- the top bar: the mark, the doors ---- */
header { background: var(--ak-panel); border-bottom: 1px solid var(--ak-hair); backdrop-filter: blur(var(--ak-blur)); }
.brand { align-items: baseline; padding: 10px var(--ak-edge) 2px; gap: 0; }
.brand h1 { margin: 0; font-size: inherit; }
.brand b { font: 700 var(--ak-t-text)/1.2 var(--ak-font); letter-spacing: var(--ak-ls-label); color: #fff; }
.brand b span { color: #fff; }
.brand .ak-aiad { color: var(--ak-gold); }
.brand small { margin-left: 14px; color: var(--ak-ink3); font-size: var(--ak-t-small); letter-spacing: var(--ak-ls-count); }
.brand .ak-doors { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.brand .ak-door { margin-left: 0; font-family: var(--ak-font); }

/* ---- the ribbon: tabs, then groups with their names under them ---- */
.tabs { gap: 2px; padding: 4px 14px 0; border-bottom: 1px solid var(--ak-hair); }
.tabs button { font: 400 var(--ak-t-tab)/1.2 var(--ak-font); letter-spacing: var(--ak-ls-label); color: var(--ak-ink3);
  padding: var(--ak-pad-tab); border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.tabs button:hover { color: var(--ak-ink); }
.tabs button.on { color: var(--ak-ice); border-color: var(--ak-hair); border-bottom-color: transparent; background: var(--ak-panel-tab); }
.ribbon { background: transparent; border-top: 0; gap: 0; padding: 0 8px; min-height: 96px; align-items: stretch; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.ribbon .grp { flex-direction: column; align-items: stretch; gap: 0; padding: var(--ak-pad-group); margin: 0; border-right: 1px solid var(--ak-hair); flex: none; }
.ribbon .grp:last-child { border-right: 0; }
.ribbon .grp > .ak-tl { display: flex; gap: 1px; flex: 1; align-items: flex-start; }
.ribbon .grp > .ak-nm { color: var(--ak-ink3); font-size: var(--ak-t-group); letter-spacing: var(--ak-ls-label); text-align: center; margin-top: 3px; white-space: nowrap; }
.tool { width: var(--ak-btn-w); min-width: var(--ak-btn-w); gap: 1px; padding: 4px 0 3px; border-radius: 0; border: 1px solid transparent; color: var(--ak-ink2);
  font: 400 var(--ak-t-button)/1.15 var(--ak-font); letter-spacing: var(--ak-ls-word); text-align: center; white-space: normal; }
.tool .ak-i { width: var(--ak-icon); height: var(--ak-icon); }
.tool:hover { border-color: var(--ak-hair); background: var(--ak-wash); color: var(--ak-ink); }
.tool:focus-visible { outline: 2px solid var(--ak-gold); outline-offset: -2px; }
.tool:active { background: var(--ak-gold-wash); border-color: var(--ak-gold); color: var(--ak-gold-ink); }
.tool:hover svg { stroke: none; }
/* a small group: three rows of icon-and-word, as the showroom's CAMERA and LOOK groups */
.ribbon .grp.ak-small > .ak-tl { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 1fr); gap: 0 2px; }
.ribbon .grp.ak-small .tool { flex-direction: row; width: auto; min-width: 84px; justify-content: flex-start; gap: 5px; padding: 2px 6px 2px 3px; white-space: nowrap; text-align: left; }
.ribbon .grp.ak-small .tool .ak-i { width: var(--ak-icon-small); height: var(--ak-icon-small); }
/* the value fields (GAUGE, FLANGE) as the kit's value button */
.ribbon .field { color: var(--ak-ink3); font: 400 var(--ak-t-group)/1.2 var(--ak-font); letter-spacing: var(--ak-ls-label); gap: 3px; margin: 6px 4px 0; }
.ribbon .field input { width: 54px; background: var(--ak-sunk); color: var(--ak-ink); border: 1px solid var(--ak-hair); border-radius: 0; font: 400 var(--ak-t-small) var(--ak-font); padding: 3px 5px; text-align: center; }
.ribbon .field input:focus-visible { outline: 2px solid var(--ak-gold); outline-offset: 0; }

/* ---- the panels: the browser (#tree) and the part (#part) ---- */
aside { background: var(--ak-panel); backdrop-filter: blur(var(--ak-blur)); }
#tree { border-right: 1px solid var(--ak-hair); }
#part { border-left: 1px solid var(--ak-hair); }
aside h4, aside h2.hd { color: var(--ak-ink3); font: 400 var(--ak-t-head)/1.4 var(--ak-font); letter-spacing: var(--ak-ls-label); padding: 8px 10px 4px; }
.row { color: var(--ak-ink2); font: 400 var(--ak-t-text)/1.6 var(--ak-font); letter-spacing: var(--ak-ls-item); padding: 3px 8px 3px 14px; border-left: 1px solid transparent; }
.row:hover { color: var(--ak-ink); background: var(--ak-wash); border-left-color: var(--ak-hair); }
.row.on { color: var(--ak-ice); border-left-color: var(--ak-ice); }
.note { color: var(--ak-ink3); font: 400 var(--ak-t-card)/1.5 var(--ak-font); }

/* ---- the terminal: the showroom's, its header AiAD (no TTY1), the brother in the same voice ---- */
#term { background: var(--ak-term); border-top: 1px solid var(--ak-hair); display: flex; flex-direction: column; }
#term > .ak-hd { display: flex; justify-content: space-between; align-items: center; flex: none; padding: var(--ak-pad-head); border-bottom: 1px solid var(--ak-hair);
  color: var(--ak-ink3); font: 400 var(--ak-t-head)/1.4 var(--ak-font); letter-spacing: var(--ak-ls-label); user-select: none; }
#term > .ak-hd .ak-aiad { color: var(--ak-gold); }
#log { font: 400 var(--ak-t-text)/1.65 var(--ak-font); color: var(--ak-ink); padding: 8px 11px; flex: 1; min-height: 0; }
#prompt { border-top: 1px solid var(--ak-hair); font: 400 var(--ak-t-text) var(--ak-font); padding: 5px 11px 6px; }
#prompt > span { color: var(--ak-gold); }
#prompt input#cmd { background: transparent; border: 0; color: var(--ak-ink); font-family: var(--ak-font); letter-spacing: .02em; }
#prompt input#cmd::placeholder { color: var(--ak-ink3); }
#prompt:focus-within { box-shadow: inset 0 0 0 1px rgba(233,184,114,.35); }

/* ---- THE BROTHER IN THE TERMINAL (his words, 11 Oct 04:45): "the text inside the box will be a bit bigger and yellow, and
 * it's going to be the brother ... a yellow > triangle is breathing warm light blooming waiting for the user to type ... with
 * font you can see from looking at a screen from a working position". The same terminal, the same face; the brother's own
 * lines gold and larger; the prompt's mark breathes until the person types; the idle line he writes is gold and large. ---- */
#log .brain { color: var(--ak-gold); font: 400 14px/1.6 var(--ak-font); letter-spacing: .02em; border-left: 1px solid var(--ak-gold);
  padding: 2px 0 2px 10px; margin: 6px 0 6px 1px; }
#prompt { align-items: center; cursor: text; }
#prompt > span { color: var(--ak-gold); font-size: 18px; line-height: 1; animation: ak-breathe 3.2s ease-in-out infinite; }
/* BUILD 105: stilled by HIS hand in the prompt (.ak-hand) or text standing in it (.ak-text), never by :focus-within - app.js focuses the
 * prompt at load, and that focus is not his hand (the brother check on 104: the mark never breathed on a desktop) */
#prompt.ak-hand > span, #prompt.ak-text > span { animation: none; opacity: 1; text-shadow: 0 0 6px rgba(233,184,114,.65); }
/* BUILD 107: the brother's mark in the prompt's place (the kit's .ak-brother, at the prompt's size); its word stands under it, in the
   room below the prompt, so the line keeps its height; while he works the mark draws its state and does not breathe */
/* 110 r4 (the house's measure of 13 Oct: the mark drawn 30 x 22, its word 7 px under the terminal's column): the mark in its own room, 44 px
   wide, the word BESIDE it in the prompt's row at 12 px, there only while the brother works; nothing under the terminal's lines. The
   mutation mark-ring keeps the old place (30 px, the word under it) */
#prompt > span.ak-brother { --ak-mark-size: 44px; position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; flex: 0 0 auto; margin-right: 6px; }
#prompt > span.ak-brother .word { position: static; white-space: nowrap; font-size: 12px; min-height: 0; }
#prompt > span.ak-brother .word:empty { display: none; }
#prompt > span.ak-brother.mut-mark-ring { --ak-mark-size: 30px; flex-direction: column; }
#prompt > span.ak-brother.mut-mark-ring .word { position: absolute; top: 100%; left: 0; font-size: 10.5px; }
#prompt > span.ak-brother:not([data-state=rest]) { animation: none; opacity: 1; }
/* BUILD 107, his notes on 106 (12 Oct 10:30). THE HISTORY'S TEXT TAKES THE WHEEL: each line's box hugs its words and takes the pointer,
   so the wheel over a line scrolls the history and a click there selects nothing in the view; the void between and around the
   lines still passes to the view. STOP UNDER THE PROMPT: the red square with its black square stands below the brother's mark (and
   below the mark's word), at the bottom left, while something runs. */
@media (min-width: 900px) {
  #log > div { width: fit-content; max-width: 100%; pointer-events: auto; }
  body.mut-history-pass #log > div { pointer-events: none; }
  #prompt { position: relative; }
  #prompt > #stop { position: absolute; left: 4px; top: calc(100% + 20px); box-shadow: 0 1px 8px rgba(2,16,47,.95); }
  body.mut-stop-old #prompt > #stop { position: static; margin-right: 6px; }
}
@keyframes ak-breathe {
  0%, 100% { opacity: .5; text-shadow: 0 0 2px rgba(233,184,114,.25); }
  50% { opacity: 1; text-shadow: 0 0 9px rgba(233,184,114,.9), 0 0 22px rgba(233,184,114,.5), 0 0 38px rgba(233,184,114,.25); }
}
#prompt input#cmd { font-size: 14px; }
#prompt input#cmd.ak-ghosting::placeholder { color: var(--ak-gold); opacity: 1; font-size: 16px; letter-spacing: .03em; }
/* BUILD 110 (his finding on 109: an offer stood in the prompt and he could not tell what it was): the hint under the gold line, the
   desktop's whole sentence, the phone's 35-character form */
#offerhint { color: var(--ak-gold); opacity: .78; font-size: 12px; letter-spacing: .02em; padding: 2px 0 0 26px; pointer-events: none;
  text-shadow: 0 1px 8px rgba(2,16,47,.95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#offerhint[dir=rtl] { padding: 2px 26px 0 0; text-align: right; }
#offerhint .short { display: none; }
@media (max-width: 899px) { #offerhint .long { display: none; } #offerhint .short { display: inline; } }
@media (prefers-reduced-motion: reduce) { #prompt > span { animation: none; opacity: 1; text-shadow: 0 0 6px rgba(233,184,114,.6); } }

/* ---- THE BROTHER IN THE VOID (his words, 11 Oct 04:55): "The text is the terminal brother no other details now box just flying
 * above the bottom left corner of the 3d void ... bring it up a little, '>' this sign only is just there". On a desktop the
 * terminal leaves its row: the view takes the whole height, and the terminal is only text floating over the void's lower left,
 * lifted above the selection bar - no box, no header, no frame; the last lines only, the older fading upward; the prompt is
 * the breathing mark and nothing else (its words appear only when the brother writes there). The phone keeps its pane. ---- */
@media (min-width: 900px) {
  #app { position: relative; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top top" "tree room part"; }
  #term { position: absolute; z-index: 6; left: calc(220px + 22px); bottom: 64px; width: min(640px, 46vw); height: auto;
    background: transparent; border: 0; box-shadow: none; pointer-events: none; }
  #term > .ak-hd { display: none; }
  #log { flex: none; max-height: 7.2em; overflow: hidden; padding: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%); mask-image: linear-gradient(to bottom, transparent 0, #000 42%); }
  #log > div { text-shadow: 0 1px 8px rgba(2,16,47,.95), 0 0 2px rgba(2,16,47,.9); }
  #log .brain { border-left: 0; padding-left: 0; margin: 4px 0; }
  #log :is(a, button, [role=button], input, select, label) { pointer-events: auto; }   /* the void passes the pointer to the view, never THROUGH a control (11 Oct: the class, not the instance; 104 had a.cmdlink) */
  #prompt { pointer-events: auto; border: 0; background: transparent; padding: 6px 0 0; box-shadow: none; }
  #prompt:focus-within { box-shadow: none; }
  #prompt input#cmd:focus-visible { box-shadow: 0 1px 0 0 var(--ak-gold) !important; }   /* the caret's place SEEN (the access floor, 11 Oct: a focused field shows its focus; the void had stilled it) */
  #prompt input#cmd { border: 0 !important; outline: none !important; background: transparent !important; box-shadow: none !important; caret-color: var(--ak-gold); }
  #prompt input#cmd::placeholder { color: transparent; }
  #prompt input#cmd.ak-ghosting::placeholder { color: var(--ak-gold); text-shadow: 0 1px 8px rgba(2,16,47,.95); }
}

/* "Bigger brother" (his words and his drawing, 11 Oct 05:00: a large > standing higher in the void): the brother's voice large,
   the mark large and lifted, the work's own lines smaller under his. */
@media (min-width: 900px) {
  #term { bottom: 150px; width: min(760px, 52vw); }
  #log { max-height: 9.6em; font-size: 13px; }
  /* BUILD 109 (his note on 107 web, 12 Oct 15:08: "make the font of the big text font just a little smaller"): the brother's lines and
     the prompt 17 px at 1.5 (were 20 px); the > mark stays 72 px, the phone sizes stay. Mutation big-voice: 107's 20 px (arm voice_size) */
  #log .brain { font-size: 17px; line-height: 1.5; letter-spacing: .01em; }
  #prompt { padding-top: 10px; }
  #prompt > span { font-size: 72px; line-height: .7; margin-right: 10px; transform: translateY(-2px); }
  #prompt input#cmd { font-size: 17px; line-height: 1.5; }
  #prompt input#cmd.ak-ghosting::placeholder { font-size: 17px; }
  body.mut-big-voice #log .brain { font-size: 20px; line-height: 1.45; }
  body.mut-big-voice #prompt input#cmd, body.mut-big-voice #prompt input#cmd.ak-ghosting::placeholder { font-size: 20px; }
}

/* ---- over the view: the readouts as the room's tags, the view cube top right ---- */
#hud, #selbar { font-family: var(--ak-font); }
#selbar { background: var(--ak-panel-tag); border: 1px solid var(--ak-hair); backdrop-filter: blur(var(--ak-blur-tag)); color: var(--ak-ink3); }
#ak-cube { position: absolute; top: 12px; right: 14px; z-index: 5; }

/* ---- the buttons inside the panels, as the kit's tool window buttons: transparent, a hairline, ice when chosen ---- */
.outs button, #toolpanel button, #selbar button { background: transparent; border: 1px solid var(--ak-hair); border-radius: 0; color: var(--ak-ink2);
  font: 400 var(--ak-t-small)/1.3 var(--ak-font); letter-spacing: var(--ak-ls-button); }
.outs button:hover, #toolpanel button:hover, #selbar button:hover { color: var(--ak-ink); border-color: var(--ak-volt2); }
.outs button:active, #toolpanel button:active, #selbar button:active { background: var(--ak-gold-wash); border-color: var(--ak-gold); color: var(--ak-gold-ink); }
#toolpanel button[aria-pressed="true"], #selbar button[aria-pressed="true"] { border-color: var(--ak-ice); color: var(--ak-ice); }
#selbar .selfilter, #selbar small { font-family: var(--ak-font); color: var(--ak-ink3); }
#selbar #selwhat.on { color: var(--ak-ice); }
#toolpanel { font-family: var(--ak-font); background: var(--ak-panel-solid); border: 1px solid var(--ak-ice); backdrop-filter: blur(var(--ak-blur-win)); border-radius: 0; }

/* the phone: inputs at 16 px so iOS does not zoom the page on a tap (the phone pass, 11 Oct) */
@media (max-width: 700px) {
  .ribbon .field input, #prompt input#cmd { font-size: 16px; }
  #ak-cube { display: none; }
  /* the phone's top bar: the mark and the doors on one line; the byline would wrap into three cramped lines */
  .brand { padding: 8px 12px 2px; }
  .brand small { display: none; }
  .brand .ak-door { padding: 3px 9px; }
  /* the phone's row of three under the view (Terminal, Parts, Part): the kit's buttons, the open one in ice */
  #panes { background: var(--ak-panel); border-top: 1px solid var(--ak-hair); }
  #panes button { background: transparent; border: 1px solid var(--ak-hair); border-radius: 0; color: var(--ak-ink2);
    font: 400 var(--ak-t-small)/1.3 var(--ak-font); letter-spacing: var(--ak-ls-button); }
  #panes button[aria-pressed="true"] { color: var(--ak-ice); border-color: var(--ak-ice); }
  #panes button:active { background: var(--ak-gold-wash); border-color: var(--ak-gold); color: var(--ak-gold-ink); }
}
