/* The owner console (/pilot#owner: public/pilot.html and pilot.js). Built on public/site.css, whose tokens, header,
   footer, labels and notes it uses and does not redefine. Thin lines, data in JetBrains Mono, meaning said in words:
   colour only repeats it. --live: a live connection, a check that passed. --caution: where the owner acts (what waits
   for a decision, the owner token, a refusal or a failure). --work: the dashed line of delivered work. */

.console [hidden] { display: none !important; }
#main:focus { outline: none; }                 /* the skip link's target: focus moves there, it is not a control */
.console main { padding-bottom: 3rem; }

/* One view at a time once pilot.js runs (body.js). Without it: the guide only, since every view needs the script. */
body:not(.js) .tabs, body:not(.js) #tab-network, body:not(.js) #tab-join, body:not(.js) .conn { display: none; }
body.js .tab:not(.active) { display: none; }

/* ------------------------------------------------------------------ the console's head */
.console-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 3rem; padding: 1.5rem 0 1.3rem; }
.console-head h1 { margin: 0 0 0.7rem; font-size: clamp(2.1rem, 7vw, 3.4rem); }       /* a tool's title: below the home page's hero */
.console-head .lede { margin: 0; font-size: 1.1rem; max-width: 36em; }
.netline { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem 1rem;
  font: 400 0.78rem/1.4 var(--mono); color: var(--dust); }
.netname { white-space: nowrap; }
.conn { display: inline-flex; align-items: center; gap: 0.55em; white-space: nowrap; }
.conn::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; border: 1px solid var(--dust); flex: none; }
.conn.ok { color: var(--line); }
.conn.ok::before { background: var(--live); border-color: var(--live); }
.conn.bad { color: var(--caution); }
.conn.bad::before { border-color: var(--caution); }

.offline { border: 1px solid var(--caution); border-left-width: 3px; padding: 0.8rem 1rem; margin: 0 0 1.4rem; font-size: 0.95rem; }
.offline strong { color: var(--caution); }
.offline button { margin-left: 0.4rem; }

/* the views: the console, the network's facts, joining with an invite */
.tabs { border-bottom: 1px solid var(--rule); margin: 0 0 1.8rem; }
.tabs ul { display: flex; flex-wrap: wrap; gap: 0 2.2rem; list-style: none; margin: 0; padding: 0; }
.tabs a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 46px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--dust); text-decoration: none; font-size: 1rem; }
.tabs a:hover { color: var(--line); }
.tabs a[aria-current="page"] { color: var(--line); border-bottom-color: var(--line); }
.badge { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.04em; color: var(--space); background: var(--caution); padding: 0.32em 0.55em; border-radius: 2px; }

