/* Agent Campus on top of the «Console» theme by Forge UI (tokens.css, console.css and console-ui.js next to this file,
   a copy of export/console/, 26.11.2026). The theme styles only its ac- components; the page itself is ours: body,
   headings, the container, the footer. This file also holds what the theme does not have: the drawer and quiet mode,
   language links instead of buttons, native form controls dressed as keys and cartridges, the file tree. */

/* ---------- site base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background: url("grain.png"), radial-gradient(1200px 800px at 85% -10%, #FFF8EC, transparent 60%), radial-gradient(900px 700px at -10% 30%, #F3E6D3, transparent 60%), var(--page); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1 { margin: 0; font-size: 64px; line-height: 1; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
h2 { margin: 0; font-size: 38px; line-height: 1.05; letter-spacing: -.025em; font-weight: 800; }
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

[hidden] { display: none !important; }
/* icons are inline SVG in the text colour: the font subsets have no arrows or check marks */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.ac-steps li i .ico { width: 14px; height: 14px; vertical-align: 0; }
.ac-slot4.ac-got .ac-n::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6.5 12.5 13.5 4' fill='none' stroke='%235E8C3A' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 60; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #FFF8EF; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.ac-nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .55); }
.ac-mine { text-decoration: none; }
.ac-mine:hover span { color: var(--ink); }
.ac-lang a { position: relative; z-index: 2; display: grid; place-items: center; font: 700 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink3); text-decoration: none; }
.ac-lang a[aria-current="true"] { color: var(--ink); }
.ac-lang .ac-knob { transform: translateX(calc(var(--i, 0) * 40px)); }
.key-mini { padding: 8px 12px; font-size: 13px; border-radius: 10px; text-decoration: none; }
.start-key { text-decoration: none; padding: 10px 16px; }
.quiet-key[aria-pressed="true"], .quiet-toggle[aria-pressed="true"] { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(110, 98, 78, .25), 0 1px 0 #B9B1A1; }
.burger { display: none; }
@media (max-width: 1100px) {
  .quiet-key { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .ac-lang .ac-knob { transform: translateX(calc(var(--i, 0) * 34px)); }
}

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(37, 34, 29, .35); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(340px, 88vw); padding: 16px 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; background: linear-gradient(180deg, var(--plastic-hi), var(--plastic) 40%, var(--plastic-lo));
  box-shadow: -24px 0 40px -24px rgba(60, 48, 30, .55); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head .logo { font-size: 17px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { padding: 12px 4px; border-bottom: 1px solid var(--seam); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.drawer-label { margin: 0 0 6px; font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.drawer .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.drawer .chip { display: inline-block; padding: 5px 10px; border-radius: 10px; font-size: 14px; color: var(--ink); text-decoration: none; background: #FFFDF8; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .14); }
.drawer .chip.is-on, .drawer .chip[aria-current="true"] { color: #FFF8EF; background: var(--ink); box-shadow: none; }
.drawer .chip.is-off { color: var(--ink3); }
.drawer .count { display: inline-block; min-width: 22px; padding: 4px 6px; border-radius: 5px; font: 600 12px/1 var(--pixel); color: #B9F2A0; background: #1E2A1C; text-align: center; }
.drawer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer;
  color: var(--ink); text-decoration: none; background: linear-gradient(180deg, #FFFDF8, #EEE8DC 55%, #DCD4C4); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #B9B1A1; }
.drawer .btn-primary { color: #FFF8EF; background: linear-gradient(180deg, var(--orange-hi), var(--orange) 55%, var(--orange-lo)); box-shadow: inset 0 1px 0 rgba(255, 236, 214, .9), 0 3px 0 #8E4314; }
.drawer .btn-block { display: flex; width: 100%; }

/* Kit's canvas carries the class "kit" too: inside the host it is a plain block, the host alone is centred. */
.ac-screen .ac-kit > canvas.ac-kit { position: static; transform: none; }

/* ---------- home ---------- */
.levels-lead { margin: -10px 0 24px; }
.ac-review .ac-key[disabled] { opacity: .65; cursor: not-allowed; }
.ac-cart:focus-visible { outline: 3px solid #7FB0F0; outline-offset: 3px; }

/* ---------- setup: native controls dressed as the mockup's keys ---------- */
fieldset.ac-q { border: 0; margin: 26px 0 0; min-width: 0; }
fieldset.ac-q > legend.ac-q-head { float: left; width: 100%; padding: 0; }
fieldset.ac-q > legend + * { clear: both; }
.ac-q-head label { cursor: pointer; }
.q-hint-top { margin: -4px 0 12px; }
.ac-field.area { padding: 0; }
textarea.bare { width: 100%; resize: none; padding: 14px; border: 0; outline: none; background: none; box-shadow: none; font: 500 16px/1.45 var(--sans); color: var(--ink); }
.ac-seg label { display: block; cursor: pointer; }
.ac-seg label span { display: block; padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--ink3); text-align: center; }
.ac-seg.ac-wide label { flex: 1; }
.ac-seg.ac-wide label span { padding: 10px 12px; }
.ac-seg input:checked + span { color: var(--ink); background: linear-gradient(180deg, #FFFDF8, #E9E2D5); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #B9B1A1; }
.ac-seg input:focus-visible + span { outline: 3px solid #7FB0F0; outline-offset: 2px; }
.ac-mem { display: block; }
.ac-mem:has(input:checked) { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 0 0 #A39B8B, 0 0 0 3px var(--orange), 0 6px 12px -8px rgba(60, 46, 26, .5); }
.ac-mem:has(input:checked) .ac-lab { background: #FFF3E3; }
.ac-add:has(input:checked) { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #B9B1A1, 0 4px 8px -6px rgba(60, 46, 26, .5); }
.ac-add:has(input:checked) i { background: radial-gradient(circle at 40% 35%, #D7FFB8, #6BCB3C 55%, #3E8A1E); box-shadow: 0 0 8px 2px rgba(107, 203, 60, .6); }
.ac-add small code, .ac-add b code { font-size: .92em; }
.ac-lv:has(input:checked) { box-shadow: inset 0 1px 0 #fff, 0 0 0 #B9B1A1, 0 0 0 3px var(--orange); }
.ac-lv .ac-lock { position: absolute; right: 10px; top: 12px; width: 20px; height: 16px; border-radius: 3px; background: var(--plum); box-shadow: 0 2px 0 #46263D; transform: scale(.8); }
.ac-lv .ac-lock::before { content: ""; position: absolute; left: 4px; top: -9px; width: 12px; height: 12px; border-radius: 6px 6px 0 0; border: 3px solid var(--plum); border-bottom: 0; box-sizing: border-box; }
.ac-mem:has(input:focus-visible), .ac-add:has(input:focus-visible), .ac-lv:has(input:focus-visible) { outline: 3px solid #7FB0F0; outline-offset: 3px; }
.persona-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.persona-field label { display: block; margin-bottom: 6px; font-size: 14px; }
.ac-actions .ac-key { text-decoration: none; }

/* printer: the whole file scrolls on the paper, answers glow */
.ac-paper { overflow: auto; }
.ac-paper.ac-new { animation: ac-feed .5s steps(5); }
.head-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink3); }
.tree-mac { margin-top: 4px; }
.tree-body { margin: 0; padding: 14px 16px; overflow-x: auto; white-space: pre; font: 12px/1.5 var(--mono); color: var(--ink); background: #F2EFE8; }

/* ---------- result: steps as cards, the save ceremony on the handheld, awards, share ---------- */
.ac-res .ac-lead a { color: var(--ink); font-weight: 700; }
.stps { list-style: none; margin: 0; padding: 0; }
.ac-stp h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.ac-stp p code, .ac-odd code { font: 500 .9em/1.4 var(--mono); }
/* commands and the first phrase wrap like text: no hanging spaces past the frame, long paths break where needed */
.ac-cmd code { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
.ac-stp .ac-hint, .ac-odd .ac-hint { margin: 10px 0 0; font-size: 14px; color: var(--ink3); }
.ac-odd p { margin: 0; }
.ac-row .ac-key { text-decoration: none; }
.file-mac { margin-top: 22px; }
.file-mac summary { cursor: pointer; list-style: none; }
.file-mac summary::-webkit-details-marker { display: none; }
.file-mac summary:focus-visible { outline: 3px solid #7FB0F0; outline-offset: 2px; }
.file-mac pre { max-height: 460px; margin: 0; padding: 14px 16px; overflow: auto; white-space: pre-wrap; font: 12.5px/1.55 var(--mono); color: var(--ink); background: #FFFDF8; }
.ac-awards h2 { margin: 0; font-size: 16px; }
.ac-slots4 { list-style: none; padding: 0; }
.ac-slot4.just { animation: award-pop .6s steps(4); }
@keyframes award-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.aprog { margin: 10px 0 0; font-size: 13px; color: var(--ink3); }
.aprog + .aprog { margin-top: 4px; }
.aprog:empty { display: none; }
.share-wrap { margin-top: 32px; margin-bottom: 60px; }
.ac-share h2 { margin: 0; }
.ac-share .og { margin: 0; }
.ac-share .og img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1.5px #2A2620, 0 18px 30px -18px rgba(40, 30, 20, .6); }
.ac-share .og figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { .ac-slot4.just { animation: none; } }

/* ---------- catalog, agent card, «How it works», my agents: page layouts from Forge UI's console-*.html (26.11),
   theme classes renamed to ac-, the page's own classes kept ---------- */
.lib, .agentcard, .my { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; padding-top: 26px; padding-bottom: 70px; align-items: start; }
.lib h1, .my h1, .how-page h1 { font-size: 50px; }
.agentcard h1 { font-size: 48px; }
.lib .ac-side, .agentcard .ac-side, .my .ac-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.ac-carts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
.ac-carts.two .ac-cart { min-height: 0; text-decoration: none; color: inherit; }
.ac-carts.two .ac-label .ac-art { height: 90px; }
.ac-carts.two .ac-label .ac-art img { width: 64px; height: 64px; }
.ac-carts.two .ac-label .ac-sh { font-size: 14px; }
.ac-cart.is-on { transform: translateY(-10px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .65), inset 0 -3px 0 rgba(90, 80, 62, .25), 0 3px 0 #A39B8B, 0 0 0 3px var(--c), 0 22px 30px -16px rgba(60, 46, 26, .6); }
.ac-cart.is-on .ac-ins { opacity: 1; }
.roles-mini { display: flex; gap: 4px; padding: 0 10px 10px; }
.roles-mini img { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 6px; background: #FFFDF8; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .12); }
.more-note { margin-top: 22px; font-size: 15px; color: var(--ink3); }

.crumbs { display: flex; gap: 8px; margin: 0 0 14px; font: 600 13px/1 var(--mono); color: var(--ink3); }
.crumbs a { color: var(--ink2); text-decoration: none; }
/* the theme pads every bare <section> by 56 px; page blocks keep their own rhythm */
section.blk { padding: 0; }
.blk { margin-top: 34px; }
.blk h2 { font-size: 26px; margin: 0 0 14px; }
.party { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.member { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; }
.member img { width: 52px; height: 52px; image-rendering: pixelated; border-radius: 12px; background: #FFFDF8; box-shadow: inset 0 0 0 1.5px rgba(37, 34, 29, .14), 0 3px 0 #CFC7B7; }
.member b { display: block; font-size: 16px; }
.member small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.35; }
.asks { display: grid; gap: 14px; }
.ask-line { position: relative; margin: 7px; padding: 12px 14px; background: #FFF8EC; color: #2A2016; font: 500 15px/1.35 var(--pixel); box-shadow: 0 0 0 3px #2A2016, 0 0 0 5px #FFF8EC, 0 0 0 7px #2A2016; }
.ask-line small { display: block; margin-top: 6px; font: 500 13px/1.4 var(--mono); color: #6E6455; }
.tpl { padding: 18px; border-radius: 20px; }
.tpl-label { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--l, #D6E6FA); box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .18); }
.tpl-label img { width: 40px; height: 40px; image-rendering: pixelated; }
.tpl-label b { display: block; font: 700 15px/1.2 var(--mono); }
.tpl-label small { color: var(--ink2); font-size: 13px; }
.tpl-row { display: grid; gap: 10px; margin-top: 14px; }
.tpl-row .ac-key { text-align: center; text-decoration: none; }
.tpl p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink3); }
.facts { display: grid; gap: 6px; margin: 14px 0 0; }
.fact { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.fact dt { margin: 0; }
.fact dd { margin: 0; padding: 4px 8px; border-radius: 5px; font: 500 13px/1.3 var(--pixel); color: #B9F2A0; background: #1E2A1C; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); text-align: right; }
.noc a { color: var(--orange-lo); }

.how-page { padding-top: 26px; padding-bottom: 70px; }
.how-page h1 { max-width: 900px; }
.how-page .ac-lead { max-width: 760px; }
.how-page .ac-lead + .ac-lead { margin-top: 10px; }
.how-page .blk { margin-top: 46px; }
.how-page .blk h2 { font-size: 28px; margin: 0 0 16px; }
.loop { position: relative; height: 470px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #9FD4F5 0, #CDEAF8 74%, #5E9E3E 74%, #5E9E3E calc(74% + 6px), #8FCB6A calc(74% + 6px), #79B656 100%);
  box-shadow: inset 0 0 0 3px #2A2016, 0 18px 40px -24px rgba(60, 46, 26, .6); }
.loop-steps { position: absolute; left: 0; right: 0; top: 28px; margin: 0; padding: 0; list-style: none; }
.loop-path { position: absolute; left: 12%; right: 12%; top: 26px; border-top: 4px dashed rgba(42, 32, 22, .5); }
.lv-step { position: absolute; top: 0; width: 184px; margin-left: -92px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.lv-block { position: relative; width: 56px; height: 56px; display: grid; place-items: center; font: 500 22px/1 var(--pixel); color: #2A2016; background: #FFF8EC;
  box-shadow: 0 0 0 3px #2A2016, 5px 5px 0 rgba(42, 32, 22, .3); transition: background .25s, color .25s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.lv-text { max-width: 184px; padding: 6px 8px; font: 500 14px/1.3 var(--pixel); color: #2A2016; background: #FFF8EC; box-shadow: 0 0 0 2px #2A2016; }
.lv-step.done .lv-block { background: #DDF5C9; }
.lv-block::after { content: ""; position: absolute; right: -11px; top: -11px; width: 24px; height: 24px;
  background: #5E9E3E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges' fill='%23fff'%3E%3Cpath d='M6 0h1v1H6zM5 1h2v1H5zM0 2h1v1H0zM4 2h2v1H4zM0 3h2v1H0zM3 3h2v1H3zM1 4h3v1H1zM2 5h1v1H2z'/%3E%3C/svg%3E") center/14px 12px no-repeat;
  box-shadow: 0 0 0 3px #2A2016; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.lv-step.done .lv-block::after { transform: scale(1); }
.lv-step.on .lv-block { background: #E07A2E; color: #FFF8EC; transform: translateY(-8px); }
.walker { position: absolute; bottom: 36px; width: 256px; height: 256px; margin-left: -158px; transform: scaleX(-1); }
.walker canvas { display: block; }
.note { margin-top: 10px; font-size: 14px; color: var(--ink3); }
.warn { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 9px; padding: 20px 22px; border-radius: 18px; background: #FFF3C4;
  box-shadow: inset 0 0 0 3px #2A2016, 0 0 0 6px #FFF3C4, 0 0 0 9px #2A2016; }
.warn-icon { display: block; }
.warn b { display: block; font: 500 22px/1.2 var(--pixel); }
.warn p { margin: 6px 0 0; color: #5A4A20; }
.aid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aid > div { padding: 14px 16px; border-radius: 14px; background: #FFFDF8; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .12), 0 3px 0 #CFC7B7; }
.aid b { display: flex; gap: 8px; align-items: baseline; font-size: 15.5px; }
.aid b::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; font: 700 15px/1 var(--mono); color: #fff; background: #C8473B; border-radius: 4px; }
.aid p { margin: 6px 0 0 28px; font-size: 14px; color: var(--ink2); }
.lvls4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lvls4 .ac-lvl b { display: block; margin-top: 10px; }
.cta { display: inline-block; margin-top: 30px; text-decoration: none; }

.memcard { margin-top: 26px; padding: 16px; border-radius: 18px; background: #26272D; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 18px 40px -24px rgba(20, 16, 10, .7); }
.memcard h2 { margin: 4px 6px 12px; font: 500 15px/1 var(--pixel); color: #9EA1AB; letter-spacing: .06em; text-transform: uppercase; }
.saves { margin: 0; padding: 0; list-style: none; }
.saverow { display: grid; grid-template-columns: auto 56px 1fr auto; gap: 14px; align-items: center; margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #17191E; color: #E9E3D6; box-shadow: inset 0 0 0 2px #34363D; }
.saverow:hover, .saverow:focus-within { box-shadow: inset 0 0 0 2px #E07A2E; }
.save-n { font: 500 14px/1 var(--pixel); color: #B9F2A0; }
.saverow img { width: 48px; height: 48px; padding: 4px; image-rendering: pixelated; background: #FFF8EC; border-radius: 8px; }
.saverow b { display: block; font-size: 16px; color: #FFF8EC; }
.saverow small { display: block; font: 500 12.5px/1.4 var(--mono); color: #8E909A; }
.saverow .ac-key { padding: 9px 14px; font-size: 14px; }
.empty { padding: 26px; text-align: center; color: #9EA1AB; font: 500 16px/1.5 var(--pixel); }
.empty .ac-key { font-family: var(--sans); text-decoration: none; }
.suggest { margin-top: 16px; font-size: 15px; color: var(--ink2); }
.suggest a { color: var(--orange-lo); font-weight: 700; text-underline-offset: 3px; }
.my .reset { margin-top: 22px; }
.my .ac-awards h2 { margin: 0; font-size: 16px; }
.my .ac-awards { padding: 18px; border-radius: 20px; }

@media (max-width: 900px) {
  .lib, .agentcard, .my { grid-template-columns: 1fr; }
  .lib .ac-side, .agentcard .ac-side, .my .ac-side { position: static; order: -1; }
  .lib h1, .my h1, .how-page h1 { font-size: 36px; }
  .agentcard h1 { font-size: 34px; }
  .ac-carts.two, .party, .aid, .lvls4 { grid-template-columns: 1fr; }
  .loop { height: auto; padding: 22px 18px 0; background: linear-gradient(180deg, #9FD4F5 0, #CDEAF8 calc(100% - 64px), #5E9E3E calc(100% - 64px), #5E9E3E calc(100% - 58px), #8FCB6A calc(100% - 58px), #79B656 100%); }
  .loop-steps { position: relative; top: 0; display: grid; gap: 16px; }
  .loop-path { left: 26px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 4px dashed rgba(42, 32, 22, .5); }
  .lv-step { position: relative; left: auto !important; width: auto; margin: 0; grid-template-columns: 56px 1fr; justify-items: start; align-items: center; gap: 24px; text-align: left; }
  .lv-text { max-width: none; }
  .lv-step.on .lv-block { transform: none; }
  .warn { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .walker { position: relative; left: auto !important; bottom: auto; margin: 6px auto 16px; transform: none; }
  .saverow { grid-template-columns: auto 44px 1fr; }
  .saverow .ac-key { grid-column: 1 / -1; text-align: center; }
}

/* ---------- plain pages in the theme: guides, support, 404 ---------- */
.page-plain { padding-top: 26px; padding-bottom: 70px; max-width: 1240px; }
.page-plain h1 { font-size: 50px; }
.page-plain .ac-lead { max-width: 760px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.guide { padding: 18px 20px; border-radius: 18px; }
.guide h2 { font-size: 19px; line-height: 1.3; }
.guide p { margin: 8px 0 12px; font-size: 15px; color: var(--ink2); }
.guide-status { display: inline-block; padding: 4px 8px; border-radius: 6px; font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); background: #FFFDF8; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .12); }
.source-list { margin: 0; padding-left: 20px; }
.source-list li { margin-top: 6px; }
.source-list a { color: var(--ink); }
.note-lead { margin: 0 0 16px; color: var(--ink2); }
.support-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.support-ways { max-width: 760px; margin-top: 30px; }
.not-found { text-align: left; }
.not-found .lost { margin: 0 0 8px; font: 500 96px/1 var(--pixel); color: var(--orange); }
.not-found .ac-key { text-decoration: none; }
@media (max-width: 900px) {
  .page-plain h1 { font-size: 36px; }
  .guide-list, .support-levels { grid-template-columns: 1fr; }
}

/* ---------- support chat: a neutral frame until Forge UI draws it ---------- */
.support-launch { position: fixed; right: 18px; bottom: 18px; z-index: 30; }
.support-open { position: relative; padding: 10px 16px; font-size: 14px; }
.support-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #FFF8EC; }
.support-panel { position: fixed; right: 18px; bottom: 74px; z-index: 31; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); max-height: min(620px, calc(100vh - 110px)); padding: 16px; border-radius: 18px; }
.support-panel[hidden] { display: none; }
.support-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.support-head h2 { margin: 0; font-size: 18px; }
.support-number { font: 500 13px/1 var(--mono); color: var(--ink3); }
.support-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #FFFDF8; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .14); }
.support-intro, .support-note, .support-hint { margin: 0; font-size: 13px; color: var(--ink3); }
.support-log { flex: 1; min-height: 60px; overflow-y: auto; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; align-content: start; }
.support-log:empty { display: none; }
.support-msg { max-width: 88%; padding: 8px 10px; border-radius: 12px; background: #FFFDF8; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .12); }
.support-msg.is-mine { justify-self: end; background: #FFF3E3; }
.support-msg b { display: block; font-size: 12px; color: var(--ink3); }
.support-msg p { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-form textarea, .support-form input[type="text"] { width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; font: 500 15px/1.4 var(--sans); color: var(--ink); background: #FFFDF8; box-shadow: inset 0 0 0 1px rgba(37, 34, 29, .18); resize: vertical; }
.support-contact { margin-top: 8px; font-size: 13px; }
.support-contact summary { cursor: pointer; color: var(--ink2); }
.support-contact input { margin-top: 6px; }
.support-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.support-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.support-status { font-size: 13px; color: var(--ink2); }
@media (max-width: 640px) {
  .support-launch { right: 12px; bottom: 12px; }
  .support-panel { right: 8px; left: 8px; bottom: 66px; width: auto; }
}

/* ---------- legal pages: a readable column, the summary on top, a draft notice while [brackets] remain ---------- */
.legal { max-width: 820px; padding-top: 28px; padding-bottom: 40px; }
.legal h1 { font-size: 46px; }
.legal-draft { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; font-size: 15px; color: #5A2E0E; background: #FFE2B8; box-shadow: inset 0 0 0 2px var(--orange); }
.legal-short { margin: 24px 0 8px; padding: 18px 22px; border-radius: var(--r); }
.legal-short h2 { font-size: 22px; }
.legal-short ul, .legal-body ul { margin: 10px 0 0; padding-left: 20px; }
.legal-short li { margin-top: 8px; }
.legal-body { font-size: 16px; color: var(--ink2); }
.legal-body h2 { margin: 34px 0 10px; font-size: 24px; color: var(--ink); }
.legal-body p { margin: 10px 0 0; }
.legal-body li { margin-top: 4px; }
.legal-body blockquote { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--seam); color: var(--ink3); font-size: 15px; }
.legal-body blockquote p { margin: 0; }
.legal a { color: var(--ink); }
.legal .todo { padding: 0 3px; border-radius: 4px; background: #FFE9B8; color: #5A2E0E; }
@media (max-width: 900px) { .legal h1 { font-size: 32px; } }

/* ---------- footer (theme .ac-foot) plus the legal links on their own line ---------- */
/* with the GitHub key there are four links: the name and privacy keep at least 300 px, the keys wrap instead */
.ac-foot .ac-wrap { grid-template-columns: minmax(300px, 1fr) auto; }
@media (max-width: 900px) { .ac-foot .ac-wrap { grid-template-columns: 1fr; } }
/* GitHub: the mark and a gold star before the label, like the Star button on GitHub */
.ghch img { width: 24px; height: 24px; margin: 2px; }
.ghch b { display: flex; align-items: center; gap: 5px; }
.ghch .star { width: 14px; height: 14px; margin: 0; }
.f-legal { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.f-legal a { color: var(--ink3); }
.f-legal a:hover { color: var(--ink); }

.ac-steps li a { color: inherit; text-decoration: none; }
.ac-steps li a:hover { text-decoration: underline; }

/* ---------- quiet mode and phones ---------- */
html[data-quiet="1"] [data-slot^="mascot"] { display: none; }
@media (max-width: 900px) {
  .persona-fields { grid-template-columns: 1fr; }
  .ac-review .ac-key { width: 100%; }
  /* phones: the handheld above the questions, the printed file and the tree after them */
  .ac-setup .ac-side { display: contents; }
  .ac-setup .ac-side > :first-child { order: -1; }
  .ac-setup .ac-side > .ac-printer { order: 1; }
  .ac-setup .ac-side > .tree-mac { order: 2; }
  /* result: the handheld with the save ceremony first, the awards after the steps */
  .ac-res .ac-side { display: contents; }
  .ac-res .ac-side > .ac-device { order: -1; }
  .ac-res .ac-side > .ac-awards { order: 1; }
}
@media (max-width: 640px) {
  .tree-body { font-size: 10.5px; padding: 12px; }
  /* result on phones: the number sits beside the title, text and commands get the full width */
  .ac-stp { padding: 18px 16px; }
  .ac-stp .ac-no { position: static; float: left; width: 34px; height: 34px; margin: 0 12px 8px 3px; font-size: 16px; }
  .ac-stp h2 { padding-top: 6px; }
  .ac-stp > p { clear: both; }
  .ac-cmd { flex-direction: column; align-items: stretch; }
  .ac-cmd .ac-key { align-self: flex-end; }
}
