
/* Layout: powerline prompt bar on top, device/section rail on the left, a working pane in the middle,
   Claude docked on the right. Single dark look on purpose: gruvbox is a dark terminal palette. */
:root{
  color-scheme: dark;
  --bg-h:#1d2021; --bg:#282828; --bg1:#3c3836; --bg2:#504945; --bg3:#665c54;
  --fg:#ebdbb2; --fg0:#fbf1c7; --gray:#928374;
  --red:#fb4934; --green:#b8bb26; --yellow:#fabd2f; --blue:#83a598; --purple:#d3869b; --aqua:#8ec07c; --orange:#fe8019;
  --d-red:#cc241d; --d-green:#98971a; --d-yellow:#d79921; --d-blue:#458588; --d-purple:#b16286; --d-aqua:#689d6a; --d-orange:#d65d0e;
  --mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--bg-h);color:var(--fg);font:13px/1.5 var(--mono);display:flex;flex-direction:column;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
input{font:inherit;color:var(--fg0);background:var(--bg);border:1px solid var(--bg2);border-radius:4px;padding:8px 10px;width:100%}
a{color:var(--blue)}
.muted{color:var(--gray)}
.mock{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--bg-h);background:var(--yellow);padding:1px 6px;border-radius:3px;font-weight:800}

/* ── powerline top bar ─────────────────────── */
.bar{display:flex;align-items:center;gap:12px;background:var(--bg);border-bottom:1px solid var(--bg1);
  padding-block:6px;padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px));flex-wrap:wrap}
.pl{display:flex;align-items:stretch;min-width:0;overflow:hidden}
.seg{--c:var(--d-orange);--t:var(--bg-h);background:var(--c);color:var(--t);padding:3px 18px 3px 14px;margin-right:-8px;font-weight:800;white-space:nowrap;
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%,10px 50%)}
.seg:first-child{clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);border-radius:4px 0 0 4px;padding-left:10px}
.seg.y{--c:var(--d-yellow)} .seg.a{--c:var(--d-aqua);--t:var(--fg0)} .seg.b{--c:var(--d-blue);--t:var(--fg0)} .seg.g{--c:var(--bg3);--t:var(--fg0)} .seg.k{--c:var(--bg1);--t:var(--fg)}
.bar .spacer{flex:1}
.kbtn{display:flex;align-items:center;gap:8px;border:1px solid var(--bg2);border-radius:4px;padding:4px 10px;color:var(--gray)}
.kbtn:hover{color:var(--fg0);border-color:var(--bg3)}
kbd{font:inherit;font-size:11px;background:var(--bg1);color:var(--fg);border-radius:3px;padding:0 5px}

/* ── shell ─────────────────────────────────── */
.shell{flex:1;display:grid;grid-template-columns:var(--railW,210px) minmax(0,1fr) var(--dockW,320px);min-height:0;position:relative}
.rail{background:var(--bg);border-right:1px solid var(--bg1);overflow:auto;padding:12px 8px;display:flex;flex-direction:column;gap:18px}
.rail h6{margin:0 8px 6px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--gray);font-weight:600}
.nav{display:flex;flex-direction:column;gap:2px}
.nav button{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:4px;text-align:left;color:var(--fg)}
.nav button:hover{background:var(--bg1)}
.nav button[aria-current="page"]{background:var(--bg1);color:var(--fg0);box-shadow:inset 3px 0 0 var(--c,var(--orange))}
.glyph{width:16px;text-align:center;color:var(--c,var(--orange));font-weight:800}
.dev{display:grid;grid-template-columns:10px 1fr auto;gap:8px;align-items:center;padding:6px 8px;border-radius:4px}
.dev:hover{background:var(--bg1)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--green)}
.dot.off{background:var(--bg3)} .dot.warn{background:var(--yellow)}
.dev small{color:var(--gray);font-size:11px}

