/* metiche board — a live operations board, not a dashboard.
 *
 * The colour system is the product icon: an eye drawn as two graph strokes
 * crossing. Each stroke is one agent's path — one coral, one indigo — and the
 * iris, where they cross, is violet. Cyan spark marks sit outside it.
 *
 * That mark already encodes the whole product, so the board uses it literally
 * rather than decoratively:
 *
 *   coral   #FB345D   one side of a collision — the challenger, the consumer
 *   indigo  #3018AA   the other side — the holder, the producer
 *   violet  #5317FB   THE OVERLAP. Every conflict is violet, because a
 *                     conflict is definitionally where two paths cross.
 *   cyan    #01E3FC   the spark: something needs a person. Reserved for the
 *                     unclaimed contract — the signal with no other side yet.
 *   navy    #180655   the ground everything sits on
 *   white   #FCFCFB   the ink
 *
 * Severity, chosen so it reads at a glance and in greyscale — each step adds
 * weight as well as hue, and each carries its own glyph (○ ● ▲ ◆):
 *
 *   low       navy at low opacity, outline only — recorded, not shouting
 *   medium    cyan outline on a dark ground — a notice
 *   high      coral, filled — one side is about to lose work
 *   critical  violet, solid, white ink, ringed — the paths have crossed
 *
 * Calm when nothing is wrong: the board is navy and white until something
 * earns colour.
 */

:root {
  --coral:  #FB345D;
  --indigo: #3018AA;
  --violet: #5317FB;
  --cyan:   #01E3FC;
  --navy:   #180655;
  --white:  #FCFCFB;

  /* --- dark, the default --------------------------------------------- */
  --bg:        #07021a;
  --bg-rail:   #0b0526;
  --panel:     #120a33;
  --panel-2:   #1a1042;
  --line:      #2a1d5e;
  --line-soft: #1e1449;

  --ink:       #FCFCFB;
  --ink-2:     #b7abe0;
  --ink-3:     #7b6fab;

  /* readable stand-ins: true indigo and true violet are too dark to sit as
     text or thin strokes on a navy ground, so each has an "ink" variant. */
  --indigo-ink: #9282ff;
  --violet-ink: #9b6bff;
  --coral-ink:  #ff5f7f;
  --cyan-ink:   #01E3FC;

  --indigo-bg: #1c1259;
  --coral-bg:  #3a0f22;
  --violet-bg: #241058;
  --cyan-bg:   #062b38;
  --quiet-bg:  #150e38;

  --live:   #9282ff;   /* an agent working: present, not alarming */
  --idle:   #3a2d6b;
  --accent: #9282ff;   /* interactive */

  --sev-low:        #8073b8;
  --sev-low-bg:     #170e3c;
  --sev-low-line:   #2e2266;
  --sev-medium:     var(--cyan);
  --sev-medium-bg:  #06263a;
  --sev-medium-line:#0d5f7a;
  --sev-high:       var(--coral-ink);
  --sev-high-bg:    #3a1023;
  --sev-high-line:  #7d1f38;
  --sev-critical-fg:#ffffff;
  --sev-critical:   var(--violet);
  --sev-critical-bg:var(--violet);
  --sev-critical-line: #7c4cff;

  --good:     #b3a6ff;
  --good-bg:  #1c1259;
  --good-line:#3a2a8a;

  /* Washes are for large surfaces — a whole card, a whole table row. They are
     several steps weaker than the badge backgrounds of the same severity,
     because area multiplies saturation and a tinted card should whisper the
     severity that its left edge and badge already state. */
  --wash-medium:   #07202c;
  --wash-high:     #260d18;
  --wash-critical: #160a38;

  --arrive:   #241a5e;   /* the flash on a newly appended log row */
  --hover:    #1a1142;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --r: 6px;
  --shadow: 0 1px 2px #00000055;
}

/* --- light: same hues, inverted ground, darkened brights for contrast --- */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f4f2fb;
    --bg-rail:   #ebe8f7;
    --panel:     #FCFCFB;
    --panel-2:   #f2effc;
    --line:      #d6d0ee;
    --line-soft: #e4e0f4;

    --ink:       #180655;
    --ink-2:     #46397c;
    --ink-3:     #7a71a3;

    --indigo-ink: #3018AA;
    --violet-ink: #4a12e0;
    --coral-ink:  #d1113c;
    --cyan-ink:   #06788c;

    --indigo-bg: #e8e4fb;
    --coral-bg:  #ffe8ed;
    --violet-bg: #ece4ff;
    --cyan-bg:   #e0f8fc;
    --quiet-bg:  #f0edfa;

    --live:   #3018AA;
    --idle:   #c7c0e4;
    --accent: #3018AA;

    --sev-low:        #6a5f96;
    --sev-low-bg:     #f0edfa;
    --sev-low-line:   #dcd6f0;
    --sev-medium:     #06788c;
    --sev-medium-bg:  #e0f8fc;
    --sev-medium-line:#96dce8;
    --sev-high:       #c60d38;
    --sev-high-bg:    #ffe8ed;
    --sev-high-line:  #f8a8ba;
    --sev-critical-fg:#ffffff;
    --sev-critical:   var(--violet);
    --sev-critical-bg:var(--violet);
    --sev-critical-line: #3a0fb8;

    --good:     #3018AA;
    --good-bg:  #e8e4fb;
    --good-line:#c3b8f0;

    --wash-medium:   #f0fbfd;
    --wash-high:     #fff5f7;
    --wash-critical: #f7f3ff;

    --arrive:   #ded6fb;
    --hover:    #f2effc;
    --shadow: 0 1px 2px #18065518;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- chrome */