/* ------------------------------------------------------------------ type and small parts */
.console .tab h2 { font-size: clamp(1.35rem, 3.2vw, 1.7rem); }
.console .tab h3 { font-size: 1.04rem; font-weight: 500; margin: 1.4rem 0 0.5rem; }
.hint { color: var(--dust); font-size: 0.93rem; margin: 0.3rem 0 0.9rem; max-width: 52em; }
.tiny { color: var(--dust); font-size: 0.82rem; }
.console .small { font-size: 0.82rem; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
/* pilot.js marks a long value .wrap (break it anywhere); in site.css .wrap is a page wrapper, whose box is undone here */
.console code.wrap { max-width: none; margin: 0; padding: 0.05em 0.4em; overflow-wrap: anywhere; word-break: break-all; }
.console b { font-weight: 500; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.console code { overflow-wrap: anywhere; }
/* site.css draws code in running text at 0.86em, which in the console's small text (.tiny, .explain) fell below 12 px:
   never below it here. A signed statement and a .small value keep their own sizes. */
.console .tiny code:not(.signed-text):not(.small), .console .explain code { font-size: max(0.75rem, 0.86em); }
/* a short command or flag in the page's own sentences stays on one line; a path may break where scripts/code-words.mjs
   put a <wbr> (its pieces stay whole), as it would not fit a phone's line */
.guide p code, .guide li code, .signin code, .join-note code, .budget-box code { white-space: nowrap; overflow-wrap: normal; }
.guide p code.path, .signin code.path { white-space: normal; }
code.copyable { cursor: copy; }
.good { color: var(--live); }
.bad, .warn { color: var(--caution); }
.flash { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
/* The console marks a summary with + and − (site.css draws a chevron elsewhere): no chevron border or turn here */
.console summary::before { content: "+"; content: "+" / ""; flex: none; width: 1ch; height: auto; margin: 0; border: 0; transform: none;
  font-family: var(--mono); color: var(--dust); }
.console details[open] > summary::before { content: "−"; content: "−" / ""; transform: none; }

/* Labels say where a fact comes from (signed by a key, the server's record, the tracker, this browser). In the console
   they are phrases, so they keep their case and wrap. */
.console .tag { display: inline-block; text-transform: none; letter-spacing: 0.02em; white-space: normal; font-size: 0.75rem; line-height: 1.35;
  padding: 0.12em 0.5em; vertical-align: 0.14em; color: var(--dust); }
.console .tag.signed { color: var(--line); }
.console .tag.owner { color: var(--caution); border-color: var(--caution); }
.console .tag.self, .console .tag.browser, .console .tag.none { border-style: dotted; }

/* deal and participant states, in words */
.status { display: inline-block; font: 400 0.75rem/1.35 var(--mono); padding: 0.18em 0.55em; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--line); }
.status.ps-paid { border-color: var(--line); }
.status.ps-owner { border-color: var(--caution); color: var(--caution); }
.status.ps-bad { border-color: var(--caution); border-style: dashed; color: var(--caution); }
.status.ps-ended { color: var(--dust); border-style: dotted; }

/* messages */
.msg { font-size: 0.93rem; }
.msg.ok, .msg.err { border-left: 2px solid currentColor; padding: 0.15rem 0 0.15rem 0.85rem; margin: 0.7rem 0; }
.msg.ok { color: var(--live); }
.msg.err { color: var(--caution); }
.apierr .kv { margin: 0.4rem 0 0; }
.apierr .kv dt, .apierr .kv dd { color: inherit; }

/* label: value lists */
.kv { display: grid; grid-template-columns: fit-content(14rem) minmax(0, 1fr); gap: 0.4rem 1.3rem; margin: 0.7rem 0; font-size: 0.93rem; }
.kv dt { color: var(--dust); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv .kv { font-size: inherit; }

/* tables: as site.css table.plain */
.tblwrap { overflow-x: auto; max-width: 100%; margin: 0.6rem 0 1.1rem; }
.tbl { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.tbl th { text-align: left; font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust);
  padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--rule-strong); vertical-align: bottom; }
.tbl td { padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td .tiny { margin-top: 0.15rem; }

/* controls */
.console button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 44px; padding: 0.55em 1.15em;
  border: 1px solid var(--line); border-radius: 2px; background: var(--line); color: var(--space); font: 400 0.95rem/1.2 var(--sans);
  letter-spacing: 0.02em; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.console button:hover { background: #ffffff; }
.console button.secondary, .console button.reject { background: transparent; color: var(--line); border-color: var(--rule-strong); }
.console button.secondary:hover, .console button.reject:hover { background: transparent; border-color: var(--line); }
.console button.btn-small { font-size: 0.86rem; padding: 0.45em 0.85em; }
.console button.danger { background: var(--caution); border-color: var(--caution); color: var(--space); }
.console button.danger-outline { background: transparent; border-color: var(--caution); color: var(--caution); }
.console button:disabled { opacity: 0.45; cursor: not-allowed; }
.console button:disabled:hover { background: var(--line); }
.console button.secondary:disabled:hover, .console button.reject:disabled:hover, .console button.danger-outline:disabled:hover { background: transparent; }

.console input:not([type=checkbox]):not([type=radio]), .console textarea, .console select {
  width: 100%; min-height: 44px; padding: 0.55rem 0.75rem; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--space); color: var(--line); font: 400 0.95rem/1.35 var(--sans); }
.console input[type=number], .console input[type=password], .console input[name=invite], .console input[name=handle] { font-family: var(--mono); font-size: 0.9rem; }
.console textarea { resize: vertical; min-height: 4.5rem; }
.console input::placeholder, .console textarea::placeholder { color: var(--dust); opacity: 1; }
.console input:hover:not(:disabled), .console textarea:hover, .console select:hover { border-color: var(--dust); }
#owner-token[aria-invalid="true"] { border-color: var(--caution); }    /* a refused owner token, until it is typed in again */
.console input[type=checkbox], .console input[type=radio] { width: 1.15rem; height: 1.15rem; margin: 0.22rem 0 0; flex: none; accent-color: var(--line); cursor: pointer; }
.console label.check { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.45rem 0; font-weight: 340; cursor: pointer; }

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; align-content: start; font-size: 0.95rem; }
.console .form > h3 { margin: 0.9rem 0 0; }
.form > .hint { margin: 0; }
.form label .tag { justify-self: start; }
.explain { color: var(--dust); font-size: 0.86rem; font-weight: 340; }
.field { display: grid; gap: 0.3rem; align-content: start; }
.mandate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2.2rem; }
fieldset.cps { border: 1px solid var(--rule); margin: 0; padding: 0.7rem 1rem 1rem; display: flex; flex-wrap: wrap; gap: 0 1.6rem; min-width: 0; }
fieldset.cps legend { padding: 0 0.4rem; color: var(--dust); font-size: 0.92rem; }
fieldset.cps .explain { flex-basis: 100%; margin-top: 0.4rem; }
/* one box per participant: at the testnet's size a long list, so it scrolls inside the form */
.cplist { display: flex; flex-wrap: wrap; gap: 0 1.6rem; flex-basis: 100%; padding: 0.2rem 0 0.2rem 1.8rem; max-height: 16rem; overflow-y: auto;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dirty { color: var(--caution); font-size: 0.9rem; }

/* ------------------------------------------------------------------ the owner tab: the guide and signing in */
#tab-owner.active.signed-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem); gap: 2.4rem 4rem; align-items: start; }
.guide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.4rem; }
.guide-head h2 { margin: 0; }
.guide-body { margin-top: 1.5rem; display: grid; gap: 1.5rem 2.6rem; max-width: 40em; }
.guide-item { border-top: 1px solid var(--rule); padding-top: 1rem; }
.console .guide-item h3, .console .guide-token h3 { margin: 0 0 0.45rem; font-size: 1rem; font-weight: 500; }
.guide-item p { margin: 0; font-size: 0.97rem; }
.guide-item p + p { margin-top: 0.6rem; }
.who { margin: 0; display: grid; gap: 0.15rem; font-size: 0.97rem; }
.who dt { font-weight: 500; margin-top: 0.55rem; }
.who dt:first-child { margin-top: 0; }
.who dd { margin: 0; }
.who dd p + p { margin-top: 0.45rem; }
/* "With console approvals": what the owner does, in order */
.guide-steps { margin: 0; padding-left: 1.25rem; font-size: 0.97rem; max-width: 46em; }
.guide-steps li { margin: 0.4rem 0 0; }
.guide-steps li:first-child { margin-top: 0; }
.guide-steps li::marker { color: var(--dust); }
.guide-item p.guide-after { margin-top: 0.7rem; max-width: 46em; }
.guide-token { margin: 0.4rem 0 0; }
.guide-token p, .guide-token ul { font-size: 0.97rem; }
.guide-token ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.guide-token li { margin: 0.35rem 0; }
.guide-token li::marker { color: var(--caution); }
.guide noscript .note { margin-top: 1.6rem; }
.to-signin { display: none; }            /* shown where the form sits below the guide (narrow screens, below) */
/* signed in: the guide folds to its heading, quieter, above the console */
#tab-owner.signed-in .guide { border-bottom: 1px solid var(--rule); padding-bottom: 0.9rem; margin-bottom: 2rem; }
#tab-owner.signed-in .guide-head h2 { font-size: 1.1rem; font-weight: 400; color: var(--dust); }
#tab-owner.signed-in .guide-body { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#tab-owner.signed-in .guide-token, #tab-owner.signed-in #guide-console { grid-column: 1 / -1; }

.signin { position: sticky; top: 1.2rem; border: 1px solid var(--rule); border-top: 2px solid var(--line); background: var(--panel); padding: 1.1rem 1.6rem 1.2rem; }
.console .signin h2 { margin: 0 0 0.7rem; }
.signin-what { margin: 0 0 1.1rem; font-size: 0.93rem; color: var(--dust); }
.signin .form { gap: 0.5rem; }
.signin label[for=owner-token] { font-size: 1rem; }
.console #owner-token { font-size: 1rem; letter-spacing: 0.03em; min-height: 50px; }
.signin .explain { margin: 0.1rem 0 0; }
.signin .note.caution { margin: 0.5rem 0 0.2rem; font-size: 0.93rem; }
.signin label.check { margin-top: 0.2rem; padding-bottom: 0; }
.signin #keep-explain { margin: 0 0 0.3rem 1.8rem; font-size: 0.8rem; line-height: 1.5; }
.console .signin button[type=submit] { width: 100%; min-height: 50px; margin-top: 0.4rem; font-size: 1rem; }
.signin .msg:not(:empty) { margin-top: 0.7rem; }
.signin > .tiny { margin: 1rem 0 0; }
.signin > .tiny + .tiny { margin-top: 0.4rem; }

/* ------------------------------------------------------------------ the console (signed in) */
.console .card { min-width: 0; border-top: 1px solid var(--rule); padding: 1.6rem 0 0.6rem; margin: 0 0 1.6rem; }
.console .card > h2:first-child, .console .card > .dtitle:first-child h2 { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
#owner-console .grid2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }      /* the agent's key | its position */

.card.loading { position: relative; padding-bottom: 1.6rem; }
.card.loading::after { content: ""; position: absolute; left: 0; bottom: 0.8rem; width: 28%; height: 1px; background: var(--line);
  animation: console-scan 1.6s ease-in-out infinite alternate; }
@keyframes console-scan { from { transform: translateX(0); } to { transform: translateX(257%); } }
.card.load-error { border-top: 2px solid var(--caution); }

/* who you are signed in as, and the token's controls */
.console .card.idbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.6rem 1.6rem; border-top: none; padding-top: 0; }
.console .idbar .idmain h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin: 0 0 0.35rem; }
.idbar .idmain .tiny { font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; }
.idbar > .hint { flex-basis: 100%; margin: 0.2rem 0 0; }
.idbar > .confirm, .idbar > .msg, .idbar > .card { flex-basis: 100%; }
.idbar > .msg:empty { display: none; }

