/* Ritech ISP Manager - one stylesheet, no build step, no CDN. */
:root{
  --bg:#f4f6fa; --panel:#ffffff; --ink:#16202e; --muted:#6b7a90; --line:#e2e8f2;
  --accent:#0f4c81; --accent-soft:#e8f0f8; --ok:#1f9d55; --warn:#d97706;
  --bad:#c0392b; --radius:10px; --shadow:0 1px 2px rgba(16,32,54,.06),0 4px 12px rgba(16,32,54,.05);
}
@media (prefers-color-scheme: dark){
  :root{--bg:#0f151d;--panel:#161f2b;--ink:#e6edf6;--muted:#93a3b8;--line:#25303f;
        --accent:#4c9be8;--accent-soft:#1a2735;--shadow:none;}
}
*{box-sizing:border-box}
[hidden]{display:none !important}
body{margin:0;background:var(--bg);color:var(--ink);
     font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{margin:0 0 .5rem;line-height:1.25}
h1{font-size:1.5rem}h2{font-size:1.15rem}h3{font-size:1rem}
/* --- top menu bar ------------------------------------------------------
   One row of groups, each a <details> so it works without JavaScript. The
   panels are absolutely positioned so opening one never pushes the page
   around, and the whole bar collapses behind a Menu button on a phone. */
.topnav{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;
        padding:.45rem 1rem;background:var(--panel);
        border-bottom:1px solid var(--line);position:sticky;top:0;z-index:60}
.brand{display:flex;align-items:center;gap:.55rem;font-weight:700;font-size:1rem;
       color:var(--ink);white-space:nowrap}
.brand:hover{text-decoration:none}
.brand .dot{width:24px;height:24px;border-radius:7px;background:var(--accent);color:#fff;
            display:grid;place-items:center;font-size:.78rem;flex:0 0 24px}
/* The uploaded company logo. Height is fixed and width is left to follow, so a
   wide logo stays wide instead of being squashed into a square; max-width stops
   a very wide one pushing the menu off the bar. `object-fit:contain` keeps the
   proportions if a browser ever disagrees about the intrinsic size. */
.brand-mark{height:24px;width:auto;max-width:150px;object-fit:contain;
            flex:0 0 auto;display:block}
.logo-preview{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.logo-preview .frame{border:1px solid var(--line);border-radius:var(--radius);
                     padding:.6rem;background:var(--panel);display:grid;
                     place-items:center;min-height:64px}
/* A chequerboard behind the preview, so a transparent PNG reads as transparent
   rather than as a white rectangle that will look wrong on a dark header. */
.logo-preview .frame.alpha{
  background-image:linear-gradient(45deg,var(--line) 25%,transparent 25%),
                   linear-gradient(-45deg,var(--line) 25%,transparent 25%),
                   linear-gradient(45deg,transparent 75%,var(--line) 75%),
                   linear-gradient(-45deg,transparent 75%,var(--line) 75%);
  background-size:14px 14px;
  background-position:0 0,0 7px,7px -7px,-7px 0}
.logo-preview img{display:block;max-width:220px;height:auto}
.menu-toggle{display:none}
.menubar{display:flex;align-items:center;gap:.15rem;flex-wrap:wrap;flex:1;min-width:0}
.topnav-user{display:flex;align-items:center;gap:.5rem;margin-left:auto;white-space:nowrap}

.menu{position:relative}
.menu>summary{list-style:none;cursor:pointer;padding:.4rem .65rem;border-radius:8px;
              font-size:.88rem;color:var(--ink);white-space:nowrap;
              display:inline-flex;align-items:center;gap:.35rem;user-select:none}
.menu>summary::-webkit-details-marker{display:none}
.menu>summary::after{content:"";width:0;height:0;border:4px solid transparent;
                     border-top-color:currentColor;margin-top:3px;opacity:.55}
.menu>summary:hover{background:var(--accent-soft)}
.menu>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-1px}
.menu[open]>summary{background:var(--accent);color:#fff}
.menu[open]>summary::after{opacity:.9}
.menu[open]>summary .pill{background:rgba(255,255,255,.25);color:#fff}
.menu.current>summary{box-shadow:inset 0 -2px 0 var(--accent)}

.menu-panel{position:absolute;top:calc(100% + .3rem);left:0;min-width:220px;
            background:var(--panel);border:1px solid var(--line);
            border-radius:var(--radius);box-shadow:0 6px 24px rgba(16,32,54,.14);
            padding:.35rem;z-index:70;display:flex;flex-direction:column}
.menu-panel a{display:flex;align-items:center;justify-content:space-between;gap:.6rem;
              padding:.42rem .6rem;border-radius:7px;color:var(--ink);font-size:.88rem;
              white-space:nowrap}
.menu-panel a:hover{background:var(--accent-soft);text-decoration:none}
.menu-panel a.active{background:var(--accent);color:#fff}
.menu-panel a.active .pill{background:rgba(255,255,255,.25);color:#fff}
.menu-panel hr{border:0;border-top:1px solid var(--line);margin:.3rem .4rem}
@media (prefers-color-scheme: dark){
  .menu-panel{box-shadow:0 6px 24px rgba(0,0,0,.5)}
}

@media (max-width: 900px){
  .topnav{align-items:flex-start;padding:.5rem .75rem}
  .menu-toggle{display:inline-block;margin-left:auto;order:2}
  .topnav-user{order:3;margin-left:.5rem}
  .menubar{order:4;flex-basis:100%;flex-direction:column;align-items:stretch;gap:0}
  .menubar[hidden]{display:none}
  .menu>summary{padding:.55rem .6rem;border-radius:0;
                border-bottom:1px solid var(--line)}
  /* Stacked, not floating - a panel hanging off the side of a phone screen
     is worse than one that simply pushes the next group down. */
  .menu-panel{position:static;box-shadow:none;border:0;border-bottom:1px solid var(--line);
              border-radius:0;padding:.2rem .2rem .5rem 1rem;min-width:0}
}

.main{min-width:0;display:flex;flex-direction:column;min-height:calc(100vh - 49px)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;
        padding:.75rem 1.25rem;background:var(--panel);border-bottom:1px solid var(--line)}
.content{padding:1.25rem;flex:1}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
      padding:1rem;box-shadow:var(--shadow);margin-bottom:1rem}
.card h2,.card h3{margin-top:0}
.grid{display:grid;gap:1rem}
.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.grid.cols-4{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
      padding:.9rem 1rem;box-shadow:var(--shadow)}
.stat .label{font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.stat .value{font-size:1.6rem;font-weight:650;margin-top:.15rem}
.stat .sub{font-size:.78rem;color:var(--muted)}
/* Severity on a headline number. A class rather than an inline style so the
   template never has to compare a reading that may not exist yet. */
.stat .value.warn{color:var(--st-degraded)}
.stat .value.bad{color:var(--st-down)}
/* Numeric table columns line up on the right; anything flagged bad is also
   bold, so it is not colour alone doing the work. */
td.num,th.num{text-align:right}
td.num.bad{color:var(--st-down);font-weight:650}
table{width:100%;border-collapse:collapse;font-size:.88rem}
th{text-align:left;font-weight:600;color:var(--muted);font-size:.74rem;
   text-transform:uppercase;letter-spacing:.06em;padding:.45rem .5rem;
   border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:.5rem;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
.table-wrap{overflow-x:auto}
.tag{display:inline-block;padding:.1rem .45rem;border-radius:999px;font-size:.72rem;
     font-weight:600;background:var(--accent-soft);color:var(--accent)}
.tag.ok{background:rgba(31,157,85,.14);color:var(--ok)}
.tag.warn{background:rgba(217,119,6,.14);color:var(--warn)}
.tag.bad{background:rgba(192,57,43,.14);color:var(--bad)}
.tag.muted{background:var(--line);color:var(--muted)}
.pill{background:var(--line);border-radius:999px;padding:0 .4rem;font-size:.72rem;color:var(--muted)}
.btn{display:inline-block;padding:.42rem .8rem;border-radius:8px;border:1px solid var(--line);
     background:var(--panel);color:var(--ink);cursor:pointer;font-size:.85rem;font-weight:500}
.btn:hover{background:var(--accent-soft);text-decoration:none}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.danger{background:var(--bad);border-color:var(--bad);color:#fff}
.btn.small{padding:.25rem .55rem;font-size:.78rem}
.btn-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.input{width:100%;padding:.45rem .6rem;border:1px solid var(--line);border-radius:8px;
       background:var(--bg);color:var(--ink);font:inherit}
.input:focus{outline:2px solid var(--accent);outline-offset:-1px}
textarea.input{min-height:70px}
label{display:block;font-size:.8rem;font-weight:600;margin-bottom:.2rem}
.field{margin-bottom:.75rem}
.field .help{font-size:.75rem;color:var(--muted);margin-top:.2rem}
.field .err{font-size:.78rem;color:var(--bad);margin-top:.2rem}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 1rem}
.filters{display:flex;gap:.5rem;flex-wrap:wrap;align-items:end;margin-bottom:1rem}
.filters .input{width:auto;min-width:180px}
.messages{margin-bottom:1rem}
.msg{padding:.6rem .85rem;border-radius:8px;margin-bottom:.5rem;border:1px solid var(--line);
     background:var(--panel)}
.msg.success{border-color:var(--ok);background:rgba(31,157,85,.08)}
.msg.error{border-color:var(--bad);background:rgba(192,57,43,.08)}
.msg.warning{border-color:var(--warn);background:rgba(217,119,6,.08)}
.muted{color:var(--muted)}
.small{font-size:.8rem}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem}
pre.log{background:#0d1117;color:#c9d1d9;padding:.9rem;border-radius:8px;overflow:auto;
        max-height:520px;font-size:.78rem;line-height:1.45}
.bars{display:flex;align-items:flex-end;gap:3px;height:64px;margin-top:.5rem}
.bars .bar{flex:1;background:var(--accent);border-radius:3px 3px 0 0;min-height:2px;opacity:.85}
.bars .bar:hover{opacity:1}
.pager{display:flex;gap:.4rem;align-items:center;margin-top:.8rem;font-size:.85rem}
.split{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.dl{display:grid;grid-template-columns:150px 1fr;gap:.3rem .8rem;font-size:.88rem}
.dl dt{color:var(--muted)}
.dl dd{margin:0}
.tabs{display:flex;gap:.3rem;border-bottom:1px solid var(--line);margin-bottom:1rem;flex-wrap:wrap}
.tabs a{padding:.45rem .8rem;border-radius:8px 8px 0 0;font-size:.88rem;color:var(--muted)}
.tabs a.active{background:var(--panel);border:1px solid var(--line);border-bottom-color:var(--panel);
               margin-bottom:-1px;color:var(--ink);font-weight:600}
.auth{min-height:calc(100vh - 3.5rem);display:grid;place-items:center;padding:1rem}
.auth .card{width:100%;max-width:380px}
.dot-ind{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--muted)}
.dot-ind.up{background:var(--ok)}.dot-ind.down{background:var(--bad)}
@media(max-width:820px){
  .topbar{flex-direction:column;align-items:flex-start;gap:.5rem}
  .content{padding:.9rem}
}

/* --- Monitoring ---------------------------------------------------------
   Chart colours are the validated palette: categorical slots 1-2 for series,
   the fixed status palette for state. Status colour is never the only cue -
   every use is paired with a word. */
:root{
  --chart-surface:#fcfcfb; --chart-grid:#e1e0d9; --chart-axis:#c3c2b7;
  --chart-muted:#898781;
  --series-1:#2a78d6; --series-2:#eb6834;
  --st-up:#0ca30c; --st-degraded:#fab219; --st-serious:#ec835a;
  --st-down:#d03b3b; --st-unknown:#898781;
}
@media (prefers-color-scheme: dark){
  :root{
    --chart-surface:#1a1a19; --chart-grid:#2c2c2a; --chart-axis:#383835;
    --series-1:#3987e5; --series-2:#d95926;
  }
}
.chart{width:100%;height:auto;display:block}
.chart-figure{margin:0}
.chart-figure figcaption{font-size:.78rem;color:var(--muted);margin-bottom:.3rem}
.legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:.78rem;margin-top:.4rem}
.legend span{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted)}
.swatch{width:10px;height:10px;border-radius:2px;display:inline-block}
.state{display:inline-flex;align-items:center;gap:.35rem;font-weight:600;font-size:.78rem}
.state .bullet{width:9px;height:9px;border-radius:50%;display:inline-block}
.state-up .bullet{background:var(--st-up)}
.state-degraded .bullet{background:var(--st-degraded)}
.state-down .bullet{background:var(--st-down)}
.state-unknown .bullet,.state-paused .bullet{background:var(--st-unknown)}
.state-up{color:var(--st-up)}
.state-degraded{color:#a06800}
.state-down{color:var(--st-down)}
.state-unknown,.state-paused{color:var(--muted)}
@media (prefers-color-scheme: dark){ .state-degraded{color:var(--st-degraded)} }
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.5rem}
.wall a{display:block;padding:.5rem .6rem;border-radius:8px;border:1px solid var(--line);
        background:var(--panel);color:var(--ink);font-size:.8rem}
.wall a:hover{text-decoration:none;border-color:var(--accent)}
.wall .nm{font-weight:600;display:block;white-space:nowrap;overflow:hidden;
          text-overflow:ellipsis}
.meter{background:var(--line);border-radius:6px;height:8px;width:100%;overflow:hidden}
.meter i{display:block;height:8px;border-radius:6px;background:var(--st-up)}
.meter.warn i{background:var(--st-degraded)}
.meter.bad i{background:var(--st-down)}
details.data-table{margin-top:.5rem}
details.data-table summary{font-size:.78rem;color:var(--muted);cursor:pointer}
details.data-table table{margin-top:.4rem}

/* --- network map and topology view ------------------------------------
   The markers and links are SVG over a grid of tile images. Colours come
   from the same status variables the rest of the system uses, so a site
   that is red here is red on the dashboard, and there is one place to
   change what "down" looks like. */
.netmap{position:relative;height:calc(100vh - 280px);min-height:420px;
        background:var(--bg);border:1px solid var(--line);
        border-radius:var(--radius);overflow:hidden;cursor:grab;
        touch-action:none;user-select:none}
.netmap.dragging{cursor:grabbing}
.netmap-tiles{position:absolute;inset:0;overflow:hidden}
.netmap-tiles img{position:absolute;width:256px;height:256px;
                  pointer-events:none;display:block}
/* Tiles are a light basemap. In dark mode they are dimmed rather than
   inverted: inverting makes roads look like rivers and coastlines read
   inside-out, which is worse than a slightly bright map. */
@media (prefers-color-scheme: dark){
  .netmap-tiles img{filter:brightness(.68) saturate(.75)}
}
.netmap-svg{position:absolute;inset:0;width:100%;height:100%}

.netmap-edge{stroke:var(--muted);stroke-width:2;opacity:.75}
.netmap-edge.implied{stroke-dasharray:5 4;opacity:.45}
.netmap-edge.inactive{stroke-dasharray:2 6;opacity:.3}
.netmap-edge.state-up{stroke:var(--st-up)}
.netmap-edge.state-degraded{stroke:var(--st-degraded);stroke-width:3}
.netmap-edge.state-down{stroke:var(--st-down);stroke-width:3}

.netmap-node{cursor:pointer}
.netmap-node .marker{fill:var(--st-unknown);stroke:var(--panel);stroke-width:2.5}
.netmap-node.state-up .marker{fill:var(--st-up)}
.netmap-node.state-degraded .marker{fill:var(--st-degraded)}
.netmap-node.state-down .marker{fill:var(--st-down)}
.netmap-node.state-paused .marker{fill:var(--st-unknown);opacity:.55}
.netmap-node.inactive .marker{opacity:.4}
.netmap-node.selected .marker{stroke:var(--accent);stroke-width:3.5}
.netmap-node:focus{outline:none}
.netmap-node:focus-visible .marker{stroke:var(--accent);stroke-width:4}
.netmap-node .label{font-size:11px;font-weight:600;text-anchor:middle;
                    fill:var(--ink);paint-order:stroke;
                    stroke:var(--panel);stroke-width:3.5px;stroke-linejoin:round}
/* A site with something down gets a ring as well as a colour, so it is not
   colour alone carrying the one piece of information that matters most. */
.netmap-node .pulse{fill:none;stroke:var(--st-down);stroke-width:2;opacity:.55}

.netmap-bar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
            margin-bottom:.7rem}
.netmap-legend{display:flex;gap:.9rem;flex-wrap:wrap;align-items:center;
               font-size:.78rem;color:var(--muted)}
.netmap-legend i{width:10px;height:10px;border-radius:50%;display:inline-block;
                 margin-right:.3rem;vertical-align:-1px}
.netmap-side{position:absolute;top:.7rem;right:.7rem;width:280px;max-width:60%;
             background:var(--panel);border:1px solid var(--line);
             border-radius:var(--radius);box-shadow:var(--shadow);
             padding:.8rem;max-height:calc(100% - 1.4rem);overflow:auto;
             font-size:.85rem}
.netmap-attrib{position:absolute;bottom:0;right:0;background:var(--panel);
               font-size:.66rem;padding:.1rem .35rem;color:var(--muted);
               border-top-left-radius:5px;opacity:.85}
.netmap-zoom{position:absolute;top:.7rem;left:.7rem;display:flex;
             flex-direction:column;gap:.25rem}
.netmap-zoom button{width:30px;height:30px;font-size:1rem;line-height:1;
                    background:var(--panel);border:1px solid var(--line);
                    border-radius:6px;color:var(--ink);cursor:pointer}
.netmap-zoom button:hover{background:var(--accent-soft)}
@media (max-width: 700px){
  .netmap{height:calc(100vh - 230px)}
  .netmap-side{position:static;width:auto;max-width:none;margin-top:.7rem;
               max-height:none}
}
/* Customer and device pins. Deliberately smaller than a site marker: on a
   town with two hundred CPEs the infrastructure still has to read first. */
.netmap-device .marker{fill:var(--st-unknown);stroke:var(--panel);stroke-width:1.5;
                       opacity:.9}
.netmap-device.state-up .marker{fill:var(--st-up)}
.netmap-device.state-degraded .marker{fill:var(--st-degraded)}
.netmap-device.state-down .marker{fill:var(--st-down)}
.netmap-device{cursor:pointer}
.netmap-device:focus-visible .marker{stroke:var(--accent);stroke-width:2.5}
.netmap-layers{position:absolute;bottom:.7rem;left:.7rem;display:flex;gap:.25rem;
               background:var(--panel);border:1px solid var(--line);
               border-radius:8px;padding:.2rem}
.netmap-layers button{border:0;background:none;color:var(--ink);cursor:pointer;
                      font-size:.76rem;padding:.25rem .5rem;border-radius:6px}
.netmap-layers button.active{background:var(--accent);color:#fff}
/* Dropping a pin when adding a site. The crosshair says "click to place"
   without a line of instruction; the pin's tip is the actual point, because
   a circle centred on the spot reads as "somewhere around here". */
.netmap.picking{cursor:crosshair}
.netmap.picking.dragging{cursor:grabbing}
.netmap-pick{pointer-events:none}
.netmap-pick .pin{fill:var(--accent);stroke:var(--panel);stroke-width:2}
.netmap-pick .hole{fill:var(--panel)}
.netmap-pick .tip{fill:var(--panel);stroke:var(--accent);stroke-width:1.5}
.netmap-picker{height:400px;min-height:300px}
.netmap-readout{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
                margin-top:.55rem}
.netmap-readout .value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
                       font-size:.85rem}

/* --- chart hover (static/js/app.js) ------------------------------------ */
.chart-wrap{position:relative;touch-action:pan-y}
.chart-cross{position:absolute;top:0;width:1px;background:var(--chart-axis);
             pointer-events:none;display:none}
.chart-dot{position:absolute;width:9px;height:9px;border-radius:50%;
           transform:translate(-50%,-50%);box-shadow:0 0 0 2px var(--chart-surface);
           pointer-events:none;display:none}
.chart-tip{position:absolute;top:4px;display:none;pointer-events:none;z-index:5;
           background:var(--panel);color:var(--ink);border:1px solid var(--line);
           border-radius:8px;box-shadow:var(--shadow);padding:.35rem .55rem;
           font-size:.76rem;line-height:1.45;white-space:nowrap}
.chart-tip-time{color:var(--muted);margin-bottom:.1rem}
.chart-tip-row{display:flex;align-items:center;gap:.35rem}
.chart-tip-row b{font-weight:650}
/* Wireless charts: two to a row on a wide screen. */
.chart-pair{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:1rem}
.chart-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap}
.chart-head .now{font-size:1.15rem;font-weight:650}
.chart-head .now small{font-size:.75rem;color:var(--muted);font-weight:400}
/* A good / fair / poor bar for an AP's customers. */
.dist{display:flex;height:10px;border-radius:5px;overflow:hidden;min-width:120px;gap:2px;
      background:var(--line)}
.dist i{display:block;height:100%}
.dist .good{background:var(--ok)}.dist .fair{background:var(--warn)}.dist .poor{background:var(--bad)}
/* Worst performers: ranked rows with an inline magnitude bar. */
table.rank{width:100%;border-collapse:collapse}
table.rank td{padding:.35rem .3rem;border-top:1px solid var(--line);vertical-align:middle}
table.rank tr:first-child td{border-top:0}
.rank-bar{width:32%}
.rank-bar .bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.rank-bar .bar i{display:block;height:100%;border-radius:4px;background:var(--series-1)}
.rank-trend{width:96px}
@media (max-width:600px){.rank-trend{display:none}.rank-bar{width:22%}}
/* Charts two or three to a row instead of one per full-width card: a chart
   keeps its shape, so a full-width one is also tall and buries everything
   else on the page. */
.chart-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(380px,100%),1fr));
            gap:1rem;margin-bottom:1rem;align-items:start}