/* minmax(0, 1fr), not the implicit auto column: an auto track grows to the
 * topbar's min-content width (~1150px with six tabs, the pace picker and both
 * cursors), and overflow:hidden then silently clipped every page to the left
 * third of a phone. The document never scrolled sideways; it just lost the
 * right-hand side of everything.
 *
 * Every child is placed in an explicit row. With only "auto 1fr", a demo
 * board's banner took the 1fr row and the page fell into an implicit
 * content-sized row, so on a short page the banner swelled to fill the
 * screen. A live board has no banner: row 2 is then an empty auto track of
 * zero height and the page still gets the 1fr. Below 1100px .app is a block
 * and these placements do nothing. */
.app { display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: minmax(0, 1fr); height: 100vh; overflow: hidden; }
.app > .topbar { grid-row: 1; }
.app > .demo-banner { grid-row: 2; }
.app > .main { grid-row: 3; }

.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px; height: 52px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: 9px;
  padding-right: 16px; border-right: 1px solid var(--line); height: 100%;
}
.brand .mark { width: 26px; height: 26px; display: block; }
.brand .logo {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: -0.5px; color: var(--ink);
}
.brand .logo .dot { color: var(--coral); }
.brand .team { font-size: 13px; color: var(--ink-2); }
.brand .team b { color: var(--ink); font-weight: 600; }