/* what waits for the owner */
.console .card.approvals h2 { display: flex; align-items: center; gap: 0.75rem; }
.approvals .count { font: 300 1em/1 var(--sans); padding: 0.06em 0.36em 0.1em; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--dust); }
.approvals .count.on { border-color: var(--caution); color: var(--caution); }
.console .card.approvals.has-pending { border-top: 2px solid var(--caution); }
.appr { border: 1px solid var(--rule); border-left: 2px solid var(--caution); background: var(--panel); padding: 1.1rem 1.25rem 1rem; margin: 1.2rem 0; min-width: 0; }
.appr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.appr-title { font-weight: 400; font-size: 1.2rem; }
.appr-price { margin-left: auto; font: 400 0.88rem/1.4 var(--mono); }
.appr-ask { margin: 0.55rem 0 0.3rem; font-size: 1rem; max-width: 52em; }
.appr > div.tiny { font-family: var(--mono); font-size: 0.76rem; margin: 0.35rem 0 0.2rem; overflow-wrap: anywhere; }
/* until when the owner can decide; once it has passed, said as a warning (the server has ended the approval) */
.appr-deadline { margin: 0.5rem 0 0; font-size: 0.93rem; }
.appr-deadline.expired { color: var(--caution); border-left: 2px solid var(--caution); padding: 0.15rem 0 0.15rem 0.85rem; }
/* A card whose deadline has passed (pilot.js endCard): what was written while it waited is greyed, and its own deadline and
   state say what became of it. Greyed with the secondary text colour, every descendant included (rows and code set their
   own colour), never with opacity: opacity dims a whole subtree, so it would also dim the rows that say what became of
   the card (.ended-now sits inside .mcheck), below WCAG AA (the review of PR #8, code F3). --dust is 7.5:1 on the card's
   --panel, --caution 11.5:1. */
