/* ============================================================
   MuADMINS - MU Assistant - css/assistant.css
   2026-10-30: guided front door + "Ask a question". The old light page was low contrast (faint chips on
   light blue): everything now sits on the site's dark panels (rgba(5,22,54,.62)) with solid square buttons,
   Inter text and the shared top bar (css/mugps-pro.css). The theme colours are re-set inside .asi-main so
   the setup tools (js/assistant-setup.js) read well on the dark panels too.
   ============================================================ */
.asi-body { margin: 0; min-height: 100vh; color: #eef4fc; background: #0a3278; overflow-x: hidden; }
#asi-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.asi-body .bg-atmo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 92% 108%, rgba(255,162,30,.55) 0%, rgba(255,115,18,.25) 30%, transparent 56%),
    linear-gradient(180deg, #021025 0%, #062048 9%, #0a3278 20%, #104898 32%, #185fc0 48%, #2880d8 64%, #409aea 78%, #60b8f6 90%, #88d2ff 100%);
}

.asi-main {
  --text: #eef4fc; --text-dim: #b8cbe2; --text-muted: #93abc8;
  --border: rgba(255,255,255,.13); --border-blue: rgba(143,196,255,.4);
  --bg-panel: rgba(5,22,54,.82); --bg-glass: rgba(4,16,40,.55); --bg-item: rgba(255,255,255,.05); --bg-item-h: rgba(255,255,255,.1);
  --blue: #8fc4ff; --blue-bright: #d4e8ff; --cyan: #a6e3ff;
  --font-body: var(--font-ui, 'Inter', 'Segoe UI', system-ui, sans-serif);
  position: relative; z-index: 10; width: 100%; max-width: 1000px; box-sizing: border-box;
  margin: 0 auto; padding: 92px 20px 64px; display: flex; flex-direction: column; gap: 18px;
  font-family: var(--font-body); color: var(--text);
}
.asi-main *, .asi-main *::before, .asi-main *::after { box-sizing: border-box; }
.asi-panel {
  background: rgba(5,22,54,.62); border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 22px 24px 24px; min-width: 0; scroll-margin-top: 80px;
}
.asi-main a:focus-visible, .asi-main button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- guided front door ---------- */
.asi-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.asi-kicker { font: 600 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #a8d4ff; }
.asi-tokens { display: inline-flex; align-items: center; font: 600 12px/1 var(--font-body); color: #fff; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.45); border-radius: 3px; padding: 8px 11px; transition: background .15s, color .15s; }
.asi-tokens:hover { background: #fff; color: #06142e; }
.asi-title { font: 700 32px/1.15 var(--font-body); letter-spacing: -.01em; color: #fff; margin: 16px 0 6px; }
.asi-lead-big { font-size: 15.5px; line-height: 1.55; color: #c9d9ec; margin: 0 0 20px; }

.asi-intents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.asi-intent, .asi-opt {
  display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #fff; text-decoration: none; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  transition: background .15s, color .15s, border-color .15s;
}
.asi-intent { min-height: 116px; padding: 16px 16px 15px; }
.asi-intent svg { width: 26px; height: 26px; margin-bottom: 6px; fill: none; stroke: #a8d4ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.asi-intent b, .asi-opt b { font: 600 15.5px/1.25 var(--font-body); overflow-wrap: anywhere; }
.asi-intent small, .asi-opt small { font: 400 12.5px/1.4 var(--font-body); color: #bcd0e6; }
.asi-intent:hover, .asi-opt:hover { background: #fff; color: #06142e; border-color: #fff; }
.asi-intent:hover small, .asi-opt:hover small { color: #36557f; }
.asi-intent:hover svg { stroke: #1d58b0; }

.asi-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.asi-quick > span { font-size: 13.5px; color: #c3d4e8; }
.asi-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.asi-tools-note { font-size: 12.5px; line-height: 1.5; color: #b3c7de; margin: 10px 0 0; }

/* the steps */
.asi-flow[hidden], #asiGuideHome[hidden] { display: none; }
.asi-flow-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 18px; }
.asi-trail { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: #9fb6d2; }
.asi-trail a { color: #dbe8f7; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.asi-trail a:hover { color: #fff; border-bottom-color: #fff; }
.asi-trail b { color: #fff; font-weight: 600; }
.asi-restart { font-size: 13px; color: #dbe8f7; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.asi-restart:hover { color: #fff; }
.asi-step { font: 600 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #a8d4ff; margin: 0; }
.asi-q h2 { font: 700 26px/1.2 var(--font-body); color: #fff; margin: 8px 0 6px; outline: none; }
.asi-help { font-size: 14.5px; line-height: 1.55; color: #c9d9ec; margin: 0 0 18px; max-width: 760px; }
.asi-q h2:last-child { margin-bottom: 16px; }
.asi-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.asi-opts-many { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.asi-opt { justify-content: center; min-height: 66px; padding: 13px 16px; }

/* result cards */
.asi-rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.asi-rcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 16px 15px; overflow-wrap: anywhere;
  background: rgba(2,10,28,.5); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; }
.asi-rcard h3 { margin: 0; font: 600 16px/1.3 var(--font-body); color: #fff; }
.asi-rcard p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #cddbec; }
.asi-rcard .asi-meta { font-size: 12.5px; color: #a8d4ff; }
.asi-rcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.asi-pill { flex: none; font: 700 10.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 2px;
  border: 1px solid rgba(255,206,110,.7); color: #ffdc94; }
.asi-pill-free { border-color: rgba(120,232,170,.7); color: #a6f2c8; }
.asi-rcard .asi-wallet { font-size: 12.5px; color: #e3eefb; background: rgba(143,196,255,.12); border-left: 2px solid #8fc4ff; padding: 7px 10px; }
.asi-wallet a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.asi-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.asi-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 14px;
  font: 600 13px/1.2 var(--font-body); color: #fff; text-align: center; text-decoration: none; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: 3px; transition: background .15s, color .15s, border-color .15s;
}
.asi-act:hover { background: #fff; color: #06142e; border-color: #fff; }
.asi-act-main { background: #fff; color: #06142e; border-color: #fff; }
.asi-act-main:hover { background: #d9eaff; border-color: #d9eaff; }
.asi-back { min-height: 38px; padding: 8px 13px; }

/* ---------- Ask a question ---------- */
.asi-ask-title { font: 700 21px/1.2 var(--font-body); color: #fff; margin: 0 0 4px; }
.asi-ask-sub { font-size: 14px; line-height: 1.55; color: #c3d4e8; margin: 0 0 14px; }
.asi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.asi-chip { font: 500 13px/1.2 var(--font-body); color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.32);
  border-radius: 3px; padding: 9px 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.asi-chip:hover { background: #fff; color: #06142e; border-color: #fff; }

.asi-chat { display: flex; flex-direction: column; gap: 14px; max-height: 62vh; overflow-y: auto; padding: 4px 2px 14px; overscroll-behavior: contain; }
.asi-chat:empty { display: none; }
.asi-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.asi-msg-user { flex-direction: row-reverse; }
.asi-avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; }
.asi-avatar .logo-mu { font-family: var(--font-display, 'Orbitron', monospace); font-size: 11px; font-weight: 700; color: #06142e; }
.asi-bubble { padding: 12px 15px; border-radius: 6px; font-size: 14.5px; line-height: 1.6; max-width: 80%; overflow-wrap: break-word; word-break: normal; min-width: 0; }
/* (2026-10-31) an answer takes the row (a shrink-to-fit bubble collapsed to one letter per line on some phone browsers) */
.asi-msg-assistant .asi-bubble { flex: 1 1 0%; max-width: 100%; }
.asi-msg-assistant .asi-bubble { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: #eef4fc; }
.asi-msg-user .asi-bubble { background: rgba(143,196,255,.2); border: 1px solid rgba(143,196,255,.5); color: #fff; }
.asi-msg-error .asi-bubble { background: rgba(255,106,69,.12); border-color: rgba(255,106,69,.5); color: #ffc9b8; }
.asi-bubble a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.asi-bubble .asi-ul, .asi-bubble .asi-ol { margin: 8px 0; padding-left: 20px; }
.asi-bubble .asi-ul li, .asi-bubble .asi-ol li { margin: 3px 0; }
.asi-inline { background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.14); border-radius: 3px; padding: 1px 6px; font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; color: var(--cyan); white-space: normal; overflow-wrap: anywhere; }
.asi-bubble a { overflow-wrap: anywhere; }
.asi-code { background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 12px 14px; margin: 10px 0; overflow-x: auto; }
.asi-code code { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; color: #d6e8ff; white-space: pre; }
.asi-typing { display: inline-flex; gap: 5px; align-items: center; }
.asi-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a8d4ff; opacity: .4; animation: asi-blink 1.2s infinite; }
.asi-typing span:nth-child(2) { animation-delay: .2s; }
.asi-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes asi-blink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .asi-typing span { animation: none; opacity: .8; } }

.asi-composer-inner { display: flex; align-items: flex-end; gap: 10px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.28); border-radius: 4px; padding: 6px 6px 6px 14px; }
.asi-composer-inner:focus-within { border-color: #fff; }
.asi-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; resize: none; color: #fff; font: 15px/1.5 var(--font-body); padding: 8px 0; max-height: 160px; }
.asi-input::placeholder { color: #a3b9d4; }
.asi-input:disabled { opacity: .6; }
.asi-send { flex-shrink: 0; width: 42px; height: 42px; border-radius: 3px; border: 0; cursor: pointer; background: #fff; color: #06142e;
  display: flex; align-items: center; justify-content: center; transition: background .15s; }
.asi-send:hover { background: #d9eaff; }
.asi-send:disabled { opacity: .5; cursor: default; }
.asi-status { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #b3c7de; }
.asi-status:empty { display: none; }
.asi-status a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- setup tools (2026-10-30, shared with js/assistant-setup.js) ---------- */
.asi-tool, .asi-btn { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 10px 16px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.asi-tool:hover, .asi-btn:hover { border-color: #fff; }
.asi-tool-main, .asi-btn-main { background: #fff; color: #04132c; border-color: #fff; }
.asi-tool-main:hover, .asi-btn-main:hover { background: transparent; color: #fff; }
.asi-btn:disabled, .asi-btn:disabled:hover { opacity: .45; cursor: default; background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.asi-btn-main:disabled, .asi-btn-main:disabled:hover { background: #fff; color: #04132c; }
.asi-btn.on { border-color: var(--blue); color: var(--blue-bright); }
.asi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.asi-actions .asi-tool { font-size: 12px; padding: 8px 12px; }

.asi-setup { margin-top: 14px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 4px; scroll-margin-top: 70px; }
.asi-setup[hidden] { display: none; }
.asi-setup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding: 0 6px 0 0; }
.asi-setup-tabs { display: flex; flex-wrap: wrap; }
.asi-setup-tabs button { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); background: none; border: none; border-bottom: 2px solid transparent; padding: 13px 16px 11px; cursor: pointer; }
.asi-setup-tabs button.on { color: #fff; border-bottom-color: #fff; }
.asi-setup-close { font-size: 22px; line-height: 1; color: var(--text-dim); background: none; border: none; cursor: pointer; padding: 6px 10px; }
.asi-setup-close:hover { color: #fff; }
.asi-setup-body { padding: 18px 20px 20px; font-size: 14px; line-height: 1.6; }
.asi-setup-body code { font-size: 12.5px; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; color: var(--cyan); }
.asi-lead { margin: 0 0 14px; color: var(--text); }
.asi-muted { color: var(--text-dim); }
.asi-small { font-size: 12px; }
.asi-h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin: 18px 0 8px; }

.asi-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; }
.asi-steps button { font-family: var(--font-body); display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); background: none;
  border: 1px solid var(--border); border-radius: 3px; padding: 6px 10px; cursor: pointer; }
.asi-steps button span { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 2px; background: rgba(255,255,255,.08); font-size: 11px; }
.asi-steps li.on button { color: #04132c; background: #fff; border-color: #fff; }
.asi-steps li.on button span { background: rgba(4,19,44,.12); }
.asi-steps li.done button { color: var(--text); }
.asi-steps button:disabled { opacity: .4; cursor: default; }

.asi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.asi-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 4px; background: rgba(255,255,255,.02); }
.asi-card.on { border-color: #fff; background: rgba(255,255,255,.06); }
.asi-card-pick { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 13px; background: none; border: none; color: var(--text); cursor: pointer; font-family: var(--font-body); font-size: 13px; }
.asi-card-pick b { font-size: 14px; font-weight: 600; color: #fff; }
.asi-card-pick:hover { background: rgba(255,255,255,.04); }
.asi-card-sub { color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.asi-kv { font-size: 12px; color: var(--cyan); }
.asi-card-link { font-size: 12px; color: var(--blue); padding: 0 13px 11px; text-decoration: none; }
.asi-card-link:hover { text-decoration: underline; }
.asi-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.asi-badge { display: inline-block; font-size: 10.5px; letter-spacing: .04em; padding: 1px 6px; border-radius: 2px; border: 1px solid rgba(255,255,255,.25); color: var(--text-dim); white-space: nowrap; }
.asi-badge.ok { border-color: rgba(34,197,94,.5); color: #8ff0bf; }
.asi-badge.warn { border-color: rgba(255,200,60,.5); color: #ffd986; }
.asi-badge.bad { border-color: rgba(255,110,80,.5); color: #ffb39a; }

.asi-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; }
.asi-row-end { justify-content: flex-end; }
.asi-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.asi-note { border: 1px solid var(--border-blue); background: rgba(90,180,255,.06); border-radius: 3px; padding: 10px 13px; margin: 12px 0; font-size: 13px; }
.asi-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.asi-note.asi-warn { border-color: rgba(255,200,60,.4); background: rgba(255,200,60,.06); }
.asi-note.asi-bad { border-color: rgba(255,110,80,.45); background: rgba(255,110,80,.07); color: #ffc9b8; }
.asi-link { font: inherit; color: var(--blue); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; }

.asi-group { border: 1px solid var(--border); border-radius: 4px; padding: 10px 13px 13px; margin: 0 0 12px; min-width: 0; }
.asi-group legend { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); padding: 0 6px; }
.asi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; }
.asi-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-dim); min-width: 0; }
.asi-field-wide { grid-column: 1 / -1; }
.asi-field i { font-style: normal; color: var(--text-muted); }
.asi-field input, .asi-field select, .asi-field textarea, .asi-table input, #asiPatchFilter {
  font-family: var(--font-body); font-size: 14px; color: var(--text); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px; padding: 8px 10px; width: 100%; min-width: 0; }
.asi-field input:focus, .asi-field select:focus, .asi-field textarea:focus, .asi-table input:focus { outline: none; border-color: var(--blue); }
.asi-field select option { background: #071830; }
.asi-field.off, .asi-check.off { opacity: .45; }
.asi-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; padding: 6px 0; }
.asi-check input { width: 16px; height: 16px; accent-color: #fff; }
.asi-file { position: relative; display: inline-flex; align-items: center; border: 1px dashed rgba(255,255,255,.3); border-radius: 3px; padding: 9px 14px; cursor: pointer; color: var(--text); font-size: 13px; max-width: 100%; }
.asi-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.asi-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.asi-sheet { background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: 3px; padding: 13px 15px; max-height: 460px; overflow: auto;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.5; color: #d6e8ff; white-space: pre; tab-size: 4; }
.asi-checklist { margin: 0; padding-left: 20px; font-size: 13.5px; }
.asi-checklist li { margin: 4px 0; }
.asi-ul { margin: 6px 0 0; padding-left: 18px; }

.asi-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.asi-table th { text-align: left; font-weight: 500; color: var(--text-dim); padding: 7px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.asi-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; word-break: break-word; }
.asi-table td:nth-child(3) { width: 160px; }
.asi-table input.changed { border-color: #fff; background: rgba(255,255,255,.08); }
.asi-tsec td { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding-top: 14px; }
.asi-tsec input { width: 160px; margin-left: 8px; padding: 4px 8px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.asi-ctx { display: block; font-size: 11.5px; color: var(--text-muted); }
.asi-badv { color: #ffb39a; }

@media (max-width: 600px) {
  .asi-setup-body { padding: 14px 12px 16px; }
  .asi-setup-tabs button { padding: 12px 10px 10px; font-size: 12.5px; }
  .asi-steps button { padding: 5px 8px; font-size: 12px; }
  .asi-cards { grid-template-columns: 1fr; }
  .asi-grid { grid-template-columns: 1fr 1fr; }
  .asi-field input, .asi-field select, .asi-field textarea, .asi-table input, #asiPatchFilter, .asi-tsec input { font-size: 16px; }
  .asi-table td:nth-child(3) { width: 112px; }
  .asi-sheet { font-size: 11.5px; max-height: 380px; }
  .asi-tool { flex: 1 1 100%; }
}
@media (max-width: 380px) { .asi-grid { grid-template-columns: 1fr; } }

/* ---------- setup panel and chat buttons on the dark page (2026-10-30) ---------- */
.asi-setup { margin-top: 0; border-radius: 8px; scroll-margin-top: 80px; }
.asi-actions .asi-tool { display: inline-flex; align-items: center; text-decoration: none; }
.asi-actions .asi-tool:hover, .asi-tools .asi-tool:hover { background: #fff; color: #06142e; border-color: #fff; }

/* ---------- tablets and phones ---------- */
@media (max-width: 960px) {
  .asi-intents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .asi-main { padding: 80px 12px 48px; gap: 14px; }
  .asi-panel { padding: 16px 14px 18px; border-radius: 6px; }
  .asi-title { font-size: 25px; margin-top: 12px; }
  .asi-lead-big { font-size: 14.5px; margin-bottom: 16px; }
  .asi-intents { gap: 8px; }
  .asi-intent { min-height: 104px; padding: 13px 12px 12px; }
  .asi-intent b, .asi-opt b { font-size: 14.5px; }
  .asi-intent small, .asi-opt small { font-size: 12px; }
  .asi-quick > span { flex-basis: 100%; }
  .asi-tools .asi-tool { flex: 1 1 100%; }
  .asi-flow-bar { gap: 10px 12px; margin: 12px 0 14px; }
  .asi-trail { order: 3; flex-basis: 100%; }
  .asi-restart { margin-left: auto; }
  .asi-q h2 { font-size: 21px; }
  .asi-help { font-size: 14px; }
  .asi-opts { grid-template-columns: 1fr; gap: 8px; }
  .asi-opts-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asi-opt { min-height: 58px; padding: 11px 12px; }
  .asi-rcards { grid-template-columns: 1fr; gap: 10px; }
  .asi-rcard { padding: 14px 13px 13px; }
  .asi-act { flex: 1 1 auto; }
  .asi-flow-bar .asi-back { flex: 0 0 auto; }
  .asi-msg { gap: 8px; }
  .asi-msg-assistant .asi-avatar { display: none; }
  .asi-bubble { font-size: 14.5px; padding: 12px 13px; }
  .asi-msg-user .asi-bubble { max-width: 92%; }
  .asi-input { font-size: 16px; }
  .asi-chat { max-height: 70vh; }
  .asi-tokens { padding: 7px 9px; font-size: 11.5px; }
}

/* confirmed fixes under an Assistant answer (js/assistant.js addSolutions, 2026-10-30) */
.asi-sols { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(120,170,255,.28); border-radius: 8px; background: rgba(30,70,140,.16); }
.asi-sols-h { font: 700 11px/1.4 var(--font-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.asi-sol { padding: 5px 0; border-top: 1px solid rgba(120,170,255,.14); }
.asi-sol:first-of-type { border-top: 0; }
.asi-sol a { font-weight: 600; }
.asi-sol small { display: block; opacity: .75; margin-top: 2px; }
.asi-sols-more { display: inline-block; margin-top: 6px; font-size: 12px; }

/* translations (2026-10-31): longer texts in other languages wrap instead of running out of the card on phones */
.asi-guide-head { flex-wrap: wrap; }
.asi-tokens { white-space: normal; line-height: 1.3; max-width: 100%; }

/* ---------- 2026-10-31: plans, modes, answer cards, price, teach (session s20261031-asst) ---------- */
.asi-plan { margin: 0 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(2,10,28,.32); padding: 10px 12px; }
.asi-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.asi-plan-badge { font: 700 12.5px/1.3 var(--font-body); color: #fff; }
.asi-plan-badge::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: #8fc4ff; vertical-align: 1px; }
.asi-plan-premium::before { background: #ffd27a; } .asi-plan-legendary::before { background: #ff9d5c; } .asi-plan-guest::before { background: #93abc8; }
.asi-plan-more { font: 600 12.5px/1.2 var(--font-body); color: #dbe8f7; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.asi-plan-more:hover { color: #fff; }
.asi-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.asi-plan-grid[hidden] { display: none; }
.asi-plan-col { border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 10px 11px; min-width: 0; }
.asi-plan-col.on { border-color: #8fc4ff; background: rgba(143,196,255,.08); }
.asi-plan-col b { display: block; font-size: 14px; color: #fff; margin-bottom: 4px; }
.asi-plan-col ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #d5e3f3; }
.asi-plan-col li { margin: 2px 0; }
.asi-plan-col small { display: block; margin-top: 6px; font-size: 12px; color: #a9c0da; }
.asi-plan-col a, .asi-mode-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.asi-modes { display: flex; gap: 0; margin: 0 0 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; overflow: hidden; }
.asi-modes[hidden] { display: none; }   /* (owner 2026-11-10) the AI chat is the only way to ask: no tab bar */
.asi-mode { flex: 1 1 50%; min-width: 0; font: 600 13px/1.3 var(--font-body); color: #dbe8f7; background: transparent; border: 0; padding: 10px 12px; cursor: pointer; }
.asi-mode + .asi-mode { border-left: 1px solid rgba(255,255,255,.3); }
.asi-mode.on { background: #fff; color: #06142e; }
.asi-mode:not(.on):hover { background: rgba(255,255,255,.1); color: #fff; }
.asi-mode-note { font-size: 13px; line-height: 1.5; color: #c9d9ec; margin: 0 0 12px; }
.asi-mode-note[hidden], .asi-chips[hidden] { display: none; }
.asi-price { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #e3eefb; background: rgba(143,196,255,.12); border-left: 2px solid #8fc4ff; padding: 7px 10px; }
.asi-price[hidden] { display: none; }

.asi-cards { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.asi-cards-h { font: 700 11px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #a8d4ff; margin-bottom: 6px; }
.asi-card { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.asi-card:first-of-type { border-top: 0; padding-top: 2px; }
.asi-card-t { font-weight: 600; line-height: 1.45; }
.asi-card-t a { color: #fff; }
.asi-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: #d8e5f4; }
.asi-card-m { margin-top: 4px; font-size: 12px; color: #a9c0da; }
.asi-card-m a { color: #dbe8f7; }
.asi-badge { display: inline-block; font: 700 10px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #a6f2c8; border: 1px solid rgba(120,232,170,.6); border-radius: 2px; padding: 3px 5px; vertical-align: 2px; }
.asi-steps-full { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: #e2ecf8; }
.asi-cards-more { display: inline-block; margin-top: 6px; font-size: 12.5px; }
.asi-where { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.asi-where li { font-size: 13.5px; line-height: 1.4; min-width: 0; }
.asi-where small { font-size: 11px; color: #a9c0da; margin-left: 4px; }
.asi-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.asi-way { min-width: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 10px 11px; background: rgba(2,10,28,.28); }
.asi-way b { display: block; font-size: 13px; color: #fff; margin-bottom: 4px; }
.asi-way p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.asi-way .asi-ol { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.asi-way .asi-tool { font-size: 12px; padding: 8px 12px; }
.asi-muted { color: #a9c0da; }
.asi-chat-meta { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.18); font-size: 12.5px; line-height: 1.5; color: #c9d9ec; }
.asi-chat-src { margin-top: 4px; }
.asi-chat-src a { color: #fff; }
.asi-teach { margin-top: 14px; }
.asi-teach-form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: 12px; background: rgba(2,10,28,.32); }
.asi-teach-form[hidden] { display: none; }
.asi-teach-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.asi-teach-form .asi-in { width: 100%; min-width: 0; box-sizing: border-box; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.28); border-radius: 3px; color: #fff; font: 14px/1.4 var(--font-body); padding: 8px 10px; }
.asi-teach-form textarea.asi-in { resize: vertical; min-height: 96px; }
.asi-teach-msg { font-size: 13px; color: #e3eefb; align-self: center; }
@media (max-width: 760px) {
  .asi-plan-grid, .asi-ways { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .asi-modes { flex-direction: column; }
  .asi-mode + .asi-mode { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .asi-teach-row { grid-template-columns: 1fr; }
  .asi-where { grid-template-columns: 1fr; }
  .asi-teach-form .asi-in { font-size: 16px; }
  .asi-main { padding-bottom: 28px; }
}
/* phase 2: owner quotes, the server plan, product facts */
.asi-quote { margin: 8px 0 2px; padding: 6px 10px; border-left: 2px solid #ffd27a; background: rgba(255,210,122,.08); font-size: 13.5px; line-height: 1.5; color: #f3ecdc; }
.asi-quote-by { margin: 0 0 4px; font-size: 11.5px; color: #e9cf96; }
.asi-facts { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #d8e5f4; }
.asi-planout { margin-top: 12px; }
.asi-plan-lead { grid-column: 1 / -1; }
.asi-plan-notes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.asi-plan-notes .asi-field { flex: 1 1 320px; }
.asi-plan-notes .asi-in { width: 100%; box-sizing: border-box; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.28); border-radius: 3px; color: #fff; font: 14px/1.4 var(--font-body); padding: 8px 10px; }
@media (max-width: 600px) { .asi-plan-notes .asi-in { font-size: 16px; } }

/* (owner 2026-11-05) a section title takes the whole row and the "Ways to do it" cards the full width (they were
   squeezed into one grid column next to the title, a word per line) */
.asi-cards > .asi-cards-h, .asi-cards > .asi-ways, .asi-cards > .asi-where { grid-column: 1 / -1; }
.asi-ways { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* (2026-11-05, session s20261105-freechat) the optional free AI chat on the visitor's device (js/assistant-free.js) */
.asi-free { margin: 0 0 12px; }
.asi-free[hidden], .asi-free-panel[hidden], .asi-free-load[hidden], .asi-free-note[hidden], .asi-free-hint[hidden] { display: none; }
.asi-free-toggle { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--font-body); color: #dbe8f7; background: transparent; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.asi-free-toggle:hover { color: #fff; }
.asi-free-toggle:disabled { opacity: .6; cursor: progress; }
.asi-free-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.asi-free-knob { position: relative; flex: 0 0 auto; width: 34px; height: 18px; box-sizing: border-box; border-radius: 9px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.3); transition: background .15s, border-color .15s; }
.asi-free-knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #c9d9ec; transition: transform .15s; }
.asi-free-toggle[aria-checked="true"] .asi-free-knob { background: var(--blue); border-color: var(--blue); }
.asi-free-toggle[aria-checked="true"] .asi-free-knob::after { transform: translateX(16px); background: #06142e; }
.asi-free-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: #c9d9ec; }
.asi-free-on .asi-free-note { color: #a6f2c8; }
.asi-free-disk[hidden], #asiFreeDiskFolder[hidden], .asi-free-disk-msg[hidden] { display: none; }
.asi-free-disk { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: #c9d9ec; }
.asi-free-disk p { margin: 0 0 6px; }
.asi-free-disk-t { color: #a9bdd6; }
.asi-free-disk-msg { color: #a6f2c8; margin-top: 6px !important; }
.asi-free-panel { margin-top: 8px; border: 1px solid var(--border-blue); background: rgba(90,180,255,.06); border-radius: 4px; padding: 11px 13px; font-size: 13px; line-height: 1.5; color: #d8e5f4; }
.asi-free-panel p { margin: 0 0 6px; }
.asi-free-panel ul { margin: 0 0 8px; padding-left: 18px; }
.asi-free-panel li { margin: 2px 0; }
.asi-free-panel a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.asi-free-panel .asi-acts { margin: 4px 0 8px; }
.asi-free-hint { color: #a6f2c8; }
.asi-free-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin: 4px 0 6px; }
.asi-free-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.asi-free-msg { font-size: 12.5px; color: #c9d9ec; }
.asi-free-wait { margin: 0; color: #a9c0da; font-style: italic; }
.asi-free-stop { margin-top: 8px; font: 600 12px/1.2 var(--font-body); color: #dbe8f7; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 5px 10px; cursor: pointer; }
.asi-free-stop:hover { border-color: #fff; color: #fff; }
.asi-free-by { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #a9c0da; }
.asi-free-search { margin: 8px 0 0; font-size: 13.5px; }   /* (owner 2026-11-10) the MuGPS search link under an AI answer */
.asi-free-search a { color: #9fe3ff; font-weight: 600; }
.asi-free-src { margin-top: 6px; font-size: 13px; }
.asi-free-src summary { cursor: pointer; font-size: 12.5px; color: #a8d4ff; }
.asi-free-src-b { margin-top: 6px; padding-left: 10px; border-left: 2px solid rgba(143,196,255,.35); }

/* (owner 2026-11-05, session s20261105-asst) the model choice of the free AI chat and the AI chat tab while it is coming soon */
.asi-free-pick { max-width: 440px; margin: 0 0 8px; }
.asi-mode[aria-disabled="true"] { color: #a9c0da; cursor: default; }
.asi-mode[aria-disabled="true"]:hover { background: transparent; color: #c9d9ec; }

/* 2026-11-07: the account page's public profile link and sign out in one row (account.php .ucp-actions) */
.ucp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px}
.ucp-actions .ucp-pubprofile-btn{display:inline-flex;align-items:center;width:auto;margin:0;flex:0 0 auto}

/* (owner 2026-11-07) the text in the question box hides on hover and while typing */
.asi-input:hover::placeholder,.asi-input:focus::placeholder{color:transparent;opacity:0}

/* (owner 2026-11-14) terms: the required Terms tick in the "Teach the Assistant" form (assistant.php does not load portal.css) */
.asi-teach-form .terms-tick { display:flex; align-items:flex-start; gap:8px; font-size:12.5px; line-height:1.45; color:rgba(255,255,255,.82); cursor:pointer; }
.asi-teach-form .terms-tick input { flex:none; width:16px; height:16px; margin:2px 0 0; accent-color:var(--mx-accent, #8fc4ff); }
.asi-teach-form .terms-tick a { color:var(--mx-accent, #8fc4ff); text-decoration:underline; }

/* (owner 2026-11-14) assistant: "Create a Server Plan" (#asiSrvPlan, js/assistant-plan.js) and the closest MuADMINS pages line (js/assistant.js) */
.asi-srvplan { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); scroll-margin-top: 70px; }
.asi-srvplan[hidden] { display: none; }
.asi-sp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.asi-sp-title { font: 700 22px/1.2 var(--font-body); color: #fff; margin: 0 0 6px; outline: none; }
.asi-sp-x { font-size: 22px; line-height: 1; color: var(--text-dim); background: none; border: none; cursor: pointer; padding: 6px 10px; }
.asi-sp-x:hover { color: #fff; }
.asi-sp-lead, .asi-sp-help { font-size: 14px; line-height: 1.55; color: #c9d9ec; margin: 0 0 12px; max-width: 760px; }
.asi-sp-prog { display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #a8d4ff; margin: 0 0 12px; }
.asi-sp-bar { flex: 1; max-width: 260px; height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.asi-sp-bar i { display: block; height: 100%; background: var(--blue); }
.asi-sp-q { font: 700 20px/1.25 var(--font-body); color: #fff; margin: 0 0 6px; outline: none; }
.asi-sp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0 0 12px; }
.asi-sp-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.asi-opt.asi-sp-opt { min-height: 0; padding: 10px 13px; text-align: left; font: inherit; }
.asi-opt.asi-sp-opt.on { background: #fff; color: #06142e; border-color: #fff; }
.asi-opt.asi-sp-opt.on small { color: #36557f; }
.asi-srvplan .asi-in { font-family: var(--font-body); font-size: 14px; color: var(--text); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.14); border-radius: 3px; padding: 8px 10px; min-width: 0; }
.asi-srvplan .asi-in:focus { outline: none; border-color: var(--blue); }
.asi-sp-num { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--text-dim); margin: 0 0 12px; }
.asi-sp-num input { width: 120px; }
.asi-sp-text { display: block; width: 100%; max-width: 640px; resize: vertical; margin: 0 0 4px; }
.asi-sp-subq { font-size: 13.5px; font-weight: 600; color: #dbe8f7; margin: 12px 0 8px; }
.asi-sp-fam-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 12px; }
.asi-sp-fam { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 4px; }
.asi-sp-fam b { font-size: 15px; color: #fff; }
.asi-sp-fam p { margin: 0; }
.asi-sp-why { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #c9d9ec; }
.asi-sp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.asi-sp-row a, .asi-sp-more a, .asi-sp-plan a:not(.asi-tool) { color: #9fe3ff; }
.asi-sp-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.asi-sp-done { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.asi-chip.asi-sp-chip { font-size: 12px; padding: 6px 10px; }
.asi-sp-chip span { color: #a8d4ff; }
.asi-sp-chip:hover span { color: #1d58b0; }
.asi-sp-review { margin: 0; display: grid; gap: 6px; }
.asi-sp-review > div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.asi-sp-review dt { font-size: 12.5px; color: var(--text-muted); }
.asi-sp-review dd { margin: 0; font-size: 14px; color: #fff; }
.asi-sp-edit { margin-left: 8px; font: 600 12px/1 var(--font-body); color: #9fe3ff; background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.asi-sp-edit:hover { color: #fff; }
.asi-sp-msg { min-height: 1.4em; font-size: 13px; color: #c9d9ec; margin: 10px 0 0; }
.asi-sp-msg:empty { min-height: 0; margin: 0; }
.asi-sp-msg a { color: #9fe3ff; }
.asi-sp-summary { font-size: 15px; line-height: 1.55; color: #fff; margin: 0 0 10px; max-width: 820px; }
.asi-sp-notes, .asi-sp-note { font-size: 13.5px; color: #c9d9ec; margin: 0 0 10px; }
.asi-sp-sec { margin: 16px 0 0; }
.asi-sp-sec h4 { font: 600 11.5px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #a8d4ff; margin: 0 0 8px; }
.asi-sp-sec h4 a { letter-spacing: .04em; }
.asi-sp-files, .asi-sp-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: #dbe8f7; }
.asi-sp-files li, .asi-sp-steps > li { margin: 0 0 8px; }
.asi-sp-steps ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: #c9d9ec; }
.asi-sp-more { margin: 4px 0 0; font-size: 13px; }
.asi-sp-check { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: #dbe8f7; }
.asi-sp-check li { margin: 0 0 6px; }
.asi-sp-check label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.asi-sp-check input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--blue); }
.asi-sp-check input:checked + span { color: var(--text-muted); text-decoration: line-through; }
.asi-sp-host p { margin: 0 0 6px; font-size: 14px; color: #dbe8f7; }
.asi-sp-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.asi-sp-links .asi-tool { display: inline-block; text-decoration: none; }
.asi-sp-chat { margin: 14px 0 0; }
.asi-sp-copy { display: block; width: 100%; margin: 10px 0 0; font-size: 12.5px; }
.asi-sp-copy[hidden] { display: none; }
.asi-found-search { margin: 8px 0 0; font-size: 13.5px; color: #c9d9ec; }
.asi-found-search a { color: #9fe3ff; font-weight: 600; }
@media (max-width: 600px) {
  .asi-srvplan .asi-in { font-size: 16px; }
  .asi-sp-review > div { grid-template-columns: 1fr; gap: 2px; }
  .asi-sp-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ---------- (owner 2026-11-14, s20261114-setupux) the wizard, step 1 "Which server files will you run?" ----------
   The pick bar says what is picked, why Next is off and what to do instead; it stays at the bottom of the screen while the step
   is taller than the screen (position: sticky inside the step, so it ends above the warning that closes the step). */
.asi-ux-bar { position: sticky; bottom: 0; z-index: 4; flex-wrap: wrap; margin-top: 16px; padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #04122e; border: 1px solid var(--border-blue); border-radius: 6px; box-shadow: 0 -10px 22px -12px rgba(0,0,0,.55);
  font-size: 13.5px; font-weight: 400; line-height: 1.45; letter-spacing: normal; text-transform: none; color: var(--text); }
.asi-ux-info { flex: 1 1 260px; min-width: 0; }
.asi-ux-sel, .asi-ux-why { margin: 0; overflow-wrap: anywhere; }
.asi-ux-sel b { color: #fff; font-weight: 600; }
.asi-ux-why { font-size: 12.5px; font-weight: 400; line-height: 1.4; letter-spacing: normal; text-transform: none; color: var(--text-dim); }
.asi-ux-sel + .asi-ux-why { margin-top: 2px; }
.asi-ux-warn { color: var(--mx-gold, #ffd986); }
.asi-ux-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* the same reason line beside a dimmed Next on the other steps (step 2: no concept picked yet) */
.asi-ux-hint { flex: 1 1 0; min-width: 0; text-align: right; }
/* the badge that says what to do with files that have no settings sheet: long texts in other languages wrap inside the card */
.asi-badge.asi-badge-wrap { white-space: normal; max-width: 100%; line-height: 1.3; }
/* the first card of a list had 2 px of top padding left over from the answer cards above (.asi-card:first-of-type): its text sat 7 px higher than its neighbours */
.asi-setup-body .asi-card:first-of-type { padding-top: 9px; }
/* keyboard focus must not end up behind the pick bar (WCAG 2.2 "focus not obscured"): while the bar is in the step the browser keeps this much room
   below a control it scrolls into view (a browser without :has() just ignores the rule) */
.asi-wstep:has(> .asi-ux-bar) button, .asi-wstep:has(> .asi-ux-bar) a, .asi-wstep:has(> .asi-ux-bar) input { scroll-margin-bottom: 120px; }
/* for screen readers only: the polite announcement of a pick */
.asi-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .asi-ux-bar { padding: 9px 11px; padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
  .asi-ux-info { flex-basis: 100%; }
  .asi-ux-acts { flex: 1 1 100%; gap: 6px; }
  .asi-ux-acts .asi-btn { flex: 1 1 auto; padding: 9px 10px; font-size: 12.5px; }
}

/* ---------- (owner 2026-11-15, s20261115-plan) the Server Plan sections "Ports from your server files" (js/assistant-ports.js:
   the user's own files, read in the browser only) and "Ports, firewall and connections". On a phone the port table shows one
   card per port; its ARIA roles keep it a table for screen readers. ---------- */
.asi-sp-ports { padding: 14px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; }
.asi-sp-priv { margin: 0 0 12px; padding: 8px 12px; max-width: 760px; font-size: 13px; line-height: 1.5; color: #dbe8f7; background: rgba(0,0,0,.22); border-left: 3px solid var(--blue); border-radius: 3px; }
.asi-sp-pstat { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; color: #c9d9ec; }
.asi-sp-pstat:empty { min-height: 0; margin: 0; }
.asi-sp-ports .asi-sp-note { margin: 10px 0; }
.asi-sp-ports .asi-sp-why { margin: 0 0 10px; }
.asi-sp-ports .asi-sp-why li, .asi-sp-net .asi-sp-why li { margin: 0 0 4px; overflow-wrap: anywhere; }
.asi-sp-warn { color: var(--mx-gold, #ffd986); }
.asi-sp-man { color: #dbe8f7; }
.asi-sp-tblw { position: relative; overflow-x: auto; margin: 10px 0 8px; }
.asi-sp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; color: #dbe8f7; }
.asi-sp-tbl th { text-align: left; font: 600 11px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #a8d4ff; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
.asi-sp-tbl td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.asi-sp-tbl td:first-child { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; box-shadow: inset 3px 0 0 rgba(255,255,255,.18); }
.asi-sp-tbl tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.asi-sp-tbl tr.is-cond td:first-child { box-shadow: inset 3px 0 0 #9fe3ff; }
.asi-sp-tbl tr.is-check td:first-child { box-shadow: inset 3px 0 0 var(--mx-gold, #ffd986); }
.asi-sp-tbl tr.is-closed td, .asi-sp-tbl tr.is-closed td:first-child { color: var(--text-dim); }
.asi-sp-tbl td small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--text-dim); }
.asi-sp-src { min-width: 160px; font-size: 12px; color: #c9d9ec; overflow-wrap: anywhere; }
pre.asi-sp-fw { margin: 0 0 6px; padding: 10px 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 12.5px/1.5 Consolas, "Courier New", monospace; color: #dbe8f7; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; }
.asi-sp-net .asi-sp-why code, .asi-sp-ports code { font: 12.5px/1.4 Consolas, "Courier New", monospace; color: #fff; background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .asi-sp-ports { padding: 12px; }
  .asi-sp-tblw { overflow-x: visible; }
  .asi-sp-tbl, .asi-sp-tbl tbody, .asi-sp-tbl tr, .asi-sp-tbl td { display: block; width: auto; }
  .asi-sp-tbl thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .asi-sp-tbl tr { margin: 0 0 8px; padding: 7px 10px 7px 13px; background: rgba(0,0,0,.2); border-radius: 4px; box-shadow: inset 3px 0 0 rgba(255,255,255,.18); }
  .asi-sp-tbl tr.is-open { box-shadow: inset 3px 0 0 var(--blue); }
  .asi-sp-tbl tr.is-cond { box-shadow: inset 3px 0 0 #9fe3ff; }
  .asi-sp-tbl tr.is-check { box-shadow: inset 3px 0 0 var(--mx-gold, #ffd986); }
  .asi-sp-tbl td { padding: 2px 0; border: 0; }
  .asi-sp-tbl tr[class] td:first-child { font-size: 15px; box-shadow: none; }
  .asi-sp-tbl td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--text-muted); }
  .asi-sp-src { min-width: 0; }
}
