:root {
  --ground: #eef1f3; --surface: #fff; --ink: #17212b; --muted: #5b6b7a; --line: #d5dce2;
  --pointer: #0b7a75; --pointer-soft: #d9efed; --warn: #8a5200; --warn-soft: #fcefd3; --bad: #b3261e; --bad-soft: #fbe4e2;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12171c; --surface: #1a2128; --ink: #e4eaef; --muted: #8d9aa6; --line: #2b353f;
    --pointer: #4fc4bc; --pointer-soft: #153532; --warn: #e5b455; --warn-soft: #3a2c10; --bad: #f08a80; --bad-soft: #40201d; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
/* the page itself never scrolls: the company and the conversation each scroll in their own pane */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 14px/1.45 var(--sans); display: flex; flex-direction: column; }
code, pre { font-family: var(--mono); font-size: 13px; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, .file { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 5px 11px; cursor: pointer; }
button:hover, .file:hover { border-color: var(--pointer); }
button.main { background: var(--pointer); border-color: var(--pointer); color: var(--surface); font-weight: 500; }
button:disabled { opacity: .5; cursor: default; }
input, textarea, select { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 6px 9px; min-width: 0; }
:focus-visible { outline: 2px solid var(--pointer); outline-offset: 1px; }
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.none, .note { color: var(--muted); }
.refused { color: var(--bad); white-space: pre-wrap; }
.said { white-space: pre-wrap; }

/* the head */
header { display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
h1 { font: 600 17px var(--mono); letter-spacing: -.02em; }
#pointers { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: baseline; color: var(--muted); }
#pointers:empty { display: none; }
.ptr { color: var(--ink); }
.ptr { white-space: nowrap; font-weight: 500; }
.ptr i { display: inline-block; position: relative; width: 26px; border-top: 1.5px solid var(--pointer); vertical-align: middle; margin: 0 9px 0 7px; }
.ptr i::after { content: ""; position: absolute; right: -3px; top: -4.75px; border: 4px solid transparent; border-left: 6px solid var(--pointer); border-right: 0; }
.ptr code { background: var(--pointer-soft); color: var(--pointer); padding: 1px 6px; border-radius: 3px; font-weight: 500; }
#companies { gap: 6px; }
#companies label { color: var(--muted); font-size: 13px; }
#co, #co-name { padding: 3px 6px; }
#co-name { width: 16ch; }
#co-new[hidden] { display: none; }
#companies button { font-size: 12px; padding: 3px 9px; }
.quiet { color: var(--muted); }
button.sure { border-color: var(--bad); color: var(--bad); }
#co-said { font-size: 13px; }
#me { display: flex; align-items: center; }
#talks { flex: 1; min-width: 0; max-width: 260px; font-size: 13px; }
label.demo { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
#signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 16px; }
#status { display: flex; gap: 14px; margin-left: auto; color: var(--muted); font-size: 13px; }
#status .off { color: var(--warn); }

main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--chat-w, 320px); grid-template-rows: minmax(0, 1fr); }
/* the company: what to look at down the left, and it beside that */
#company { overflow: auto; overscroll-behavior: contain; padding: 0 20px 40px; min-width: 0; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 20px; align-items: start; }
#stage { min-width: 0; }
#tabs { position: sticky; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 0; }
#tabs a { padding: 7px 11px; border-radius: 4px; color: var(--muted); text-decoration: none; font-weight: 500; }
#tabs a:hover { color: var(--ink); }
#tabs a.on { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 var(--pointer); }
#tabs .group { margin: 14px 0 2px; padding: 0 11px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* the bar: of which day and under what the tables are asked, and what says so above them */
#of label { color: var(--muted); font-size: 13px; }
#of input, #of select { padding: 3px 6px; }
#beside { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; padding: 10px 14px; background: var(--warn-soft); color: var(--ink); border: 1px solid var(--warn); border-radius: 4px; }
#beside[hidden] { display: none; }
#beside button { font-size: 12px; padding: 3px 9px; }
/* Home: what needs somebody, job by job */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; max-width: 1100px; }
.home > h2 { font-size: 20px; font-weight: 600; }
.home > .note { margin-top: -12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; background: none; border-bottom: 1px solid var(--line); }
.card h3 { font-size: 15px; font-weight: 600; }
.card h3 small { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.card header a { font-size: 13px; color: var(--pointer); white-space: nowrap; }
.card .item { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.card .item:last-child { border-bottom: 0; }
.card .item > div { min-width: 0; overflow-wrap: anywhere; }
.card .item small { display: block; color: var(--muted); font-size: 13px; }
.card .rest { padding: 9px 14px; color: var(--muted); font-size: 13px; }
.card header + .rest { border-top: 0; }
.tag { flex: none; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--ground); color: var(--muted); }
.tag.bad { background: var(--bad-soft); color: var(--bad); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.good { background: var(--pointer-soft); color: var(--pointer); }
.tag.here { font-weight: 500; margin-left: 4px; }
/* Change: a draft on the line. A lane is a section, and in it its steps; what differs is marked as a comparison marks it */
.change { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.change > h2 { font-size: 20px; font-weight: 600; }
.change > h2 + .note { margin-top: -10px; }
.drafts button.on { background: var(--pointer-soft); border-color: var(--pointer); color: var(--pointer); font-weight: 600; }
/* the line as a map to find one's way by: a dot for each section or step with its name under it, and a curve where
   something goes from one to another. What differs is amber, and work that is open is a ring round the dot */
.crumbs { gap: 8px; }
.crumbs #aslist { margin-left: auto; font-size: 12px; padding: 3px 9px; }
.map { overflow-x: auto; padding: 10px 12px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
/* it shrinks to the room there is, down to where its names can still be read, and is scrolled sideways from there */
.map svg { display: block; margin: 0 auto; max-width: 100%; height: auto; overflow: visible; }
.map + .note { font-size: 13px; margin-top: -8px; }
.map .ar path { fill: none; stroke: var(--muted); stroke-width: 1.4; opacity: .55; }
.map .ar path.c { stroke: var(--warn); stroke-width: 2.6; opacity: 1; } .map .ar path.a { stroke: var(--pointer); stroke-width: 2.6; opacity: 1; } .map .ar path.r { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 5 4; opacity: 1; }
.map .n rect { fill: transparent; }
.map .n circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.8; }
.map .n .ring { fill: none; stroke: var(--pointer); stroke-width: 1.4; }
.map .n.out circle { stroke: var(--muted); stroke-dasharray: 2 2; }
.map .n.changed circle:not(.ring) { fill: var(--warn); stroke: var(--warn); } .map .n.added circle:not(.ring) { fill: var(--pointer); stroke: var(--pointer); } .map .n.removed circle:not(.ring) { fill: var(--bad-soft); stroke: var(--bad); }
.map .n text { font: 500 11.5px var(--sans); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.map .n.out text { fill: var(--muted); } .map .n.changed text { fill: var(--warn); font-weight: 600; } .map .n.removed text { text-decoration: line-through; }
.map .n[data-open], .map .n[data-about] { cursor: pointer; }
.map .n[data-open]:hover rect, .map .n[data-about]:hover rect, .map .n.on rect { fill: var(--pointer-soft); }
.map .n:focus-visible { outline: none; } .map .n:focus-visible rect { stroke: var(--pointer); stroke-width: 2; }
.about { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.about h3 { font-size: 15px; font-weight: 600; } .about h3 small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.about h4 { font-size: 13px; font-weight: 600; margin-top: 4px; }
.about table td { padding: 2px 14px 2px 0; border: 0; }
.about .link + .arc { margin-left: 6px; }
.lanes { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 6px; }
.lane { flex: 1 0 220px; max-width: 340px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.lane.differs { border-color: var(--warn); }
.lane h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lane h3 small { display: block; font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.lane.differs h3 small { color: var(--warn); }
.stepc { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); overflow-wrap: anywhere; }
.stepc small { color: var(--muted); font-size: 12px; }
.stepc.changed { border-color: var(--warn); background: var(--warn-soft); }
.stepc.added { border-color: var(--pointer); background: var(--pointer-soft); }
.stepc.removed { border-color: var(--bad); background: var(--bad-soft); text-decoration: line-through; }
.arc { font-size: 13px; }
.arc.added { color: var(--pointer); } .arc.removed { color: var(--bad); text-decoration: line-through; } .arc.changed { color: var(--warn); font-weight: 500; }
.arc del { color: var(--muted); font-weight: 400; margin-left: 4px; }
.lane details { font-size: 13px; color: var(--muted); }
.lane details summary { cursor: pointer; }
.lane details p { margin-top: 4px; }
.lane .gives { font-size: 12px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 6px; }
.lane .gives span { color: var(--muted); }
.would { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.would > h3, .lines h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.would .table:first-of-type { margin-top: 12px; }
.answers { display: grid; gap: 8px; margin-top: 10px; padding: 10px 12px; background: var(--ground); border-radius: 4px; }
.answers input { flex: 1 1 200px; }
.lines pre { margin: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; }
.card .item a { color: inherit; }
/* a job's own screen: the same cards, all of what they have; Buy as what is to order beside what is on order */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.pipeline > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.stage { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.home > .note a { color: var(--pointer); }
.find label { color: var(--muted); font-size: 13px; }
.find input { flex: 0 1 280px; }
.card .scroll { overflow-x: auto; padding: 4px 14px 8px; }
.card .scroll table { width: 100%; }
.card .scroll del { color: var(--muted); margin-left: 6px; }
.card .scroll tr.added td { background: var(--pointer-soft); } .card .scroll tr.changed td { background: var(--warn-soft); }
.home .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
#ran { margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pointer); border-radius: 4px; }
#shut { float: right; padding: 2px 8px; font-size: 12px; }

/* tables: every answer is one */
.table { margin-top: 22px; overflow-x: auto; }
.table h2, .empty h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.table h2 small { font-weight: 400; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 4px 18px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: pre-wrap; }
th { font-weight: 500; color: var(--muted); font-size: 13px; }
th.n, td.n { text-align: right; }
/* a table drawn line under line: what stands under a line stands in from it */
td.deep { padding-left: calc(var(--level, 0) * 20px); }
tr[data-level="0"] td.deep { font-weight: 600; }
/* a comparison: a row that is new, gone or other than it was, and in it the cell that changed with what it was */
.compared td.sign { width: 1.5em; padding-right: 8px; font-family: var(--mono); font-weight: 600; text-align: center; }
.compared tr.added td { background: var(--pointer-soft); } .compared tr.added td.sign { color: var(--pointer); }
.compared tr.removed td { background: var(--bad-soft); color: var(--muted); } .compared tr.removed td.sign { color: var(--bad); }
.compared tr.removed td:not(.sign) { text-decoration: line-through; }
.compared tr.changed td.sign { color: var(--warn); }
.compared td.moved { background: var(--warn-soft); }
.compared del { color: var(--muted); margin-left: 6px; }
.compared td { padding-left: 6px; } .compared td.deep { padding-left: calc(var(--level, 0) * 20px + 6px); }
.turn { margin: -2px 0 8px; font-size: 13px; }
th, td.word { white-space: nowrap; }
td.warn { color: var(--warn); } td.bad { color: var(--bad); }
td.warn::before, td.bad::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.empty { margin-top: 48px; max-width: 46ch; display: grid; gap: 12px; justify-items: start; }
#reader { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
#reader[hidden] { display: none; }
#reader label, #from { color: var(--muted); }
#which { padding: 4px 6px; }
#source { margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; line-height: 1.5; tab-size: 2; }
#source:empty { display: none; }
#source mark { display: inline-block; min-width: 100%; background: var(--pointer-soft); color: inherit; box-shadow: -14px 0 var(--pointer-soft), -17px 0 var(--pointer); }
#changes:empty { display: none; }
#changes .table { margin-top: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.jump + .none { margin-top: 8px; }
.jump button { font-size: 13px; padding: 3px 9px; }
.jump small { color: var(--muted); font-variant-numeric: tabular-nums; }
.table { scroll-margin-top: 60px; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 80ch; cursor: pointer; }
.clamp.open { display: block; }
td .more { margin-top: 0; white-space: nowrap; }
.link { border: 0; background: none; padding: 0; color: var(--pointer); text-align: left; font-weight: 500; }
.link:hover { text-decoration: underline; }
a.file { color: var(--pointer); font-family: var(--mono, 'IBM Plex Mono', monospace); text-decoration: none; }
a.file:hover { text-decoration: underline; }
.more { margin-top: 8px; font-size: 12px; padding: 3px 9px; color: var(--muted); }

/* the agent */
#chat { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); border-left: 1px solid var(--line); }
#grip { position: absolute; z-index: 2; top: 0; bottom: 0; left: -4px; width: 7px; cursor: col-resize; touch-action: none; }
#grip:hover, #grip:focus-visible, .dragging #grip { background: var(--pointer); opacity: .5; outline: 0; }
.dragging { cursor: col-resize; user-select: none; }
#chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#chat-head h2 { font-size: 15px; }
#chat-head .bar { gap: 6px; }
#chat-head button { font-size: 12px; padding: 3px 9px; }
#messages { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 100%; min-width: 0; }
.msg.user { align-self: flex-end; background: var(--pointer-soft); padding: 7px 11px; border-radius: 10px 10px 2px 10px; white-space: pre-wrap; max-width: 88%; overflow-wrap: anywhere; }
.msg .said { white-space: normal; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.msg .said :is(h3, h4, h5, h6) { font-size: 14px; font-weight: 600; }
.msg .said :is(ul, ol) { margin: 0; padding-left: 20px; }
.msg .said pre, .step pre { margin: 0; padding: 8px 10px; background: var(--ground); border-radius: 4px; overflow-x: auto; font-size: 12px; line-height: 1.4; }
.msg .said :not(pre) > code { background: var(--ground); padding: 0 4px; border-radius: 3px; }
.msg .said table { display: block; overflow-x: auto; font-size: 13px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; margin-bottom: 8px; }
.step { min-width: 0; }
.steps:empty { display: none; }
.step summary { cursor: pointer; list-style: none; display: flex; gap: 7px; align-items: baseline; color: var(--muted); }
.step summary::-webkit-details-marker { display: none; }
.step summary::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pointer); }
.step.failed summary::before { background: var(--bad); }
.step.running summary::before { background: var(--warn); animation: pulse 1s ease-in-out infinite; }
.step summary code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.step[open] summary code { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.step pre { margin: 4px 0 6px 14px; max-height: 320px; overflow: auto; }
.working { color: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .working, .step.running summary::before { animation: none; } }
.hello { display: grid; gap: 8px; color: var(--muted); }
.hello button { text-align: left; color: var(--ink); line-height: 1.35; padding: 8px 11px; }
#say { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 8px; }
#ask { resize: none; width: 100%; }
#say .bar { justify-content: space-between; }
.file { font-size: 12px; color: var(--muted); padding: 4px 9px; }
#attached { font-size: 12px; color: var(--muted); cursor: pointer; }

#panes { display: none; }

/* a phone: one pane at a time, the company or the agent, picked at the foot. Each scrolls in itself, and a wide table scrolls sideways */
@media (max-width: 700px) {
  /* the page is as tall as what shows, and held there: with the keyboard up the box to type in comes up with it and the rest stays where it is */
  body { position: fixed; inset: 0 0 auto 0; height: var(--shows, 100dvh); }
  header { padding: 8px 12px; gap: 6px 10px; }
  #companies label, #status span:first-child { display: none; }
  #co { max-width: 40vw; }
  #status { font-size: 12px; }
  main { grid-template-columns: minmax(0, 1fr); }
  main:not(.agent) #chat, main.agent #company { display: none; }
  #company { padding: 0 12px 24px; display: block; }
  #tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; background: var(--ground); border-bottom: 1px solid var(--line); }
  #tabs .group { display: none; }
  #tabs a.on { box-shadow: inset 0 -2px var(--pointer); }
  #of label { font-size: 12px; }
  .lanes { flex-direction: column; }
  .lane { flex: none; max-width: none; width: 100%; }
  #chat { border-left: 0; }
  #grip, #wide { display: none; }
  #tabs { gap: 2px; padding: 8px 0; }
  #tabs a { flex: none; text-align: center; padding: 6px 10px; }
  .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .jump button { flex: none; }
  td:not(.word):not(.n) { min-width: 15ch; }
  .clamp { max-width: 70vw; }
  input, textarea, select { font-size: 16px; }
  #messages { padding: 12px; }
  #say { padding: 8px 12px 10px; }
  #panes { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  #panes button { border: 0; border-radius: 0; background: none; padding: 12px 0; font-weight: 500; color: var(--muted); }
  #panes button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 2px var(--pointer); }
  #news { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pointer); margin-left: 6px; vertical-align: middle; }
  #news[hidden] { display: none; }
  .typing #panes { display: none; }
}
.note.bad { color: var(--bad); }

/* the support view: the conversations on the left, one of them on the right */
main#support { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.6fr); gap: 0; height: calc(100vh - 53px); }
#support > section { overflow: auto; padding: 16px 20px; }
#support #list { border-right: 1px solid var(--line); }
#support .scroll { overflow-x: auto; }
#support table { width: 100%; border-collapse: collapse; font-size: 13px; }
#support th, #support td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
#talks tbody tr { cursor: pointer; }
#talks td, #audit td:first-child { white-space: nowrap; }
#talks td:nth-child(4) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
#talks tbody tr:hover, #talks tbody tr.on { background: var(--surface); }
#support td.warn { color: var(--warn); font-weight: 600; }
#support td.bad, #support .bad { color: var(--bad, #b42318); font-weight: 600; }
#support .note { color: var(--muted); font-size: 13px; }
#support .turn { margin: 18px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
#support .log .msg { margin: 8px 0; }
#support .log pre { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font-size: 12px; }
#support #filter input { min-width: 0; flex: 1; }
header .where { color: var(--muted); }
header a.back { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { main#support { grid-template-columns: 1fr; height: auto; } #support #list { border-right: 0; border-bottom: 1px solid var(--line); } }

/* The page a terminal is approved on: one narrow column in the middle. Every other main is the company beside the
   agent, two columns of a grid, which this one is not. */
body[data-own="cli"] { overflow-y: auto; }
main#approve { display: block; flex: none; box-sizing: border-box; width: 100%; max-width: 480px; margin: 10vh auto 0; padding: 0 20px 40px; }
#approve h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
#approve p { margin: 10px 0; }
#approve .code { font-family: var(--mono); font-size: 28px; letter-spacing: 3px; text-align: center; white-space: nowrap; margin: 16px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
#approve .bar { margin-top: 20px; display: flex; gap: 16px; align-items: center; }
#approve a.back { font-size: 13px; color: var(--muted); }
/* what is done from the page: a button at the end of what it is of, and the line it would run, opened under it */
.card .item .do { margin-left: auto; flex: none; align-self: center; }
.act, .move, .order { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.act { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--ground); }
.act code { font-family: var(--mono, ui-monospace, monospace); font-size: 13px; overflow-wrap: anywhere; }
.act label, .move label, .order label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.act input { width: 130px; }
.act .refused { flex-basis: 100%; }
.move { background: var(--ground); }
.order input[name="qty"] { width: 90px; }
.order input[name="for"] { flex: 1 1 160px; }
.card .would { margin: 12px 14px; }
.card .would .bar { margin-top: 10px; }
.card .sub { padding: 7px 14px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--ground); border-bottom: 1px solid var(--line); }
.card .sub small { font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 6px; }
/* State: the map with what sits in it. A dot is full where something is there, and red below zero; a step is a square */
.map .n.has circle:not(.ring) { fill: var(--ink); }
.map .n.out.has circle:not(.ring) { fill: var(--muted); }
.map .n.short circle:not(.ring) { fill: var(--bad); stroke: var(--bad); stroke-dasharray: none; }
.map .n text.sub { font-weight: 400; font-size: 10.5px; fill: var(--muted); }
.map .n.short text.sub { fill: var(--bad); font-weight: 600; }
.map .n rect.sq, .map .n[data-about]:hover rect.sq, .map .n.on rect.sq { fill: var(--surface); stroke: var(--ink); stroke-width: 1.8; }
.map .n.changed rect.sq { stroke: var(--warn); }
.about table th { padding: 2px 14px 2px 0; border: 0; font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; }
.about table th.n, .about table td.n { text-align: right; }
.about tr.removed td { color: var(--bad); }
.about .card { margin: 4px 0; }
.about .act { border-radius: 4px; border-bottom: 0; }
tr.acting td { padding: 0; }
.state .scroll td .do { padding: 2px 8px; font-size: 12px; }
.map .n.lack text.sub { fill: var(--warn); font-weight: 600; }
.map .n.out.has circle:not(.ring) { stroke-dasharray: none; }
.state .crumbs { min-height: 0; }
.crumbs .note { font-size: 13px; }
.state .crumbs:empty { display: none; }
.map .n.on text:not(.sub) { font-weight: 700; }

/* the review: a menu for what is rarely done, a bigger map where it says how many, an answer said before its tables */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 1px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); line-height: 1.4; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--pointer); color: var(--ink); }
.menu > div { position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); white-space: nowrap; flex-wrap: nowrap; }
.map.big .n text { font-size: 12.5px; }
.map.big .n text.sub { font-size: 11.5px; }
.card .item.found { background: var(--pointer-soft); transition: background .3s; }
.card .item small a, .points a, .card .item code a { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.card .item code { font-size: 13px; overflow-wrap: anywhere; }
.card .item .link b { color: var(--pointer); }
.would .verdict { font-size: 15px; font-weight: 600; }
.would .verdict.good { color: var(--pointer); } .would .verdict.bad { color: var(--bad); }
.would .points { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.would details { margin-top: 12px; } .would details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.note.also .link { font-size: inherit; }
#reader .bar a { font-size: 13px; color: var(--pointer); }
.drafts a { margin-left: auto; font-size: 13px; color: var(--pointer); }
@media (max-width: 700px) {
  #tabs { mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  .card .item .do, .about .do, .act button { min-height: 40px; }
}