.appr.ended :is(.effect, .mcheck, .appr-ask), .appr.ended :is(.effect, .mcheck, .appr-ask) :not(.ended-now) { color: var(--dust); }
.appr.ended .ended-now { color: var(--caution); }
/* above the cards: what is already true of everything that waits */
.pending-hint { max-width: 56em; }
.pending-hint p { margin: 0 0 0.45rem; }
.pending-hint p:last-child { margin-bottom: 0; }
.effect { border: 1px solid var(--rule-strong); padding: 0.7rem 0.95rem; margin: 0.9rem 0 1.1rem; }
.effect .kv { margin: 0; }
.effect .kv dt { color: var(--line); font-weight: 500; }
.effect > p.tiny, .effect > p:last-child { margin: 0.5rem 0 0; }
.appr .actions { margin-top: 1rem; }
.appr .actions input { flex: 1 1 16rem; width: auto; }
.gate-msg { margin: 0.5rem 0 0; }
.appr > p.tiny:last-child { margin: 0.8rem 0 0; }

.stitle { font-weight: 500; font-size: 0.95rem; margin: 0.2rem 0 0.4rem; }
.stitle .tag { margin-left: 0.3rem; }
.mcheck { border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: 0.9rem; }
.checks { list-style: none; padding: 0; margin: 0.5rem 0; font-size: 0.92rem; }
.checks li { position: relative; padding: 0.22rem 0 0.22rem 1.5rem; }
.checks li::before { position: absolute; left: 0.1rem; top: 0.22rem; font-family: var(--mono); color: var(--dust); content: "·"; content: "·" / ""; }
.checks li.good { color: var(--line); }
.checks li.good::before { color: var(--live); content: "✓"; content: "✓" / ""; }
.checks li.bad::before { color: var(--caution); content: "✕"; content: "✕" / ""; }
.checks li.bad { color: var(--caution); }

