/* Round 8: the network. Neighbour labels and parcels in the world, their agents in the sky, the
   Network view and a business's card in the side panel, request steps on tasks, and the public map's
   bar and pins. Loaded before mobile.css, so the phone's elevation and type rules still come last;
   the few phone rules of its own are at the end. */

/* ----------------------------------------------------------------- neighbours in the world */

.lbl.nb { gap: 5px; background: color-mix(in srgb, var(--card) 80%, transparent); border-color: color-mix(in srgb, var(--line-2) 70%, transparent); }
.lbl.nb .name { font-weight: 600; }
.lbl.nb .nb-groups { color: var(--ink-3); }
.lbl.nb.unverified { border-style: dashed; }
.lbl.nb.pending { border-color: var(--line-2); }
.nb-dot, .nb-agent-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(30, 42, 61, 0.18); flex: none; }
.nb-agent-dot { border-radius: 50%; }
.nb-v { font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 3px; background: var(--card-2); color: var(--ink-3); font-weight: 500; }
.nb-v.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-weight: 700; }
.lbl.nb.small .nb-groups { display: none; }
.lbl.nb-parcel { pointer-events: none; cursor: default; font-size: 10.5px; padding: 1px 6px 1px 4px; gap: 4px; background: var(--card); border-color: var(--line); white-space: nowrap; box-shadow: var(--shadow-sm); }
.lbl.nb-parcel i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lbl.nb-agent { gap: 5px; }
.lbl.nb-agent .meta { font-size: 10px; }
.lbl.nb-agent.talking { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.label-layer.dark .lbl.nb { background: rgba(16, 22, 36, 0.8); }
.label-layer.dark .lbl.nb-agent.talking { border-color: #a9c1e8; box-shadow: 0 0 0 3px rgba(122, 156, 208, 0.35); }
.label-layer.dark .nb-v.ok { background: rgba(95, 154, 120, 0.22); color: #8fd0a9; }

@media (prefers-reduced-motion: reduce) {
  .lbl.nb-agent.talking { box-shadow: none; }
}

/* ---------------------------------------------------------------- a business's face */

.face.biz { border-radius: 26%; background: var(--c); color: #2a2a2a; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 0 0 1.5px var(--card); font-size: calc(var(--s) * 0.34); }
.face.biz::after { content: ''; position: absolute; left: 22%; right: 22%; top: 13%; height: 2px; border-radius: 1px; background: rgba(30, 42, 61, 0.22); }
.face.biz.faded { opacity: 0.5; }
.cm-agent { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 4px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------------------------------------------------------------- marks and chips */

.nb-mark { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--card-2); color: var(--ink-3); vertical-align: 1px; white-space: nowrap; }
.nb-mark.ok { background: color-mix(in srgb, var(--ok) 15%, var(--card)); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }
.nb-mark.pending, .nb-mark.wait { background: var(--orange-soft); color: #9a561d; }
.nb-mark.unverified { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
:root[data-theme='night'] .nb-mark.pending, :root[data-theme='night'] .nb-mark.wait { color: var(--orange-1); }
.nb-tick { color: var(--ok); font-weight: 700; }
.nb-country { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.nb-country b { font-size: 10px; letter-spacing: 0.04em; padding: 1px 4px; border-radius: 3px; background: var(--ink); color: var(--card); }
.nb-country i { font-style: normal; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.nb-country i.src-stated { background: var(--card-2); color: var(--ink-3); }
.nb-country i.src-domain { background: var(--accent-soft); color: var(--accent-ink); }
.nb-country i.src-payments { background: color-mix(in srgb, var(--ok) 15%, var(--card)); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }

/* ---------------------------------------------------------------- the header tool */

.net-tool-n { font-size: 10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: inline-grid; place-items: center; }

/* ---------------------------------------------------------------- the Network view */

.net-intro { margin: 4px 0 2px; line-height: 1.45; }
.net-real code { font-size: 11px; }
.net-match { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin: 10px 0 4px; border-radius: 10px; background: var(--accent-soft); font-size: 12px; line-height: 1.4; flex-wrap: wrap; }
.net-match p { flex: 1; min-width: 180px; }
.net-invite .field { margin-bottom: 6px; }
.net-invite-row { display: flex; gap: 8px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.net-invite-row .sel-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.net-invite-row .sel-field select { max-width: 100%; }
.net-note { font-size: 12px; line-height: 1.4; padding: 7px 9px; border-radius: 8px; margin: 6px 0; background: var(--card-2); }
.net-note.ok { background: color-mix(in srgb, var(--ok) 13%, var(--card)); }
.net-note.wait { background: var(--orange-soft); }
.net-note.bad { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); }
.net-group { padding: 8px 0 6px; }
.net-group + .net-group { border-top: 1px dashed color-mix(in srgb, var(--ink) 10%, transparent); }
.ng-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.ng-policy { margin: 4px 0 4px; font-size: 11.5px; color: var(--ink-2); }
.ng-policy summary { cursor: pointer; list-style: none; padding: 3px 0; }
.ng-policy summary::-webkit-details-marker { display: none; }
.ng-policy summary::before { content: '▸'; display: inline-block; width: 12px; color: var(--ink-3); transition: transform 160ms var(--ease); }
.ng-policy[open] summary::before { transform: rotate(90deg); }
.ng-policy summary span { color: var(--ink); }
.net-caps { list-style: none; margin: 4px 0 6px 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.net-caps label, .sw-only { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; min-height: 26px; }
.net-caps input, .sw-only input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 26px; height: 15px; border-radius: 8px; background: var(--line-2); position: relative; flex: none; transition: background 160ms var(--ease); }
.sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 160ms var(--ease); }
input:checked + .sw { background: var(--accent); }
input:checked + .sw::after { transform: translateX(11px); }
input:focus-visible + .sw { outline: 2px solid var(--focus); outline-offset: 2px; }
.net-row { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 5px 6px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); min-height: 42px; }
.net-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.net-row .sd-p-text b { display: flex; gap: 5px; align-items: center; }
.net-row .st-delivered, .nr-st.st-delivered, .nr-st.st-accepted { color: var(--ok); }
.net-newgroup { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.net-newgroup .field { margin: 0; }

/* ---------------------------------------------------------------- a business's card */

.net-head { display: flex; gap: 12px; align-items: center; margin: 2px 0 6px; }
.net-blurb { color: var(--ink-2); line-height: 1.45; margin-bottom: 8px; }
.net-facts { grid-template-columns: 84px 1fr; margin: 6px 0 4px; align-items: baseline; }
.net-facts dt { white-space: nowrap; }
.net-groups { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.net-groups .chip-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; padding: 2px 3px 2px 7px; }
.chip-x { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0 3px; font-size: 13px; line-height: 1; border-radius: 3px; }
.chip-x:hover { color: var(--danger); }
.net-add-group select { font-size: 11px; padding: 2px 6px; }
.net-captab { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.net-captab th, .net-captab td { padding: 4px 4px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.net-captab thead th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.net-captab tbody th { font-weight: 500; }
.yn { font-size: 11px; color: var(--ink-3); }
.yn.on { color: var(--ink-2); }
.yn.on.strong { color: var(--ok); font-weight: 600; }
.net-preview { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.net-preview li { font-size: 12px; line-height: 1.4; padding: 6px 9px; border-radius: 10px; background: var(--card-2); }
.net-preview small { display: block; color: var(--ink-3); font-size: 10.5px; }
.net-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.net-req { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; width: 100%; border: 0; background: var(--card-2); border-radius: 8px; padding: 6px 9px; text-align: left; color: var(--ink); cursor: pointer; font-size: 12px; }
.net-req[disabled], .net-req:not([data-net-task]) { cursor: default; }
.nr-dir { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.nr-st { font-size: 11px; color: var(--accent-ink); font-weight: 600; }
.nr-st.st-received { color: #9a561d; }
.net-offers { display: flex; gap: 4px; flex-wrap: wrap; }
.net-offers .chip-tag { font-size: 11px; padding: 2px 7px; }
.net-end { margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------------------------------------------------------------- tasks: origin and steps */

.net-from { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); white-space: nowrap; }
.net-from i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(30, 42, 61, 0.2); }
.net-from.st-delivered { color: var(--ok); }
.net-origin { margin: 8px 0 4px; padding: 10px; border-radius: 10px; background: var(--card-2); }
.no-h { display: flex; gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.35; }
.no-h small { display: block; color: var(--ink-3); font-size: 10.5px; }
.net-origin > p { margin: 6px 0 0; }
.net-origin .actions { margin-top: 8px; }
.net-hist { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; }
.net-hist time { color: var(--ink-3); font-size: 10.5px; margin-left: 4px; }
.legs li.net-leg { align-items: flex-start; }
.leg-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.net-leg-box { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); margin-top: 2px; }
.net-to { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12px; }
.net-to i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.net-to small { color: var(--ink-3); width: 100%; padding-left: 14px; font-size: 11px; }
.net-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; font-size: 10.5px; }
.net-steps li { position: relative; padding-top: 9px; color: var(--ink-3); text-align: center; line-height: 1.2; }
.net-steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: var(--line-2); }
.net-steps li.done { color: var(--ink-2); }
.net-steps li.done::before { background: var(--ok); }
.net-steps li.now { color: var(--ink); font-weight: 600; }
.net-steps li.now::before { background: var(--accent); }
.net-steps li.going::before { background: linear-gradient(90deg, var(--accent) 0 50%, var(--line-2) 50%); background-size: 200% 100%; animation: net-going 1.2s linear infinite; }
@keyframes net-going { from { background-position: 100% 0; } to { background-position: 0 0; } }
.net-leg-acts:empty { display: none; }
.net-proof { display: flex; flex-direction: column; gap: 6px; }
.net-proof figure { margin: 0; }
.net-proof svg { display: block; width: 100%; max-width: 260px; border-radius: 8px; }
.net-proof figcaption { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.net-inv { display: flex; align-items: center; gap: 5px; font-size: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .net-steps li.going::before { animation: none; }
  .ng-policy summary::before, .sw, .sw::after { transition: none; }
}
.t-net { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-last { font-size: 11px; color: var(--ink-2); }

/* ---------------------------------------------------------------- the public map */

.netmap-bar { position: fixed; bottom: calc(126px + env(safe-area-inset-bottom)); left: var(--gap-cx); transform: translateX(-50%); z-index: 21; padding: 5px; border-radius: 12px; display: flex; flex-direction: column; gap: 5px; max-width: calc(var(--gap-w) - 24px); }
.nm-top { display: flex; align-items: center; gap: 8px; order: 2; }
.nm-top .segmented { flex: none; }
.nm-count { font-size: 12px; color: var(--ink-2); white-space: nowrap; padding: 0 6px; }
.nm-filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.nm-sel select { border: 1px solid var(--line-2); background: var(--card); border-radius: 7px; padding: 4px 6px; font-size: 12px; color: var(--ink); max-width: 170px; }
.nm-tog { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; white-space: nowrap; }
.nm-tog input { margin: 0; accent-color: var(--accent); }
.netmap-note { position: fixed; bottom: calc(180px + env(safe-area-inset-bottom)); left: var(--gap-cx); transform: translateX(-50%); z-index: 20; max-width: min(440px, calc(var(--gap-w) - 32px)); font-size: 12.5px; line-height: 1.45; padding: 10px 14px; border-radius: 10px; }
body.focus-mode .netmap-bar, body.focus-mode .netmap-note { display: none; }

/* In the network map our own places shrink to their glyph, and people and vehicles step aside. */
#map.netmap-on .pin-site .pin-name { display: none; }
#map.netmap-on .pin-site .pin-body { padding: 3px; }
#map.netmap-on .pin-thing, #map.netmap-on .pin-moving { display: none; }

.np { width: 0; height: 0; position: relative; }
.np-body { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; padding: 3px 7px 3px 5px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 11px; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 6px rgba(30, 42, 61, 0.14); }
.np-body:hover { border-color: var(--accent); }
.np-body b { font-weight: 600; }
/* An exact address stands on a point; a city or a region floats over its area, with no point. */
.prec-exact .np-body { transform: translate(-50%, calc(-100% - 7px)); }
.prec-exact::after { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
.prec-region .np-body, .prec-city .np-body { border-style: dashed; }
.np-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(30, 42, 61, 0.2); flex: none; display: inline-block; }
.np-v { color: var(--ok); font-weight: 700; }
.np-lapsed { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #9a561d; }
.np-cc, .np-prec, .np-linked { font-style: normal; font-size: 9.5px; font-weight: 600; padding: 0 4px; border-radius: 3px; line-height: 15px; }
.np-cc.src-stated { background: var(--card-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.np-cc.src-domain { background: var(--accent-soft); color: var(--accent-ink); }
.np-cc.src-payments { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }
.np-prec { background: var(--card-2); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.np-linked { background: var(--accent); color: #fff; }
.np.linked .np-body { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 2px 6px rgba(30, 42, 61, 0.14); }
.np.folded { visibility: hidden; pointer-events: none; }
.np-body[data-more]::after { content: attr(data-more); font-size: 10px; font-weight: 700; color: #fff; background: var(--ink-2); border-radius: 8px; padding: 0 5px; line-height: 15px; }
/* Country only: no place, a badge at the country listing who is there. */
.np-country { width: 0; height: 0; position: relative; }
.npc { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; min-width: 150px; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 2px 6px rgba(30, 42, 61, 0.14); }
.npc-h { margin: 0; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; display: flex; gap: 5px; align-items: center; }
.npc-h b { font-size: 10px; padding: 0 4px; border-radius: 3px; background: var(--ink); color: var(--card); }
.npc-b { display: flex; gap: 5px; align-items: center; white-space: nowrap; font-size: 11px; padding: 4px 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.npc-b + .npc-b { border-top: 1px solid var(--line); }
.npc-b:hover { background: var(--accent-soft); }

@media (max-width: 599px) {
  /* Over the rails' strips (z 21), under the field (27) and the toasts. */
  .netmap-bar { left: 16px; right: 16px; transform: none; max-width: none; bottom: calc(118px + env(safe-area-inset-bottom)); z-index: 24; }
  .nm-top .nm-count { margin-left: auto; }
  .nm-top { justify-content: space-between; }
  .nm-count-w { display: none; }
  .nm-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .nm-filters .nm-sel select { max-width: none; width: 100%; }
  .nm-filters .nm-sel:first-child { grid-column: 1 / -1; }
  .netmap-note { left: 16px; right: 16px; transform: none; max-width: none; }
  .net-caps { grid-template-columns: 1fr; }
  /* A phone's gap is a third of the screen: tags keep the name, the tick and the count; the country,
     its source and the precision are on the card a tap away. */
  .np-cc, .np-prec, .np-linked, .npc-b .np-cc { display: none; }
  .np-body { max-width: 150px; }
  .np-body b { overflow: hidden; text-overflow: ellipsis; }
}

/* Our domains (real-data mode, /v1/network step C1): each domain, its badge, what to publish, and what
   the last look found. */
.net-domains h3 .chip-tag { margin-left: 4px; vertical-align: 1px; }
.nb-mark.lapsed { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); }
.dom-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; }
.dom-row { padding: 8px 10px; border-radius: 10px; background: var(--card-2); min-width: 0; }
.dom-row p { margin: 0 0 4px; }
.dom-h b { overflow-wrap: anywhere; }
.dom-how { margin: 4px 0 6px; font-size: 12px; }
.dom-how summary { cursor: pointer; color: var(--ink-2); }
.dom-proof { margin: 6px 0 0; display: grid; gap: 4px; }
.dom-proof dt { font-weight: 600; font-size: 11.5px; }
.dom-proof dd { margin: 0 0 4px; min-width: 0; }
.dom-proof code { font-size: 11px; overflow-wrap: anywhere; user-select: all; }
.dom-checks { list-style: none; margin: 4px 0 6px; padding: 0; font-size: 11.5px; line-height: 1.4; display: grid; gap: 3px; }
.dom-checks li { padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.dom-checks li::before { content: '•'; position: absolute; left: 3px; color: var(--ink-3); }
.dom-checks li.ok::before { content: '✓'; color: var(--ok); }
.dom-checks li.bad::before { content: '×'; color: var(--danger); }
.dom-err { overflow-wrap: anywhere; }

/* Our listing, the directory and a real card (real-data mode, /v1/network step C2). */
.nb-country i.src-address, .np-cc.src-address { background: color-mix(in srgb, var(--ok) 9%, var(--accent-soft)); color: var(--accent-ink); }
.net-listing h3 .chip-tag, .net-directory h3 .chip-tag { margin-left: 4px; vertical-align: 1px; }
.nl-status { margin: 6px 0 10px; }
.nl-form { display: grid; gap: 0; }
.nl-form .field { margin-bottom: 8px; }
.nl-form textarea { border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--ink); font-weight: 400; resize: vertical; min-height: 54px; }
.nl-form [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.nl-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; font-size: 12.5px; }
.nl-toggles .nm-tog { display: inline-flex; align-items: center; gap: 6px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row .field { min-width: 140px; }
.nl-row .nl-cc { flex: 0 0 110px; min-width: 0; }
.nl-places { border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px 8px; margin: 2px 0 10px; min-width: 0; }
.nl-places legend { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.nl-place { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.nl-place:last-of-type { border-bottom: 0; }
.nl-place span { min-width: 0; overflow-wrap: anywhere; }
.nl-place select { border: 1px solid var(--line-2); background: var(--card); border-radius: 7px; padding: 4px 8px; font-size: 12px; color: var(--ink); flex: none; }
.nl-preview { margin-top: 8px; font-size: 12.5px; }
.nl-preview summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.nl-card { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.nl-places-ro { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nl-places-ro .chip-tag { margin-left: 2px; }
.npc .muted.small { margin: 2px 0 0; font-size: 11px; }

/* Step C3: invitations and links from Overblast (js/network-side.js, real-data mode). */
.ln-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; }
.ln-row { padding: 8px 10px; border-radius: 10px; background: var(--card-2); min-width: 0; }
.ln-row > p { margin: 0 0 4px; }
.ln-who { display: flex; align-items: center; gap: 8px; }
.ln-who .face { flex: none; }
.ln-msg { font-style: italic; color: var(--ink-2); overflow-wrap: anywhere; }
.ln-groups { border: 0; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.ln-groups legend { padding: 0; margin-bottom: 4px; }
.ln-groups .nm-tog { white-space: normal; }
[data-net-form="ln-invite"] textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--ink); resize: vertical; margin-bottom: 6px; }
.ln-code { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 10%, var(--card)); margin: 6px 0; }
.ln-code p { margin: 0 0 4px; overflow-wrap: anywhere; }
.ln-code-v { font-size: 13px; user-select: all; }
.ln-glist { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.ln-ended summary { cursor: pointer; margin: 4px 0; }
.net-row.ended { opacity: 0.62; }
.nb-mark.bad { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); }

/* Step C4: shared threads on a link (js/network-side.js, real-data mode). */
.nt-row.current { box-shadow: inset 3px 0 0 var(--accent); }
.nt-row .actions { margin-top: 4px; }
.nt-last { margin: 2px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.nt-unread { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--card); font-size: 10px; font-weight: 600; vertical-align: 1px; }
.nt-new { display: grid; gap: 6px; margin-top: 6px; }
.nt-new input, .nt-new textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--ink); }
.nt-new textarea { resize: vertical; }
.nt-convo { margin: 8px 0; }
.nt-convo .cm-b { overflow-wrap: anywhere; white-space: normal; }

/* Step C5: requests from supplier legs (js/neighbours.js, js/network-side.js, real-data mode). On a neighbour's
   label each request is a chip, received (↓) or sent (↑), tinted by its state; a request's doors are forms. */
.lbl.nb:has(.nb-reqs) { flex-wrap: wrap; max-width: 280px; row-gap: 3px; }
.nb-reqs { display: flex; flex-wrap: wrap; gap: 3px; flex-basis: 100%; }
.nb-rq { font: inherit; font-size: 10px; line-height: 1.2; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.nb-rq i { font-style: normal; color: var(--ink-3); }
.nb-rq.in { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.nb-rq.st-open.in { background: color-mix(in srgb, var(--orange-soft) 80%, var(--card)); }
.nb-rq.st-accepted i, .nb-rq.st-fulfilled i { color: var(--ok); }
.nb-rq.st-declined i, .nb-rq.st-cancelled i { color: var(--danger); }
.nb-rq.more { cursor: default; border-style: dashed; }
.lbl.nb.small .nb-reqs { display: none; }
.label-layer.dark .nb-rq { background: rgba(16, 22, 36, 0.9); color: #d8dee9; }
.nrq-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.nrq-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; font: inherit; padding: 7px 10px; border-radius: 10px; border: 0; background: var(--card-2); color: var(--ink); cursor: pointer; }
.nrq-row:hover { background: color-mix(in srgb, var(--accent) 8%, var(--card-2)); }
.nrq-row small { grid-column: 2 / 4; color: var(--ink-3); overflow-wrap: anywhere; }
.nrq-dir { font-size: 11px; color: var(--ink-3); }
.nrq-st { font-size: 11px; font-weight: 600; color: var(--accent-ink); }
.nrq-st.st-open.in { color: #9a561d; }
.nrq-st.st-accepted, .nrq-st.st-fulfilled { color: var(--ok); }
.nrq-st.st-declined, .nrq-st.st-cancelled { color: var(--danger); }
.nrq-offer { margin: 6px 0; padding: 8px 10px; border-left: 3px solid var(--line-2); background: var(--card-2); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.nrq-doors { display: grid; gap: 8px; margin: 8px 0; }
.nrq-doors form { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.nrq-doors input[type="text"], .nrq-doors textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--ink); }
.nrq-doors textarea { resize: vertical; }
.nrq-doors .nm-tog { white-space: normal; }
.nrq-moves { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; }
.sp-row { padding: 8px 10px; border-radius: 10px; background: var(--card-2); min-width: 0; }
.sp-row > p { margin: 0 0 4px; overflow-wrap: anywhere; }
.sp-row form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.sp-row input, .sp-row select { min-width: 0; flex: 1 1 140px; border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12.5px; color: var(--ink); }
