/* The AI windows' shared design (shared/aiwindow.js) – every program's AI windows. */

/* the frame: never blocks the program (clicks beside it go to the program), the program's colour on its frame and title
   bar, the menu's icon, and what it works on as a second line */
.modal-overlay.modal-ai { background: transparent; pointer-events: none; }
.modal-overlay.modal-ai > .modal { pointer-events: auto; }
.modal.aiw { border-color: color-mix(in oklab, var(--prog) 38%, var(--line)); }
.modal.aiw > .modal-head { background: color-mix(in oklab, var(--prog) 6%, var(--surface)); border-top-left-radius: inherit; border-top-right-radius: inherit; }
.modal.aiw > .modal-head > .material-symbols-outlined { color: var(--prog); }
.modal-fp > .modal-head h2 + .modal-sub:not(:empty) { margin-left: 2px; }
.modal-head .modal-sub { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-fp > .modal-head:has(.modal-sub:not(:empty)) h2 { flex: 0 1 auto; max-width: 60%; }
.modal-fp > .modal-head:has(.modal-sub:empty) .modal-sub { flex: 1; }

/* the prompt box's history: ▾ in the field, the list under it (as earlier searches under a browser's address bar) */
.aiw-words { position: relative; }
.aiw-words > input, .aiw-words > textarea { width: 100%; box-sizing: border-box; padding-right: 34px; }
.aiw-caret { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; z-index: 1; }
.aiw-words-box > .aiw-caret { top: 6px; transform: none; }
.aiw-caret:hover, .aiw-caret.on { background: var(--hover); color: var(--text); }
.aiw-caret[hidden] { display: none; }
.aiw-caret .material-symbols-outlined { font-size: 20px; transition: transform .15s; }
.aiw-caret.on .material-symbols-outlined { transform: rotate(180deg); }
.aiw-past { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; max-height: 280px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--pop-shadow); }
.aiw-past[hidden] { display: none; }
.aiw-past-i { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.aiw-past-i span:last-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiw-past-i .material-symbols-outlined { font-size: 17px; color: var(--text-2); flex: none; }
.aiw-past-i:hover, .aiw-past-i.on { background: var(--hover); }
/* a prompt from before, under the pointer: shown in the box, greyed */
.aiw-words > .aiw-preview::placeholder { color: var(--text-2); opacity: 1; font-style: italic; }

/* the cost line and the main button */
.aiw-cost { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.aiw-cost.aiw-over { color: var(--warn); font-weight: 500; }
.btn.aiw-go { gap: 6px; }
.btn.aiw-go .material-symbols-outlined { font-size: 17px; }

/* a try in Your …: its picture, its words, its line – a spinner and a thin bar while it's made */
.aiw-group { display: flex; align-items: center; gap: 6px; font: 600 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.aiw-group-n { font-weight: 500; color: var(--faint); }
/* the picture runs to the card's top, bottom and left edge, as wide as its own shape (41 px for a portrait one) */
.aiw-try { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0; align-items: stretch; padding: 0; min-height: 63px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.aiw-try.pick { cursor: pointer; }
.aiw-try.pick:hover { border-color: var(--prog); }
.aiw-try.on { border-color: var(--prog); box-shadow: 0 0 0 2px var(--prog-soft); }
.aiw-try.failed { border-color: color-mix(in oklab, var(--danger) 40%, var(--line)); }
.aiw-try-pic { position: relative; min-width: 41px; max-width: 80px; min-height: 61px; display: flex; align-items: center; justify-content: center; border-radius: 9px 0 0 9px; background: var(--sunk); overflow: hidden; color: var(--text-2); }
.aiw-try-pic:not(:has(> img, > canvas)) { width: 48px; }
.aiw-try-pic > canvas, .aiw-try-pic > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
/* wider than 80 px: its middle, faded into the card at its edge so it's plainly cut (its width: OfficeAIWindow.fitPic) */
.aiw-try-pic.cut::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 22px; background: linear-gradient(to right, transparent, var(--surface)); pointer-events: none; }
/* its status on its picture: Added, Archived */
.aiw-st { position: absolute; left: 3px; bottom: 3px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--prog); color: var(--surface); box-shadow: 0 0 0 1.5px var(--surface); }
.aiw-st .material-symbols-outlined { font-size: 12px; color: inherit; }
.aiw-st-archived { background: var(--muted); }
/* (a thumbnail – OfficeAIThumbs – is only ever made smaller: smoothly) */
.aiw-try-pic > img[data-thumb] { image-rendering: auto; }
.aiw-try-pic.spin .material-symbols-outlined { animation: aiw-spin 1.2s linear infinite; }
.aiw-try.failed .aiw-try-pic { color: var(--danger); }
@keyframes aiw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aiw-try-pic.spin .material-symbols-outlined { animation: none; } }
.aiw-try-txt { min-width: 0; align-self: center; padding: 6px 8px; }
.aiw-try-words { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aiw-try-line { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aiw-try-line.bad { color: var(--danger); }
.aiw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--prog); margin-right: 5px; vertical-align: 1px; }
.aiw-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.aiw-bar > i { display: block; height: 100%; background: var(--prog); transition: width .6s linear; }
/* Your …: Filter (in the heading), what it hides (a line under it), Archive on each try */
.aiw-acts { display: flex; flex-direction: column; align-items: center; gap: 2px; align-self: start; padding: 4px 4px 0 0; margin-left: -4px; }
.aiw-arch { opacity: 0; transition: opacity .12s; }
.aiw-try:hover .aiw-arch, .aiw-try:focus-within .aiw-arch, .aiw-try.archived .aiw-arch { opacity: 1; }
.aiw-try.archived { opacity: .7; }
.aiw-filter { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; padding: 2px 6px; border-radius: var(--radius-s); cursor: pointer; }
.aiw-filter:hover { background: var(--hover); color: var(--text); }
.aiw-filter .material-symbols-outlined { font-size: 18px; color: inherit; }
.aiw-filter.on { background: var(--prog-soft); color: var(--prog-strong); }
.aiw-filtered { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-s); background: var(--prog-soft); color: var(--prog-strong); font-size: 12px; }
.aiw-filtered[hidden] { display: none; }
.aiw-filtered .material-symbols-outlined { font-size: 15px; }
.aiw-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.aiw-none { font-size: 12.5px; }
.aiw-x { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.aiw-x:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.aiw-x:disabled { opacity: .35; cursor: default; }
.aiw-x .material-symbols-outlined { font-size: 18px; }
.aiw-empty { margin: 0; font-size: 12px; color: var(--muted); }

/* the three columns: Ask · Your … · The result (shared/aiwindow.js columns) */
.aiw-cols { display: grid; grid-template-columns: minmax(300px, 1fr) min(var(--aiw-c2, 270px), max(220px, calc(100% - 300px))); gap: 0; align-items: stretch; min-height: 100%; }
.aiw-cols.aiw-three { grid-template-columns: var(--aiw-c1, minmax(0, 1fr)) var(--aiw-c2, 270px) minmax(0, 1fr); }
.aiw-cols.aiw-three.aiw-fold { grid-template-columns: 44px var(--aiw-c2, 270px) minmax(0, 1fr); }
.aiw-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 16px; }
.aiw-col.aiw-ask { padding-left: 0; }
.aiw-col.aiw-result { padding-right: 0; }
.aiw-col + .aiw-col { border-left: 1px solid var(--line-soft); }
.aiw-col[hidden] { display: none; }
.aiw-ch { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; min-height: 28px; }
.aiw-ch .material-symbols-outlined { font-size: 19px; color: var(--prog); }
.aiw-gap { flex: 1; }
.aiw-count { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.aiw-badge { white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--prog-soft); color: var(--prog-strong); }
.aiw-badge[hidden] { display: none; }
.aiw-fold .aiw-ask > :not(.aiw-ch) { display: none; }
.aiw-fold .aiw-ask { padding: 0; cursor: pointer; }
.aiw-fold .aiw-ask .aiw-ch { writing-mode: vertical-rl; padding: 6px 0; }
.aiw-fold .aiw-ask:hover .aiw-ch { color: var(--prog-strong); }
.aiw-tries { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow: auto; }
.aiw-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); position: sticky; bottom: 0; background: var(--surface); }
.aiw-act .aiw-cost { margin-right: auto; }
/* how many at once ("Make [Two]") – as wide as its words, beside its label */
.aiw-act select.inp { width: auto; flex: none; }
.aiw-keep { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.aiw-keep .aiw-gap { flex: 1; }
.aiw-stage { display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 10px; background: var(--sunk); min-height: 140px; position: relative; }
.aiw-field { display: flex; flex-direction: column; gap: 5px; }
/* the shared three-column window's own (shared/aistudio.js): a line saying what the tool does, the Find box over Your … */
.aiw-intro { margin: 0; }
.aiw-find { width: 100%; }
.aiw-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.aiw-form { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.aiw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.aiw-chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; color: var(--text-2); background: var(--surface); cursor: pointer; }
.aiw-chip:hover { border-color: var(--prog); color: var(--prog-strong); }
.aiw-words-meta { font-size: 12px; color: var(--muted); }
.modal.aiw > .modal-body:has(> .aiw-cols) { display: flex; flex-direction: column; }

/* a float panel that is an AI window (the Cutout Show's – CutWin): the program's colour on its frame and title bar */
.fp.aiw-fp { border-color: color-mix(in oklab, var(--prog) 38%, var(--line)); }
.fp.aiw-fp > .fp-head { background: color-mix(in oklab, var(--prog) 6%, var(--surface)); }
.fp.aiw-fp > .fp-head > .material-symbols-outlined { color: var(--prog); }
.cut-making-foot > .aiw-cost { margin: 0 auto 0 0; align-self: center; }
/* (the Sprite editor's floating windows – Reskin – as AI windows too) */
.spr-float.aiw-fp { border-color: color-mix(in oklab, var(--prog) 38%, var(--line)); }
.spr-float.aiw-fp > .spr-float-head { background: color-mix(in oklab, var(--prog) 6%, var(--surface)); border-top-left-radius: inherit; border-top-right-radius: inherit; }
.spr-float.aiw-fp > .spr-float-head > .material-symbols-outlined { color: var(--prog); font-size: 19px; }
.spr-reskin-cost.aiw-over { color: var(--warn); }

/* each column on its own (November 2026 – as Generate with Tripo): the window's body doesn't scroll, each column does,
   its heading staying at the top and its buttons (.aiw-act – Make …; .aiw-keep – Add, Keep …) in a row of their own
   at the bottom, never scrolled away */
.modal.aiw.modal-window > .modal-body:has(> .aiw-cols) { overflow: hidden; padding-bottom: 0; }
.modal.aiw > .modal-body > .aiw-cols { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.aiw-cols > .aiw-col { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.aiw-cols > .aiw-col > .aiw-ch { position: sticky; top: 0; z-index: 3; background: var(--surface); padding-bottom: 4px; }
.aiw-cols > .aiw-col .aiw-act, .aiw-cols > .aiw-col .aiw-keep { position: sticky; bottom: 0; z-index: 3; background: var(--surface); padding-bottom: 12px; }
.aiw-cols > .aiw-col > .aiw-tries { overflow: visible; padding-bottom: 12px; }
.aiw-fold .aiw-ask { overflow: hidden; }
.aiw-cols > .aiw-col > * { flex-shrink: 0; }

/* The result as Generate with Tripo's: its own shade on its heading and edge (it closes on its own) */
.aiw-cols > .aiw-col.aiw-result { border-left: 2px solid var(--prog); padding-right: 16px; }
.aiw-cols > .aiw-result > .aiw-ch { background: var(--prog-soft); color: var(--prog-strong); margin: 0 -16px; padding: 8px 12px 8px 16px; }
.aiw-cols > .aiw-result > .aiw-ch .material-symbols-outlined { color: inherit; }
/* (the headings at the top of their columns, in line; The result's shade reaching the window's edges, as Tripo's) */
.modal.aiw.modal-window > .modal-body:has(> .aiw-cols) { padding-top: 0; padding-right: 0; }
.aiw-cols > .aiw-col > .aiw-ch { padding-top: 12px; }
.aiw-cols > .aiw-result > .aiw-ch { margin: 0 -16px; padding: 12px 12px 8px 16px; }

/* the borders between the columns: dragged to make them wider or narrower (shared/aiwindow.js splitters) */
.aiw-splitgrid { position: relative; }
.aiw-split { position: absolute; top: 0; bottom: 0; width: 11px; margin-left: -6px; cursor: col-resize; z-index: 6; touch-action: none; }
.aiw-split[hidden] { display: none; }
.aiw-split::after { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; width: 3px; border-radius: 2px; background: transparent; transition: background .12s; }
.aiw-split:hover::after, .aiw-split.on::after { background: var(--prog); }
body.aiw-splitting, body.aiw-splitting * { cursor: col-resize !important; user-select: none; }

/* the result's settings above its bottom row; + Add (November 2026 – as every AI window) */
.aiw-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aiw-add { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aiw-add .material-symbols-outlined { font-size: 18px; }

/* Choose from Concept Art (shared/conceptpick.js): the boards on the left, a board's designs with their pictures */
.cpk-modal { max-width: calc(100vw - 32px); }
.cpk { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; min-height: min(62vh, 560px); max-height: min(70vh, 640px); }
.cpk-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cpk-side[hidden] { display: none; }
.cpk:has(.cpk-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
.cpk-find { width: 100%; }
.cpk-files { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.cpk-note { font-size: var(--fs-s); color: var(--text-2); }
.cpk-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.cpk-board { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px; }
.cpk-wait { padding: 24px 4px; }
.cpk-count { font-size: var(--fs-s); color: var(--text-2); }
.cpk-design-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cpk-design-h .muted { font-size: var(--fs-s); }
.cpk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.cpk-pic { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cpk-pic:hover { border-color: var(--prog); }
.cpk-pic.on { border-color: var(--prog); box-shadow: inset 0 0 0 2px var(--prog); background: var(--prog-soft); }
.cpk-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--checker); border-radius: var(--radius-xs); }
.cpk-name { font-size: var(--fs-xs); line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.cpk-star { position: absolute; top: 8px; right: 8px; display: inline-flex; color: var(--warn); }
.cpk-star .material-symbols-outlined { font-size: 18px; font-variation-settings: 'FILL' 1; }
.cpk-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cpk-btn .material-symbols-outlined { font-size: 18px; }
@media (max-width: 640px) { .cpk { grid-template-columns: minmax(0, 1fr); } .cpk-files { max-height: 160px; } }

/* Make pictures with AI (shared/aimakepics.js – the Image editor's and Concept Art's) */
.aimp-in { width: 100%; resize: vertical; min-height: 84px; }
.aimp-where { margin: 0; font-size: var(--fs-s); }
.aimp-big { display: block; max-width: 100%; max-height: min(52vh, 520px); object-fit: contain; border-radius: var(--radius-s); background: var(--checker); }

/* Make a 3D model with AI (shared/aimodel.js) – 3D Graphics' and Concept Art's */
.aim-ai-time { margin-left: 6px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--prog); color: var(--surface); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.aim-run { height: 5px; border-radius: var(--radius-xs); background: var(--sunk); overflow: hidden; position: relative; }
.aim-run i { position: absolute; top: 0; bottom: 0; width: 35%; border-radius: var(--radius-xs); background: var(--prog); animation: aim-slide 1.3s ease-in-out infinite; }
@keyframes aim-slide { from { left: -35%; } to { left: 100%; } }
@keyframes aim-spin { to { transform: rotate(360deg); } }
.aim .aim-body { display: flex; flex-direction: column; gap: 12px; }
.aim-note { margin: 0; color: var(--muted); font-size: var(--fs-m); }
.aim-sub { margin-top: 6px; }
.aim-chip.on { background: var(--prog-soft); border-color: var(--prog); color: var(--prog-strong); font-weight: 600; }
.aim-prompt { resize: vertical; min-height: 92px; font-size: var(--fs); }
.aim-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: -4px; }
.aim-label .muted { font-size: var(--fs-m); }
.aim-pic { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.aim-pictxt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.aim-pictxt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.aim-pictxt .muted { font-size: var(--fs-m); }
.aim-thumb { position: relative; flex: none; width: 48px; height: 48px; border-radius: var(--radius-s); background: var(--sunk); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.aim-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-s); display: block; }
/* a view of the model from the side or the back (Make a 3D model: more views) – big enough to look over, its name, a ✕ */
.aim-view { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 2px; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 12px; }
.aim-view img { height: 72px; width: auto; max-width: 132px; min-width: 40px; object-fit: contain; border-radius: var(--radius-s); display: block; background: var(--sunk); }
.aim-view > .icon-btn, .aim-view > button { position: absolute; top: 2px; right: 2px; }
/* a word under New model's picture: how Tripo takes it; "Use my own picture again" after the views were drawn */
.aim-tip { margin: -4px 0 0; font-size: var(--fs-m); line-height: 1.4; }
.aim-link { align-self: flex-start; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-m); color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.aim-drop { padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); text-align: center; font-size: var(--fs-m); }
.aim-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.aim-btns .pf-btn { padding: 8px 14px; }
.aim-fold { border-top: 1px solid var(--line-soft); }
.aim-foldhead { width: 100%; display: flex; align-items: center; gap: 6px; padding: 12px 0 2px; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.aim-foldhead .material-symbols-outlined { font-size: var(--ic); transition: transform .15s; }
.aim-fold.open .aim-foldhead .material-symbols-outlined { transform: rotate(90deg); }
.aim-foldsum { margin-left: auto; min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-m); }
.aim-foldbody { display: none; padding-top: 10px; }
.aim-fold.open .aim-foldbody { display: block; }
.aim-fixnote { padding: 8px 10px; border-radius: var(--radius); background: var(--prog-soft); color: var(--prog-strong); }
.aim-find { position: relative; flex: none; }
.aim-find > .material-symbols-outlined { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: var(--ic); color: var(--muted); pointer-events: none; }
.aim-find .inp { padding-left: 34px; width: 100%; }
.aim-find[hidden] { display: none; }
.aim-err { color: var(--danger); font-size: var(--fs-m); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aim-viewbody { align-items: stretch; }
.aim-rv-view { /* content – the model's little stage, as Render sprite sheet shows it */ display: block; align-self: center; max-width: 100%; border-radius: var(--radius); background: linear-gradient(#f7f8fa, #e9ecf1); cursor: grab; touch-action: none; }
.aim-rv-view:active { cursor: grabbing; }
.aim-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aim-rv-deg { width: 64px; }
.aim-ctl .aim-seg { margin-left: auto; }
.aim-making, .aim-failed { align-self: center; margin-top: 30px; }
.aim-making .material-symbols-outlined { font-size: 44px; color: var(--prog-strong); animation: aim-spin 1.2s linear infinite; }
.aim-failed .material-symbols-outlined { font-size: 44px; color: var(--danger); }
.aim-step { text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.aim-bigbar { height: 8px; }
.aim-errbig { text-align: center; font-size: var(--fs); -webkit-line-clamp: 8; }
.aim-rename { cursor: text; border-radius: var(--radius-s); padding: 2px 6px; margin-left: -6px; }
.aim-rename:hover, .aim-rename:focus-visible { background: var(--hover); outline: 1px dashed var(--prog); }
.aim-nameinp { flex: 1; min-width: 0; font-weight: 600; padding: 4px 8px; }
@media (prefers-reduced-motion: reduce) { .aim-making .material-symbols-outlined, .aim-run i { animation: none; } }

/* Your …: Show more at the foot of the list (the newest 30 drawn first) */
.aiw-more { display: block; width: 100%; margin-top: 8px; }

/* The result's heading: its words at most two lines – Show all (then Show less) beside them when there's more */
.aiw-ch-t.aiw-ch-clamp { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.aiw-ch-t.aiw-ch-clamp.open { display: block; -webkit-line-clamp: unset; line-clamp: none; max-height: 40vh; overflow-y: auto; }
.aiw-ch-more { flex: none; align-self: flex-end; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.aiw-ch-more:hover { color: var(--prog); }
