/* 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}
:is(section.tab,.ai-section)>h3:first-child{margin-top:0;padding-top:0;border-top:0}
.ai-section>h3:first-child{margin-top:12px}
.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)}
/* 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 beside the table of its servers. */
.ssh-key{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:start;gap:16px;margin-bottom:20px}
.ssh-access{min-width:0}
.ssh-access>details{margin-top:10px}
.ssh-access>details>table{margin-top:8px}
.ssh-access tr.has-more>td{border-bottom:0}
.ssh-access td .cmd{margin:0}
@container page (max-width:900px){.ssh-key{grid-template-columns:minmax(0,1fr)}}
/* 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}

/* 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}
.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}
/* 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 choose one of a few. */
.subnav,.segmented{display:inline-flex;flex-wrap:wrap;gap:2px;margin:0 0 8px;padding:3px;border-radius:10px;background:var(--level1)}
.segmented{margin:0}
.subnav .b,.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}
.subnav .b:hover:not(:disabled),.segmented button:hover{color:var(--text)}
.subnav .b.primary,.subnav .b.primary:hover:not(:disabled),.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}
/* 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}
.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}
#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}
.map-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 12px;margin:0 0 6px}
.map-controls:empty{display:none}
.map-legend{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;margin:6px 0}
.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-role.muted{color:var(--muted);font-size:11px}
.map-card.app .pm-role{color:var(--muted)}
.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)}}

/* The steps behind a map: joined left to right by arrows. */
.steps{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px 0;margin:6px 0;padding:0;list-style:none}
.step{--state:var(--muted);display:grid;align-content:center;position:relative;max-width:360px;padding:3px 10px;border:1px solid color-mix(in srgb,var(--state) 50%,var(--line));border-radius:8px;background:var(--panel);font-size:12px}
.step+.step{margin-left:22px}
.step+.step::before{content:"→";position:absolute;left:-17px;top:50%;transform:translateY(-50%);color:var(--muted)}
.step b{color:var(--state);font-weight:650}
.step span{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
.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.skipped{border-style:dashed}
.step-fix{--state:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 6px;padding:3px 10px;border-left:3px solid var(--state);font-size:12px}
.step-fix .cmd{margin:0}
.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{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px;border-radius:8px;background:var(--level1)}
.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}
.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}
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}
.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 rows of one height with their buttons in places of their own. */
.npm-cmds,.npm-pkgs{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}
.npm-pkg{display:grid;grid-template-columns:minmax(150px,1.1fr) 150px minmax(0,2.2fr) minmax(100px,1fr) 150px;align-items:center;gap:10px;min-height:46px;padding:4px 10px;border-radius:8px;background:var(--level1)}
.npm-pkg.head{min-height:0;padding-block:0;background:none;color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.npm-name{display:flex;flex-direction:column;min-width:0}
.npm-name b{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.npm-name .sub{font-size:11px}
.npm-ver{display:flex;align-items:center;gap:6px;white-space:nowrap}
.npm-ver .port-pill{min-width:0;padding:0 6px;font-weight:500}
.npm-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npm-bins{display:flex;gap:4px;overflow:hidden}
.npm-bins code{padding:1px 6px;border-radius:6px;background:var(--soft);font-size:11px;white-space:nowrap}
.npm-pkg .btn-slots{grid-template-columns:76px 64px}
.cmd-panel .icon-btn.run{color:var(--dot-up)}
@media (max-width:900px){.npm-cmd{grid-template-columns:1fr}.npm-pkg{grid-template-columns:minmax(0,1fr) auto 150px}.npm-pkg>.npm-desc,.npm-pkg>.npm-bins{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 page whose program is not installed stays in the menu, greyed. */
.nav-item.missing,.quick.missing{opacity:.55}
/* 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: large tabs, each with the address of its front page in Google Cloud. */
.proj-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.proj-tab{display:flex;flex:1 1 280px;flex-direction:column;min-width:0;max-width:440px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow)}
.proj-tab.on{border-color:var(--text);box-shadow:0 0 0 1px var(--text),var(--shadow)}
.proj-pick{display:flex;flex-direction:column;gap:2px;min-width:0;padding:12px 16px 8px;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.proj-pick b{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.proj-pick .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-url{display:block;overflow:hidden;padding:7px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.proj-url:hover{color:var(--text);text-decoration:underline}

/* The project tabs and what they show: one group with room above it, and no divider between the tabs and its first heading. */
.proj-group{margin-top:36px;padding:16px 18px 4px;border:1px solid var(--line);border-radius:16px;background:var(--level1)}
.proj-group>.proj-tabs{margin-bottom:6px}
.proj-group>.proj-tabs+h3.section-title{margin-top:10px;padding-top:0;border-top:0}

/* What was read before, while Google is read again. */
.proj-group .reading{opacity:.55;pointer-events:none}

/* 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}
