/* Devpilot app fragments: HTML recreations of the app, animated by main.js. */
.app {
  --a-bg: #0c0d10;
  --a-side: #0e0f13;
  --a-panel: #111216;
  --a-line: rgba(255,255,255,.07);
  --a-line-2: rgba(255,255,255,.12);
  --a-text: #e4e6eb;
  --a-mut: #7d828c;
  --a-faint: #555a63;
  --a-accent: #3b82f6;
  position: relative;
  background: var(--a-bg);
  border: 1px solid var(--a-line-2);
  border-radius: 12px;
  color: var(--a-text);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 50px 120px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}
svg.ic { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app .mut { color: var(--a-mut); }
.app code { font-size: 11.5px; padding: 0; background: none; border: 0; color: var(--a-mut); }
.app b { color: var(--a-text); font-weight: 560; }
.c-gr { color: #22c55e; } .c-am { color: #f5a524; } .c-rd { color: #ef4444; } .c-vi { color: #a78bfa; } .c-or { color: #f97316; }

/* top bar */
.app-top { display: flex; align-items: center; gap: 18px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--a-line); background: #0a0b0e; }
.app-top.slim { height: 40px; }
.at-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; width: 206px; }
.logo-dot { width: 14px; height: 14px; border-radius: 4px; background: conic-gradient(from 200deg, #5e6ad2, #4c8dff, #a78bfa, #5e6ad2); }
.at-crumbs { display: flex; align-items: center; gap: 8px; color: var(--a-mut); }
.at-crumbs .ic { width: 12px; height: 12px; color: var(--a-faint); }
.at-tabs { display: flex; align-items: center; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; color: var(--a-mut); }
.tab.on { background: rgba(255,255,255,.06); color: var(--a-text); box-shadow: inset 0 0 0 1px var(--a-line); }
.tab .tx { width: 11px; height: 11px; margin-left: 4px; color: var(--a-faint); }
.at-win { margin-left: auto; display: flex; gap: 18px; color: var(--a-mut); }
.at-win .ic { width: 13px; height: 13px; }

.app-body { display: grid; grid-template-columns: 232px 1fr 300px; height: 520px; }
.app-side { background: var(--a-side); border-right: 1px solid var(--a-line); padding: 12px 10px; overflow: hidden; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-ctx { border-left: 1px solid var(--a-line); background: var(--a-side); display: flex; flex-direction: column; min-width: 0; }
.app-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 28px; padding: 0 14px; border-top: 1px solid var(--a-line); background: #0a0b0e; font-family: var(--mono); font-size: 11px; white-space: nowrap; overflow: hidden; }
.app-status b { font-weight: 600; }
.minibar { display: inline-block; width: 60px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); vertical-align: middle; overflow: hidden; }
.minibar i { display: block; width: 36%; height: 100%; background: #f5a524; }

/* sidebar rows (shared with the status panel) */
.app .sd-filter, .status-demo .sd-filter { gap: 8px; }
.app .sd-cat .ic { width: 11px; height: 11px; color: var(--a-faint); margin-right: -2px; }
.app .sd-row, .status-demo .sd-row { transition: background .3s; }
.sd-row .glyph { width: 14px; text-align: center; font-family: var(--mono); font-size: 12px; color: #22c55e; margin-top: 2px; }
.sd-row small { transition: color .3s; }
.sd-row.flash { animation: rowglow 1.1s ease-out 3; }
@keyframes rowglow { 0% { box-shadow: inset 0 0 0 1px rgba(59,130,246,.9), 0 0 18px rgba(59,130,246,.45); } 100% { box-shadow: inset 0 0 0 1px rgba(59,130,246,0), 0 0 0 rgba(59,130,246,0); } }
.sd-row .att { display: none; }
.sd-row.attn .glyph::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 8px #f5a524; }
.lg { transition: opacity .3s; }
.status-demo.focus .lg { opacity: .35; }
.status-demo.focus .lg.on { opacity: 1; }

/* terminal */
.term-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--a-line); flex: none; }
.th-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--a-mut); }
.term { flex: 1; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #cfd3da; overflow: hidden; }
.term.tall { min-height: 200px; }
.tl { white-space: pre-wrap; word-break: break-word; }
.tl.ind { padding-left: 18px; }
.tl.new { animation: tlin .35s ease-out; }
@keyframes tlin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tl.prompt { color: var(--a-text); margin-top: 6px; }
.tcaret { display: inline-block; width: 7px; height: 14px; background: #cfd3da; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.term .spin, .spin { display: inline-block; font-family: var(--mono); }

/* context panel */
.ctx-head { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 14px; color: var(--a-mut); }
.ctx-head b { color: var(--a-text); }
.ctx-tabs { display: flex; gap: 2px; padding: 0 10px 8px; border-bottom: 1px solid var(--a-line); font-size: 12px; color: var(--a-mut); white-space: nowrap; overflow: hidden; }
.frag-ctx .ctx-tabs { padding-top: 10px; }
.ctx-tabs span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; }
.ctx-tabs span.on { color: var(--a-text); background: rgba(255,255,255,.06); }
.ctx-tabs span.on .ic { color: var(--a-accent); }
.ctx-tabs .ic { width: 12px; height: 12px; }
.ctx-tabs em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--a-faint); transition: color .3s; }
.ctx-tabs em.bump { color: #f5a524; }
.ctx-list { padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ctx-list.pad { padding: 18px; gap: 10px; }
.ctx-sec { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--a-faint); padding: 4px 4px 0; }
.card { border: 1px solid var(--a-line); border-radius: 8px; padding: 9px 11px; background: rgba(255,255,255,.025); transition: border-color .25s, background .25s, opacity .4s, transform .4s; }
.card > b { display: block; font-size: 12.5px; margin: 4px 0 6px; font-weight: 540; }
.card-top { display: flex; align-items: center; gap: 6px; }
.card-top .ic { width: 12px; height: 12px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--mono); }
.card-meta .age { margin-left: auto; color: var(--a-faint); }
.card.hot { border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.07); }
.card.enter { animation: cardin .5s cubic-bezier(.2,.8,.2,1); }
@keyframes cardin { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.st { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid; }
.st.open { color: #4ade80; border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
.st.merged { color: #c4b5fd; border-color: rgba(196,181,253,.35); background: rgba(196,181,253,.1); }
.av { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c); color: #fff; font-size: 7.5px; font-weight: 700; font-family: Inter, sans-serif; margin-left: -3px; box-shadow: 0 0 0 1.5px var(--a-side); }
.av:first-of-type { margin-left: 0; }

/* questions */
.opt { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--a-line); margin-top: 6px; color: #cfd3da; font-size: 12.5px; transition: border-color .2s, background .2s; cursor: default; }
.radio { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--a-faint); flex: none; transition: border-color .2s, box-shadow .2s; }
.opt.on { border-color: rgba(59,130,246,.6); background: rgba(59,130,246,.08); }
.opt.on .radio { border-color: var(--a-accent); box-shadow: inset 0 0 0 2.5px var(--a-bg), inset 0 0 0 6px var(--a-accent); }
.fq-head { display: flex; align-items: center; gap: 7px; }
.fq-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.btn-s { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 550; border: 1px solid var(--a-line-2); color: var(--a-text); transition: transform .12s, filter .12s; }
.btn-s.primary { background: var(--a-accent); border-color: transparent; color: #fff; }
.btn-s.press { transform: scale(.94); filter: brightness(1.2); }
.tag { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: auto; }
.tag.amber { color: #f5a524; background: rgba(245,165,36,.12); border: 1px solid rgba(245,165,36,.35); }
.tag.answered { color: var(--a-mut); border: 1px solid var(--a-line-2); opacity: 0; transition: opacity .3s; }
.qcard { border: 1px solid rgba(245,165,36,.35); background: rgba(245,165,36,.05); border-radius: 9px; padding: 11px 12px; transition: opacity .4s, border-color .4s, background .4s; }
.qcard b { font-size: 12.5px; }
.qcard.done { opacity: .55; border-color: var(--a-line); background: transparent; }
.qcard.done .fq-head b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.4); }
.qcard.done .tag.answered { opacity: 1; }
.qcard.done .fq-head .dot { background: var(--a-faint); box-shadow: none; }

/* floating question (hero) */
.float-q {
  position: absolute; right: 22px; bottom: 50px; width: 290px; z-index: 5;
  background: rgba(22,23,28,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 13px 14px;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}
.float-q.on { opacity: 1; transform: none; }
.float-q p { margin: 8px 0 4px; font-size: 13px; color: var(--a-text); font-weight: 520; }

/* orb + caption */
.orb { position: absolute; right: 18px; bottom: 40px; width: 54px; height: 54px; border-radius: 50%; z-index: 6;
  background: radial-gradient(circle at 50% 40%, #1b2140, #090b14 70%); box-shadow: 0 0 0 1.5px rgba(76,141,255,.55), 0 10px 30px rgba(0,0,0,.6); display: grid; place-items: center; transition: box-shadow .3s; }
.orb img { width: 84%; height: auto; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 72%); mask-image: radial-gradient(circle, #000 60%, transparent 72%); }
.orb.pulse { animation: orbpulse 1.2s ease-out; }
.orb.speaking { animation: orbspeak 1.1s ease-in-out infinite; }
.orb.amber { box-shadow: 0 0 0 1.5px rgba(245,165,36,.8), 0 0 26px rgba(245,165,36,.45), 0 10px 30px rgba(0,0,0,.6); }
@keyframes orbpulse { 0% { box-shadow: 0 0 0 1.5px rgba(76,141,255,.9), 0 0 0 0 rgba(76,141,255,.6); } 100% { box-shadow: 0 0 0 1.5px rgba(76,141,255,.55), 0 0 0 22px rgba(76,141,255,0); } }
@keyframes orbspeak { 0%,100% { box-shadow: 0 0 0 1.5px rgba(76,141,255,.9), 0 0 18px rgba(76,141,255,.5); } 50% { box-shadow: 0 0 0 1.5px rgba(76,141,255,.9), 0 0 38px rgba(76,141,255,.85); } }
.orb-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 10.5px; font-weight: 700; display: none; align-items: center; justify-content: center; color: #111; background: #4c8dff; box-shadow: 0 0 0 2px var(--a-bg); }
.orb-badge.on { display: flex; }
.orb-badge.amber { background: #f5a524; }
.caption { position: absolute; right: 86px; bottom: 44px; z-index: 6; display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center;
  padding: 8px 14px; border-radius: 10px; background: rgba(22,23,28,.92); border: 1px solid rgba(76,141,255,.35); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8);
  opacity: 0; transform: translateX(10px); transition: opacity .35s, transform .35s; pointer-events: none; }
.caption.on { opacity: 1; transform: none; }
.caption small { grid-column: 1; font-size: 10px; color: #8ea6ff; font-weight: 600; letter-spacing: .04em; }
.caption b { grid-column: 1; font-size: 13px; }
.wave { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 2.5px; height: 18px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: #8ea6ff; animation: wave .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 0%,100% { height: 25%; } 50% { height: 100%; } }

/* cursor */
.cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 20; pointer-events: none; opacity: 0;
  transition: transform .75s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.cursor svg { width: 20px; height: 20px; display: block; }
.cursor.on { opacity: 1; }
.cursor::after { content: ""; position: absolute; left: 1px; top: 1px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); opacity: 0; transform: scale(.3); }
.cursor.click::after { animation: clickring .45s ease-out; }
@keyframes clickring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.3); } }

/* fragment layouts */
.frag { font-size: 13px; }
.frag-grid { display: grid; min-height: 360px; }
.ask-grid, .ctx-grid { grid-template-columns: 1.15fr .85fr; }
.frag-term { display: flex; flex-direction: column; min-width: 0; }
.frag-ctx { border-left: 1px solid var(--a-line); background: var(--a-side); min-width: 0; }
.ctx-grid { min-height: 400px; }

/* progress */
.prow { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 8px; background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.prow > span:first-child { font-family: var(--mono); margin-top: 1px; }
.prow small { display: block; font-size: 11.5px; color: var(--a-mut); margin-top: 1px; }
.prow.done small, .prow.done b { color: var(--a-mut); }
.prow.fail { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.05); }
.pstep { font-family: var(--mono); font-size: 11.5px; color: var(--a-text); }
.pbar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); margin-top: 8px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #22c55e; transition: width .6s cubic-bezier(.3,.7,.3,1); }

/* overwatch desktop */
.desk { min-height: 440px; background:
  radial-gradient(ellipse 60% 50% at 80% 100%, rgba(76,141,255,.12), transparent 70%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 36px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 36px), #090a0d; }
.desk .orb { right: 26px; bottom: 26px; }
.orb.big { width: 64px; height: 64px; }
.desk .caption { right: 104px; bottom: 34px; }
.ow-list { position: absolute; right: 26px; bottom: 102px; width: 330px; z-index: 5; border-radius: 12px; background: rgba(20,21,26,.95); border: 1px solid var(--a-line-2);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,.8); padding: 8px; transform-origin: 100% 100%; opacity: 0; transform: scale(.85) translateY(10px); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.ow-list.on { opacity: 1; transform: none; }
.ow-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 8px; }
.ow-head .ic { margin-left: auto; }
.pill-s { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.pill-s.amber { color: #f5a524; background: rgba(245,165,36,.12); }
.pill-s.green { color: #22c55e; background: rgba(34,197,94,.12); }
.ow-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; transition: background .2s; }
.ow-row .dot { flex: none; }
.ow-row > div { flex: 1; min-width: 0; }
.ow-row b { display: block; font-size: 12.5px; font-weight: 540; }
.ow-row small { display: block; font-size: 11px; color: var(--a-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-row.hl { background: rgba(255,255,255,.06); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--a-mut); border: 1px solid var(--a-line-2); border-radius: 5px; padding: 0 5px; }
.chip .ic { width: 10px; height: 10px; }

/* hover card + menus */
.hovercard { position: absolute; z-index: 8; width: 300px; padding: 13px 14px; border-radius: 11px; background: rgba(22,23,28,.97); border: 1px solid var(--a-line-2); box-shadow: 0 30px 60px -12px rgba(0,0,0,.85);
  opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.hovercard.on { opacity: 1; transform: none; }
.hovercard small { font-size: 11px; }
.hovercard > b { display: block; margin-top: 4px; font-size: 13.5px; }
.hovercard p { margin-top: 8px; font-size: 12px; color: var(--a-mut); line-height: 1.5; }
.hc-pills { margin-top: 8px; }
.st-fill { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.st-fill.open { background: #1f883d; color: #fff; }
.hc-br { display: block; margin-top: 8px; }
.hc-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; }
.hc-row .mut { margin-right: 4px; }
.menu, .pmenu { position: absolute; z-index: 9; min-width: 210px; padding: 5px; border-radius: 10px; background: rgba(24,25,30,.98); border: 1px solid var(--a-line-2); box-shadow: 0 24px 50px -10px rgba(0,0,0,.85);
  opacity: 0; transform: scale(.96); transform-origin: 0 0; transition: opacity .18s, transform .18s; pointer-events: none; font-size: 12.5px; }
.menu.on, .pmenu.on { opacity: 1; transform: none; }
.m-item { display: flex; align-items: center; gap: 9px; padding: 5px 9px; border-radius: 6px; color: #d6d9df; }
.m-item .ic { width: 13px; height: 13px; color: var(--a-mut); }
.m-item.hl { background: rgba(59,130,246,.2); color: #fff; }
.m-chev { margin-left: auto; color: var(--a-faint); }
.m-sep { height: 1px; background: var(--a-line); margin: 4px 2px; }
.m-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--a-faint); padding: 4px 9px 2px; text-transform: uppercase; }

/* browser + docked question */
.bw-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--a-line); color: var(--a-mut); }
.bw-bar .ic { width: 13px; height: 13px; }
.bw-bar .ic.spinning { animation: spin360 .6s linear; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.bw-url { flex: 1; max-width: 360px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--a-line); display: flex; align-items: center; padding: 0 10px; font-family: var(--mono); font-size: 11.5px; }
.bw-chip { font-size: 11px; color: #4ade80; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.bw-page { height: 300px; background: linear-gradient(180deg, #f6f7f9, #eceef2); display: grid; place-items: center; transition: opacity .25s; }
.bw-page.fade { opacity: .25; }
.mk { width: 280px; background: #fff; border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 10px 30px rgba(15,23,42,.12); display: flex; flex-direction: column; gap: 9px; color: #0f172a; font-size: 12px; align-items: flex-start; }
.mk-logo { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #6366f1, #3b82f6); }
.mk b { color: #0f172a; font-size: 15px; margin-bottom: 4px; }
.mk-in { align-self: stretch; height: 30px; border: 1px solid #dfe3ea; border-radius: 7px; display: flex; align-items: center; padding: 0 10px; color: #94a3b8; }
.mk-btn { height: 30px; padding: 0 16px; border-radius: 7px; background: #4f46e5; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; margin-top: 4px; transition: all .4s; }
.mk-btn.wide { align-self: stretch; }
.mk-link { color: #6366f1; font-size: 11px; transition: opacity .4s, height .4s; }
.mk-link.gone { opacity: 0; height: 0; overflow: hidden; }
.dock { border-top: 1px solid rgba(245,165,36,.35); background: #121318; padding: 10px 14px 12px; }
.dock-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dock-q { color: var(--a-text); font-weight: 520; }
.dock-n { margin-left: auto; font-size: 11px; }
.dock-body { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.dock-body .opt { margin-top: 4px; }
.dock-body .btn-s { margin-top: 4px; margin-left: auto; }
.note { flex: 1 1 100%; order: 3; min-height: 0; height: 0; overflow: hidden; border-radius: 7px; border: 1px solid transparent; padding: 0 10px; font-size: 12.5px; color: var(--a-text); transition: height .3s, padding .3s, border-color .3s; }
.note.on { height: 34px; padding: 7px 10px; border-color: var(--a-line-2); background: rgba(255,255,255,.03); }
.dock-body .btn-s { order: 4; }
.dock-done { display: none; font-size: 12.5px; padding: 6px 0 2px; color: var(--a-mut); }
.dock.sent .dock-body { display: none; }
.dock.sent .dock-done { display: block; }
.dock.sent { border-top-color: var(--a-line); }

/* custom commands */
.tool-btn { display: inline-flex; padding: 4px; border-radius: 5px; transition: background .2s, color .2s; }
.tool-btn.on { background: rgba(255,255,255,.1); color: var(--a-text); }
.pmenu { right: 64px; top: 40px; transform-origin: 100% 0; min-width: 270px; left: auto; }
.fkeys { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--a-line); flex-wrap: wrap; }
.fk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--a-mut); padding: 4px 9px 4px 4px; border-radius: 7px; border: 1px solid var(--a-line); transition: border-color .2s, background .2s, color .2s; }
.fk b { font-family: var(--mono); font-size: 10.5px; color: var(--a-text); border: 1px solid var(--a-line-2); border-radius: 4px; padding: 1px 5px; background: rgba(255,255,255,.04); box-shadow: inset 0 -1.5px 0 rgba(255,255,255,.06); transition: transform .1s; }
.fk.on { border-color: rgba(59,130,246,.6); background: rgba(59,130,246,.1); color: var(--a-text); }
.fk.on b { transform: translateY(1px); box-shadow: none; }
.toast { position: absolute; left: 50%; bottom: 62px; z-index: 7; display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 9px; font-size: 12px; white-space: nowrap;
  background: rgba(24,25,30,.97); border: 1px solid var(--a-line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: #22c55e; }

/* mesh */
.mesh-frag { min-height: 300px; padding: 44px 32px 64px; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(94,106,210,.09), transparent 70%), #090a0e; }
.hosts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.host { border: 1px solid var(--a-line-2); border-radius: 10px; background: var(--a-panel); padding: 10px 10px 8px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); }
.host-h { display: flex; align-items: center; gap: 7px; padding: 0 2px 8px; border-bottom: 1px solid var(--a-line); margin-bottom: 6px; font-size: 12.5px; }
.host-h .ag { margin-left: auto; font-size: 10.5px; color: #22c55e; }
.hrow { display: flex; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 6px; color: #cfd3da; transition: background .3s, box-shadow .3s; }
.hrow.hl { background: rgba(167,139,250,.12); box-shadow: inset 0 0 0 1px rgba(167,139,250,.55); }
.packet { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; white-space: nowrap;
  background: rgba(167,139,250,.18); border: 1px solid rgba(167,139,250,.55); color: #e9e3ff; box-shadow: 0 0 24px rgba(167,139,250,.35); opacity: 0;
  transition: transform 1.4s cubic-bezier(.5,0,.3,1), opacity .3s; }
.packet .ic { width: 12px; height: 12px; }
.packet.on { opacity: 1; }
.inbox { position: absolute; z-index: 4; font-family: var(--mono); font-size: 11.5px; color: #c4b5fd; padding: 5px 10px; border-radius: 7px; background: rgba(20,21,26,.95); border: 1px solid rgba(167,139,250,.4); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.inbox.on { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 210px 1fr; }
  .app-ctx { display: none; }
  .at-brand { width: auto; }
}
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; height: 420px; }
  .app-side { display: none; }
  .at-crumbs, .at-win, .app-status .sb-mid { display: none; }
  .ask-grid, .ctx-grid { grid-template-columns: 1fr; }
  .frag-ctx { border-left: 0; border-top: 1px solid var(--a-line); }
  .hosts { grid-template-columns: 1fr; gap: 14px; }
  .mesh-frag { padding: 24px 16px 70px; }
  .bw-chip { display: none; }
  .float-q { width: auto; left: 14px; right: 14px; }
  .hovercard { display: none; }
  .ow-list { width: auto; left: 14px; right: 14px; }
  .term { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
  .wave i, .orb.speaking, .sd-row.flash { animation: none; }
}
@media (max-width: 560px) {
  .toast, .inbox { white-space: normal; max-width: calc(100% - 24px); }
}
.status-demo .sd-filter .kbd { margin-left: auto; white-space: nowrap; }
@media (max-width: 760px) { .host[data-host="cr3"] { display: none; } }
