/* The look follows MUI Joy: neutral grey chrome, soft active states, glass panels
   on a soft glow from the centre. light-dark(light, dark) follows the system
   unless a theme is chosen. */
:root{
  color-scheme:light dark;
  --bg:light-dark(#fff,#0f131a);--panel:light-dark(#fff,#151a22);--panel2:light-dark(#f0f4f8,#1d232c);
  --surface:light-dark(#fbfcfe,#10141a);--level1:light-dark(#f0f4f8,#1d232c);
  --line:light-dark(rgba(99,107,116,.2),rgba(159,166,173,.18));
  --text:light-dark(#171a1c,#f0f4f8);--text2:light-dark(#32383e,#cdd7e1);--muted:light-dark(#555e68,#9fa6ad);
  --primary:#52525b;--primary-text:light-dark(#3f3f46,#e4e4e7);
  --soft:light-dark(#e6e6e8,#323238);--hover:light-dark(rgba(99,107,116,.09),rgba(159,166,173,.12));
  --accent:light-dark(#0b6bcb,#6aa9ff);--ok:light-dark(#1f7a1f,#6fd36f);--warn:light-dark(#9a5b13,#f3b562);
  --err:light-dark(#c41c1c,#f58a8a);--info:light-dark(#0b6bcb,#8ab4f8);--violet:light-dark(#7c3aed,#b197fc);--teal:light-dark(#0f766e,#2dd4bf);
  --ok-soft:light-dark(#e3fbe3,#14361a);--warn-soft:light-dark(#fdf0e1,#3a2a12);--err-soft:light-dark(#fce4e4,#431a1a);--info-soft:light-dark(#e3effb,#14293f);
  --dot-up:light-dark(#22c55e,#4ade80);--dot-paused:light-dark(#eab308,#facc15);--dot-down:light-dark(#ef4444,#f87171);--dot-off:light-dark(#9fa6ad,#7a828c);
  --btn-line:light-dark(#cdd7e1,#39424d);
  --glass:light-dark(rgba(255,255,255,.7),rgba(23,29,39,.6));--glass-edge:light-dark(rgba(99,107,116,.17),rgba(255,255,255,.1));
  --shadow:0 1px 2px light-dark(rgba(15,18,23,.06),rgba(0,0,0,.4)),0 8px 24px -14px light-dark(rgba(15,18,23,.2),rgba(0,0,0,.6));
  --mono:ui-monospace,"Cascadia Code","Source Code Pro",Consolas,monospace;
  --control:28px;--rail-w:0px;--lead:74px;--max:1280px;--outline-w:224px;
  /* From the window's right side to the content's right edge. */
  --edge:max(24px,calc((100% - var(--rail-w) - var(--lead) - 24px - 1280px) / 2 + 24px));
}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
:root[data-rail=open]{--rail-w:240px;--lead:62px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg)}
body{margin:0;color:var(--text);font:14px/1.5 Inter,"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;font-optical-sizing:auto;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 50% 50%,light-dark(hsla(220,25%,92%,.9),hsla(220,30%,17%,.65)),light-dark(hsla(220,20%,96%,.6),hsla(220,25%,11%,.55)) 48%,var(--bg) 80%)}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.icon{width:20px;height:20px;flex:none;fill:currentColor}
.spacer{flex:1}

/* ---------------- menu rail ---------------- */
#rail{position:fixed;inset:0 auto 0 0;z-index:30;width:var(--rail-w);overflow:hidden;background:light-dark(var(--level1),var(--surface));box-shadow:inset -1px 0 0 var(--line);transition:width .22s ease}
.rail-inner{display:flex;flex-direction:column;width:240px;height:100%;padding-right:1px}
.brand{display:flex;align-items:center;gap:8px;flex:none;min-height:52px;margin:16px 8px 8px;padding:0 6px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.brand img{display:block}
.brand-words{flex:1;min-width:0;padding-right:8px;text-align:right;line-height:1.2}
.brand-words b{display:block;font-size:14px;font-weight:600}
.brand-words span{display:block;font-size:12px;color:var(--muted)}
#nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:8px;border-top:1px solid var(--line)}
#nav ul,#quick ul{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
#nav ul{gap:2px}
#nav li.group,#quick li.group{margin-top:18px}
.nav-item{display:flex;align-items:center;gap:12px;min-height:34px;padding:0 10px;border-radius:8px;color:var(--text2);font-size:13.5px;font-weight:500;text-decoration:none;transition:background-color .16s ease,color .16s ease}
.nav-item .icon{width:19px;height:19px;color:var(--muted)}
.nav-item:hover{background:var(--hover);color:var(--text)}
.nav-item[aria-current=page]{background:var(--soft);color:var(--primary-text);font-weight:600}
.nav-item[aria-current=page] .icon{color:var(--primary-text)}
.nav-label{flex:1;min-width:0;white-space:nowrap}
.colophon{flex:none;padding:12px 16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);white-space:nowrap}
.colophon span,.colophon b{display:block}
.colophon b{color:var(--text2);font-weight:600}

/* The launcher and, beside a closed menu, one pictogram per page. */
#corner{position:fixed;top:27px;left:calc(var(--rail-w) + 8px);z-index:25;display:flex;flex-direction:column;align-items:center;gap:6px;width:52px;pointer-events:none;transition:left .22s ease}
.launcher,.quick{pointer-events:auto}
.launcher,.quick{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:background-color .16s ease,color .16s ease}
.launcher{background:var(--hover);color:var(--text2)}
.launcher .icon{width:17px;height:17px}
.quick .icon{width:17px;height:17px}
.launcher:hover,.quick:hover{background:var(--soft);color:var(--text)}
:root[data-rail=open] .launcher,.quick[aria-current=page]{background:var(--soft);color:var(--primary-text)}
#quick{display:none}
:root[data-rail=mini] #quick{display:block}
#quick ul{gap:6px}
#quick .count{position:absolute;top:-1px;right:-1px;min-width:7px;width:7px;height:7px;padding:0;font-size:0;box-shadow:0 0 0 2px var(--bg)}

/* Tooltips: below the control at the right, or beside the corner column. */
[data-tip]{position:relative}
[data-tip]:hover::after,[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;top:calc(100% + 6px);right:0;z-index:50;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--level1);box-shadow:var(--shadow);color:var(--text);font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;pointer-events:none}
#corner [data-tip]::after{top:50%;right:auto;left:calc(100% + 8px);transform:translateY(-50%)}

/* ---------------- page and glass bar ---------------- */
#page{min-height:100vh;margin-left:var(--rail-w);padding:0 24px 0 var(--lead);transition:margin-left .22s ease,padding-left .22s ease}
#bar{position:sticky;top:16px;z-index:20;display:flex;align-items:center;gap:12px;min-height:46px;margin-top:16px;padding:5px 7px 5px 16px;border:1px solid var(--glass-edge);border-radius:12px;background:light-dark(rgba(255,255,255,.55),rgba(15,18,23,.55));backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);box-shadow:var(--shadow)}
#page-title{flex:1;min-width:0;margin:0;overflow:hidden;font-size:16px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.bar-tools{display:flex;align-items:center;gap:4px}
.bar-tools .status{margin-right:6px}
/* This computer, PATH, settings and theme: set apart at the bar's right end. */
.bar-end{display:flex;align-items:center;gap:4px;min-width:0;padding-left:10px;border-left:1px solid var(--line)}
.host{min-width:0;max-width:220px;margin-right:8px;border-radius:6px;color:var(--text);text-align:right;text-decoration:none;line-height:1.25}
.host:hover b{color:var(--accent)}
.host b,.host span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.host b{font-size:13px;font-weight:600}
.host span{color:var(--ok);font-size:11px}
.bar-link{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;color:var(--muted);font-size:13px;font-weight:600;text-decoration:none}
.bar-link:hover{background:var(--hover);color:var(--text)}
.bar-link[aria-current=page],.icon-btn[aria-current=page]{background:var(--soft);color:var(--primary-text)}
.icon-btn{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;transition:background-color .16s ease,color .16s ease}
.icon-btn .icon{width:19px;height:19px}
.icon-btn:hover:not(:disabled){background:var(--hover);color:var(--text)}
.icon-btn:disabled{cursor:progress}
#rescan:disabled .icon,.tile-head .icon-btn:disabled .icon{animation:spin .9s linear infinite}
.tile-head>.icon-btn{margin:-4px -6px -4px auto}
#jobs-toggle .count{position:absolute;top:1px;right:0}
/* One column holds the bar and the page, so they are as wide as each other. */
#body{max-width:var(--max);margin:0 auto}
#column{min-width:0}
main{padding:24px 0 80px;container:page/inline-size}
section.tab{display:none} section.tab.active{display:block}
#outdated{margin-top:12px;padding:8px 14px;border:1px solid color-mix(in srgb,var(--err) 40%,transparent);border-radius:8px;background:var(--err-soft);color:var(--err);font-size:12.5px}

/* ---------------- side outline ---------------- */
#bar:has(>#outline-toggle:not([hidden])){padding-left:7px}
#outline-toggle{margin-right:-4px}
#outline-toggle[aria-pressed=true]{background:var(--soft);color:var(--primary-text)}
#outline-toggle[data-tip]::after{right:auto;left:0}
/* Without room beside the page, the outline lies over it. */
#outline{position:fixed;top:70px;left:calc(var(--rail-w) + var(--lead));z-index:24;display:flex;flex-direction:column;width:var(--outline-w);max-width:calc(100vw - 60px);max-height:calc(100vh - 86px);padding:8px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--panel);box-shadow:0 18px 48px -12px rgba(0,0,0,.35)}
/* With room, it stands left of the bar and page. Both sides keep its width,
   also while it is hidden: the page stays centred and does not move. */
:root[data-dock]{--edge:max(calc(var(--lead) + var(--outline-w) + 16px),calc((100% - var(--rail-w) - 1280px) / 2))}
:root[data-dock] body:not(.wide) #page{padding-right:var(--lead)}
:root[data-dock] body:not(.wide) #body{display:grid;grid-template-columns:var(--outline-w) minmax(0,1fr) var(--outline-w);column-gap:16px;max-width:calc(var(--max) + 2 * (var(--outline-w) + 16px))}
:root[data-dock] #column{grid-area:1/2}
:root[data-dock] #outline{grid-area:1/1;position:sticky;top:78px;z-index:auto;align-self:start;max-height:calc(100vh - 94px);background:var(--glass);box-shadow:var(--shadow)}
.outline-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;padding:0 0 6px 8px;color:var(--muted);font-size:11.5px;font-weight:650}
.outline-all{padding:2px 6px;border:0;border-radius:6px;background:none;color:var(--muted);font:inherit;cursor:pointer}
.outline-all:hover{background:var(--hover);color:var(--text)}
#outline nav{display:flex;flex-direction:column;min-height:0}
#outline ul{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
#outline #outline-list{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#outline #outline-list ul{margin:2px 0 4px;padding-left:14px}
#outline-list>li+li{margin-top:2px}
.outline-row{display:flex;align-items:center;gap:2px}
.outline-entry{display:block;flex:1;width:100%;min-width:0;height:28px;padding:0 8px;overflow:hidden;border:0;border-radius:8px;background:none;color:var(--muted);font:inherit;font-size:12.5px;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.outline-entry.chapter{color:var(--text);font-weight:600}
.outline-entry:hover,.outline-fold:hover{background:var(--hover);color:var(--text)}
.outline-entry[aria-current=location]{background:var(--soft);color:var(--primary-text)}
.outline-entry[aria-current=true]{background:color-mix(in srgb,var(--soft) 55%,transparent);color:var(--text)}
.outline-fold{display:grid;place-items:center;flex:none;width:24px;height:28px;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.outline-fold .icon{width:16px;height:16px;transition:transform .16s ease}
.outline-fold[aria-expanded=true] .icon{transform:rotate(90deg)}
/* The panel a subchapter led to, pointed out for a moment. */
.found{animation:found 1.4s ease}
@keyframes found{0%,45%{outline:2px solid var(--accent);outline-offset:3px}100%{outline:2px solid transparent;outline-offset:3px}}

/* ---------------- type ---------------- */
h2{margin:4px 0 8px;font-size:18px;font-weight:650}
h3{margin:28px 0 10px;font-size:14px;font-weight:650;color:var(--text2)}
h4{margin:0;font-size:15px}
/* A titled part of a page and the line that says what it holds. */
h3.section-title{margin:30px 0 0;padding-top:16px;border-top:1px solid var(--line);color:var(--text);font-size:15px}
h3.section-title+.explain{margin-bottom:8px;font-size:12.5px}
/* The first title of a page needs no rule above it, whether it stands alone or opens the page's first block. */
section.tab>h3:first-child,section.tab>:is(#sw-setup,#tg-bots):first-child>h3.section-title:first-child{margin-top:0;padding-top:0;border-top:0}
.explain{max-width:900px;margin:0 0 16px;color:var(--muted);font-size:13px}
/* A title and its preface start at the left edge of the cards under them, so the three read as one block. */
h2,h3,h4{text-wrap:balance}
.explain,.about{text-wrap:pretty}
/* Digits of one width, so figures line up and do not shift when read again. */
table,.figure b,.big-figure b,.facts dd,.meter-line b{font-variant-numeric:tabular-nums}
.explain code,.mono,code{font-family:var(--mono);font-size:12px}
.sub{color:var(--muted);font-size:12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.grow{flex:1;min-width:220px}

/* ---------------- cards and instrument panels ---------------- */
.card,.tile{min-width:0;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow)}
.card{margin:0 0 16px;padding:14px 16px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;margin-bottom:16px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:16px;margin:0 0 16px}
.tiles.small{grid-template-columns:repeat(auto-fill,minmax(min(100%,236px),1fr))}
.tiles.wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr))}
/* A fixed set of short panels that shares the whole width. */
.tiles.fill{grid-template-columns:repeat(auto-fit,minmax(min(100%,236px),1fr))}
.tile{display:flex;flex-direction:column;gap:12px;padding:16px;overflow-wrap:break-word}
.tile .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.tile .sub.mono,.tile code{overflow-wrap:anywhere}
.tile.span{grid-column:1/-1}
/* Panels of one size: one line of name and badges, four figures, two lines of path. */
.tiles.even{grid-auto-rows:1fr}
.tiles.even .tile-head{flex-wrap:nowrap}
.tiles.even :is(h4,.one-line){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tiles.even .one-line{height:22px}
.tiles.even .two-lines{height:36px;line-height:18px}
.tiles.even .tile .figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.tiles.even .figure{padding:4px 6px}
.tiles.even .figure>b{height:34px;line-height:28px;white-space:nowrap}
/* A computed size, with its number of files, fits the same room. */
.tiles.even .figure>b b{font-size:14px;line-height:20px}
.tiles.even .figure>b .sub{font-size:10.5px;line-height:14px}
/* Command, runtime and service panels: one size, with room kept for each
   part. The head and the state are one line each, the body scrolls. */
.tile.slots{height:332px;gap:8px;border-top-width:3px}
.tile.slots .tile-head{flex-wrap:nowrap;flex:none;height:38px}
.tile.slots :is(.tile-head h4,.tile-state>.badge){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tile-state{display:flex;flex:none;align-items:center;gap:6px;height:22px;min-width:0}
.tile .tile-state>.badge{min-width:0;margin:0}
.tile.slots>.about{flex:none;height:36px;line-height:18px}
.tile-body{display:flex;flex:1;flex-direction:column;gap:8px;min-height:0;overflow:auto;scrollbar-width:thin}
.tile-body>*{flex:none}
.tile-body .figures{gap:6px}
.tile-body .figure>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Without a kicker, a long title takes both lines of the head. */
.tile.slots .tile-name>h4:only-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;font-size:13.5px;line-height:19px}
.tile.slots>.tile-foot{flex:none;gap:6px;min-height:41px;margin-top:0}
.tile.slots>.tile-foot .b{padding:0 8px}
.tile.slots .tile-foot .cmd{flex:1;flex-wrap:nowrap;min-width:0}
.tile.slots .tile-foot .cmd>.sub:not(.grow){width:auto}
.tile.slots .tile-foot .cmd-field>code{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tile.slots.tone-off h4{color:var(--muted)}
/* How to install what is missing: grey, at the bottom of the body, just above the footer's divider. */
.install-hint{display:flex;flex-direction:column;gap:3px;margin-top:auto;opacity:.8}
.install-hint .cmd-panel{background:color-mix(in srgb,var(--muted) 12%,transparent)}
/* A backbone part is narrow: its command wraps and is read whole. */
.sw-bb .install-hint .cmd-panel>code{padding:4px 0;line-height:16px;overflow-wrap:anywhere;white-space:normal}
/* On a card, a long command wraps, so that the package's name stays in sight. */
.tile.slots .install-hint .cmd-panel>code{padding:4px 0;line-height:16px;overflow-wrap:anywhere;white-space:normal}
/* The edge is coloured by how the thing is. */
.tile.tone-up{--edge:var(--dot-up)} .tile.tone-paused{--edge:var(--dot-paused)} .tile.tone-down{--edge:var(--dot-down)} .tile.tone-off{--edge:var(--dot-off)}
.tile[class*=tone-]{border-color:color-mix(in srgb,var(--edge) 42%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--edge) 9%,transparent),var(--shadow)}
.tile.slots[class*=tone-]{border-top-color:var(--edge)}
.tile[data-go],.tile.pick{cursor:pointer;transition:transform .2s ease,background-color .2s ease}
@media (hover:hover){.tile[data-go]:hover,.tile.pick:hover{transform:translateY(-1px);background:var(--panel)}}
/* An SSH key: what it is, what can be done with it and the servers it reaches, in one card across the page. */
.ssh-keys{display:grid;gap:16px;margin:0 0 16px}
.tile.ssh-key{gap:16px;padding:18px 20px 20px}
.ssh-part{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
.ssh-part>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.ssh-part h5{min-width:0;margin:0;color:var(--text2);font-size:12px;font-weight:650;overflow-wrap:anywhere}
.ssh-key .facts>div{flex:1 1 190px;padding:8px 12px}
.ssh-key .facts>.path{flex:1 1 340px}
.ssh-key>.ssh-part,.ssh-key>.worded-row,.ssh-key>details{min-width:0}
.ssh-key>.worded-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));padding-top:16px}
.ssh-key>.worded-row+.ssh-part{padding-top:14px;border-top:1px solid var(--line)}
.ssh-key table.ssh-table{table-layout:fixed;min-width:680px;font-size:12.5px}
.ssh-table col.server{width:30%}
.ssh-table col.state{width:150px}
.ssh-table col.act{width:176px}
.ssh-table :is(th,td){padding:10px 14px;vertical-align:middle;overflow-wrap:anywhere}
.ssh-table th{padding-block:8px}
.ssh-table .ssh-why{line-height:18px}
.ssh-table .badge{margin:0 0 0 2px}
.ssh-table td.actions .acts{flex-wrap:nowrap;justify-content:flex-end;min-width:0}
.ssh-table tr.has-more>td{border-bottom:0}
.ssh-table td .cmd{margin:0}
/* What a whole page shares, above its parts. */
.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px;margin:0 0 8px}
.summary dt{color:var(--muted);font-size:11.5px;line-height:16px}
.summary dd{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.summary .mono{font-size:12.5px;font-weight:400}
/* Settings on the plain page, one under another. */
.plain-list{margin:0 0 16px;padding:0;list-style:none}
.plain-list li{padding:10px 0;border-bottom:1px solid var(--line)}
.plain-list li:first-child{padding-top:0}
.plain-list li:last-child{border-bottom:0}
.plain-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:2px;font-size:13px}
.plain-head b{font-weight:600}
/* The chosen panel: the page shows only what it stands for. */
.tile.picked{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 30%,transparent),var(--shadow)}
.tile-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0}
.tile-head>.status{margin-left:auto}
.tile-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;background:var(--level1);color:var(--text2)}
.tile-name{flex:1 1 72px;min-width:0}
.kicker{overflow:hidden;color:var(--muted);font-size:10.5px;font-weight:500;letter-spacing:.08em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.tile h4{font-weight:600;line-height:1.35}
.about{margin:0;color:var(--muted);font-size:12.5px}
.clamp{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tile-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
.more{display:inline-flex;align-items:center;margin-left:auto;padding:0;border:0;border-radius:4px;background:none;color:var(--text2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.more .icon{width:18px;height:18px}
.tile .issue{margin:0}
.tile .cmd{flex-wrap:wrap;row-gap:3px;margin:0}
.tile .cmd>.sub:not(.grow){width:100%}
.tile table,.card table,#modal table{box-shadow:none}
.tile details>div,.tile details>table{margin-top:8px}

/* Why Docker cannot be used, with the commands that help. */
.docker-help{max-width:760px}
.docker-back{margin:0 0 4px 17px}
/* A folding group: its header is a section title with a chevron at the right. */
/* The divider above a group runs the width of the page: it belongs to the group, not to its title. */
details.images-group{margin:30px 0 0;padding-top:16px;border-top:1px solid var(--line)}
details.images-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;list-style:none}
details.images-group>summary::-webkit-details-marker{display:none}
details.images-group>summary .section-title{margin:0;padding:0;border:0;font-weight:650}
details.images-group>summary .section-title .sub{font-weight:400}
details.images-group>summary::after{content:"";flex:none;width:7px;height:7px;margin:0 4px 3px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
details.images-group[open]>summary::after{transform:rotate(-135deg);margin-bottom:-3px}
details.images-group>summary:hover::after{border-color:var(--text)}
details.images-group>summary:focus-visible{outline:2px solid var(--focus,currentColor);outline-offset:3px;border-radius:6px}
.docker-help>:first-child{margin-top:0}
.docker-help>p{margin:4px 0 10px;color:var(--muted);font-size:13px}
.docker-help .cmd>.sub:not(.grow){flex:0 0 220px}
/* An archived project steps back. */
.tile.dim{opacity:.65}
.key-row+.key-row{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.key-row .badge{margin-left:4px}
.key-row .mono{overflow-wrap:anywhere}
/* Digital Ocean: the account's costs beside its projects, two halves under one rule. Their titles, subtitles and panels share rows. */
.do-account{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto 1fr;column-gap:16px;margin:30px 0 16px;padding-top:16px;border-top:1px solid var(--line)}
.do-account>section{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;min-width:0}
.do-account>section>h3.section-title{margin:0;padding:0;border:0}
.do-account .tile>.figures,.do-account .tile>.do-projects{flex:1}
.do-account .tile>.figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.do-account .figure{justify-content:center;padding:10px 12px}
.do-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.do-project{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px 12px;border-radius:10px;background:var(--level1)}
.do-project-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.do-project-head b{min-width:0;font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
.do-project .badge:not(.info){background:var(--surface)}
@container page (max-width:760px){.do-account{grid-template-columns:minmax(0,1fr);grid-template-rows:none} .do-account>section{grid-row:auto;grid-template-rows:none} .do-account>section+section{margin-top:14px}}
@container page (max-width:420px){.do-account .tile>.figures{grid-template-columns:minmax(0,1fr)}}
/* Its domains: low cards, each opening the domain's records. */
.do-domains{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px;margin:0 0 16px}
.do-domain{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:transform .2s ease,background-color .2s ease}
.do-domain .tile-icon{width:32px;height:32px;border-radius:9px}
.do-domain>.icon{width:18px;height:18px;color:var(--muted)}
.do-domain-name{display:flex;flex:1;flex-direction:column;min-width:0;line-height:1.35}
.do-domain-name b{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.do-domain-name .sub{font-size:11px}
@media (hover:hover){.do-domain:hover{transform:translateY(-1px);background:var(--panel)}}
/* One domain's records, a page of their own. */
.do-domain-bar{margin-bottom:12px}
.do-domain-bar h3{margin:0;padding:0;border:0;font-size:18px;overflow-wrap:anywhere}
.do-back{gap:2px;padding-left:6px}
.do-back .icon{width:17px;height:17px;transform:rotate(180deg)}
.do-filter{--control:32px;margin-bottom:10px}
.do-filter input{width:min(260px,100%)}
table.do-records{table-layout:auto;margin-bottom:16px;font-size:12.5px}
table.do-records :is(th,td){padding:7px 12px;vertical-align:middle}
table.do-records th{font-size:11px;letter-spacing:.06em;text-transform:uppercase}
table.do-records tbody tr:hover{background:var(--level1)}
table.do-records :is(th,td):first-child{width:1%}
.do-type{--flow:var(--dot-off);display:inline-block;min-width:58px;padding:0 8px;border:1px solid color-mix(in srgb,var(--flow) 55%,transparent);border-radius:6px;background:color-mix(in srgb,var(--flow) 14%,transparent);font:600 11px/20px var(--mono);text-align:center}
.do-type:is([data-type=A],[data-type=AAAA]){--flow:#3b82f6}
.do-type[data-type=CNAME]{--flow:#8b5cf6}
.do-type[data-type=MX]{--flow:#eab308}
.do-type[data-type=TXT]{--flow:#14b8a6}
.do-type:is([data-type=SRV],[data-type=CAA]){--flow:#22c55e}
.do-host{width:22%;min-width:130px;overflow-wrap:anywhere}
.do-host b{font-weight:600}
.do-host .sub{font-size:12px}
.do-value code{display:block;max-width:90ch;font-size:11.5px;line-height:1.5;overflow-wrap:anywhere}
.do-detail{display:inline-block;margin:2px 10px 0 0;color:var(--muted);font-size:11px}
.do-detail b{color:var(--text2);font-weight:600}
td.do-copy{width:1%;padding-top:2px;padding-bottom:2px}
.do-copy .icon-btn{width:28px;height:28px}
@media (max-width:640px){table.do-records :is(th,td){padding:6px}.do-host{min-width:0}.do-type{min-width:44px;padding:0 4px}}

/* Facts and figures: small grey plaques, a muted label over each value. */
.figure,.facts>div,.summary>div,.status-rows li,.big-figure,.meter{min-width:0;padding:6px 10px;border-radius:8px;background:var(--level1)}
.figures{display:flex;flex-wrap:wrap;gap:8px}
.figure{display:flex;flex:1 1 auto;flex-direction:column}
/* Four or more in a narrow panel stand two to a row. */
.tile:not(.span)>.figures:has(>:nth-child(4)),.tile:not(.span) .tile-body .figures:has(>:nth-child(4)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.tile:not(.span) .figures:has(>:nth-child(4))>.figure:last-child:nth-child(odd){grid-column:1/-1}
.figure b{display:block;font-size:15px;font-weight:600;line-height:22px}
.figure.long b{font-size:13px}
.figure span{display:block;color:var(--muted);font-size:11.5px;line-height:16px}
.figure>span::first-letter,.facts dt::first-letter{text-transform:uppercase}
.figure.paused b{color:var(--warn)} .figure.down b{color:var(--err)}
.figure b .sub{display:block;font-weight:400}
/* The one figure a panel is about. */
.big-figure{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px;line-height:1.15}
.big-figure b{font-family:Inter,"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;font-size:24px;font-weight:650;letter-spacing:-.02em}
.big-figure .unit{color:var(--text2);font-size:15px;font-weight:600}
.big-figure .caption{margin-left:auto;color:var(--muted);font-size:11.5px}
.tile.empty .big-figure :is(b,.unit){color:var(--muted)}
/* Here a full bar is no warning: it is space to get back. */
.tile.space .meter{--level:var(--accent)}
/* Facts side by side; a path takes the whole width. */
.facts{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.facts dt{color:var(--muted);font-size:11.5px;line-height:16px}
.facts dd{margin:0;font-size:13.5px;font-weight:600;line-height:22px;overflow-wrap:anywhere}
.facts>div{flex:1 1 120px}
.facts>.path{flex-basis:100%}
.facts>.path dd{font:400 11.5px/1.6 var(--mono)}
/* Short values, such as counts, stand at the right of their names. */
.tile.space .facts{flex-direction:column;gap:6px}
.tile.space .facts>div{flex:none}
.tile.space .facts>div{display:flex;justify-content:space-between;gap:8px}
.tile.space .facts dd{line-height:16px;text-align:right}
.meter{--level:#22c55e}
.meter.level-1{--level:#eab308} .meter.level-2{--level:#f97316} .meter.level-3{--level:#ef4444}
.meter-line{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}
.meter-line b{color:var(--text)}
.meter-bar{height:6px;margin:3px 0;overflow:hidden;border-radius:3px;background:var(--soft)}
.meter-bar i{display:block;height:100%;border-radius:3px;background:var(--level);transition:width .6s ease}
.status-rows{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.status-rows li{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text2);font-size:13px}

/* A coloured point beside the words that say the same. */
.status{--tone:var(--dot-off);display:inline-flex;align-items:center;gap:6px;flex:none;height:22px;padding:0 9px;border-radius:11px;background:var(--level1);color:var(--text2);font-size:11.5px;font-weight:600;white-space:nowrap}
.status.up{--tone:var(--dot-up);background:var(--ok-soft);color:var(--ok)}
.status.paused{--tone:var(--dot-paused);background:var(--warn-soft);color:var(--warn)}
.status.down{--tone:var(--dot-down);background:var(--err-soft);color:var(--err)}
.dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--tone,var(--dot-off))}
.badge{display:inline-block;margin:1px 3px 1px 0;padding:0 8px;border-radius:10px;background:var(--level1);color:var(--text2);font-size:11.5px;font-weight:500;line-height:20px;white-space:nowrap}
.badge.ok{background:var(--ok-soft);color:var(--ok)}
.badge.warn{background:var(--warn-soft);color:var(--warn)}
.badge.error{background:var(--err-soft);color:var(--err)}
.badge.info{background:var(--info-soft);color:var(--info)}
.issue{margin:2px 0;font-size:12.5px}
/* A note that must stay on one line: it is written short, and where it still does not fit it is cut and whole in its title. */
.issue.line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Backups: the help folds under one muted line, and the explanation keeps a readable line length. */
.sw-backups details{margin:14px 0 6px}
.sw-backups summary{width:max-content;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer}
.sw-backups summary:hover{color:var(--text)}
.sw-backups details p{max-width:76ch;margin:6px 0 0;line-height:1.55}
.sw-backups .issue{margin:6px 0}
/* The panel of one part's backups: its three figures stay together, and it is as tall as what it says. */
.tile.sw-backups .figures{max-width:560px}
.tile.sw-backups .sw-about,.tile.sw-backups details{margin:0}
.tile.sw-backups details[open] summary{margin-bottom:8px}
.sw-about{max-width:80ch;margin:8px 0 0;line-height:1.55;text-wrap:pretty}
.sw-about b{color:var(--text2);font-weight:650}
/* A backup panel in two parts: this server's backups, and beside them their copies in the cloud. */
.bk-split{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px}
.bk-here{display:flex;flex:1.5 1 420px;flex-direction:column;gap:12px;min-width:0}
.bk-away{display:flex;flex:1 1 300px;flex-direction:column;gap:10px;min-width:0;padding:12px 14px;border-radius:10px;background:var(--level1)}
.bk-away:empty{display:none}
.bk-away :is(.sw-sub,.sw-about){margin:0}
.bk-away .facts>div{background:var(--surface)}
/* Rows inside a card: dividers between them, and no box or upright line. */
/* It takes the card's width at every width of the page, and scrolls only where its columns no longer fit. */
.rows-scroll{overflow-x:auto}
.card table.rows,.tile table.rows{display:table;width:100%;min-width:520px;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px}
.tile table.rows.web-folders{min-width:300px}
.tile .rows-scroll>table{margin-top:0}
table.rows th{padding:0 8px 5px;background:none;font-size:11px}
table.rows td{padding:6px 8px;vertical-align:middle}
table.rows :is(th,td).num{text-align:right}
table.rows td.nowrap{white-space:nowrap}
table.rows td.mono{font-size:11.5px;overflow-wrap:anywhere}
table.rows tr.picked>td{background:var(--level1)}
.tile.site[data-root]{cursor:pointer}
/* The Nginx page: its tabs, the site files, and the default page's two fields. */
[data-nginx-part]>h3.section-title:first-child,[data-nginx-part]>#sw-site>h3.section-title:first-child,[data-nginx-part]>#sw-site:empty+h3.section-title{margin-top:0;padding-top:0;border-top:0}
.part-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:8px}
.part-bar>.explain{flex:1 1 320px;margin:0;font-size:12.5px}
.site-file{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.site-file>b{font-size:12.5px;font-weight:650;overflow-wrap:anywhere}
.site-path{display:block;color:var(--muted);font:10.5px/1.6 var(--mono);overflow-wrap:anywhere}
.nginx-files .port-pill{min-width:36px;padding:0 6px}
.nginx-files .site-do .acts{flex-wrap:nowrap;justify-content:flex-end;margin:0}
.default-page{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.default-page label{display:flex;flex-direction:column;gap:3px}
.default-page :is(input,textarea){box-sizing:border-box;width:100%;min-width:0}
#modal .content .default-page textarea{font-family:inherit;font-size:13px;line-height:1.6;resize:vertical}
/* The addresses that serve a site, a plaque each with what it answered. */
.site-urls{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
.site-urls li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;min-height:30px;padding:4px 10px;border-radius:8px;background:var(--level1);font-size:12.5px;font-weight:600}
.site-urls li>:first-child{min-width:0;overflow-wrap:anywhere}
.tile .site-urls .badge{flex:none;margin:0;white-space:nowrap}
.site-also{display:flex;flex-wrap:wrap;gap:2px 10px;color:var(--muted);font-size:11.5px}
.site-also a{overflow-wrap:anywhere}
.site-none{margin:0}
/* A web root's folder: one plaque, a fact to a line, its name beside it. */
.tile.site details .facts{flex-direction:column;gap:0;padding:2px 10px;border-radius:8px;background:var(--level1)}
.tile.site details .facts>div{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:baseline;gap:10px;flex:none;padding:6px 0;border-radius:0;background:none}
.tile.site details .facts>div+div{border-top:1px solid var(--line)}
.tile.site details .facts dd{font-size:12px;line-height:18px}
/* Something that needs a look, said with what to do about it. */
.callout{padding:10px 14px;border:1px solid color-mix(in srgb,var(--dot-paused) 42%,transparent);border-left:3px solid var(--dot-paused);border-radius:8px;background:color-mix(in srgb,var(--dot-paused) 8%,transparent);font-size:12.5px;line-height:1.5}
.callout>b{color:var(--warn);font-weight:650}
.callout p{max-width:92ch;margin:2px 0 0}
.callout p.sub{font-size:11.5px}
.site-order{display:flex;flex-direction:column;gap:8px}
.site-order:empty{display:none}
.site-order p{margin:0}
.site-order label{display:flex;flex-direction:column;gap:3px}
.site-order :is(select,input){width:100%;min-width:0}
/* The backup files kept: each row opens to the tree of what it holds. */
.bk-list{margin:0 0 16px;padding:0;overflow:hidden;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow);list-style:none}
.bk+.bk{border-top:1px solid var(--line)}
.bk-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 12px;padding:6px 12px 6px 6px}
.bk-open{display:flex;flex:1 1 380px;align-items:center;gap:10px;min-width:0;padding:6px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.bk-open:hover{background:var(--level1)}
.bk-open:disabled{cursor:progress}
.bk-name{flex:1;min-width:0}
.bk-name>b{margin-right:8px;font-size:13px;font-weight:600}
.bk-file{display:block;color:var(--muted);font:11.5px/1.6 var(--mono);overflow-wrap:anywhere}
.bk-size{flex:none;text-align:right}
.bk-size>b,.bk-size>.sub{display:block}
.bk-size>b{font-size:13px;font-weight:600}
.bk-size>.sub{font-size:11px}
.bk-files{padding:8px 12px 12px;border-top:1px solid var(--line)}
.data-folders .bk-file{color:var(--text)}
.data-folders .bk-name>.sub{display:block;font-size:11.5px;line-height:1.5}
/* A tree of files: one row each, the count, size and date in columns of their own at every depth. */
.ft{margin:0;padding:0;list-style:none}
.ft .ft{margin-left:13px;padding-left:10px;border-left:1px solid var(--line)}
.ft-row{display:grid;grid-template-columns:16px 16px minmax(0,1fr) 84px 72px 82px;align-items:center;gap:8px;width:100%;min-height:26px;padding:2px 6px;border:0;border-radius:6px;background:none;color:var(--text2);font:inherit;font-size:12px;text-align:left}
.ft-row:hover{background:var(--level1)}
button.ft-row{cursor:pointer}
.ft-row>.icon{width:16px;height:16px;color:var(--muted)}
.ft-row.dir{color:var(--text);font-weight:600}
.ft-name{font-family:var(--mono);overflow-wrap:anywhere}
.ft-link{color:var(--muted);font-weight:400}
.ft-count,.ft-size,.ft-date{color:var(--muted);font-size:11px;font-weight:400;text-align:right;white-space:nowrap}
.ft-mark{display:grid;place-items:center;flex:none;width:16px}
.ft-mark .icon{width:16px;height:16px;color:var(--muted);transition:transform .15s}
[aria-expanded=true]>.ft-mark .icon{transform:rotate(90deg)}
.ft-total{margin:0 0 4px;padding:0 6px;color:var(--muted);font-size:11.5px}
.ft .ft-total{margin-top:2px}
@media (max-width:760px){.ft-row{grid-template-columns:16px 16px minmax(0,1fr) 72px}.ft-count,.ft-date{display:none}.bk-size>.sub{display:none}}
.issue.error{color:var(--err)} .issue.warn{color:var(--warn)} .issue.info{color:var(--info)} .issue.ok{color:light-dark(#15803d,#4ade80)}
.count{display:inline-block;min-width:17px;padding:0 5px;border-radius:9px;background:light-dark(#c41c1c,#d64545);color:#fff;font-size:10.5px;font-weight:600;line-height:17px;text-align:center}
.count.warn{background:#eab308;color:#171a1c}

/* ---------------- tables ---------------- */
table{width:100%;overflow:hidden;border:1px solid var(--glass-edge);border-radius:12px;border-spacing:0;border-collapse:separate;background:var(--glass);box-shadow:var(--shadow)}
th,td{padding:8px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:light-dark(rgba(240,244,248,.8),rgba(29,35,44,.8));color:var(--muted);font-size:12px;font-weight:600}
tr:last-child>td{border-bottom:0}
/* Clean up: its cards, then the list; what the list holds nothing of is one line under it. */
.acts+.clean-cards{margin-top:14px}
table.clean-list{margin-bottom:12px}
table.clean-list td:first-child{width:26%}
table.clean-list td.actions{width:1%}
p.clean-none{margin:0 0 4px}
/* A dimmed row keeps its buttons clear, or they look disabled. */
tr.dim td:not(.actions){opacity:.55}
/* Long paths wrap, so a table never pushes past the window. */
td .mono,td .issue{overflow-wrap:anywhere}
td .issue{min-width:170px}
td.path{font-family:var(--mono);font-size:12px;word-break:break-all}
td.num{text-align:right;white-space:nowrap}

/* ---------------- controls ---------------- */
/* Buttons: one compact size everywhere. Links that act as buttons take the class too. */
.b{display:inline-flex;align-items:center;justify-content:center;flex:none;height:var(--control);padding:0 10px;border:1px solid var(--btn-line);border-radius:6px;background:var(--surface);color:var(--text2);font:inherit;font-size:12px;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}
.b:hover:not(:disabled){background:var(--level1);color:var(--text)}
.b:active:not(:disabled){background:var(--soft)}
.b.primary{border-color:var(--primary);background:var(--primary);color:#fff}
.b.primary:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 84%,light-dark(#000,#fff));color:#fff}
.b.danger{color:var(--err)}
.b.danger:hover:not(:disabled){border-color:color-mix(in srgb,var(--err) 50%,transparent);background:var(--err-soft);color:var(--err)}
.b:disabled{opacity:.45;cursor:default}
/* Buttons that belong together are joined; groups are set apart by a gap. */
.btns{display:inline-flex}
.btns>.b{border-radius:0}
.btns>.b+.b{margin-left:-1px}
.btns>.b:first-child{border-radius:6px 0 0 6px}
.btns>.b:last-child{border-radius:0 6px 6px 0}
.btns>.b:only-child{border-radius:6px}
.btns>.b:hover:not(:disabled),.btns>.b:focus-visible{position:relative;z-index:1}
.acts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
/* The actions column is only as wide as its buttons; the other columns share the rest. */
th.actions,td.actions{width:1%;text-align:right}
td.actions{padding-top:6px;padding-bottom:6px}
td.actions .acts{flex-wrap:nowrap;justify-content:flex-end}
@media (max-width:1100px){td.actions .acts{flex-wrap:wrap;min-width:150px}}
/* A switch: on is to the right. Green where it runs something. */
.switch{appearance:none;-webkit-appearance:none;flex:none;width:36px;height:20px;margin:0;padding:0;border:0;border-radius:10px;background:radial-gradient(circle closest-side,#fff 92%,transparent) 2px 50%/16px 16px no-repeat light-dark(#9fa6ad,#555e68);cursor:pointer;transition:background-position .16s ease,background-color .16s ease}
.switch:checked,.switch[aria-checked=true]{background-position:18px 50%;background-color:var(--primary)}
:root[data-theme=dark] .switch:checked{background-color:#8b8b96}
.switch.live[aria-checked=true]{background-color:light-dark(#2e9e48,#35a853)}
.switch:disabled{opacity:.5;cursor:not-allowed}
.toggle{display:inline-flex;align-items:center;gap:8px;color:var(--text2);font-size:12.5px;cursor:pointer}
/* Segmented controls filter what a list shows. */
.segmented{display:inline-flex;flex-wrap:wrap;gap:2px;margin:0;padding:3px;border-radius:10px;background:var(--level1)}
.segmented button{height:28px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--muted);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.segmented button:hover{color:var(--text)}
.segmented button[aria-pressed=true]{background:var(--panel);color:var(--text);box-shadow:0 1px 2px rgba(15,18,23,.16)}
input,select,textarea{border:1px solid var(--btn-line);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}
input:not([type=checkbox]),select{height:32px;padding:0 10px}
textarea{width:100%;padding:8px 10px;font-family:var(--mono);font-size:12.5px}
/* A list typed one entry per line: it fills its card, grey like the facts, each line ruled. */
.tile>textarea.line-list{--row:28px;flex:1 0 calc(var(--row) * 10 + 12px);box-sizing:border-box;min-height:0;padding:6px 12px;overflow:auto;resize:none;border-color:transparent;border-radius:8px;
  background:repeating-linear-gradient(transparent 0 calc(var(--row) - 1px),var(--line) 0 var(--row)) 0 6px local,var(--level1);font-size:12px;line-height:var(--row);white-space:pre;scrollbar-width:thin}
.tile>textarea.line-list:focus{border-color:var(--primary);outline:none}
/* Beside a field, a button is as tall as the field. */
.row:has(>input:not([type=checkbox]),>select){--control:32px}
input.wide{min-width:min(420px,100%)}
summary{color:var(--muted);font-size:12.5px;cursor:pointer}

/* ---------------- commands, chips and logs ---------------- */
.cmd{display:flex;align-items:center;gap:8px;margin:5px 0}
.cmd>.sub:not(.grow){flex:none}
.cmd>code{flex:1;min-width:0;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--level1);overflow-wrap:anywhere}
/* A command to copy: a field of the full width of its place, the command inside it, and its copy icon in the corner. */
.cmd-field{display:flex;flex:1 1 100%;align-items:flex-start;gap:4px;min-width:0;padding:3px 3px 3px 9px;border:1px solid var(--line);border-radius:8px;background:var(--level1)}
.cmd-field>code{flex:1;min-width:0;padding:3px 0;border:0;background:none;font-size:11.5px;line-height:17px;overflow-wrap:anywhere}
.cmd-field>.icon-btn{flex:none;width:26px;height:26px}
.command-card h4{margin:0 0 10px}
.command-card .cmd>.sub{width:220px}
@media (max-width:700px){.command-card .cmd{flex-wrap:wrap} .command-card .cmd>.sub{width:100%}}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:2px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:12.5px}
.chip b{font-family:var(--mono)} .chip.miss{opacity:.55;text-decoration:line-through}
.stars{color:light-dark(#b7791f,#f5b84b);font-size:12px;letter-spacing:-1px}
.loading{padding:14px 0;color:var(--muted)}
.loading:before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid var(--muted);border-top-color:transparent;border-radius:50%;vertical-align:-2px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.err{color:var(--err);white-space:pre-wrap}
pre.log{max-height:320px;margin:8px 0 0;padding:10px 12px;overflow:auto;border-radius:8px;background:#0b0d10;color:#cdd7e1;font-family:var(--mono);font-size:12px;white-space:pre-wrap}
.price-up{color:var(--ok)} .price-down{color:var(--err)}

/* ---------------- parts of single pages ---------------- */
/* Services: how the self-test went, as one bar. */
.test-bar{display:flex;gap:2px;height:8px;overflow:hidden;border-radius:4px;background:var(--soft)}
.test-bar i.up{background:var(--dot-up)} .test-bar i.paused{background:var(--dot-paused)} .test-bar i.down{background:var(--dot-down)}
/* Firebase: the services of a project, side by side. */
.parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.part{min-width:0;padding:10px 12px;border-radius:8px;background:var(--level1)}
.part>.row{flex-wrap:nowrap;justify-content:space-between}
.part>.sub,.part .site{margin-top:6px;overflow-wrap:anywhere}
.config-file{justify-content:space-between;align-items:flex-start;gap:12px;margin:6px 0}
.config-file .mono{text-align:right;overflow-wrap:anywhere}
#modal .content label{display:grid;gap:4px}
#modal .content label.toggle{display:inline-flex}
#modal .content input:not([type=checkbox]){min-width:min(260px,100%)}
.grid label{display:grid;gap:4px}
.messages{max-height:420px;overflow:auto}
/* The pod: forms under their tables, secrets in dialogs. */
.bk-cloud:empty{display:none}
.bot-send{margin-top:8px}
/* AI bots: the form of a new one, and the talk, yours to the right. */
.ai-new>.grid{margin-top:10px}
.ai-new .grid input,.ai-new .grid select{width:100%}
.ai-how{display:grid;gap:4px;margin:10px 0}
.ai-new textarea{font-family:inherit;font-size:13px}
.ai-talk{display:flex;flex-direction:column;gap:8px;min-height:180px;max-height:55vh;margin:10px 0;padding:10px;overflow:auto;border-radius:8px;background:var(--level1)}
.ai-said{max-width:85%;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);white-space:pre-wrap;overflow-wrap:anywhere}
.ai-said.user{align-self:flex-end}
.ai-said.assistant,.ai-said.error{align-self:flex-start}
.ai-said.error{color:var(--err)}
/* Setup steps: buttons as the CDN's Delivery page words its orders, a round pictogram beside the name and how the
   step stands. The open one has the primary border, and its panel stands under the row. */
.flow-bar{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.b.flow-rescan{gap:6px;padding:0 14px 0 11px;border-radius:999px}
.flow-rescan .icon{width:15px;height:15px}
.flow-rescan:disabled .icon{animation:spin .9s linear infinite}
.flow-box{container:flow/inline-size;margin:0 0 20px}
.steps.flow{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0}
.steps.flow .step{display:flex}
.steps.flow .step+.step::before{display:none}
/* A step is a button; the checks behind a map (stepsHtml) open nothing, and wear the same face. */
.steps.flow .step>:is(button,.step-face){display:flex;flex:1;align-items:center;gap:12px;min-width:0;padding:10px 12px 10px 10px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}
.steps.flow .step>.step-face{cursor:default}
.steps.flow .step>button:hover{background:var(--level1)}
.steps.flow .step.current>button{border-color:var(--primary)}
/* A step's border and halo tell how it stands, as a card's do (.tile.tone-*); the open one's are stronger. */
.steps.flow .step.ok{--edge:var(--dot-up)} .steps.flow .step.warn{--edge:var(--dot-paused)} .steps.flow .step.error{--edge:var(--dot-down)} .steps.flow .step.busy{--edge:var(--accent)}
.steps.flow .step:is(.ok,.warn,.error,.busy)>:is(button,.step-face){border-color:color-mix(in srgb,var(--edge) 42%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--edge) 9%,transparent),var(--shadow)}
.steps.flow .step:is(.ok,.warn,.error).current>button{border-color:var(--edge);box-shadow:0 0 0 3px color-mix(in srgb,var(--edge) 24%,transparent),var(--shadow)}
.flow-box+.step-fix{padding:8px 12px;border:1px solid color-mix(in srgb,var(--dot-up) 42%,transparent);border-left:3px solid var(--dot-up);border-radius:12px;background:var(--glass);box-shadow:0 0 0 3px color-mix(in srgb,var(--dot-up) 9%,transparent),var(--shadow)}
.steps.flow .step .step-mark{position:relative;display:grid;place-items:center;flex:none;width:36px;height:36px;overflow:visible;border:1px solid color-mix(in srgb,var(--state) 50%,var(--line));border-radius:50%;background:var(--level1);color:var(--text2)}
.step-mark .icon{width:19px;height:19px}
.step-mark i{position:absolute;right:-4px;bottom:-3px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--state);box-shadow:0 0 0 2px var(--panel);color:var(--panel);font-size:10px;font-style:normal;font-weight:800;line-height:1}
.steps.flow .step.current .step-mark{border-color:var(--state);color:var(--state)}
.steps.flow .step .step-text{display:grid;min-width:0;white-space:normal}
.steps.flow .step b{color:var(--text);font-size:13px;font-weight:600;line-height:1.35}
.steps.flow .step .step-text span{color:var(--muted);font-size:11.5px;font-weight:500;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
/* As many to a row as fit with none left alone; arrows join them where the whole setup is one row. */
@container flow (min-width:440px){.steps.flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container flow (min-width:640px){
  .steps.flow:is(.n3,.n6){grid-template-columns:repeat(3,minmax(0,1fr))}
  .steps.flow.n3{gap:12px 24px}
  .steps.flow.n3 .step+.step::before{display:block}
}
@container flow (min-width:820px){
  .steps.flow.n4{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px}
  .steps.flow.n4 .step+.step::before{display:block}
}
@container flow (min-width:1120px){
  .steps.flow.n6{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 20px}
  .steps.flow.n6 .step+.step::before{display:block;left:-15px}
}
.flow-panel .sw-set{max-width:520px}
.flow-panel .sw-set.wide{max-width:none;gap:14px}
.sw-own{margin:0 0 12px}
.sw-cdn-fields{display:grid;gap:8px;max-width:520px;margin:0 0 10px}
.flow-panel .page-tabs{margin:0 0 10px}
.sw-env{margin:6px 0 10px;padding:8px 10px;overflow:auto;font-family:var(--mono);font-size:12px;line-height:1.6;border:1px solid var(--line);border-radius:8px}
.sw-hosts{width:100%;margin-top:12px}
.sw-hosts td{vertical-align:top;overflow-wrap:anywhere}
.sw-parts{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:6px 12px;max-width:560px}
.sw-parts .cmd-panel{margin:0}
.sw-found table{width:100%}
.sw-found td{vertical-align:top}
.sw-found details{margin:8px 0}
.sw-found>.sub{margin-top:8px}
/* The base of a system: Docker, and the wide backbone of nginx, Node.js and the agent, under what is installed on top. */
.sw-base{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,3fr);gap:16px;margin:0 0 16px}
.sw-bb-top{padding:3px 10px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:11.5px;text-align:center}
.sw-bb{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.sw-bb>li{--edge:var(--dot-off);position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px 10px;border:1px solid color-mix(in srgb,var(--edge) 55%,var(--line));border-radius:8px;background:var(--panel)}
.sw-bb>li.up{--edge:var(--dot-up)} .sw-bb>li.paused{--edge:var(--dot-paused)} .sw-bb>li.down{--edge:var(--dot-down)}
.sw-bb>li+li::before{content:"+";position:absolute;left:-13px;top:50%;transform:translateY(-50%);color:var(--muted)}
.sw-bb-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.sw-bb-head .icon{width:18px;height:18px;color:var(--text2)}
.sw-bb-head .status{margin-left:auto}
@container page (max-width:780px){.sw-base,.sw-bb{grid-template-columns:minmax(0,1fr)} .sw-bb{gap:8px} .sw-bb>li+li::before{display:none}}
/* A setting: its field under its name and where its value comes from. */
.sw-set{display:grid;gap:8px;min-width:0}
.sw-set-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.sw-set input,.sw-set textarea{box-sizing:border-box;width:100%;min-width:0}
.sw-set textarea{resize:vertical;line-height:1.6}
.sw-set-help{color:var(--muted);font-size:11.5px;line-height:1.45}
/* Telegram: a bot's settings, a field under its words. */
.tg-fields,.tg-webapp:not([hidden]){display:grid;gap:8px;min-width:0}
.tg-fields label{display:grid;gap:4px}
.tg-fields input,.tg-fields select{width:100%}
.tg-fields input,.tg-fields select,.tg-fields textarea{box-sizing:border-box;min-width:0}
#tg-bots code{white-space:nowrap}
.tg-pane{margin:0 0 16px}
.tg-label{display:flex;justify-content:space-between;gap:8px}
.tg-count{flex:none;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.tg-says,.tg-token-says{margin:0}
.tg-token-says{margin-top:8px}
.tg-state.wrong{color:var(--err)}
.tg-form [hidden]{display:none}
#tg-bots .status-rows li>span>small{display:block;color:var(--muted);font-size:11.5px;line-height:1.4}
/* Orders as buttons that say what they do, as on the CDN's Delivery page. */
.worded-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:12px;padding-top:12px;border-top:1px solid var(--line)}
.worded{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 12px 10px 10px;border:1px solid var(--btn-line);border-radius:18px;background:var(--panel);box-shadow:0 1px 2px light-dark(rgba(15,18,23,.08),rgba(0,0,0,.4));color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}
.worded:hover:not(:disabled){background:var(--level1)}
.worded:disabled{opacity:.6;cursor:progress}
.worded-mark{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid var(--btn-line);border-radius:50%;background:var(--level1);color:var(--text2)}
.worded-mark .icon{width:19px;height:19px}
.worded.danger .worded-mark{border-color:color-mix(in srgb,var(--err) 35%,var(--line));background:var(--err-soft);color:var(--err)}
.worded.danger:hover:not(:disabled){border-color:color-mix(in srgb,var(--err) 50%,transparent)}
.worded.spins:disabled .icon{animation:spin .9s linear infinite}
.worded-text{display:grid;min-width:0}
.worded-text b{font-size:13px;font-weight:600;line-height:1.35}
.worded-text span{color:var(--muted);font-size:11.5px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
/* The tabs of a page, and the choice of one of a few things: the same cards in even columns. The pictogram tells how
   each stands; the chosen one has the accent's border and halo. */
.page-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:12px;margin:0 0 20px}
.page-tabs>.worded[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--panel));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent)}
.page-tabs>.tab-up .worded-mark{border-color:color-mix(in srgb,var(--dot-up) 55%,var(--line));background:var(--ok-soft);color:var(--ok)}
.page-tabs>.tab-paused .worded-mark{border-color:color-mix(in srgb,var(--dot-paused) 60%,var(--line));background:var(--warn-soft);color:var(--warn)}
.page-tabs>.tab-down .worded-mark{border-color:color-mix(in srgb,var(--dot-down) 55%,var(--line));background:var(--err-soft);color:var(--err)}
.card>.grid{margin-bottom:10px}
.card>.grid input{width:100%}
.card>.facts{margin-bottom:10px}
.sw-backups>.sw-about+.row,.sw-backups>.facts+.row{margin-top:10px}
.qr{display:block;width:100%;max-width:300px;height:auto;margin:0 auto;border-radius:8px;background:#fff}
.key-text{overflow-wrap:anywhere}
#modal .content>.sub:first-child{margin-top:0}
#modal .content>label,#modal .content>.acts{margin-top:10px}
#modal .content textarea{width:100%}
.setting .sub{margin-top:2px}
/* On a phone a row of these tables is a block: what it is, its facts, then its buttons. */
@media (max-width:700px){
  table.pod-rows,table.pod-rows tbody{display:block}
  table.pod-rows thead{display:none}
  table.pod-rows tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 12px;border-top:1px solid var(--line)}
  table.pod-rows tbody tr:first-child{border-top:0}
  table.pod-rows tbody td{display:flex;align-items:center;gap:6px;padding:0;border:0;text-align:left}
  table.pod-rows tbody td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:12px}
  table.pod-rows tbody td:first-child,table.pod-rows tbody td.actions{flex:1 0 100%}
}
.message{padding:6px 0;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}
.setting{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}

/* ---------------- jobs, dialogs and notes ---------------- */
#drawer{position:fixed;right:16px;bottom:16px;z-index:40;display:none;flex-direction:column;width:min(680px,calc(100vw - 32px));max-height:60vh;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 18px 48px -12px rgba(0,0,0,.35)}
#drawer.open{display:flex}
#drawer .head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px;border-bottom:1px solid var(--line);font-size:13px}
#drawer .body{padding:6px 16px 12px;overflow:auto}
#drawer .job{padding:6px 0;border-top:1px solid var(--line)}
#drawer .job:first-child{border-top:0}
/* The log is wide and tall enough to read lines in. */
#drawer.logging{width:min(960px,calc(100vw - 32px));height:60vh}
#drawer .console-log{flex:1;min-height:0;margin:0 8px 8px;padding:8px 10px;border-radius:8px;background:#0b0d10;color:#cdd7e1;font:11.5px/1.6 var(--mono)}
.logline{display:grid;grid-template-columns:auto 52px 1fr;gap:10px}
.logline time{color:#7a828c}
.logline b{overflow:hidden;color:#9fa6ad;font-weight:600}
.logline span{white-space:pre-wrap;overflow-wrap:anywhere}
.logline.debug span{color:#9fa6ad}
.logline.warn span,.logline.warn b{color:#f3b562}
.logline.error span,.logline.error b{color:#f58a8a}
.console-log .sub{color:#9fa6ad}
/* The root command line: where it runs, what it printed, and the line to type. */
#drawer-ssh{display:flex;flex:1;flex-direction:column;min-height:0}
#drawer-ssh .row{flex-wrap:nowrap;gap:6px;margin:0;padding:8px}
#ssh-host{width:min(280px,50%)}
#ssh-cwd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ssh-entry{margin-bottom:8px}
.ssh-entry b{display:block;color:#8fd39a;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.ssh-entry pre{margin:0;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.ssh-entry em{color:#9fa6ad;font-style:normal;overflow-wrap:anywhere}
.ssh-entry em.error{color:#f58a8a}
#modal{position:fixed;inset:0;z-index:55;display:none;align-items:center;justify-content:center;background:rgba(11,13,16,.4);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#modal.open{display:flex}
#modal .box{display:flex;flex-direction:column;width:min(1000px,94vw);max-height:84vh;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 24px 64px -16px rgba(0,0,0,.45)}
#modal .box>header{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 18px;border-bottom:1px solid var(--line)}
#modal .content{padding:14px 18px;overflow:auto}
#modal .box.narrow{width:min(360px,94vw)}
/* The sign-in: as the CDN's dialog is, a title, labelled fields, the problem in red, one button. */
.signin{display:grid;gap:12px}
.signin label{display:grid;gap:4px;color:var(--muted);font-size:12.5px}
.signin input{height:36px;color:var(--text)}
.signin .b{height:36px;justify-content:center}
.signin-error{margin:0;color:var(--err);font-size:12.5px}
.signin .sub{margin:0}
.signin-wall{max-width:420px;margin:12vh auto}
#modal th{width:1%;white-space:nowrap}
.toast{position:fixed;top:72px;right:var(--edge);z-index:60;max-width:460px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 12px 32px -8px rgba(0,0,0,.3);border-left:4px solid var(--dot-up);white-space:pre-wrap;overflow-wrap:anywhere}
.toast.err{border-left-color:var(--dot-down);color:var(--text)}
#not-served{display:none}
html:has(meta[content="__DASH_TOKEN__"]) #not-served{display:block;max-width:640px;margin:48px auto;padding:20px 24px;border:2px solid var(--dot-paused);border-radius:12px;background:var(--panel)}
html:has(meta[content="__DASH_TOKEN__"]) :is(#rail,#corner,#page,#drawer){display:none}

/* ---------------- maps ---------------- */
/* The maps take the whole window beside the menu. */
body.wide{--max:none;--edge:8px}
body.wide #page{padding-right:8px}
body.wide main{padding:10px 0 0}
/* In full screen only the map and its own bar remain. */
:root:fullscreen body.wide :is(#rail,#corner,#bar,#outdated,#drawer){display:none}
:root:fullscreen body.wide #page{margin:0;padding:0 8px}
.map-bar{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap}
.map-bar h2{margin:0 4px 0 0;font-size:15px}
/* The head of a map: the three maps as tabs, this one's controls beside them, then the key above the map. */
.map-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 12px}
.map-head>.page-tabs{flex:0 1 760px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0;margin:0}
.map-head>.page-tabs>.worded{padding:7px 12px 7px 8px;border-radius:14px}
.map-head .worded-mark{width:34px;height:34px}
.map-head .worded-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 16px;margin-left:auto;--control:32px}
.map-controls:empty{display:none}
.map-failed{margin:12px 0 0;font-size:15px}
.map-legend{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:0 0 10px;padding:7px 12px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow)}
.map-legend .key{display:inline-flex;align-items:center;color:var(--text2);font-size:11.5px;font-weight:500;white-space:nowrap}
.map-legend .key::before{width:14px;height:4px;margin:0 6px 0 0;border-radius:2px}
.map-legend .sub{flex:1 1 340px;margin:0;padding-left:14px;border-left:1px solid var(--line);font-size:11.5px;line-height:1.45}
@container page (max-width:760px){
  .map-head>.page-tabs{flex-basis:100%}
  .map-head .worded{justify-content:center;gap:8px}
  .map-head .worded-text span{display:none}
  .map-legend .sub{padding-left:0;border-left:0}
}
@container page (max-width:460px){.map-head .worded-mark{display:none}}
.map-pane{overflow:auto;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow)}
.map-pane svg{display:block;margin:0 auto}
.map-pane text{fill:var(--text);font-size:11.5px}
.map-pane .heading{fill:var(--muted);font-size:12.5px;font-weight:650}
.map-pane .zone{font-size:11.5px;font-weight:650}
.map-pane .strong{font-weight:600}
.map-pane .big{font-size:15px;font-weight:650}
.map-pane .dim{fill:var(--muted);font-size:10.5px}
.map-pane .end{text-anchor:end}
.map-pane .good{fill:var(--ok)} .map-pane .bad{fill:var(--err)} .map-pane .warn{fill:var(--warn)}
/* One colour for each kind of traffic, for boxes, lines, pills and the key. */
.map-pane .internet,.key.internet{--flow:var(--err)}
.map-pane .open,.map-pane .unknown,.map-pane .lan,.key.open{--flow:var(--warn)}
.map-pane .out,.key.out{--flow:var(--accent)}
.map-pane .local,.key.local{--flow:var(--ok)}
.map-pane .virtual,.map-pane .image,.key.virtual,.key.image{--flow:var(--violet)}
.map-pane .blocked,.map-pane .off,.key.blocked{--flow:var(--muted)}
.map-pane .vpn,.key.vpn{--flow:var(--teal)}
.map-pane .mount,.map-pane .volume,.key.mount{--flow:var(--ok)}
.map-pane .container{--flow:var(--info)}
.map-pane .node rect{fill:var(--panel);stroke:color-mix(in srgb,var(--flow,var(--line)) 65%,var(--line));stroke-width:1}
.map-pane .node.router rect{fill:var(--panel2);stroke:var(--muted);stroke-width:1.4}
.map-pane .node.container rect{fill:var(--panel2)}
.map-pane .node.stopped,.map-pane .node.unused{opacity:.75}
.map-pane .node.stopped>rect,.map-pane .node.unused>rect,.map-pane .node.empty>rect,.map-pane .node.blocked>rect{stroke-dasharray:4 3}
.map-pane .node.toggle>rect{fill:var(--panel2);stroke-width:1.5}
.map-pane .node.toggle text.strong,.map-pane .node.outside.toggle text:first-of-type{font-weight:650}
.map-pane .pill rect{fill:color-mix(in srgb,var(--flow,var(--muted)) 14%,var(--panel));stroke:color-mix(in srgb,var(--flow,var(--muted)) 55%,transparent);stroke-width:1}
.map-pane .pill text{font-family:var(--mono);font-size:10px}
/* A row inside a box: bare until pointed at. */
.map-pane .node.device>rect{fill:transparent;stroke:transparent}
.map-pane [data-act]{cursor:pointer}
.map-pane [data-act]:hover>rect,.map-pane [data-act]:focus-visible>rect{stroke:var(--text);stroke-width:1.5}
.map-pane svg [data-act]:focus-visible{outline:none}
.map-pane .computer rect{fill:color-mix(in srgb,var(--panel2) 55%,transparent);stroke:var(--line);stroke-dasharray:6 4}
.map-pane .wall rect{fill:color-mix(in srgb,var(--err) 12%,var(--panel));stroke:color-mix(in srgb,var(--err) 45%,var(--line))}
.map-pane .wall text{text-anchor:middle;font-size:10.5px;font-weight:600;letter-spacing:.3px}
.map-pane .group rect{fill:none;stroke:var(--line);stroke-dasharray:6 4}
.map-pane .link .wire{fill:none;stroke:var(--flow,var(--muted));opacity:.55}
.map-pane .link .arrow{fill:var(--flow,var(--muted))}
.map-pane .link .cross{fill:none;stroke:var(--flow,var(--muted));stroke-width:1.8}
.map-pane .link.blocked .wire{stroke-dasharray:3 3}
.map-pane .link.proxied .wire{stroke-dasharray:6 4}
.map-pane .link.readonly .wire{stroke-dasharray:3 3}
.map-pane .link.live .wire{stroke-dasharray:7 4;animation:flow 1.1s linear infinite}
.map-pane .link-label{text-anchor:middle;font-size:10px;paint-order:stroke;stroke:var(--bg);stroke-width:3px}
@keyframes flow{to{stroke-dashoffset:-22}}
.map-pane [data-flows]{transition:opacity .12s ease}
.map-pane .tracing [data-flows]:not(.lit){opacity:.18}
.map-pane .tracing .link.lit .wire{opacity:1}
.map-pane .divider{stroke:var(--line)}
/* Port map: parts that open at their heading, each a dashed box of cards. */
.map-html{display:flex;flex-direction:column;gap:10px;padding:12px}
.pm-part{border:1px dashed var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel2) 55%,transparent)}
.pm-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;width:100%;padding:8px 12px;border:0;border-radius:12px;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.pm-head:hover{background:var(--hover)}
#modal .content table+.acts{margin-top:12px}
.pm-head b{font-size:12.5px;font-weight:650}
.pm-head span{color:var(--muted);font-size:11.5px}
.pm-body{padding:0 12px 12px}
.pm-body h4{margin:16px 0 6px;font-size:11.5px;font-weight:650}
.pm-body>.acts{margin-top:8px}
.pm-body .err,.pm-body .sub{font-size:11.5px}
.pm-body p{margin:0 0 6px}
.pm-body .loading{padding:4px 0;font-size:12px}
.pm-hint{display:block;margin:0 0 8px;color:var(--muted);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.map-card>.pm-hint{margin:0}
.pm-fact{font-size:11.5px}
.map-card .sub{overflow-wrap:anywhere;font-size:11px}
.pm-net{margin:0 0 8px;padding:8px 10px;border:1px dashed color-mix(in srgb,var(--flow) 65%,var(--line));border-radius:12px}
.pm-net>header{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin-bottom:4px}
.pm-net>header b{font-size:12px;font-weight:650}
.pm-net>header span{color:var(--muted);font-size:11px}
.pm-net>.pm-hint{margin-bottom:6px}
.pm-pods{margin-bottom:6px}
.pm-pods>.map-cards{margin-top:6px}
.pm-pods+.pm-pods{margin-top:4px}
.pm-body>.acts+.pm-hint,.pm-body>.acts+h4{margin-top:10px}
.pm-body>.acts:first-child{margin:0 0 10px}
/* A drawing inside a part, and a web route read left to right: its kind, then from and to. */
.pm-draw{overflow-x:auto}
.map-pane .link.off .wire{stroke-dasharray:3 3}
.pm-kind{flex:0 0 74px;overflow:hidden;color:var(--muted);font-size:10.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
/* A network's containers, one to a row: the container, an arrow of reserved width, and the backend it runs. */
.pm-flows{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.pm-flow{display:grid;grid-template-columns:minmax(320px,1.25fr) 64px minmax(260px,1fr);align-items:stretch}
.pm-flow>.map-card{align-self:stretch}
/* What a container does and how it is wired: the room of a wide card, in a quiet voice. */
.pm-role{max-width:78ch;margin:0;color:var(--text2);font-size:11.5px;line-height:1.45}
.pm-flow>.map-card.app{background:var(--level1);box-shadow:none}
.pm-arrow{--flow:var(--dot-up);position:relative;align-self:center;height:2px;margin:0 6px;background:var(--flow)}
.pm-arrow::after{content:"";position:absolute;right:-1px;top:-4px;border-left:7px solid var(--flow);border-top:5px solid transparent;border-bottom:5px solid transparent}
.pm-arrow.blocked{--flow:var(--dot-off);background:repeating-linear-gradient(90deg,var(--flow) 0 4px,transparent 4px 7px)}
@media (max-width:820px){.pm-flow{grid-template-columns:1fr}.pm-arrow{display:none}.pm-flow>.map-card.app{margin-top:6px}}
.map-cards.subnets{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
.map-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.map-cards.talks{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:6px 16px}
.map-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px 10px;border:1px solid color-mix(in srgb,var(--flow) 55%,var(--line));border-radius:12px;background:var(--panel);box-shadow:var(--shadow)}
.map-card b{overflow:hidden;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.map-ports{display:flex;flex-wrap:wrap;gap:4px}
.map-port{padding:0 6px;border:1px solid color-mix(in srgb,var(--flow,var(--muted)) 55%,transparent);border-radius:4px;background:color-mix(in srgb,var(--flow,var(--muted)) 14%,var(--panel));color:var(--text);font:10.5px/17px var(--mono);cursor:default}
.map-talk{display:flex;align-items:center;min-width:0}
.map-from,.map-to{flex:1 1 0;min-width:0;height:24px;padding:0 8px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font:inherit;font-size:11.5px;line-height:22px;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.map-to{border-color:color-mix(in srgb,var(--flow) 65%,var(--line));cursor:pointer}
.map-to:hover{border-color:var(--text)}
/* A moving dashed arrow, like the lines of the drawing. */
.map-wire{position:relative;flex:0 0 44px;height:24px;font-size:10px;line-height:11px;text-align:center}
.map-wire::before{content:"";position:absolute;top:11.5px;right:6px;left:0;height:1.5px;background:linear-gradient(90deg,var(--flow) 7px,transparent 7px) 0 0/11px 100%;opacity:.6;animation:wire 1.1s linear infinite}
.map-wire::after{content:"";position:absolute;top:8.75px;right:0;border-block:3.5px solid transparent;border-left:7px solid var(--flow)}
@keyframes wire{to{background-position:22px 0}}
.key{color:var(--muted);font-size:12px}
.key::before{content:"";display:inline-block;width:18px;height:3px;margin:0 6px 3px 0;background:var(--flow,var(--line))}
/* The layers of a system, joined left to right: kernel, user space, runtimes, network. */
.stack{display:flex;align-items:stretch;gap:6px;margin:0 0 20px}
.stack>.tile{flex:1 1 0;min-width:0}
.stack-arrow{display:grid;flex:none;place-items:center;color:var(--muted);font-size:16px}
@media (max-width:900px){.stack{flex-direction:column}.stack-arrow{transform:rotate(90deg)}}

/* Steps, joined left to right by arrows; how one looks is under "Setup steps". */
.steps{padding:0;list-style:none}
.step{--state:var(--muted);position:relative}
.step+.step::before{content:"→";position:absolute;left:-17px;top:50%;transform:translateY(-50%);color:var(--muted)}
.step.ok,.step-fix.ok{--state:var(--ok)}
.step.warn,.step-fix.warn{--state:var(--warn)}
.step.error,.step-fix.error{--state:var(--err)}
.step.busy{--state:var(--accent)}
.step-fix{--state:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 10px;padding:7px 12px;border:1px solid color-mix(in srgb,var(--state) 35%,var(--line));border-left:3px solid var(--state);border-radius:12px;background:var(--glass);box-shadow:var(--shadow);font-size:12px}
.step-fix .cmd{margin:0}
.line-mark{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:var(--state,var(--muted));color:var(--panel);font-size:11px;font-style:normal;font-weight:800;line-height:1}
/* Counters (statCard): the pictogram, the subject over its figure and what it counts. The tone colours figure and
   pictogram; up, paused and down edge the card as they edge a step. */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px 12px;margin:0 0 12px}
.stat{--flow:var(--muted);display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:"mark kicker kicker" "mark value label";align-content:center;align-items:baseline;gap:0 8px;min-width:0;padding:9px 14px 9px 10px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow)}
.stat.up{--flow:var(--ok);--edge:var(--dot-up)} .stat.paused{--flow:var(--warn);--edge:var(--dot-paused)} .stat.down{--flow:var(--err);--edge:var(--dot-down)} .stat.info{--flow:var(--info)}
.stat:is(.up,.paused,.down){border-color:color-mix(in srgb,var(--edge) 42%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--edge) 9%,transparent),var(--shadow)}
.stat-mark{grid-area:mark;display:grid;place-items:center;align-self:center;width:36px;height:36px;margin-right:4px;border:1px solid color-mix(in srgb,var(--flow) 40%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--flow) 12%,var(--level1));color:var(--flow)}
.stat-mark .icon{width:19px;height:19px}
.stat-kicker{grid-area:kicker;overflow:hidden;color:var(--muted);font-size:10.5px;font-weight:650;letter-spacing:.06em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.stat>b{grid-area:value;max-width:11ch;overflow:hidden;color:var(--flow);font-size:20px;font-variant-numeric:tabular-nums;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.stat-label{grid-area:label;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--muted);font-size:11.5px;line-height:1.35}
/* The checks behind a map: the pictogram tinted by its state, a check that was not made dashed. */
.checks-box{container:checks/inline-size;margin:0 0 12px}
.steps.flow.checks{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:10px 12px}
.steps.checks .step>.step-face{padding-block:8px}
.steps.checks .step.skipped>.step-face{border-style:dashed;border-color:color-mix(in srgb,var(--muted) 45%,transparent)}
.steps.checks .step:is(.ok,.warn,.error,.busy) .step-mark{border-color:color-mix(in srgb,var(--edge) 55%,var(--line));background:color-mix(in srgb,var(--edge) 12%,var(--level1));color:var(--state)}
.steps.checks .step .step-text span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
/* One row, joined by arrows, where each check has its room. */
@container checks (min-width:560px){
  .steps.flow.checks:is(.n2,.n3){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:24px}
  .steps.flow.checks:is(.n2,.n3) .step+.step::before{display:block}
}
@container checks (min-width:820px){
  .steps.flow.checks.n4{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:24px}
  .steps.flow.checks.n4 .step+.step::before{display:block}
}
@container checks (min-width:1040px){
  .steps.flow.checks.n5{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:24px}
  .steps.flow.checks.n5 .step+.step::before{display:block}
}
@container checks (min-width:1240px){
  .steps.flow.checks.n6{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:24px}
  .steps.flow.checks.n6 .step+.step::before{display:block}
}
.map-blocked{max-width:620px;margin:8vh auto;padding:20px 24px;border:2px dashed var(--err);border-radius:12px;background:var(--panel)}
.map-blocked h3{margin:0 0 6px}

/* ---------------- narrow windows ---------------- */
/* The open menu lies over the page instead of pushing it. */
@media (max-width:900px){
  :root[data-rail=open] #page{margin-left:0;padding-left:74px}
  :root[data-rail=open] #rail{box-shadow:inset -1px 0 0 var(--line),0 0 48px rgba(0,0,0,.35)}
}
@media (max-width:900px){:root[data-rail=open] #outline{left:74px}}
/* A table too wide for the page, narrowed by the window, the menu or the outline, scrolls by itself. */
@container page (max-width:960px){table{display:block;overflow-x:auto}}
@media (max-width:760px){.host{display:none} .bar-end{padding-left:4px}}
@media (max-width:600px){
  .tile-foot .btns{flex-wrap:wrap;row-gap:4px}
  #drawer,.toast{right:8px;max-width:calc(100vw - 16px)}
  :root,:root[data-rail=open]{--lead:44px}
  #page,body.wide #page{padding-right:8px}
  :root[data-rail=open] #page{padding-left:44px}
  :root:not([data-rail=open]) #corner{left:-4px}
  #bar{padding-left:12px}
  .bar-tools .status{width:22px;padding:0;justify-content:center;overflow:hidden;font-size:0;gap:0}
  main{padding-top:16px}
}
@media (max-height:640px){#quick{max-height:calc(100vh - 120px);overflow-y:auto;scrollbar-width:none;pointer-events:auto} #quick [data-tip]::after{content:none}}
@media (prefers-reduced-motion:reduce){*,*::before{transition:none!important} .found{animation-duration:.01s} .map-pane .link.live .wire,.map-wire::before{animation:none}}
/* Services: the header's key ports, each tagged by how it is. */
.key-ports .kicker{margin-bottom:6px}
.key-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.key-tag{--flow:var(--dot-off);display:flex;align-items:center;gap:8px;min-width:0;min-height:28px;padding:3px 10px;border:1px solid color-mix(in srgb,var(--flow) 42%,transparent);border-radius:8px;background:var(--level1);font-size:11.5px}
.key-tag.up{--flow:var(--dot-up)} .key-tag.paused{--flow:var(--dot-paused)} .key-tag.down{--flow:var(--dot-down)}
.key-tag b{font-weight:600;white-space:nowrap}
.key-tag .mono{overflow:hidden;min-width:0;color:var(--muted);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
.key-state{margin-left:auto;color:var(--muted);font-weight:600;white-space:nowrap}
.key-tag.up .key-state{color:var(--ok)} .key-tag.paused .key-state{color:var(--warn)} .key-tag.down .key-state{color:var(--err)}
.sys-check>.tile-head>.status{margin-left:auto}
/* Services: the listening ports, one compact row each. */
.ports-bar{margin-bottom:10px}
.ports-bar input{--control:32px}
table.ports :is(th,td){padding:5px 12px;font-size:12px;vertical-align:middle;white-space:nowrap}
table.ports th{font-size:11px;letter-spacing:.06em;text-transform:uppercase}
table.ports tbody tr:hover{background:var(--level1)}
/* The process takes the room that is left; a long path ends in an ellipsis. */
table.ports td.proc{width:100%;max-width:0}
/* Every row has a line for the path, so all are as tall. */
.port-path{height:17px;overflow:hidden;font-size:11px;line-height:17px;text-overflow:ellipsis;white-space:nowrap}
table.ports td .port-path{overflow-wrap:normal}
.port-pill{--flow:var(--dot-off);display:inline-block;min-width:58px;padding:0 8px;border:1px solid color-mix(in srgb,var(--flow) 55%,transparent);border-radius:6px;background:color-mix(in srgb,var(--flow) 14%,transparent);font:600 11.5px/20px var(--mono);text-align:center}
.port-pill.up{--flow:var(--dot-up)} .port-pill.paused{--flow:var(--dot-paused)}
table.ports td.actions .acts{flex-wrap:nowrap}
/* The cards of Vitals & checks: a header of two lines of title and a place for the meter, in every card, so what is alike lines up across the row. */
.tile.vital>.tile-head{align-items:flex-start;min-height:62px}
.tile.vital>.tile-head .tile-name h4{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.6em;overflow:hidden;overflow-wrap:anywhere}
.vital-slot{display:flex;flex-direction:column;justify-content:center;min-height:46px}
.vital-slot:empty{min-height:46px}
/* The load test card is two cards wide, at the end of the row: the last two columns of the grid, wherever the row ends. It takes the room only
   where the grid has two columns or more, and inside it the figures and the facts stand side by side, so it is no taller than its neighbours. */
.tiles.small{container:vitals-grid/inline-size}
.tile.stress{container:stress-card/inline-size}
.stress-body,.stress-main{display:flex;flex-direction:column;gap:12px;min-width:0}
@container vitals-grid (min-width:488px){.tile.stress{grid-column:-3/-1}}
@container stress-card (min-width:420px){.stress-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;align-items:start}
  /* The page the test served takes the width of the facts; what held it back and when it ran share the line under it. */
  .stress-body .facts{gap:6px}.stress-body .facts>div:first-child{flex-basis:100%}.stress-body .facts>div{flex-basis:100px}}
/* The StaffWriter service: its four services as grey panels, each with its link; the server being inspected; the green button. */
.sw-svcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.sw-svc{--edge:var(--dot-off);display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--edge) 55%,var(--line));border-radius:8px;background:var(--panel)}
.sw-svc.up{--edge:var(--dot-up)} .sw-svc.paused{--edge:var(--dot-paused)} .sw-svc.down{--edge:var(--dot-down)}
.sw-svc:is(.up,.paused,.down){box-shadow:0 0 0 3px color-mix(in srgb,var(--edge) 9%,transparent)}
.sw-svc-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sw-svc-head b{font-size:14px}
.sw-url{overflow:hidden;font:12px var(--mono);text-overflow:ellipsis;white-space:nowrap}
.sw-svc .sub{font-size:12px;line-height:1.45}
.tile.inspecting{outline:2px solid var(--dot-up);outline-offset:-1px}
.b.go{border-color:var(--dot-up);background:var(--dot-up);color:#fff}
.b.go:hover:not(:disabled){filter:brightness(.92)}
/* Stalwart: the supported protocols, one to a row, each in four places so the rows line up; the three controls in places of their own. */
.protos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,500px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.proto{display:grid;grid-template-columns:minmax(0,1fr) 64px 112px 84px;align-items:center;gap:8px;min-height:46px;padding:6px 10px;border-radius:8px;background:var(--level1)}
.proto-name{display:flex;flex-direction:column;min-width:0}
.proto-name .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proto .port-pill{min-width:0;text-align:center}
.dns-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.dns-rows>li{display:grid;grid-template-columns:120px minmax(0,1fr) 84px;align-items:center;gap:8px;min-height:40px;padding:4px 10px;border-radius:8px;background:var(--level1)}
.dns-rows .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctl-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.ctl-slots .btn-slot>.b{width:100%}
.btn-slot>.b:disabled{opacity:.45;cursor:not-allowed}
/* Commands to run by hand: grey panels, each with a copy icon. */
.cmd-stack{display:grid;flex:1 1 100%;gap:6px;width:100%;min-width:0}
/* A card stacks downwards, where that basis would ask for its whole height and squeeze what stands above. */
.tile>.cmd-stack{flex:none}
.tile>.tile-foot:has(>.cmd-stack){align-self:stretch;width:100%;min-width:0}
.cmd-panel{display:flex;align-items:center;gap:4px;min-width:0;padding:1px 3px 1px 10px;border-radius:8px;background:var(--level1)}
.cmd-panel>code{flex:1;min-width:0;overflow:hidden;padding:0;border:0;background:none;font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}
.cmd-panel .icon-btn{width:28px;height:28px}
/* Every row the same height; its buttons in places of their own, so Kill stands under Kill and Open under Open. */
table.ports tbody td{height:38px;padding-top:0;padding-bottom:0}
.proc-line{display:flex;align-items:baseline;gap:8px;min-width:0}
.proc-line>*{flex:none}
.proc-line>.port-path{flex:0 1 auto;min-width:0;height:auto;line-height:inherit}
.btn-slots{display:grid;grid-template-columns:56px 84px;gap:6px;justify-content:end}
.btn-slots:has(.btn-slot:nth-child(3)){grid-template-columns:56px 56px 116px}
.btn-slot{display:flex;justify-content:flex-end}
.btn-slot>.b{width:100%;justify-content:center;text-align:center}
/* A narrower page: closer columns, and the service and process names may wrap. */
@container page (max-width:960px){
  table.ports :is(th,td){padding:5px 7px}
  table.ports td:nth-child(2),table.ports td.proc{white-space:normal;overflow-wrap:anywhere}
  table.ports td.proc{width:auto;max-width:none;min-width:150px}
  .port-pill{min-width:50px;padding:0 5px}
  .port-path{max-width:170px}
}
/* Services: the self-test results, folded by outcome. */
.tests{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));align-items:start;gap:8px;margin-top:8px}
.test{padding:8px 12px;border-radius:8px;background:var(--level1)}
.test>summary{display:flex;align-items:center;gap:8px;color:var(--text)}
.test>summary b{font-size:12.5px;font-weight:600}
.test p{margin:8px 0 4px}
.dot.up{--tone:var(--dot-up)} .dot.paused{--tone:var(--dot-paused)} .dot.down{--tone:var(--dot-down)}
/* StaffWriter: this computer and two clouds, each drawn the same way. */
.sw-pane{margin:6px 0 16px;padding:10px 12px}
.map-pane .node.absent{opacity:.55}
.map-pane .node.absent>rect{stroke-dasharray:4 3}
/* Wires of these drawings: a faint solid rail, a dot where the wire starts, and on it
   round dashes that run in the direction of traffic. Only a live wire moves; one that
   is set up but idle is dotted and still, one that failed is solid, one with nothing known is faint. */
.sw-pane .link .rail{fill:none;stroke:var(--flow,var(--muted));stroke-linecap:round;opacity:.14}
.sw-pane .link .wire{opacity:.85;stroke-linecap:round}
.sw-pane .link .start{fill:var(--flow,var(--muted));opacity:.9}
.sw-pane .link .arrow{opacity:.9}
.sw-pane .link.live .wire{stroke-dasharray:5 7;animation:sw-flow 1.2s linear infinite}
.sw-pane .link.open .wire{stroke-dasharray:1 6}
.sw-pane .link.off .wire{stroke-dasharray:1 6;opacity:.5}
.sw-pane .link.off .rail,.sw-pane .link.off .start{opacity:.08}
.sw-pane .link.internet:not(.live) .wire{stroke-dasharray:none}
.sw-pane .tracing .link.lit .rail{opacity:.3}
@keyframes sw-flow{to{stroke-dashoffset:-12}}
@media (prefers-reduced-motion:reduce){.sw-pane .link.live .wire{animation:none}}
h4.sw-sub{margin:24px 0 4px;font-size:13px;font-weight:650}
h4.sw-sub+.explain{margin-bottom:10px;font-size:12.5px}
.sw-badges{margin-bottom:6px}
.sw-fw-card{padding:6px 12px;overflow-x:auto}
.sw-fw{width:100%;border-collapse:collapse;font-size:12.5px}
.sw-fw th{padding:6px 10px 6px 0;color:var(--muted);font-size:11px;font-weight:600;text-align:left;white-space:nowrap}
.sw-fw td{padding:7px 10px 7px 0;border-top:1px solid var(--line);vertical-align:top}
.sw-fw td.mono{font-family:var(--mono);white-space:nowrap}
.sw-fw .sub{margin-top:2px;font-size:11px;line-height:1.4}
.sw-block{align-items:flex-start;margin:6px 0 10px}
.sw-block code{white-space:normal;overflow:visible;line-height:1.6}
.sw-notes{margin:10px 0 0;padding-left:18px;line-height:1.5}
.tile table td{overflow-wrap:anywhere}

/* The three facts at the head of a page (the SSH keys): white panels with a grey border, so they stand out from the grey ones below. */
.summary>div{padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow)}

/* Node Package Manager: each command with what it does, and the installed packages in a table like the Google projects. */
.npm-cmds{display:grid;gap:6px;margin:0 0 14px;padding:0;list-style:none}
.npm-cmd{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,1.7fr);align-items:center;gap:12px}
.npm-what{color:var(--text2);font-size:12.5px}
.npm-bar{align-items:center;gap:10px;margin:4px 0 6px}
.npm-bar .sw-sub{margin:0}
.npm-project{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.npm-project select{max-width:260px}
.npm-dir{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npm-filter{margin:0 0 10px}
table.npm-pkgs td{height:58px;padding-block:6px;vertical-align:middle}
.npm-name{width:26%;min-width:150px;max-width:0}
.npm-name :is(b,.sub){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npm-name .sub{font-size:11.5px}
td.npm-ver{font-size:12px;white-space:nowrap}
.npm-kind,.npm-state{white-space:nowrap}
td.npm-desc{width:100%;max-width:0;color:var(--muted);font-size:12.5px}
td.npm-desc>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npm-pkg .btn-slots{grid-template-columns:76px 64px}
.npm-group{margin-bottom:16px;padding-bottom:16px}
.npm-group>table{margin:0}
.cmd-panel .icon-btn.run{color:var(--dot-up)}
@media (max-width:900px){.npm-cmd{grid-template-columns:1fr}}
@container page (max-width:860px){table.npm-pkgs :is(.npm-desc,.npm-kind){display:none} .npm-name{width:100%}}
@container page (max-width:560px){table.npm-pkgs .npm-state{display:none}}
.npm>.sw-sub:first-child{margin-top:0}
.facts dd .fact-note{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.4}

/* A long state wraps inside its row, right-aligned, and never reaches past the card. */
.status-rows li>.status{flex:0 1 auto;min-width:0;max-width:75%;height:auto;min-height:22px;padding-top:2px;padding-bottom:2px;white-space:normal;text-align:right}
/* The basics (Docker, Server): the state shares the head's line with the name. */
.tile.prereq>.tile-head{flex-wrap:nowrap}
.tile.prereq .tile-name{flex-basis:0}

/* The commands of the PATH: a few words under the name, in the height a row already has (its buttons set it). */
td.cmd-name{padding-bottom:0}
td.cmd-name code{display:block;line-height:16px}
.cmd-about{display:block;max-width:260px;overflow:hidden;color:var(--muted);font-size:10.5px;line-height:13px;text-overflow:ellipsis;white-space:nowrap}

/* Google usage: a value beside its label, and number headings over number columns. */
.status-rows li>b{flex:none;color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
th.num{text-align:right;white-space:nowrap}

/* Google projects: one line each, the chosen one marked at its edge. */
.proj-list tr.on>td{background:color-mix(in srgb,var(--text) 7%,transparent)}
.proj-list tr.on>td:first-child{box-shadow:inset 3px 0 0 var(--text)}
.proj-list td{vertical-align:middle}
.proj-pick{display:flex;flex-direction:column;gap:1px;min-width:0;padding:0;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
span.proj-pick{cursor:default}
.proj-pick .sub{overflow-wrap:anywhere}
button.proj-pick:hover b{text-decoration:underline}

/* The projects and what is read of the chosen one: one group with room above it. */
.proj-group{margin-top:36px;padding:16px 18px 4px;border:1px solid var(--line);border-radius:16px;background:var(--level1)}
.proj-group>h3.section-title:first-child{margin-top:0;padding-top:0;border-top:0}

/* The Google sign-in: its facts one to a line, numbered steps and two fields. */
.tile.google-account .facts>div{flex-basis:100%}
.sw-backups ol.setup-steps{display:flex;flex-direction:column;gap:6px;max-width:80ch;margin:8px 0 0;padding-left:18px;line-height:1.55;list-style:decimal}
.bot-setup ol.setup-steps+.acts{margin-top:10px}
.tile ol.setup-steps{display:flex;flex-direction:column;gap:8px;max-width:none;margin:0;padding-left:18px;line-height:1.5;list-style:decimal}
.tile ol.setup-steps li>.cmd,.tile ol.setup-steps li>.cmd-panel,.tile ol.setup-steps li>.acts,.tile ol.setup-steps li>label{margin-top:5px}
.tile ol.setup-steps label.field{max-width:420px}
.tile label.field{display:flex;flex-direction:column;gap:3px}
.tile label.field input{width:100%;box-sizing:border-box}

/* The CLI’s commands follow the sign-in setup, parted from it like a section. */
#firebase-cli:not(:empty){margin-top:30px;padding-top:16px;border-top:1px solid var(--line)}

/* Firebase, the card the Google Cloud page leads with: lit from its corner in the colour of its state, its steps
   boxes with numbered rings. */
.tile.google-firebase{gap:14px;padding:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--edge) 14%,transparent),transparent 60%),var(--glass)}
.tile.google-firebase .tile-icon{width:52px;height:52px;border-radius:14px;background:color-mix(in srgb,var(--edge) 18%,transparent);color:var(--edge)}
.tile.google-firebase .tile-icon .icon{width:28px;height:28px}
.tile.google-firebase h4{font-size:19px}
.tile.google-firebase ol.setup-steps{gap:8px;padding:0;color:var(--text2);list-style:none;counter-reset:step}
.tile.google-firebase ol.setup-steps>li{position:relative;padding:13px 16px 13px 52px;border:1px solid var(--line);border-radius:10px;background:var(--panel);counter-increment:step}
.tile.google-firebase ol.setup-steps>li::before{content:counter(step);position:absolute;top:10px;left:13px;display:grid;place-items:center;width:25px;height:25px;border:1px solid color-mix(in srgb,var(--edge) 60%,transparent);border-radius:50%;background:color-mix(in srgb,var(--edge) 16%,transparent);color:var(--text);font-weight:650}
.tile.google-firebase ol.setup-steps>li.done::before{content:"✓";border-color:color-mix(in srgb,var(--ok) 60%,transparent);background:color-mix(in srgb,var(--ok) 16%,transparent)}
.tile.google-firebase ol.setup-steps li>:is(.acts,.field-pair){margin-top:10px}
.field-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;max-width:760px}
.tile ol.setup-steps .field-pair label.field{max-width:none}
/* The sign-in of StaffWriter: a step's short fields stand side by side. */
#sw-signin .flow-panel .sw-set:not(.wide){grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));align-items:start;gap:10px 14px;max-width:none}

/* What was read before, while Google is read again. */
:is(.google-front,.proj-group) .reading{opacity:.55;pointer-events:none}
.firebase-status{margin-top:16px}

/* Optimize: the processor card's list of what runs, in the window. */
table.opt td:first-child{min-width:0;overflow-wrap:anywhere}
table.opt tr.opt-protected td:not(.actions){opacity:.7}
table.opt td.actions{text-align:right;white-space:nowrap}

/* ---------------- the Firewall page ---------------- */
/* A tone colours a thing through --flow, as on the maps. */
.fw-state,.fw-stat,.fw-todo,.fw-chip,.fw-port{--flow:var(--muted)}
:is(.fw-state,.fw-stat,.fw-todo,.fw-chip,.fw-port,.fw-dot).up{--flow:var(--ok)}
:is(.fw-state,.fw-stat,.fw-todo,.fw-chip,.fw-port,.fw-dot).down{--flow:var(--err)}
:is(.fw-state,.fw-stat,.fw-todo,.fw-chip,.fw-port,.fw-dot).paused{--flow:var(--warn)}
.fw-key{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 8px;color:var(--muted);font-size:11.5px}
.fw-dot{--flow:var(--muted);display:inline-flex;align-items:center;gap:6px}
.fw-dot .dot{background:var(--flow)}
.fw-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:12px;margin-bottom:12px}
.card.fw-state{display:flex;align-items:center;gap:18px;margin:0;padding:16px 18px}
.fw-state>div{min-width:0}
.fw-state h4{margin:2px 0;font-size:21px;letter-spacing:-.01em}
.fw-state p{margin:0}
.fw-shield{position:relative;display:grid;place-items:center;flex:none;width:60px;height:60px;border:1px solid color-mix(in srgb,var(--flow) 50%,var(--line));border-radius:50%;background:color-mix(in srgb,var(--flow) 12%,var(--level1));color:var(--flow)}
.fw-shield .icon{width:30px;height:30px}
.fw-shield .line-mark{position:absolute;right:-2px;bottom:-1px;background:var(--flow);box-shadow:0 0 0 2px var(--panel)}
.fw-state .kicker{white-space:normal;overflow-wrap:anywhere}
.stats.fw-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
/* Here the counters are tall: the subject over a large figure, as beside the state they have its height. */
.fw-stats .stat{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"kicker kicker" "value mark" "label label";align-content:center;align-items:center;gap:4px 8px;padding:12px 14px}
.fw-stats .stat>b{font-size:32px;line-height:1.1}
.fw-stats .stat-mark{width:34px;height:34px;margin:0}
.fw-todo{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:9px 12px;border:1px solid var(--glass-edge);border-left:3px solid var(--flow);border-radius:12px;background:var(--glass);box-shadow:var(--shadow);font-size:12.5px}
.fw-todo .line-mark{background:var(--flow)}
.fw-strip{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.fw-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:24px;padding:0 10px;overflow:hidden;border:1px solid color-mix(in srgb,var(--flow) 45%,transparent);border-radius:12px;background:color-mix(in srgb,var(--flow) 10%,transparent);color:var(--text);font:inherit;font-size:11.5px;white-space:nowrap;cursor:pointer}
.fw-chip:hover{background:color-mix(in srgb,var(--flow) 20%,transparent)}
.fw-chip b{font-family:var(--mono)}
.fw-chip span{overflow:hidden;color:var(--muted);text-overflow:ellipsis}
.fw-setup{margin-bottom:6px}
.card.fw-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;--control:32px;padding:10px 12px}
.fw-where{display:flex;align-items:center;gap:6px;min-width:0}
#fw-server{width:230px;max-width:100%;min-width:0}
#fw-search{width:160px}
.fw-controls .spacer{flex:1}
.card.fw-card{margin:0 0 8px;padding:0}
.fw-card>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 14px;color:var(--text);list-style:none}
.fw-card>summary::-webkit-details-marker{display:none}
.fw-card>summary b{font-size:13px;font-weight:650}
.fw-card>summary .sub{font-size:11.5px}
.fw-card>summary::after{content:"";flex:none;width:7px;height:7px;margin:0 4px 3px auto;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
.fw-card[open]>summary{border-bottom:1px solid var(--line)}
.fw-card[open]>summary::after{margin-bottom:-3px;transform:rotate(-135deg)}
.fw-scroll{overflow-x:auto}
/* Each kind has its own table: fixed columns keep them in line. */
.card table.fw-table{width:100%;min-width:760px;table-layout:fixed;margin:0;border:0;border-radius:0;background:none;font-size:12.5px}
.fw-table :is(td,thead th){padding:7px 10px;vertical-align:middle;overflow-wrap:anywhere}
.fw-table thead th:nth-child(1){width:104px}
.fw-table thead th:nth-child(3){width:130px}
.fw-table thead th:nth-child(4){width:180px}
.fw-table thead th:nth-child(5){width:264px}
.fw-table .sub{margin-top:2px;font-size:11px;line-height:1.4}
.fw-copy{display:flex;align-items:center;gap:8px}
.fw-copy .sub{margin:0}
.fw-port{display:inline-flex;align-items:baseline;gap:5px;padding:3px 9px;border:1px solid color-mix(in srgb,var(--flow) 45%,transparent);border-radius:8px;background:color-mix(in srgb,var(--flow) 10%,transparent);font-family:var(--mono);font-size:13px;font-weight:650;white-space:nowrap}
.fw-port small{color:var(--muted);font-size:10.5px;font-weight:500}
.fw-table .fw-rule{--control:24px}
.fw-rule code{display:block;margin-bottom:4px;padding:3px 8px;border-radius:6px;background:var(--level1);overflow-wrap:anywhere}
.fw-fields{display:grid;grid-template-columns:168px minmax(0,1fr);align-items:start;gap:12px 14px;margin-top:4px}
.fw-label{color:var(--muted);font-size:12px;font-weight:600;line-height:32px}
.fw-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.fw-field .cmd-panel{min-height:32px;margin:0}
.fw-field .cmd-panel code{overflow:visible;overflow-wrap:anywhere;white-space:normal;line-height:1.6;padding:3px 0}
.fw-field .sw-block code{padding:6px 0}
.fw-text{margin:0;padding:7px 0;line-height:18px}
.fw-field>.fw-text:not(:first-child){padding:0}
.fw-sets{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;min-height:32px}
/* The notes: one row of equal cards, each marked in its colour. With less room three, two, then one to a row. */
.fw-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:12px;margin:0 0 16px;padding:0;list-style:none}
.fw-check{--flow:var(--text2);display:flex;flex-direction:column;gap:8px;min-width:0;padding:14px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass);box-shadow:var(--shadow)}
.fw-check.up{--flow:var(--dot-up)} .fw-check.paused{--flow:var(--dot-paused)} .fw-check.down{--flow:var(--dot-down)}
.fw-check-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fw-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--level1);color:var(--flow)}
.fw-check h4{margin:0;font-size:13.5px;font-weight:650;line-height:1.35}
.fw-check p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;text-wrap:pretty;overflow-wrap:anywhere}
.fw-check p.fw-found{color:var(--text);font-weight:600}
.fw-check p code{padding:0 4px;border-radius:4px;background:var(--level1);color:var(--text2);font-size:11px;white-space:nowrap}
/* The command stands at the foot of its card, whole. */
.fw-check .cmd-panel{margin:auto 0 0;min-height:32px}
.fw-check .cmd-panel>code{overflow:visible;overflow-wrap:anywhere;white-space:normal;line-height:1.6;padding:3px 0}
/* How a thing of this page stands is told by its border and halo, as a card's is (.tile.tone-*); its ground stays plain. */
:is(.fw-state,.fw-stat,.fw-todo,.fw-card,.fw-check).up{--edge:var(--dot-up)}
:is(.fw-state,.fw-stat,.fw-todo,.fw-card,.fw-check).paused{--edge:var(--dot-paused)}
:is(.fw-state,.fw-stat,.fw-todo,.fw-card,.fw-check).down{--edge:var(--dot-down)}
:is(.fw-state,.fw-stat,.fw-todo,.fw-card,.fw-check):is(.up,.paused,.down){border-color:color-mix(in srgb,var(--edge) 42%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--edge) 9%,transparent),var(--shadow)}
.fw-todo:is(.up,.paused,.down){border-left-color:var(--edge)}
@media (max-width:1000px){.fw-top{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.stats.fw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fw-controls .spacer{display:none}.fw-fields{grid-template-columns:minmax(0,1fr);gap:4px}.fw-label{margin-top:8px;line-height:18px}}
/* With less room a port is a block: its number and protocol, how it stands, and the rule under them. */
@media (max-width:860px){
  .card table.fw-table{display:block;min-width:0}
  .fw-table thead{display:none}
  .fw-table tbody{display:block}
  .fw-table tr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px;border-bottom:1px solid var(--line)}
  .fw-table td{display:block;min-width:0;border:0}
  .card table.fw-table td{padding:0}
  .fw-table td:nth-child(2){flex:1 1 calc(100% - 110px)}
  .fw-table td.fw-rule{flex:1 1 100%;width:auto}
}
