/* Network on the web: Work's professional network (server/web/pages/network.js;
   the phone's is components/pages/NetworkPage.tsx). Every colour is a theme
   variable: Work wears Mono, and the page must read on whatever it wears.

   The look is ink on paper: a person is a card with an ink edge, the way a
   card is handed over; everything else is type and hairlines, the way a
   ledger is ruled. No shadows, no tints of its own, nothing that floats.
   Every control is at least 40px tall and every row wraps before it would
   push the page sideways (it is read at 360px wide as often as at 1440). */

.net-page { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
/* Clear of the floating rail, like Hours: the title starts under it, not behind it. */
.screen-scroll > .inner.net-page { padding-top: calc(52px + env(safe-area-inset-top)); padding-bottom: 28px; }
.net-head { display: flex; align-items: baseline; gap: 10px; }
.net-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); font-family: var(--font-display, inherit); }
.net-page [hidden] { display: none !important; }

/* ---- the tabs ---- */
.net-tabs { display: flex; border-bottom: 1px solid var(--border); }
.net-tab {
  flex: 1 1 auto; min-width: 0; min-height: 44px; border: none; background: none; cursor: pointer; padding: 0 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.net-tab-label { white-space: nowrap; }
.net-tab.on { color: var(--ink); font-weight: 800; border-bottom-color: var(--ink); }
.net-tab-count {
  flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--bg);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.net-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.net-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.net-view { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Two columns when there is room for them; one under the other on a phone. */
.net-cols { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.net-main, .net-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.net-side.wide-only { display: none; }
.net-spring { flex: 1; }

/* ---- words ---- */
.net-quiet { font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); overflow-wrap: anywhere; }
.net-err { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--ink); padding: 8px 12px; border-left: 2px solid var(--danger); background: var(--surface); }
.net-empty { font-size: 14px; line-height: 1.5; color: var(--ink-muted); padding: 6px 0; }
.net-end { text-align: center; padding: 8px 0; }
.net-text { font-size: 15px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.net-time { flex: none; font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.net-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.net-h { margin: 0; padding: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.2px; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.net-tag {
  flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 12px; font-weight: 700; color: var(--ink-muted); white-space: nowrap;
}
.net-note { margin: 0 0 8px 50px; padding: 8px 12px; border-left: 2px solid var(--border); font-size: 14px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- buttons ---- */
.net-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 8px; background: none; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; max-width: 100%;
}
.net-btn.solid { background: var(--ink); color: var(--bg); }
.net-btn.plain { border-color: transparent; padding: 0 8px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.net-btn.plain:hover { color: var(--ink); }
.net-btn.danger { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.net-btn.on { background: var(--accent-soft); }
.net-btn:disabled { opacity: 0.45; cursor: default; }
.net-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 44; }
.net-back { margin-left: -8px; text-decoration: none; color: var(--ink); }
.net-backrow { display: flex; }
.net-icon-btn {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border: none; border-radius: 8px; background: none;
  color: var(--ink-muted); cursor: pointer;
}
.net-icon-btn:hover { color: var(--ink); background: var(--accent-soft); }
.net-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 40; }
.net-more > .net-icon-btn svg { width: 22px; height: 22px; stroke-width: 64; }
.net-btn:focus-visible, .net-icon-btn:focus-visible, .net-who:focus-visible, .net-act:focus-visible, .net-chip.pick:focus-visible,
.net-job-main:focus-visible, .net-menu-row:focus-visible, .net-linkrow:focus-visible, .net-vouch-by:focus-visible,
.net-comment-name:focus-visible, .net-chip-x:focus-visible, .net-add:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The three dots, and the short list under them. */
.net-more { position: relative; flex: none; display: inline-flex; }
.net-menu {
  position: absolute; top: 100%; right: 0; z-index: 5; min-width: 190px; padding: 4px;
  border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface-solid, var(--surface));
  display: flex; flex-direction: column;
}
.net-menu-row { min-height: 44px; padding: 0 12px; border-radius: 5px; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.net-menu-row:hover { background: var(--accent-soft); }
.net-menu-row.danger { color: var(--danger); }

/* ---- chips ---- */
.net-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.net-chips-lead { font-size: 12.5px; font-weight: 800; color: var(--ink-muted); margin-right: 2px; }
.net-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 3px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
}
.net-chip-n { font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.net-chip.pick { min-height: 40px; padding: 0 14px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }
.net-chip.pick[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.net-chip.has-x { min-height: 40px; padding: 0 0 0 12px; gap: 0; }
.net-chip-x { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; color: var(--ink-muted); cursor: pointer; }
.net-chip-x:hover { color: var(--danger); }
.net-chip-x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 48; }
.net-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.net-filters .net-chip.pick { padding: 0 12px; }

/* ---- a person in a row ---- */
.net-rows { display: flex; flex-direction: column; min-width: 0; }
.net-rows > * + * { border-top: 1px solid var(--border); }
.net-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0; min-width: 0; }
.net-item { display: flex; flex-direction: column; min-width: 0; }
.net-item-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.net-row-acts { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.net-who {
  flex: 1 1 160px; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0;
  border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 6px;
}
.net-who-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.net-who-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: normal; overflow-wrap: break-word; }
.net-who:hover .net-who-name { text-decoration: underline; text-underline-offset: 3px; }
.net-who-sub { font-size: 13px; line-height: 1.35; color: var(--ink-muted); white-space: normal; overflow-wrap: break-word; }

/* ---- a card: the one thing with an ink edge ---- */
.net-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--surface);
}
.net-card-head { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.net-card-face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.net-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.net-card-name { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); font-family: var(--font-display, inherit); overflow-wrap: anywhere; }
.net-card-headline { font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; text-align: left; }
.net-card-where { font-size: 13.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
.net-card-rel { font-size: 13.5px; font-weight: 600; color: var(--ink-muted); }
.net-card-acts { display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.net-card-btns { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.net-card-acts > .net-btn.plain { margin-right: -8px; }
.net-add { min-height: 40px; padding: 0; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.net-job-name { font-size: 22px; }

/* Not on Network yet: said once, plainly, with the one thing to do about it. */
.net-invite { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; border: 1px dashed var(--ink-muted); border-radius: 6px; }
.net-invite-title { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); font-family: var(--font-display, inherit); }
.net-invite-body { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.net-main > div:empty, .net-main:empty, .net-side:empty { display: none; }

/* A card's lines: experience and education, ruled like a ledger. */
.net-lines { display: flex; flex-direction: column; }
.net-line { padding: 10px 0; min-width: 0; }
.net-line:first-child { padding-top: 0; }
.net-line + .net-line { border-top: 1px solid var(--border); }
.net-line-title { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.net-line-sub { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.net-line-when { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.net-line-note { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }

.net-links { display: flex; flex-direction: column; }
.net-linkrow {
  display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; color: var(--ink); text-decoration: none; border-radius: 6px;
}
.net-links > .net-linkrow + .net-linkrow { border-top: 1px solid var(--border); }
.net-linkrow svg { flex: none; width: 18px; height: 18px; stroke: var(--ink-muted); fill: none; stroke-width: 36; }
.net-linkrow-label { flex: none; max-width: 60%; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: normal; overflow-wrap: break-word; }
.net-linkrow-host { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-muted); white-space: normal; overflow-wrap: break-word; }

/* Vouches: one sentence each, under the skill it is for. */
.net-vouches { display: flex; flex-direction: column; gap: 14px; }
.net-vouch-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.net-vouch-skill { font-size: 14px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.net-vouch { padding-left: 12px; border-left: 2px solid var(--ink); min-width: 0; }
.net-vouch.hidden { border-left-color: var(--border); }
.net-vouch.hidden .net-vouch-how { color: var(--ink-muted); }
.net-vouch-how { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.net-vouch-foot { display: flex; align-items: center; gap: 8px; min-height: 40px; min-width: 0; }
.net-vouch > .net-tag { margin-bottom: 6px; }
.net-vouch-by { flex: 0 1 auto; min-width: 40px; min-height: 40px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-muted); text-align: left; white-space: normal; border-radius: 4px; overflow-wrap: break-word; }
.net-vouch-by:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- fields ---- */
.net-input {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; outline: none;
}
.net-input::placeholder, .net-search-in::placeholder { color: var(--ink-faint); }
.net-input:focus { border-color: var(--ink); }
.net-input:disabled { opacity: 0.5; }
textarea.net-input { resize: vertical; }
.net-select { appearance: auto; padding-right: 8px; }
.net-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.net-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.net-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.net-count { flex: none; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.net-count.over { color: var(--danger); font-weight: 700; }
.net-hint { font-size: 13px; line-height: 1.4; color: var(--ink-muted); }
.net-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.net-pair.wide-second { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 480px) { .net-pair.wide-second { grid-template-columns: minmax(0, 1fr); } }
.net-pair.ends { align-items: end; }
.net-pair.ends > .net-checkrow { min-height: 44px; }
.net-checkrow { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.net-check {
  flex: none; width: 20px; height: 20px; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--ink-muted); border-radius: 5px; background: transparent;
}
.net-check[type='radio'] { border-radius: 50%; }
/* Checked: filled with ink, a ring of the ground kept inside the border so it reads as on in both themes. */
.net-check:checked { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }
.net-check:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.net-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 4px 0 0; padding: 0; border: none; }
.net-group > legend { width: 100%; margin-bottom: 10px; }
.net-group > .net-btn { align-self: flex-start; }
.net-edit-rows { display: flex; flex-direction: column; gap: 12px; }
.net-edit-row { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; }
.net-edit-row-foot { display: flex; justify-content: flex-end; margin: -4px 0 -6px; }
.net-addrow { display: flex; gap: 8px; }
.net-addrow > .net-input { flex: 1; }

.net-search { display: flex; align-items: center; min-height: 44px; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.net-search:focus-within { border-color: var(--ink); }
.net-search-glass { flex: none; display: grid; place-items: center; width: 40px; color: var(--ink-muted); }
.net-search-glass svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 40; }
.net-search-in { flex: 1; min-width: 0; height: 42px; padding: 0 4px 0 0; border: none; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; appearance: none; }
.net-search-in::-webkit-search-cancel-button { display: none; }

/* ---- the feed ---- */
.net-compose { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
textarea.net-compose-text, textarea.net-comment-in { resize: none; }
.net-compose-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.net-compose-row > .net-btn.plain { margin-left: -8px; }
.net-feed { display: flex; flex-direction: column; min-width: 0; }
.net-feed-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.net-feed-foot > .net-err { align-self: stretch; }
.net-post { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; min-width: 0; }
.net-post:first-child { padding-top: 4px; }
.net-post + .net-post { border-top: 1px solid var(--border); }
.net-one > .net-post { padding-top: 0; }
.net-post-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.net-post-head > .net-who { flex: 1 1 0; }
.net-post-head > .net-more { margin-right: -8px; }
.net-post-text { font-size: 15.5px; }
/* A long post shows its first lines; Show more opens the rest. */
.net-post-text.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden; /* preview: a long free-text preview a tap opens in full — the one sanctioned cut */ }
.net-post-more { align-self: flex-start; margin: -8px 0 -4px -8px; }
/* What the code says by itself: set as an entry, not as speech. */
.net-made { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 0 4px 12px; border-left: 2px solid var(--ink); min-width: 0; }
.net-made-line { min-width: 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--ink); font-family: var(--font-display, inherit); overflow-wrap: anywhere; }
.net-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.net-act {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--ink-muted);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.net-act:hover { color: var(--ink); border-color: var(--ink-muted); }
.net-act.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.net-act:disabled { opacity: 0.6; cursor: default; }
.net-thread { display: flex; flex-direction: column; gap: 10px; padding-left: 12px; border-left: 1px solid var(--border); min-width: 0; }
.net-comments { display: flex; flex-direction: column; gap: 12px; }
.net-comment { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.net-comment > .face { margin-top: 6px; }
.net-comment-body { flex: 1; min-width: 0; }
.net-comment-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.net-comment-name { min-width: 40px; min-height: 40px; margin: -9px 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; white-space: normal; border-radius: 4px; overflow-wrap: break-word; }
.net-comment-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.net-comment .net-text { font-size: 14.5px; }
.net-comment > .net-more { margin: -2px -8px 0 0; }
.net-comment-form { display: flex; align-items: center; gap: 8px; }
.net-comment-in { flex: 1; }
.net-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--surface); min-width: 0; }
.net-mini > .net-who { flex: none; width: 100%; }
.net-mini > .net-btn { margin-left: -8px; }

/* ---- jobs ---- */
.net-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.net-toolbar > .net-search { flex: 1 1 100%; }
.net-toolbar > .net-select { flex: 1 1 140px; width: auto; }
.net-jobs { display: flex; flex-direction: column; min-width: 0; }
.net-jobs > .net-job + .net-job { border-top: 1px solid var(--border); }
.net-job { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; min-width: 0; }
.net-job-main { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; gap: 3px; padding: 0; text-align: left; border-radius: 6px; }
.net-job-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.net-job-main:hover .net-job-title { text-decoration: underline; text-underline-offset: 3px; }
.net-job.closed .net-job-title { color: var(--ink-muted); }
.net-job-facts, .net-job-by { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.net-job-by { font-size: 12.5px; color: var(--ink-muted); }
.net-job-mark { font-weight: 700; color: var(--ink); }
.net-job-facts.big { font-size: 15px; }

/* ---- a sheet: everything typed happens in one ---- */
.net-sheet-back { align-items: flex-end; padding: 0; }
.net-sheet {
  display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: min(92vh, 92dvh); min-height: 0;
  border: 1px solid var(--border); border-bottom: none; border-radius: 14px 14px 0 0; background: var(--bg); color: var(--ink); overflow: hidden;
}
.net-sheet.wide { max-width: 640px; }
.net-sheet [hidden] { display: none !important; }
.net-sheet-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border); }
.net-sheet-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--ink); font-family: var(--font-display, inherit); overflow-wrap: anywhere; }
.net-sheet-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
.net-sheet-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.net-sheet-err { flex: none; padding: 0 18px; }
.net-sheet-err > .net-err { margin-bottom: 10px; }
.net-sheet-foot { flex: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
@media (min-width: 600px) {
  .net-sheet-back { align-items: center; padding: 18px; }
  .net-sheet { max-height: min(88vh, 88dvh); border-bottom: 1px solid var(--border); border-radius: 12px; }
}

/* A yes-or-no question (the app's dialog, with this page's buttons). */
.modal.net-ask { max-width: 400px; border-radius: 12px; }
.net-ask-title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.net-ask-body { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.net-ask-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---- a wide screen: the page takes the room, in two columns ---- */
@media (min-width: 900px) {
  body[data-page='network'] .app-shell { max-width: 1040px; }
  .net-page { max-width: 940px; }
  .net-tabs { max-width: 420px; }
  .net-tab { flex: 0 1 auto; padding: 0 18px; }
  .net-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
  .net-cols.one { grid-template-columns: minmax(0, 1fr); }
  .net-cols > .net-side.first { order: 2; }
  .net-side.wide-only { display: flex; }
  /* The narrow column: a person's lines may take two rows before they are cut, and a button stays beside its person. */
  .net-side .net-row > .net-who { flex-basis: 150px; }
  .net-side .net-who-sub { white-space: normal; display: block; overflow-wrap: break-word; }
  .net-cols.one .net-rows, .net-found .net-rows.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .net-cols.one .net-rows > *, .net-found .net-rows.grid > * { border-top: none; border-bottom: 1px solid var(--border); }
  .net-toolbar > .net-search { flex: 1 1 320px; }
  .net-toolbar > .net-select { flex: 0 0 180px; }
  .net-one { max-width: 640px; }
}
@media (max-width: 380px) {
  .net-card { padding: 14px; }
  .net-card-face { width: 60px; height: 60px; }
  .net-card-name { font-size: 22px; }
  .net-note { margin-left: 0; }
}