main{overflow:auto;padding:16px max(16px,env(safe-area-inset-right,0px)) 24px 16px;min-width:0}
.view-title{display:flex;align-items:baseline;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.view-title h1{font-size:18px;margin:0;color:var(--fg0)}
.view-title h1::before{content:"❯ ";color:var(--green)}
.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.panel{background:var(--bg);border:1px solid var(--bg1);border-radius:6px;min-width:0;display:flex;flex-direction:column}
.panel>header{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--bg1)}
.panel>header h2{font-size:12px;margin:0;letter-spacing:.06em;text-transform:uppercase;color:var(--c,var(--fg0))}
.panel>header .act{margin-left:auto;display:flex;gap:6px}
.panel .body{padding:10px 12px;min-width:0}
.chip{font-size:11px;padding:1px 7px;border-radius:10px;background:var(--bg1);color:var(--fg)}
.chip.ok{color:var(--green)} .chip.warn{color:var(--yellow)} .chip.bad{color:var(--red)} .chip.info{color:var(--blue)}
.btn{border:1px solid var(--bg2);border-radius:4px;padding:3px 9px;color:var(--fg)}
.btn:hover{border-color:var(--c,var(--orange));color:var(--fg0)}
.btn.pri{background:var(--d-orange);border-color:var(--d-orange);color:var(--bg-h);font-weight:800}

.metric{display:grid;grid-template-columns:44px 1fr 46px;gap:8px;align-items:center;font-variant-numeric:tabular-nums}
.meter{height:8px;background:var(--bg1);border-radius:2px;overflow:hidden}
.meter i{display:block;height:100%;background:var(--c,var(--aqua))}
.metrics{display:flex;flex-direction:column;gap:6px}
.spark{width:100%;height:36px;display:block;margin-top:6px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;font-size:12px}
.kv dt{color:var(--gray)} .kv dd{margin:0;color:var(--fg0);overflow-wrap:anywhere}

table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th{font-weight:600;color:var(--gray);text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:6px 8px;border-bottom:1px solid var(--bg1)}
td{padding:6px 8px;border-bottom:1px solid var(--bg1);white-space:nowrap}
tr:hover td{background:#32302f}
.scroll-x{overflow-x:auto}
.list{display:flex;flex-direction:column}
.row{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed var(--bg1);min-width:0}
.row:last-child{border-bottom:0}
.row .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prog{height:4px;background:var(--bg1);border-radius:2px;margin-top:4px;overflow:hidden}
.prog i{display:block;height:100%;background:var(--c,var(--blue))}

/* terminal */
.term{background:var(--bg-h);border:1px solid var(--bg1);border-radius:6px;display:flex;flex-direction:column;min-height:360px;height:calc(100% - 50px)}
.tabs{display:flex;gap:2px;background:var(--bg);border-bottom:1px solid var(--bg1);padding:4px 4px 0;overflow-x:auto}
.tabs button{padding:5px 12px;border-radius:4px 4px 0 0;color:var(--gray);white-space:nowrap}
.tabs button[aria-selected="true"]{background:var(--bg-h);color:var(--fg0);box-shadow:inset 0 2px 0 var(--c)}
.screen{flex:1;overflow:auto;padding:10px 12px;white-space:pre-wrap;word-break:break-word}
.prompt-line{display:flex;align-items:center;gap:0;padding:6px 12px 10px;flex-wrap:wrap}
.prompt-line .seg{font-size:12px}
.prompt-line input{flex:1;min-width:120px;border:0;background:transparent;padding:4px 0 4px 16px}
.c-g{color:var(--green)} .c-y{color:var(--yellow)} .c-b{color:var(--blue)} .c-a{color:var(--aqua)} .c-o{color:var(--orange)} .c-r{color:var(--red)} .c-p{color:var(--purple)}

/* screen share */
.desk{aspect-ratio:16/10;max-width:100%;border:1px solid var(--bg1);border-radius:6px;overflow:hidden;position:relative;
  background:radial-gradient(120% 90% at 20% 10%,#458588 0%,#3c3836 55%,#1d2021 100%)}
.desk .menubar{height:22px;background:rgba(29,32,33,.85);display:flex;gap:16px;align-items:center;padding:0 10px;font-size:11px;color:var(--fg)}
.win{position:absolute;background:var(--bg);border:1px solid var(--bg2);border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.45);overflow:hidden;font-size:10px}
.win .tb{height:18px;background:var(--bg1);display:flex;gap:5px;align-items:center;padding:0 7px}
.win .tb i{width:8px;height:8px;border-radius:50%;background:var(--red)} .win .tb i:nth-child(2){background:var(--yellow)} .win .tb i:nth-child(3){background:var(--green)}
.win pre{margin:0;padding:6px 8px;white-space:pre-wrap}
.shotbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;align-items:center}

/* files */
.files{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:12px}
.tree{font-size:12px}
.tree button{display:block;width:100%;text-align:left;padding:3px 6px;border-radius:3px}
.tree button:hover,.tree button[aria-current="true"]{background:var(--bg1);color:var(--fg0)}
.crumbs{display:flex;gap:6px;flex-wrap:wrap;color:var(--gray);margin-bottom:8px}
.crumbs b{color:var(--yellow);font-weight:600}

/* claude dock */
.dock{background:var(--bg);border-left:1px solid var(--bg1);display:flex;flex-direction:column;min-height:0}
.dock header{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--bg1)}
.dock header h2{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--orange)}
.chat{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}
.msg{padding:8px 10px;border-radius:6px;background:var(--bg1);max-width:95%}
.msg.me{align-self:flex-end;background:var(--bg2);color:var(--fg0)}
.msg.ai{border-left:3px solid var(--orange)}
.msg code{color:var(--aqua)}
.chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 8px}
.chips button{font-size:11px;border:1px solid var(--bg2);border-radius:12px;padding:2px 8px;color:var(--gray)}
.chips button:hover{color:var(--fg0);border-color:var(--orange)}
.dock form{padding:10px 12px;border-top:1px solid var(--bg1);display:flex;gap:6px}