.chart-grid > .card{margin:0}
.chart-grid > .span-all{grid-column:1 / -1;order:10}  /* after the small charts, never between them */

/* Routing chains */
ol.chain-pick{padding-left:1.4rem;margin:.4rem 0 .8rem}
ol.chain-pick li{margin:.35rem 0}
ol.chain-pick li select{width:auto;max-width:calc(100% - 6rem);display:inline-block}
ol.chain-pick li:first-child::after{content:"parent";font-size:.72rem;color:var(--muted);margin-left:.4rem}
.chain-line{display:flex;flex-wrap:wrap;align-items:stretch;gap:.4rem;margin:.6rem 0}
.chain-node{border:1px solid var(--line);border-radius:8px;padding:.5rem .7rem;min-width:9rem;background:var(--panel)}
.chain-node b{display:block}
.chain-hop{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:.72rem;color:var(--muted);min-width:5.5rem;text-align:center}
.chain-hop .arrow{font-size:1.1rem;line-height:1}
.chain-hop.bad{color:var(--bad)}
.step-list{list-style:none;padding:0;margin:.3rem 0}
.step-list li{font-family:ui-monospace,monospace;font-size:.78rem;padding:.12rem 0;word-break:break-word}
pre.log.script{white-space:pre;max-height:24rem}

/* The (i) beside every form field, and its description (1.22.0). */
.info-i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;
  margin-left:.35rem;padding:0;border:1px solid var(--muted);border-radius:50%;background:transparent;
  color:var(--muted);font:italic 700 10px/1 Georgia,serif;cursor:help;vertical-align:middle;
  flex:none}
.info-i:hover,.info-i:focus-visible{border-color:var(--accent);color:#fff;background:var(--accent);outline:none}
.info-tip{position:absolute;z-index:1000;max-width:min(340px,calc(100vw - 16px));padding:.55rem .7rem;
  border-radius:8px;background:var(--ink);color:var(--panel);font-size:.8rem;line-height:1.4;
  box-shadow:0 6px 24px rgba(0,0,0,.25);pointer-events:none;white-space:normal}
.info-tip[hidden]{display:none}

/* Footer on every page. */
.site-footer{padding:1.2rem 1rem 1.5rem;text-align:center;font-size:.75rem;color:var(--muted)}