nav.tabs {
  display: flex; gap: 2px; height: 100%; align-items: stretch;
  min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a {
  display: flex; align-items: center; padding: 0 13px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 500;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
nav.tabs a:hover { color: var(--ink); background: var(--hover); }
nav.tabs a.on { color: var(--ink); border-bottom-color: var(--coral); }
nav.tabs a .n {
  margin-left: 6px; padding: 0 5px; border-radius: 8px;
  font-family: var(--mono); font-size: 10.5px; line-height: 15px;
  background: var(--line); color: var(--ink-2);
}
nav.tabs a .n.hot { background: var(--violet); color: #fff; font-weight: 700; }

.topbar .spacer { flex: 1; }

/* the two cursors this product is organised around */
.cursors { display: flex; gap: 8px; align-items: center; }
.cursor {
  display: flex; align-items: baseline; gap: 6px;
  padding: 3px 9px 3px 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
}
.cursor .k { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.cursor .v { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.cursor.seq .v { color: var(--coral-ink); }
.cursor.rev .v { color: var(--indigo-ink); }
@keyframes tick { 0% { filter: brightness(2.2); } 100% { filter: none; } }
.cursor .v { animation: tick .7s ease-out; }

.conn {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3);
  padding-left: 12px; border-left: 1px solid var(--line);
}
.conn .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* ---------------------------------------------------------------- layout */

.main { display: grid; grid-template-columns: 1fr 336px; overflow: hidden; }
.main.full { grid-template-columns: 1fr; }
.stage { overflow: auto; padding: 16px 18px 28px; }

/* The one loud element. Absent when the team is calm — a status bar that is
 * always there is a status bar nobody reads. */
.alertstrip {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 9px 13px; border-radius: var(--r);
  border: 1px solid var(--line); border-left: 4px solid var(--violet);
  background: linear-gradient(90deg, var(--wash-critical), var(--panel) 65%);
}
.alertstrip.high { border-left-color: var(--coral);
  background: linear-gradient(90deg, var(--wash-high), var(--panel) 65%); }
.alertstrip.medium { border-left-color: var(--cyan);
  background: linear-gradient(90deg, var(--wash-medium), var(--panel) 65%); }
.alertstrip .what { font-weight: 600; font-size: 13px; white-space: nowrap; }
.alertstrip .why { color: var(--ink-2); font-size: 12px; }
.alertstrip .go {
  margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); padding: 3px 10px; border-radius: 5px; background: var(--panel);
}
.alertstrip .go:hover { border-color: var(--accent); }

.calmstrip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 8px 13px; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: var(--quiet-bg);
  color: var(--ink-3); font-size: 12px;
}
.calmstrip .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

/* ---------------------------------------------------------------- lanes */

.lanes {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 1fr); gap: 12px; align-items: start;
}
@media (max-width: 1100px) {
  .lanes { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
  .main { grid-template-columns: minmax(0, 1fr); }
}
/* Grid children default to min-width:auto, so one long status line or path
 * would push a lane wider than its column. They truncate or wrap instead. */
.lanes > *, .lane-body > *, .main > *, .stage > *, .grid2 > *, .runrow > * { min-width: 0; }

.lane { background: var(--bg-rail); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.lane.sev-high { border-color: var(--sev-high-line); }
.lane.sev-critical { border-color: var(--sev-critical-line); }

.lane-head {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; background: var(--panel); border-bottom: 1px solid var(--line-soft);
}
.lane-head .avatar {
  width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  background: var(--indigo-bg); color: var(--indigo-ink);
}
.lane.sev-critical .lane-head .avatar { background: var(--violet); color: #fff; }
.lane.sev-high .lane-head .avatar { background: var(--coral); color: #fff; }
.lane-head .name { font-weight: 600; font-size: 13px; }
.lane-head .meta { margin-left: auto; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

.lane-body { padding: 9px; display: grid; gap: 9px; }

/* ---------------------------------------------------------------- agent card */

.agent {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--idle);
  border-radius: var(--r); padding: 9px 10px 10px; box-shadow: var(--shadow);
}
.agent.working      { border-left-color: var(--indigo-ink); }
.agent.sev-low      { border-left-color: var(--sev-low); }
.agent.sev-medium   { border-left-color: var(--cyan); }
.agent.sev-high     { border-left-color: var(--coral);    background: var(--wash-high); }
.agent.sev-critical { border-left-color: var(--violet);   background: var(--wash-critical); }
.agent.idle { background: var(--quiet-bg); }

.agent-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.agent-head .label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: -0.2px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Shown only when one agent has several live sessions: the key is the one
 * thing that tells two terminals of the same client apart. Secondary, and
 * the first thing to give way when the head is short on room. */
.agent-head .session-key, .session-key {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.agent-head .branch {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--idle); flex: none; }
.pip.live { background: var(--live); }
.pip.stale { background: var(--cyan); }
@keyframes breathe { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.pip.live { animation: breathe 2.6s ease-in-out infinite; }

/* the single most important string on the page */
.statusline { font-size: 13.5px; line-height: 1.35; color: var(--ink); margin: 2px 0 7px; font-weight: 500; }
.agent.idle .statusline { color: var(--ink-3); font-weight: 400; font-style: italic; }

.goal {
  font-size: 11px; color: var(--ink-3); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.intent {
  display: flex; gap: 6px; align-items: flex-start;
  padding: 6px 7px; margin-bottom: 7px;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 5px;
}
.intent .summary { font-size: 12px; color: var(--ink-2); }

.paths { display: grid; gap: 2px; margin-bottom: 7px; }
.path {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
  padding: 1px 5px 1px 4px; border-left: 2px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.path > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.path .mode { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); flex: none; width: 22px; }
/* A contested path is violet: it is literally the overlap in the mark. */
.path.hot-low      { border-left-color: var(--sev-low);    color: var(--sev-low); }
.path.hot-medium   { border-left-color: var(--cyan);       color: var(--cyan-ink);  background: var(--sev-medium-bg); }
.path.hot-high     { border-left-color: var(--coral);      color: var(--coral-ink); background: var(--sev-high-bg); }
.path.hot-critical { border-left-color: var(--violet);     color: var(--violet-ink);background: var(--violet-bg); font-weight: 600; }
.paths .more { font-size: 10px; color: var(--ink-3); padding-left: 10px; }

.badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 7px 1px 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2);
}
.badge .glyph { font-family: var(--mono); font-size: 10px; }
.badge.low      { color: var(--sev-low);    border-color: var(--sev-low-line);    background: var(--sev-low-bg); }
.badge.medium   { color: var(--cyan-ink);   border-color: var(--sev-medium-line); background: var(--sev-medium-bg); }
.badge.high     { color: var(--coral-ink);  border-color: var(--sev-high-line);   background: var(--sev-high-bg); }
.badge.critical { color: var(--sev-critical-fg); border-color: var(--sev-critical-line);
  background: var(--violet); font-weight: 700; }
/* the cyan spark: something has no other side yet and needs a person */
.badge.alert    { color: #04222b; border-color: var(--cyan); background: var(--cyan); font-weight: 700; }
.badge.good     { color: var(--good);   border-color: var(--good-line); background: var(--good-bg); }
.badge.plain    { color: var(--ink-3); }
button.badge    { cursor: pointer; }
.badge.kind     { font-family: var(--mono); font-weight: 500; font-size: 10px; color: var(--ink-3); }
.badge.sideA    { color: var(--coral-ink);  border-color: var(--sev-high-line); background: var(--coral-bg); }
.badge.sideB    { color: var(--indigo-ink); border-color: var(--good-line);     background: var(--indigo-bg); }

.chip {
  display: inline-block; padding: 0 6px; border-radius: 3px;
  font-family: var(--mono); font-size: 10px; line-height: 16px;
  background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip.declared { color: var(--indigo-ink); border-color: var(--good-line); }
.chip.active   { color: var(--coral-ink);  border-color: var(--sev-high-line); }
.chip.done     { color: var(--ink-3); }

/* ---------------------------------------------------------------- timeline */

.rail { background: var(--bg-rail); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.rail-head {
  display: flex; align-items: center; gap: 8px; padding: 0 13px; height: 34px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.rail-head .hint { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 10.5px; }

#timeline { list-style: none; margin: 0; padding: 6px 0 40px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
@keyframes arrive { from { background: var(--arrive); } to { background: transparent; } }
.ev {
  display: grid; grid-template-columns: 46px 1fr; gap: 8px;
  padding: 4px 12px 4px 8px; border-bottom: 1px solid var(--line-soft);
  animation: arrive 1.4s ease-out;
}
.ev .seq { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-align: right; padding-top: 2px; }
.ev .body { min-width: 0; }
.ev .line { font-size: 11.5px; color: var(--ink-2); word-wrap: break-word; }
.ev .who { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.ev .kind { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
/* structural rows are indigo-marked: they are the ones that moved the board */
.ev.structural .seq { color: var(--indigo-ink); font-weight: 600; }
.ev.quiet { opacity: .5; }
.ev.bad { background: var(--wash-critical); }
.ev.bad .line { color: var(--violet-ink); }
.ev.bad .seq { color: var(--violet-ink); }
.ev.good .line { color: var(--good); }
.ev.note .line { color: var(--cyan-ink); }

/* ---------------------------------------------------------------- pages */

.page { max-width: 1180px; }
.page h2 { font-size: 15px; margin-bottom: 3px; }
.page .sub { color: var(--ink-3); font-size: 12px; margin-bottom: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.card.sev-critical { border-left: 4px solid var(--violet); }
.card.sev-high     { border-left: 4px solid var(--coral); }
.card.sev-medium   { border-left: 4px solid var(--cyan); }
.card.sev-low      { border-left: 4px solid var(--sev-low); }
.card.settled      { border-left: 4px solid var(--idle); opacity: .7; }

.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card-head .key { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card .detail { color: var(--ink-2); font-size: 12.5px; margin-bottom: 8px; }

/* a conflict without a suggested action is noise; this is the payload */
.suggest {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent); border-radius: 5px; padding: 8px 10px; margin-bottom: 8px;
}
.suggest .tag { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 700; padding-top: 2px; flex: none; }
.suggest .text { font-size: 12.5px; color: var(--ink); }

/* the two sides of a collision, in the mark's own two colours */
.parties { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.party {
  display: flex; gap: 6px; align-items: baseline;
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--idle); border-radius: 4px; padding: 3px 8px; font-size: 11.5px;
}
.party.sideA { border-left-color: var(--coral);  background: var(--coral-bg); }
.party.sideB { border-left-color: var(--indigo-ink); background: var(--indigo-bg); }
.party .role { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }

.actions { display: flex; gap: 6px; }
.btn {
  font: inherit; font-size: 11.5px; font-weight: 500; padding: 4px 11px;
  border-radius: 5px; cursor: pointer; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--indigo); border-color: var(--indigo-ink); color: #fff; }
.btn.primary:hover { background: var(--violet); }
.btn.ghost { background: transparent; color: var(--ink-3); }
.btn.ghost:hover { color: var(--ink); }

/* ---------------------------------------------------------------- matrix */

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table.matrix { border-collapse: collapse; width: 100%; font-size: 12px; }
table.matrix th, table.matrix td { border-bottom: 1px solid var(--line-soft); text-align: left; }
table.matrix thead th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2); padding: 8px 10px;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
table.matrix thead th.who { text-align: center; min-width: 96px; }
/* the two leading columns; narrowed on a phone, see the 760px block */
table.matrix thead th.col-contract { min-width: 230px; }
table.matrix thead th.col-verdict  { min-width: 240px; }
table.matrix thead th.who .m { display: block; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 600; }
table.matrix thead th.who .a { display: block; font-family: var(--mono); font-size: 9.5px; text-transform: none; color: var(--ink-3); }
table.matrix td { padding: 7px 10px; vertical-align: top; }
table.matrix td.cell { text-align: center; vertical-align: middle; padding: 6px 4px; }
table.matrix tbody tr:hover td { background: var(--hover); }

.rowkey { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.rowkind { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; }

tr.r-unclaimed  td { background: var(--wash-medium); }
tr.r-mismatch   td { background: var(--wash-critical); }
tr.r-contested  td { background: var(--wash-high); }
tr.r-unclaimed  td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
tr.r-mismatch   td:first-child { box-shadow: inset 3px 0 0 var(--violet); }
tr.r-contested  td:first-child { box-shadow: inset 3px 0 0 var(--coral); }
tr.r-converged  td:first-child { box-shadow: inset 3px 0 0 var(--indigo-ink); }
tr.r-unconsumed td:first-child { box-shadow: inset 3px 0 0 var(--idle); }

/* Cells: the two sides get the mark's two colours, and their overlap gets the
 * iris colour. Shape carries it too — a square produces, a circle consumes. */
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.mk.p { background: var(--indigo-bg); color: var(--indigo-ink); border: 1px solid var(--indigo-ink); border-radius: 5px; }
.mk.c { background: var(--coral-bg);  color: var(--coral-ink);  border: 1px solid var(--coral);     border-radius: 50%; }
.mk.b { background: var(--violet);    color: #fff;              border: 1px solid var(--violet);    border-radius: 9px; }
.mk.bad { box-shadow: 0 0 0 2px var(--violet); }
.mk.orphan { background: var(--cyan); color: #04222b; border-color: var(--cyan); }
.mk.none { color: var(--idle); background: transparent; border: 1px dashed var(--line-soft); border-radius: 5px; }

.verdict { display: flex; align-items: center; gap: 7px; }
.verdict .txt { font-size: 11.5px; color: var(--ink-2); }

.diffs { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.diffs li { display: flex; gap: 8px; align-items: baseline; font-size: 11px; font-family: var(--mono); color: var(--ink-2); }
.diffs .f { color: var(--ink); font-weight: 600; }
.diffs .arrow { color: var(--ink-3); }
.diffs .note { font-family: var(--sans); color: var(--ink-3); font-size: 10.5px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 2px 0; font-size: 11px; color: var(--ink-3); }
.legend .item { display: flex; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- empty */

.empty {
  display: grid; place-items: center; gap: 10px; padding: 54px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 10px; background: var(--quiet-bg);
}
.empty .glyph { font-size: 22px; opacity: .55; font-family: var(--mono); }
.empty .title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.empty .hint { font-size: 12px; color: var(--ink-3); max-width: 440px; }
.empty code { font-family: var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 3px; color: var(--ink-2); }

/* ---------------------------------------------------------------- join */

.join { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.join-inner { width: 100%; max-width: 520px; }
.join .brandbig { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.join .brandbig img { width: 46px; height: 46px; }
.join h1 { font-family: var(--mono); font-size: 26px; letter-spacing: -1px; }
.join h1 .dot { color: var(--coral); }
.join .tag { color: var(--ink-3); font-size: 13px; margin-bottom: 22px; }
.join .teamlink {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.join .teamlink:hover { border-color: var(--accent); background: var(--panel-2); }
.join .teamlink .nm { font-weight: 600; font-size: 14px; }
.join .teamlink .sl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.join .teamlink .st { margin-left: auto; text-align: right; flex: none; }
.join .teamlink > span:first-child { min-width: 0; }
.join .teamlink .sl { overflow-wrap: anywhere; }
.join .teamlink .st .sl { white-space: nowrap; }
.join form { display: flex; gap: 8px; margin-top: 18px; }
.join input {
  flex: 1; font: inherit; font-family: var(--mono); font-size: 13px; padding: 9px 12px;
  border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--ink);
}
.join input:focus { outline: none; border-color: var(--accent); }
.join .note { margin-top: 18px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
/* the 404's way back: a whole-row target, not a 15px line of text */
.empty .hint a.nf-link { display: flex; align-items: center; justify-content: center; min-height: 40px; color: var(--accent); }

/* Every page of a demo board says so. One row on a wide screen; below that
 * the sentence wraps and the link drops under it as a 40px target, so the
 * banner grows by one line rather than turning into a block of text. */
.demo-banner {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px;
  margin: 10px 16px 0; padding: 2px 4px 2px 12px;
  border: 1px dashed currentColor; border-radius: 6px; font-size: 13px; line-height: 1.4;
}
.demo-banner .what { flex: 1 1 24em; min-width: 0; padding: 6px 0; }
.demo-banner a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px;
  color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
@media (max-width: 600px) { .demo-banner a { padding-left: 0; } }

/* ---------------------------------------------------------------- misc */

.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 10px; }
.kv { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 11.5px; color: var(--ink-3); }
.kv b { color: var(--ink-2); font-weight: 500; font-family: var(--mono); }
.runlist { display: grid; gap: 6px; }
.runrow {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 12px; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--idle); border-radius: 6px;
}
.runrow.live { border-left-color: var(--indigo-ink); }
.runrow:hover { background: var(--panel-2); }
/* run history: section heads, the counts column, the "Load older" control */
.runs-h { margin: 16px 0 6px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.runrow .runmeta { color: var(--ink-3); font-size: 11px; text-align: right; max-width: 300px; }
.runs-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 4px 0 8px; }
.runs-note { font-size: 12px; color: var(--ink-3); margin: 2px 0 8px; }
.runs-note a { color: var(--accent); }
.page h2.run-h { margin-top: 18px; }
.run-item + .run-item { border-top: 1px solid var(--line-soft); margin-top: 9px; padding-top: 9px; }
@media (max-width: 720px) {
  .runrow .runmeta { text-align: left; max-width: none; }
}
.log { list-style: none; margin: 0; padding: 0; }

/* the cadence control: a setting that changes what the board tells people to
 * do has to be visible, so it lives in the header next to the cursors */
.cadence {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 6px 2px 9px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--bg); cursor: default;
}
.cadence .k { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.cadence:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- graph
 *
 * The entanglement view. The board and the graph are two renderings of the
 * same repaint, shipped together in one board_revision frame; the page's
 * wrapper class decides which one is on screen, so both stay live on one
 * stream and the two SSE event names stay two.
 */
.view-board #graph { display: none; }
.view-graph #board { display: none; }

.gsummary { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.gwrap {
  margin-top: 12px; padding: 8px 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  overflow-x: auto;
}
svg.graph { display: block; min-width: 720px; }

/* edges: the two strokes of the mark */
.ge { stroke-width: 1.6; opacity: .5; }
.ge-sideA { stroke: var(--coral); }
.ge-sideB { stroke: var(--indigo-ink); }
.ge-hot   { stroke-width: 2.6; opacity: .95; }
.ge-alert { stroke: var(--cyan); stroke-width: 2.4; opacity: .9; stroke-dasharray: 7 4; }

/* nodes */
.gsh { stroke-width: 2; }
/* the invisible tap area under a linked node; transparent still takes the pointer */
.ghit { fill: transparent; stroke: none; }
.gn-quiet .gsh  { fill: var(--panel-2); stroke: var(--line); }
.gn-sideA .gsh  { fill: var(--coral-bg);  stroke: var(--coral); }
.gn-sideB .gsh  { fill: var(--indigo-bg); stroke: var(--indigo-ink); }
/* The crossing is always violet — it is the iris of the mark, and a crossing
 * that changed colour with severity would stop being recognisable as one.
 * Severity rides the ring instead: colour and weight around the same node. */
.gn-cross .gsh   { fill: var(--violet); stroke: var(--violet); stroke-width: 3; }
.gn-cross .gring { stroke: var(--violet); stroke-width: 1.5; opacity: .4; }
.gn-sev-low .gring      { stroke: var(--sev-low);  stroke-width: 1.5; opacity: .5; }
.gn-sev-medium .gring   { stroke: var(--cyan);     stroke-width: 2;   opacity: .8; }
.gn-sev-high .gring     { stroke: var(--coral);    stroke-width: 3;   opacity: .95; }
.gn-sev-critical .gring { stroke: var(--violet);   stroke-width: 5;   opacity: 1; }
/* the spark: a stroke with nothing opposite it */
.gn-alert .gsh  { fill: var(--cyan); stroke: var(--cyan); stroke-width: 3; }
.gn-alert .gring { stroke: var(--cyan); }

.gn text { font-family: var(--sans); }
.gl { font-size: 12px; font-weight: 600; fill: var(--ink); }
.gs { font-size: 10.5px; fill: var(--ink-3); }
.gn-quiet .gl { fill: var(--ink-2); font-weight: 500; }
.gn-cross .gl, .gn-alert .gl { font-weight: 700; }
.gn a { cursor: pointer; }
.gn a:hover .gsh { filter: brightness(1.25); }

/* legend swatches — plain boxes, so they cannot drift from the SVG rules */
.legend .sw { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line); background: var(--panel-2); }
.legend .sw.round { border-radius: 50%; }
.legend .sw.a     { background: var(--coral-bg);  border-color: var(--coral); }
.legend .sw.b     { background: var(--indigo-bg); border-color: var(--indigo-ink); border-radius: 3px; }
.legend .sw.cross { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 2px var(--coral); }
.legend .sw.alert { background: var(--cyan);   border-color: var(--cyan); }

/* ---------------------------------------------------------------- narrow
 *
 * Phones and tablets. Same surfaces, same colours; what changes is flow.
 * Rules: the page never scrolls sideways, wide evidence (the contracts matrix,
 * the graph, a long path) scrolls or truncates inside its own box, lanes are
 * one column, and anything tappable is at least 40px tall.
 */

/* long unbroken strings — paths, keys, URLs in a status line — wrap rather
 * than widen their card */
.statusline, .goal, .intent .summary, .card .detail, .suggest .text,
.alertstrip .why, .ev .line, .page h2, .page .sub, .empty .title, .empty .hint,
.party, .runrow, .kv { overflow-wrap: anywhere; }
.intent .chip { flex: none; }
.intent .summary { min-width: 0; }
.card-head { flex-wrap: wrap; row-gap: 6px; }
.card-head .right { flex-wrap: wrap; }
.parties .party { flex-wrap: wrap; max-width: 100%; }
.actions { flex-wrap: wrap; }
.diffs li { flex-wrap: wrap; }
.calmstrip { flex-wrap: wrap; row-gap: 4px; }
.badge { max-width: 100%; }

/* The header: one row on a wide screen. Below that the tabs drop to a row of
 * their own and scroll sideways inside it, instead of dragging the page. */
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; height: auto; column-gap: 14px; row-gap: 0; padding: 0 16px; }
  .brand { height: 48px; }
  .topbar .cadence, .topbar .cursors, .topbar .conn { align-self: center; }
  nav.tabs {
    order: 10; flex: 1 0 100%; height: 44px;
    margin: 0 -16px; padding: 0 8px; border-top: 1px solid var(--line-soft);
  }
}

/* One scrolling page instead of two scrolling panes. Once the timeline rail
 * stacks under the board, a fixed-height app splits a phone screen into two
 * small scroll areas; the document should scroll, and the timeline keeps its
 * own capped box so it can stay pinned to the newest row. */
@media (max-width: 1100px) {
  .app { display: block; height: auto; min-height: 100vh; overflow: visible; }
  .main { display: block; overflow: visible; }
  .stage { overflow: visible; padding: 14px 16px 24px; }
  .rail { display: block; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .rail-head { height: auto; min-height: 34px; padding: 6px 16px; flex-wrap: wrap; }
  #timeline { max-height: 60vh; }
}

@media (max-width: 760px) {
  .alertstrip { flex-wrap: wrap; row-gap: 6px; padding: 9px 12px; }
  .alertstrip .what { white-space: normal; }
  .alertstrip .why { flex: 1 0 100%; }
  .alertstrip .go { margin-left: 0; }

  .badge { white-space: normal; }
  .card { padding: 12px; }
  .empty { padding: 36px 16px; }
  .join { padding: 24px 16px; }

  .runrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  /* The two leading columns are sized for a desktop table; on a phone they
   * would leave no room for the session columns. The table still scrolls
   * inside .matrix-wrap. */
  table.matrix thead th.col-contract, table.matrix thead th.col-verdict { min-width: 150px; }
  /* badge above its sentence, so the sentence gets the column's full width */
  .verdict { flex-wrap: wrap; row-gap: 4px; }

  /* At 720px a 1060-wide drawing put its labels near 7px. Wider, and the
   * graph scrolls sideways inside .gwrap as it already did. */
  svg.graph { min-width: 900px; }
}

@media (max-width: 600px) {
  .brand { flex: 1 0 100%; border-right: 0; padding-right: 0; min-width: 0; }
  .brand .team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar { row-gap: 4px; }
  .topbar .spacer { display: none; }
  .topbar .cursors { margin-left: auto; }
  .topbar .conn { padding-left: 10px; }
  .rail-head .hint { margin-left: 0; }
}

/* Tap targets. Touch screens and anything narrow enough to be one. */
@media (max-width: 1180px), (pointer: coarse) {
  .brand .logo { min-height: 44px; }
  nav.tabs a { min-height: 44px; }
  .cadence { min-height: 40px; padding-top: 0; padding-bottom: 0; }
  .btn { min-height: 40px; padding: 0 14px; }
  .alertstrip .go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; }
  .badges { gap: 6px; }
  a.badge, button.badge { min-height: 40px; padding: 0 10px; }
  .join input, .join .btn { min-height: 44px; }
  .empty .hint a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ---------------------------------------------------------------- viewer
 *
 * Board login (BOARD_LOGIN §5.5). The signed-in indicator sits at the end of
 * the topbar: "signed in as <name>" linking to /account, and a Sign out POST
 * form. Anonymous viewers get a "Sign in" link in the same place. It lives
 * inside .topbar, so the .app grid rows (topbar, demo banner, page) are
 * untouched. */
.who {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding-left: 12px; border-left: 1px solid var(--line); font-size: 12px;
}
.who .who-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--ink-2); }
.who .who-name .k { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.who .who-name b {
  font-weight: 600; color: var(--ink); min-width: 0; max-width: 14em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who .who-name:hover b { color: var(--accent); }
.who form, .join .who form { display: flex; margin: 0; gap: 0; }
.who-btn {
  display: inline-flex; align-items: center; white-space: nowrap; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--ink-2); background: var(--bg);
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px;
}
.who-btn:hover { border-color: var(--accent); color: var(--ink); }

/* /teams, signed in: "Your teams" above the demo recordings */
.join .yours { margin-bottom: 8px; }
.join .yours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.join .yours-head .who { border-left: 0; padding-left: 0; }
.join .yours h2, .join h2.sect { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.join .yours h2.demos-h { margin: 18px 0 10px; }

/* the 404, signed in: the indicator above the brand */
.join .nf-who { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.join .nf-who .who { border-left: 0; padding-left: 0; }
.empty .hint.nf-signin { overflow-wrap: anywhere; }

/* /signin: one state at a time. .empty is display:grid, which would beat the
 * UA's [hidden] rule, and the page's CSP allows no inline style. */
.signin-state[hidden] { display: none; }
.signin .note a.nf-link { color: var(--accent); }

/* /account */
.join .join-inner:has(.sessions) { max-width: 640px; }
.join h2.sect { margin: 4px 0 10px; }
.sessions { list-style: none; margin: 0; padding: 0; }
.sess {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.sess.current { border-color: var(--accent); }
.sess.ended { border-style: dashed; }
.sess.ended .nm { font-weight: 500; color: var(--ink-2); }
.sess .sess-main { flex: 1 1 auto; min-width: 0; }
.sess .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.sess .sl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; }
.join .sess form, .join .acct-actions form { display: block; margin: 0; }
.join .sess .btn, .join .acct-actions .btn { font: inherit; font-size: 12px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

@media (max-width: 1180px) {
  .topbar .who { margin-left: auto; align-self: center; }
  .who .who-name .k { display: none; }
  .who .who-name b { max-width: 10em; }
}

/* Phone: the indicator joins the brand's row, so the pace/cursor row keeps
 * the width it had. The zero-height ::before is a line break: brand and
 * indicator come first (negative order), the break forces everything else
 * onto the next row, and the tabs keep order 10. */
@media (max-width: 600px) {
  .topbar::before { content: ""; order: -1; flex: 0 0 100%; height: 0; }
  .topbar .brand { order: -3; flex: 1 1 0; }
  .topbar .who { order: -2; border-left: 0; padding-left: 0; }
  .who .who-name b { max-width: 7em; }
  .sess { flex-wrap: wrap; }
}

@media (max-width: 1180px), (pointer: coarse) {
  .who-btn, .who .who-name { min-height: 40px; }
  .who-btn { padding: 0 12px; }
}

/* /t/{slug}/invites. The only page on the board that changes anything, and
 * only for a signed-in member. The code panel reuses landing.js's copy button
 * (data-copy), styled here because the board does not load landing.css. */
.page.invites { max-width: 760px; }
.page.invites h2.inv-list-h { margin-top: 22px; }
.page.invites .note { margin: 6px 0 10px; font-size: 12px; color: var(--ink-3); }
.inv-form { display: grid; gap: 12px; }
.inv-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.inv-field { display: grid; gap: 4px; min-width: 0; }
.inv-field .k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.inv-field input, .inv-field select {
  font: inherit; font-size: 13px; width: 100%; min-width: 0; padding: 7px 9px;
  border-radius: 6px; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
}
.inv-field input:focus, .inv-field select:focus { outline: none; border-color: var(--accent); }
.inv-hint { font-size: 12px; color: var(--ink-3); }
.inv-error {
  margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; overflow-wrap: anywhere;
  color: var(--coral-ink); background: var(--sev-high-bg); border: 1px solid var(--sev-high-line);
}
.inv-created { border-left: 4px solid var(--good); }
.inv-created h3 { font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
.inv-created p { margin: 8px 0; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.inv-created .inv-once b { color: var(--ink); }
.inv-created .code { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); overflow: hidden; }
.inv-created .code-head {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; min-height: 36px;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line-soft);
}
.inv-created .code .copy {
  margin-left: auto; min-height: 28px; padding: 2px 11px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 5px;
}
.inv-created .code .copy:hover { border-color: var(--accent); }
.inv-created pre {
  margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.inv-created pre#invite-code { font-size: 22px; font-weight: 700; letter-spacing: .14em; }
.inv-created .inv-done { margin-top: 10px; }
.inv-created .inv-done .btn { display: inline-flex; align-items: center; }
.invites-list { list-style: none; margin: 0; padding: 0; }
.inv {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.inv:not(.state-active) { border-style: dashed; }
.inv:not(.state-active) .nm { font-weight: 500; color: var(--ink-2); }
.inv .inv-main { flex: 1 1 auto; min-width: 0; }
.inv .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.inv .nm > span:first-child { min-width: 0; }
.inv .sl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; }
.inv form { margin: 0; }
@media (max-width: 600px) {
  .inv-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inv-field.inv-label { grid-column: 1 / -1; }
  .inv { flex-wrap: wrap; }
  .inv-created pre#invite-code { font-size: 19px; letter-spacing: .1em; }
}
@media (max-width: 1180px), (pointer: coarse) {
  .inv-field input, .inv-field select { min-height: 44px; }
  .inv-created .code .copy { min-height: 40px; min-width: 72px; }
}