/* palette */
.overlay{position:fixed;inset:0;background:rgba(29,32,33,.7);display:flex;justify-content:center;align-items:flex-start;
  padding:12vh max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px));z-index:20}
.palette{width:min(620px,100%);background:var(--bg);border:1px solid var(--bg2);border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.6);overflow:hidden}
.palette .q{display:flex;align-items:center;gap:0;border-bottom:1px solid var(--bg1)}
.palette .q .seg{margin:8px 0 8px 8px}
.palette .q input{border:0;background:transparent;font-size:15px;padding:12px 12px 12px 18px}
.results{max-height:50vh;overflow:auto;padding:6px}
.results button{display:grid;grid-template-columns:18px 1fr auto;gap:10px;width:100%;text-align:left;padding:7px 10px;border-radius:4px;align-items:center}
.results button[aria-selected="true"]{background:var(--bg1);color:var(--fg0)}
.results small{color:var(--gray)}
.results .grp{padding:8px 10px 4px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--gray)}
.toast{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--bg1);border:1px solid var(--bg2);
  border-left:4px solid var(--green);padding:8px 12px;border-radius:4px;z-index:30;max-width:calc(100% - 32px)}

@media (max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)} .dock{display:none} body.dock-open .dock{display:flex;position:fixed;right:0;top:0;bottom:0;width:min(360px,100%);z-index:15;padding-bottom:env(safe-area-inset-bottom,0px)}}
@media (max-width:720px){
  body{overflow:auto} .shell{display:flex;flex-direction:column}
  .rail{border-right:0;border-bottom:1px solid var(--bg1);flex-direction:row;overflow-x:auto;padding:8px;gap:10px}
  .rail .devs,.rail h6{display:none}
  .nav{flex-direction:row}
  .nav button span:last-child{display:none}
  main{padding-left:max(16px,env(safe-area-inset-left,0px));overflow:visible}
  .files{grid-template-columns:1fr}
  .bar .pl .seg.k,.bar .pl .seg.g{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ── additions for the real app ─────────────────────────────────────── */
.view[hidden]{display:none}
#view-terminal,#view-screen{height:100%;display:flex;flex-direction:column;min-height:0}
main{display:block}
#view-terminal,#view-screen{height:100%}
#view-dynamic{overflow:visible}
.term{flex:1;height:auto;min-height:300px}
.term .xhost{flex:1;min-height:0;padding:6px 4px 4px 8px;position:relative}
.term .xhost>div{position:absolute;inset:6px 4px 4px 8px}
.tabs button .x{margin-left:8px;color:var(--gray)} .tabs button .x:hover{color:var(--red)}
.keys{display:none;gap:4px;padding:6px;border-top:1px solid var(--bg1);overflow-x:auto}
.keys button{border:1px solid var(--bg2);border-radius:4px;padding:6px 10px;white-space:nowrap}
@media (pointer:coarse){.keys{display:flex}}
.empty{color:var(--gray);padding:18px 12px}
.empty b{color:var(--fg)}
.err{color:var(--red)}
.vncwrap{flex:1;min-height:240px;border:1px solid var(--bg1);border-radius:6px;overflow:hidden;background:var(--bg-h);position:relative}
.vncwrap>div{position:absolute;inset:0}
.form{display:flex;flex-direction:column;gap:10px;max-width:520px}
.form label{display:flex;flex-direction:column;gap:4px;color:var(--gray);font-size:12px}
.form .rowf{display:flex;gap:8px;flex-wrap:wrap} .form .rowf>*{flex:1;min-width:140px}
textarea{font:inherit;color:var(--fg0);background:var(--bg);border:1px solid var(--bg2);border-radius:4px;padding:8px 10px;width:100%;min-height:90px;resize:vertical}
.editor{width:100%;min-height:50vh;white-space:pre;tab-size:2}
tr.clickable{cursor:pointer}
td.name{max-width:46ch;overflow:hidden;text-overflow:ellipsis}
.btn.danger:hover{border-color:var(--red);color:var(--red)}
.btn[disabled]{opacity:.5;cursor:default}
.confirm{position:fixed;inset:0;background:rgba(29,32,33,.7);display:flex;align-items:center;justify-content:center;z-index:25;padding:16px}
.confirm>div{background:var(--bg);border:1px solid var(--bg2);border-radius:8px;padding:16px;max-width:440px;display:flex;flex-direction:column;gap:12px}
.confirm .acts{display:flex;gap:8px;justify-content:flex-end}
.login{margin:auto;width:min(380px,100%);padding:24px 16px;display:flex;flex-direction:column;gap:14px}
.login h1{font-size:18px;margin:0;color:var(--fg0)} .login h1::before{content:"❯ ";color:var(--green)}
body.center{overflow:auto}
.msg{white-space:pre-wrap;overflow-wrap:anywhere}
.msg .tool{color:var(--gray);font-size:11px;display:block}
.toast.bad{border-left-color:var(--red)}
.spin::after{content:"…";animation:blink 1s steps(2) infinite} @keyframes blink{50%{opacity:.2}}

[hidden]{display:none!important}
td.img{max-width:24ch;overflow:hidden;text-overflow:ellipsis}
.row .sub{display:block;font-size:11px;color:var(--gray)}
@media (max-width:720px){ .rail{flex:none} .shell{min-height:auto} .term{min-height:60vh} .vncwrap{min-height:50vh} }

/* Claude dock: shown by default on wide screens, closable; a pop-out on narrow ones */
@media (min-width:1101px){
  body.dock-closed .shell{grid-template-columns:var(--railW,210px) minmax(0,1fr)}
  body.dock-closed .dock{display:none}
}
#view-dynamic::after{content:"";display:block;height:8px}

html,body{margin:0}
.stats3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center;padding:6px 0}
.stats3 b{display:block;font-size:20px;color:var(--fg0);font-variant-numeric:tabular-nums}
.stats3 span{color:var(--gray);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
button.chip{cursor:pointer;border:0}
.posters{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.posters figure{margin:0;min-width:0}
.posters img,.posters .ph{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:4px;background:var(--bg1);display:block}
.posters figcaption{font-size:11px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.posters figcaption small{display:block;color:var(--gray)}
/* Minecraft page: map on the left, stats + activity on the right, console across the bottom */
.mc{display:grid;gap:12px;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"map stats" "map act" "con con"}
.mc-map{grid-area:map;min-height:460px;overflow:hidden}
.mc-map iframe{border:0;width:100%;height:100%;min-height:460px;display:block;border-radius:6px;background:var(--bg-h)}
.mc-stats{grid-area:stats} .mc-activity{grid-area:act;max-height:300px} .mc-activity .list{overflow:auto}
.mc-console{grid-area:con}
.mc-term{height:340px;padding:6px 4px 4px 8px;background:var(--bg-h);border-radius:0 0 6px 6px}
.mc-players{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:4px 0 10px}
.stats3 b small{font-size:13px}
#mcQuick{flex-wrap:wrap}
@media (max-width:1000px){.mc{grid-template-columns:1fr;grid-template-areas:"map" "stats" "con" "act"}.mc-map,.mc-map iframe{min-height:340px}}

/* drag handles to resize the sidebar and the Claude panel (wide screens only) */
.resizer{display:none}
@media (min-width:1101px){
  .resizer{display:block;position:absolute;top:0;bottom:0;width:7px;cursor:col-resize;z-index:5;touch-action:none}
  .resizer:hover,.resizer.drag{background:linear-gradient(90deg,transparent 2px,var(--orange) 2px,var(--orange) 4px,transparent 4px)}
  #resizeRail{left:calc(var(--railW,210px) - 4px)}
  #resizeDock{right:calc(var(--dockW,320px) - 3px)}
  body.dock-closed #resizeDock{display:none}
}
body.resizing{cursor:col-resize;user-select:none}
body.resizing iframe,body.resizing canvas{pointer-events:none}

/* stack update progress */
.jobprog{margin-top:8px;display:flex;flex-direction:column;gap:5px;white-space:normal}
.prog{height:6px;background:var(--bg1);border-radius:3px;overflow:hidden}
.prog>i{display:block;height:100%;background:var(--green);border-radius:3px;transition:width .5s ease}
.prog.indet>i{background:repeating-linear-gradient(-45deg,var(--green) 0 8px,var(--aqua,#8ec07c) 8px 16px);background-size:22px 22px;animation:prog-move .8s linear infinite}
@keyframes prog-move{to{background-position:22px 0}}
.steps{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;color:var(--gray)}
.steps .done{color:var(--green)} .steps .now{color:var(--yellow);font-weight:700}
.imgs{display:flex;flex-wrap:wrap;gap:4px}
.imgs .img{font-size:10px;border:1px solid var(--bg2);border-radius:10px;padding:1px 7px;color:var(--gray)}
.imgs .img b{font-weight:600;color:var(--fg)}
.imgs .downloaded b,.imgs .up-to-date b{color:var(--green)} .imgs .pulling b{color:var(--yellow)}

/* ── Claude panel: history, composer, attachments, Markdown, live steps ── */
.dock{position:relative}
.dock header .btn{padding:3px 8px;font-size:11px}
#notifyBtn{filter:grayscale(1);opacity:.6} #notifyBtn.on{filter:none;opacity:1}
.chattitle{padding:6px 12px;font-size:11px;color:var(--gray);border-bottom:1px solid var(--bg1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chatlist{flex:1;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:4px}
.chatlist .newrow{text-align:left;padding:8px 10px;border:1px dashed var(--bg2);border-radius:6px;color:var(--orange)}
.chatrow{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;cursor:pointer;min-width:0}
.chatrow:hover{background:var(--bg1)} .chatrow.cur{background:var(--bg1);box-shadow:inset 3px 0 0 var(--orange)}
.chatrow .grow{flex:1;min-width:0}
.chatrow .t{color:var(--fg0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chatrow .p{font-size:11px;color:var(--gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chatrow .btn{padding:2px 7px;font-size:11px;opacity:.5} .chatrow:hover .btn{opacity:1}
.dock form{flex-direction:column;gap:6px}
.dock .inrow{display:flex;gap:6px;align-items:flex-end}
.dock textarea{min-height:0;height:36px;max-height:180px;resize:none;line-height:1.4;padding:8px 10px;flex:1;overflow-y:auto}
.btn.icon{padding:6px 9px;line-height:1.2}
#chatMic.rec{border-color:var(--red);color:var(--red);animation:blink 1s steps(2) infinite}
.att{display:flex;flex-wrap:wrap;gap:6px} .att:empty{display:none}
.attchip{display:flex;align-items:center;gap:6px;background:var(--bg1);border:1px solid var(--bg2);border-radius:6px;padding:3px 4px 3px 6px;font-size:11px;max-width:100%}
.attchip img{width:28px;height:28px;object-fit:cover;border-radius:3px}
.attchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}
.attchip button{color:var(--gray);padding:0 4px} .attchip button:hover{color:var(--red)}
.dock.drop::after{content:"Drop files to attach";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(29,32,33,.85);border:2px dashed var(--orange);color:var(--orange);font-weight:700;z-index:3;pointer-events:none}
.msg .files{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.msg .files img{max-width:160px;max-height:120px;border-radius:4px;display:block}
.msg .files .file{font-size:12px;color:var(--aqua)}
.msg.ai{white-space:normal;width:95%}
.msg .live{display:flex;align-items:center;gap:8px;color:var(--yellow);font-size:12px;margin-bottom:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dotspin{width:8px;height:8px;border-radius:50%;background:var(--yellow);flex:none;display:inline-block;margin-right:6px;animation:pulse 1s ease-in-out infinite}
.live .dotspin{margin-right:0}
@keyframes pulse{50%{opacity:.25;transform:scale(.7)}}
details.steps{font-size:11px;color:var(--gray);margin-bottom:6px}
details.steps summary{cursor:pointer;user-select:none}
details.steps ol{margin:4px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:3px}
details.steps code{display:block;color:var(--gray);opacity:.8;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.mdx>:first-child{margin-top:0} .mdx>:last-child{margin-bottom:0}
.mdx p{margin:0 0 8px} .mdx ul,.mdx ol{margin:0 0 8px;padding-left:20px} .mdx li{margin:2px 0}
.mdx .h{font-weight:700;color:var(--fg0);margin:10px 0 4px} .mdx .h1,.mdx .h2{color:var(--orange)}
.mdx blockquote{margin:0 0 8px;padding-left:10px;border-left:2px solid var(--bg2);color:var(--gray)}
.mdx hr{border:0;border-top:1px solid var(--bg2);margin:10px 0}
.mdx a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.mdx code{color:var(--aqua);background:var(--bg);padding:0 3px;border-radius:3px}
.codeblk{margin:0 0 8px;border:1px solid var(--bg2);border-radius:5px;overflow:hidden;background:var(--bg-h,#1d2021)}
.codebar{display:flex;align-items:center;gap:4px;padding:3px 6px;background:var(--bg);border-bottom:1px solid var(--bg2);font-size:10px;color:var(--gray)}
.codebar span{margin-right:auto;text-transform:lowercase}
.codebar button{border:1px solid var(--bg2);border-radius:4px;padding:1px 7px;color:var(--fg)}
.codebar button:hover{border-color:var(--orange);color:var(--fg0)}
.codeblk pre{margin:0;padding:8px 10px;overflow-x:auto;font-size:12px;line-height:1.45}
.codeblk pre code{background:none;padding:0;color:var(--fg0);white-space:pre}
@media (max-width:1100px){body.dock-open .dock{width:min(440px,100%)}}