.confirm { border: 1px solid var(--caution); padding: 0.8rem 1.1rem 1rem; margin: 0.9rem 0; }
.confirm h3 { margin-top: 0.2rem; }
.card.once { border: 1px solid var(--caution); background: var(--panel); padding: 1.2rem 1.3rem; }
.console .card.once { padding: 1.2rem 1.3rem; }
.warnline { color: var(--caution); font-weight: 500; margin: 0 0 1rem; }
.secret { border: 1px solid var(--rule); padding: 1rem 1.1rem; min-width: 0; }
.secret h3 { margin-top: 0; }
.secret ul { padding-left: 1.1rem; font-size: 0.93rem; }
.secret-value code { display: block; padding: 0.6rem 0.8rem; margin: 0 0 0.6rem; font-size: 0.9rem; background: var(--space); border: 1px solid var(--rule-strong); overflow-wrap: anywhere; user-select: all; }
.card.once > .actions, .secret .actions { margin: 0.8rem 0; }

.open-offers, .budget-box { border: 1px solid var(--rule); padding: 0.75rem 1rem; margin: 0.8rem 0 1.1rem; min-width: 0; }
.open-offers .stitle, .budget-box .stitle { font-size: 0.92rem; }
.open-offers p.tiny, .budget-box p.tiny { margin: 0.25rem 0; }
.offer-list { margin: 0.4rem 0 0.2rem; padding-left: 1.2rem; font-size: 0.92rem; }
.offer-list li { margin: 0.3rem 0; }

/* position: a readout of totals, cells divided by hairlines */
.posgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0.8rem 0; }
.posgrid + .posgrid { margin-top: -0.8rem; border-top: none; }
.stat { background: var(--space); padding: 0.75rem 0.85rem; min-width: 0; }
.stat .l:first-child { font-size: 0.9rem; font-weight: 500; }
.stat .n { font: 300 1rem/1.35 var(--sans); font-variant-numeric: tabular-nums; margin: 0.25rem 0; overflow-wrap: anywhere; }
.stat .l:last-child { color: var(--dust); font-size: 0.8rem; }

/* ------------------------------------------------------------------ a deal */
.backlink { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 0.6rem; color: var(--dust); text-decoration: none; }
.backlink:hover { color: var(--line); }
.dtitle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.dtitle h2 { margin: 0; }
.who-owes { font-size: 1.08rem; max-width: 46em; margin: 0.9rem 0 1.1rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 3rem; align-items: start; }
.timeline { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.step { position: relative; margin-left: 0.35rem; padding: 0 0 1.15rem 1.4rem; border-left: 1px solid var(--rule-strong); }
.step:last-child { border-left-color: transparent; }
.step::before { content: ""; position: absolute; left: calc(-0.35rem - 0.5px); top: 0.32rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--line); }
.step.failed::before { background: var(--caution); }
.step.pending::before { background: var(--space); border: 1px solid var(--caution); }
.step.na::before { background: var(--space); border: 1px dotted var(--dust); }
.step .stitle { margin-top: 0; }
.versions { list-style: none; margin: 0; padding: 0; }
.ver { border: 1px solid var(--rule); padding: 0.75rem 0.95rem; margin: 0 0 0.8rem; min-width: 0; }
.ver.pending { border-style: dotted; }
.ver.disputed { border-color: var(--caution); }
.signed-text { display: inline-block; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 0.78rem/1.5 var(--mono);
  background: var(--panel); border: 1px solid var(--rule); padding: 0.1em 0.45em; }
pre.deliverable { max-height: 26rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.5rem 0 0.8rem; padding: 0.85rem 1rem;
  background: var(--panel); border: 1px dashed var(--work); font: 400 0.82rem/1.6 var(--mono); }
.hcheck { font-family: var(--mono); font-size: 0.78rem; }
ul.labels { padding-left: 1.1rem; font-size: 0.92rem; }
ul.labels li { margin: 0.45rem 0; }
#resolve-box h3 { margin-top: 0.2rem; }

/* ------------------------------------------------------------------ the network's facts, and joining */
.banner { color: var(--dust); font-size: 0.93rem; max-width: 62em; margin: 0 0 1.8rem; }
.banner strong { color: var(--line); font-weight: 500; }
.facts-list, .lifecycle { padding-left: 1.2rem; margin: 0.4rem 0 1rem; font-size: 0.95rem; }
.facts-list li, .lifecycle li { margin: 0.55rem 0; }
.quote { border-left: 1px solid var(--rule-strong); padding-left: 0.9rem; color: var(--dust); font-size: 0.92rem; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.pcard { border: 1px solid var(--rule); padding: 0.85rem 0.95rem; min-width: 0; }
.pcard-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; }
.pcard-head .status { margin-left: auto; }
.phandle { font: 400 0.95rem/1.3 var(--mono); }
.pdisplay { color: var(--dust); }
.pcap { margin: 0.6rem 0 0; }
.join-note { margin: 0 0 2rem; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 960px) {
  #tab-owner.active.signed-out { display: block; }
  #tab-owner.signed-out .to-signin { display: inline-flex; }
  .signin { position: static; margin-top: 2.4rem; max-width: 34rem; scroll-margin-top: 1rem; }
  .split, .grid2, #owner-console .grid2 { grid-template-columns: minmax(0, 1fr); }   /* the console's own split too (an id outranks .grid2) */
  #tab-owner.signed-in .guide-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .console-head { grid-template-columns: minmax(0, 1fr); padding: 1.8rem 0 1.4rem; }
  .netline { justify-content: flex-start; }
  .tabs ul { gap: 0 1.4rem; }
  .mandate-grid { grid-template-columns: minmax(0, 1fr); }
  .posgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { margin-top: 0.6rem; }
  .kv dt:first-child { margin-top: 0; }
  .appr { padding: 0.95rem 1rem 0.9rem; }
  .appr-price { margin-left: 0; }
  .signin { padding: 1.3rem 1.1rem 1.1rem; }
}
@media (max-width: 420px) {
  .posgrid { grid-template-columns: minmax(0, 1fr); }
  .tabs a { font-size: 0.95rem; }
}
/* Forced colours (Windows contrast themes) turn every tab's transparent underline into a text colour: only the current
   view keeps one, in Highlight. The tabs then draw their own system colours, so the focus ring and the pending badge
   are given theirs. */
@media (forced-colors: active) {
  .tabs a { forced-color-adjust: none; color: LinkText; border-bottom-color: transparent; }
  .tabs a:hover { color: LinkText; }
  .tabs a[aria-current="page"] { color: CanvasText; border-bottom-color: Highlight; }
  .tabs a:focus-visible { outline-color: CanvasText; }
  .tabs a .badge { forced-color-adjust: auto; }
}
