/* A quiet instrument. One dim phosphor hue, in steps; amber only for "you have
   not seen this yet". Severity is size, and harm's colour from src/pipeline/harm.ts on
   the map's marks and the first icon of a row. The one other colour is each tag's icon,
   its own hue from src/pipeline/tags.ts, small so it can be told apart. */

:root {
  color-scheme: dark;
  --surface: #0a0e0d;
  --raised: #0f1513;
  --hairline: #1d2724;
  --hairline-strong: #2b3834;
  --ink: #d3ded8;
  --ink-2: #9db0a7;
  --ink-3: #7b8e85;
  --phosphor: #7fd8b0;
  --unseen: #dcae62;
  --official: #9be7c4;
  --outlets: #62b896;
  --single: #438a70;
  --social: #2f6451;
  --font: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --size: 12px;
  --gap: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font: var(--size) / 1.45 var(--font);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--phosphor);
}

:focus-visible {
  outline: 1px solid var(--phosphor);
  outline-offset: 1px;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

time {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-3);
}

.plain {
  color: var(--ink-2);
  max-width: 78ch;
}

/* Top bar */
.bar {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.brand {
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--phosphor);
}

.views {
  display: flex;
  gap: 12px;
  color: var(--ink-3);
}

.views .on {
  color: var(--ink);
  border-bottom: 1px solid var(--phosphor);
}

.status {
  display: flex;
  gap: 16px;
  color: var(--ink-3);
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.status .alert {
  color: var(--unseen);
}

.offline .status::before {
  content: "CANNOT REACH SERVER ·";
  color: var(--unseen);
}

.clock {
  color: var(--ink-2);
}

/* Statistics strip */
.strip {
  display: grid;
  grid-template-columns: 84px 148px 104px minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(190px, 1fr);
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  height: 112px;
}

.tile-label,
.strip-title {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tile-value {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tile-note {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.25;
}

.strip-chart {
  min-width: 0;
  overflow: hidden;
}

.strip-note {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.3;
  min-width: 0;
}

.strip-note p {
  margin-top: 4px;
}

.strip-note .phone-only {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--ink-2);
  font-size: 11px;
}

.key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.c-official {
  background: var(--official);
}

.c-multiple_outlets {
  background: var(--outlets);
}

.c-single_outlet {
  background: var(--single);
}

.c-social_only {
  background: repeating-linear-gradient(135deg, var(--social) 0 2px, transparent 2px 4px);
  box-shadow: inset 0 0 0 1px var(--social);
}

/* Columns by week */
.weeks {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: calc(100% - 18px);
}

.week {
  flex: 1 1 0;
  max-width: 44px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.week-value {
  text-align: center;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.2;
}

.week-bar {
  height: calc(var(--height) * 0.56);
  min-height: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  max-width: 24px;
  margin: 0 auto;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.week-bar .seg {
  flex: 0 0 auto;
  height: var(--share);
  min-height: 1px;
}

.week-label {
  text-align: center;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 1px;
}

/* Bars by type and place */
.bars {
  display: grid;
  gap: 3px;
  margin-top: 3px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3ch;
  gap: 6px;
  align-items: center;
}

.bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-2);
  font-size: 11px;
}

.bar-track {
  display: block;
}

.bar-fill {
  display: flex;
  gap: 1px;
  width: var(--width);
  height: 9px;
  border-radius: 0 3px 3px 0;
  overflow: hidden;
}

.bar-fill .seg {
  flex: 0 0 auto;
  width: var(--share);
  min-width: 1px;
}

.bar-total {
  text-align: right;
  color: var(--ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-2);
  min-height: 30px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.check input {
  accent-color: var(--phosphor);
  margin: 0;
  width: 13px;
  height: 13px;
}

.pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}

select,
button {
  font: inherit;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 1px 4px;
  max-width: 180px;
}

button {
  cursor: pointer;
}

button.quiet {
  background: none;
  border: 0;
  padding: 0;
  max-width: none;
  color: inherit;
}

.shown {
  color: var(--ink-3);
}

.look {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.look[hidden] {
  display: none;
}

.tabs {
  display: none;
}

/* Desk: feed, map and the list of what the map cannot place */
.board {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.desk {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 1.4fr) minmax(210px, 280px);
  overflow: hidden;
}

.panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hairline);
}

.panel:last-child {
  border-right: 0;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 3px 12px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
  font-size: 11px;
}

.scroll,
.unplaced-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

.day {
  padding: 8px 12px 2px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  font-size: 11px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.event {
  border-left: 2px solid transparent;
}

.event > a {
  display: block;
  padding: 3px 12px 4px 10px;
  border-bottom: 1px solid var(--hairline);
}

.event.unseen {
  border-left-color: var(--unseen);
}

.event.lit > a,
.unplaced-list li.lit a {
  background: var(--raised);
}

.line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
}

.line time {
  color: var(--ink-3);
}

.end {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
  flex: none;
  padding-left: 8px;
}

.title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.k {
  color: var(--ink-3);
  width: 3ch;
}

.k-chg {
  color: var(--phosphor);
}

.unseen .k {
  color: var(--unseen);
}

.f-type {
  color: var(--ink-2);
}

.f-place {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.f-move {
  color: var(--ink);
}

.tag {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.03em;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 0 3px;
  white-space: nowrap;
}

.t-official,
.rel-official {
  color: var(--ink-2);
  border-color: var(--single);
}

.t-multiple_outlets,
.rel-outlet,
.rel-outlet_account {
  color: var(--ink-2);
}

.t-social_only,
.t-undated,
.rel-anonymous_account {
  border-style: dashed;
}

/* When it happened and when it was reported, apart on every row. */
.when {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-out {
  padding: 6px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.left-out a {
  display: block;
}

.left-out b {
  color: var(--ink-2);
  font-weight: 400;
}

.group-note {
  padding: 0 12px 6px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.35;
  border-bottom: 1px solid var(--hairline);
}

.day.group {
  margin-top: 10px;
  border-top: 1px solid var(--hairline-strong);
  color: var(--ink-2);
}

.tally {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll th,
.table-scroll td {
  white-space: nowrap;
  overflow-wrap: normal;
}

.empty {
  padding: 16px 12px;
  color: var(--ink-3);
}

/* Map */
.map {
  aspect-ratio: auto;
}

.scope {
  flex: 1;
  min-height: 0;
  position: relative;
}

.scope svg {
  display: block;
  width: 100%;
  height: 100%;
}

.coast {
  fill: none;
  stroke: #3d5149;
  stroke-width: 1.5;
}

.river {
  fill: none;
  stroke: #24332e;
  stroke-width: 1.2;
}

.freeway {
  fill: none;
  stroke: #24332e;
  stroke-width: 1.2;
}

.ring {
  fill: none;
  stroke: #1b2a25;
  stroke-width: 1;
}

.axis {
  stroke: #15201d;
  stroke-width: 1;
}

.ring-label,
.place-label {
  fill: #8fa299;
  font-size: 13px;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3px;
  pointer-events: none;
}

.ring-label {
  fill: #5f7168;
  font-size: 12px;
}

.mark {
  cursor: pointer;
}

.mark .hit {
  fill: transparent;
  stroke: none;
}

.mark.solid circle:not(.hit),
.mark.solid rect {
  fill: var(--phosphor);
  stroke: var(--surface);
  stroke-width: 1.5;
}

.mark.hollow circle:not(.hit),
.mark.hollow rect {
  fill: var(--surface);
  stroke: var(--phosphor);
  stroke-width: 1.5;
}

/* Harm is the mark's colour, from src/pipeline/harm.ts; hollow is still social only. */
.mark.solid.h-died circle:not(.hit),
.mark.solid.h-died rect {
  fill: var(--died);
}

.mark.solid.h-injured circle:not(.hit),
.mark.solid.h-injured rect {
  fill: var(--injured);
}

.mark.hollow.h-died circle:not(.hit),
.mark.hollow.h-died rect {
  stroke: var(--died);
}

.mark.hollow.h-injured circle:not(.hit),
.mark.hollow.h-injured rect {
  stroke: var(--injured);
}

.mark.lit circle:not(.hit),
.mark.lit rect,
.mark:hover circle:not(.hit),
.mark:hover rect {
  stroke: var(--ink);
  stroke-width: 2.5;
}

.mark.lit,
.mark:hover {
  opacity: 1;
}

.mark.unseen circle:not(.hit),
.mark.unseen rect {
  stroke: var(--unseen);
  stroke-width: 2.5;
}

.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 12px;
  padding: 3px 12px;
  color: var(--ink-3);
  font-size: 10px;
  border-top: 1px solid var(--hairline);
}

.map-key span {
  white-space: nowrap;
}

.map-key i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  background: var(--phosphor);
}

.map-key i.dot {
  border-radius: 50%;
}

.map-key i.hollow {
  background: none;
  box-shadow: inset 0 0 0 1px var(--phosphor);
}

.map-key i.h-died {
  background: var(--died);
}

.map-key i.h-injured {
  background: var(--injured);
}

.map-key i.diamond {
  transform: rotate(45deg) scale(0.85);
}

.attribution {
  margin-left: auto;
}

.ranges {
  display: inline-flex;
  gap: 8px;
  color: var(--ink-3);
  margin-left: auto;
}

.ranges .on {
  color: var(--ink);
  border-bottom: 1px solid var(--phosphor);
}

/* Beside the map */
.unplaced-list li {
  border-bottom: 1px solid var(--hairline);
}

.unplaced-list a {
  display: block;
  padding: 3px 10px 4px;
}

.unplaced-list .title {
  color: var(--ink-2);
  font-size: 11px;
}

.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  max-width: 360px;
  padding: 4px 7px;
  background: #16201d;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-size: 11px;
  pointer-events: none;
}

.tip[hidden] {
  display: none;
}

/* A tag's icon, in the tag's own colour, set on the icon itself. A row shows icons alone. */
.ti {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  vertical-align: -0.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-marks {
  display: inline-flex;
  align-self: center;
  gap: 5px;
}

.tag-mark {
  display: inline-flex;
  -webkit-touch-callout: none;
  user-select: none;
}

.tag-label {
  white-space: nowrap;
}

/* An event's profile: three rising bars filled to its level, solid and brighter the
   higher it is, so it never reads as a tag icon. From profile-mark.ts. */
.pm-bars {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.15em;
  fill: currentColor;
}

.pm-bars .pm-off {
  opacity: 0.25;
}

.pm {
  display: inline-flex;
  align-self: center;
  -webkit-touch-callout: none;
  user-select: none;
}

.pm-low {
  color: var(--ink-3);
}

.pm-medium {
  color: var(--ink-2);
}

.pm-high {
  color: var(--ink);
}

.bar-fill.pm-fill {
  background: var(--ink-2);
}

.coverage-table.profile-table {
  max-width: 150ch;
}

/* Titles and reasons are long, so they wrap here, where other tables keep to one line. */
.table-scroll .profile-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
}

.table-scroll .profile-table .num {
  padding-right: 14px;
  white-space: nowrap;
}

.profile-table td:nth-child(2) {
  width: 42%;
}

.profile-table .pm {
  margin-right: 4px;
}

.tag-label .ti,
.bar-label .ti,
.pick .ti {
  margin-right: 0.35em;
}

.tag-label + .tag-label {
  margin-left: 1.2em;
}

.pick .ti {
  margin-left: 0.35em;
  margin-right: 0;
}

/* The name a long press on an icon shows, from assets/tag-tip.js. */
.tag-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  padding: 4px 7px;
  background: #16201d;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-size: 11px;
  pointer-events: none;
}

.tag-tip[hidden] {
  display: none;
}

/* Incident page */
.incident-page,
.stats-page {
  padding: 10px 12px 40px;
  max-width: 1560px;
  margin: 0 auto;
}

.back {
  color: var(--ink-3);
  margin-bottom: 8px;
}

h1 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 90ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  margin: 12px 0 8px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.facts dt {
  color: var(--ink-3);
  font-size: 11px;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  margin-top: 12px;
}

.block {
  margin-bottom: 20px;
}

.block h2,
.stat-block h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 3px;
  margin-bottom: 8px;
}

.summary {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  max-width: 78ch;
}

q {
  color: var(--ink-2);
  quotes: "“" "”";
  overflow-wrap: anywhere;
}

.cite {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  color: var(--ink-3);
  font-size: 11px;
}

.cite a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.changes li,
.sources li,
.signals li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 2px;
}

.changes .line {
  white-space: normal;
  flex-wrap: wrap;
}

.source-title {
  color: var(--ink);
}

details summary {
  color: var(--ink-3);
  font-size: 11px;
  cursor: pointer;
}

.table-view {
  margin-top: 8px;
}

.body-text {
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 78ch;
  margin-top: 4px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 4px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 3px 10px 3px 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
  overflow-wrap: anywhere;
}

thead th {
  color: var(--ink-3);
  font-size: 11px;
}

.claim {
  opacity: 0.72;
}

.person {
  border: 1px solid var(--hairline);
  background: var(--raised);
  padding: 8px 10px;
  margin-top: 10px;
}

.person header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.person h3 {
  font-size: 13px;
  font-weight: 500;
}

.values {
  table-layout: fixed;
}

.values th {
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap;
  width: 15ch;
}

.values .value {
  color: var(--ink);
  width: 24%;
}

.said {
  display: grid;
  gap: 1px;
}

.said q {
  font-size: 11px;
}

.more li {
  padding: 3px 0;
  border-top: 1px solid var(--hairline);
}

.more q {
  display: block;
}

.pictures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.pictures figure {
  margin: 0;
  width: 150px;
  font-size: 11px;
  color: var(--ink-2);
}

.pictures img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
}

.pictures figcaption {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* Statistics page */
.lead {
  margin-bottom: 8px;
  color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 12px 0;
}

.stat-block .weeks {
  height: 240px;
}

.stat-block .week-bar {
  height: calc(var(--height) * 0.84);
}

.stat-block .bar-row {
  margin-bottom: 2px;
}

.stat-block.wide {
  margin: 16px 0;
}

.stat-block .plain {
  margin-top: 8px;
}

.coverage-headline {
  color: var(--ink);
  font-size: 13px;
  max-width: 78ch;
}

.coverage h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 14px 0 4px;
}

.coverage-notes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 78ch;
  color: var(--ink-2);
}

.coverage-notes li {
  margin-bottom: 4px;
  padding-left: 12px;
  text-indent: -12px;
}

.coverage-notes li::before {
  content: "· ";
  color: var(--ink-3);
}

.coverage-notes a,
a.inline {
  color: var(--phosphor);
}

.coverage-table {
  max-width: 78ch;
  margin-top: 10px;
}

.coverage-table .num {
  text-align: right;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 0;
}

.coverage-table .sub {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
}

.coverage-table .share {
  color: var(--ink);
}

/* The label wraps so that SHARE, the point of the table, stays on a phone's screen. */
.coverage-table .tag {
  white-space: nowrap;
}

/* Laptops: give the strip less to carry */
@media (max-width: 1320px) {
  .strip {
    grid-template-columns: 76px 144px 96px minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  }

  .strip-note {
    display: none;
  }

  .controls select {
    max-width: 120px;
  }
}

@media (max-height: 760px) {
  .strip {
    height: 92px;
  }

  .tile-value {
    font-size: 24px;
    line-height: 1.1;
  }

  .tile-note {
    font-size: 10px;
    line-height: 1.15;
  }

  .strip .bar-row:nth-child(n + 4) {
    display: none;
  }
}

/* Phones: one thing at a time, chosen by tabs */
@media (max-width: 820px) {
  html {
    --size: 13px;
  }

  .board {
    height: 100dvh;
  }

  .bar {
    flex-wrap: wrap;
    gap: 2px 14px;
    padding: 6px 12px;
  }

  .status {
    order: 5;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 0 12px;
    font-size: 11px;
    white-space: normal;
  }

  .clock {
    display: none;
  }

  .board .bar {
    order: 0;
  }

  .board .controls {
    order: 1;
  }

  .board .tabs {
    order: 2;
  }

  .board .strip {
    order: 3;
    display: none;
  }

  .board .desk {
    order: 4;
  }

  /* The filters get their own tab, so the feed keeps the screen. */
  .board .check,
  .board .pick,
  .board .shown {
    display: none;
  }

  .board[data-tab="filters"] .check,
  .board[data-tab="filters"] .pick,
  .board[data-tab="filters"] .shown {
    display: inline-flex;
  }

  .board[data-tab="filters"] .desk {
    display: none;
  }

  .board .controls:has(.look[hidden]) {
    border-bottom: 0;
    min-height: 0;
    padding: 0;
  }

  .map-name {
    display: none;
  }

  .ranges {
    margin-left: 0;
  }

  .board[data-tab="strip"] .strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    flex: 1;
    overflow-y: auto;
    align-content: start;
    gap: 14px 12px;
    border-bottom: 0;
  }

  .board[data-tab="strip"] .strip-chart,
  .board[data-tab="strip"] .strip-note {
    display: block;
    grid-column: 1 / -1;
  }

  .strip-note .phone-only {
    display: block;
  }

  .board[data-tab="strip"] .strip-chart .weeks {
    height: 130px;
  }

  .board[data-tab="strip"] .desk {
    display: none;
  }

  .controls {
    gap: 6px 14px;
    padding: 6px 12px;
  }

  .shown {
    margin-left: 0;
  }

  .look {
    margin-left: 0;
    flex-basis: 100%;
    justify-content: space-between;
  }

  select,
  button {
    min-height: 32px;
    font-size: 13px;
  }

  .check input {
    width: 18px;
    height: 18px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(5, auto);
    border-bottom: 1px solid var(--hairline-strong);
  }

  .tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--ink-3);
    min-height: 40px;
    max-width: none;
  }

  .tabs .on {
    color: var(--ink);
    border-bottom-color: var(--phosphor);
  }

  .desk {
    display: block;
    overflow: hidden;
  }

  .panel {
    display: none;
    height: 100%;
    border-right: 0;
  }

  .desk[data-tab="feed"] .feed,
  .desk[data-tab="map"] .map,
  .desk[data-tab="unplaced"] .unplaced {
    display: flex;
  }

  .scope {
    flex: none;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .event > a {
    padding: 6px 12px 7px 10px;
  }

  .title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .line {
    flex-wrap: wrap;
    row-gap: 0;
    white-space: normal;
  }

  .columns,
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .values th,
  .values .value {
    width: auto;
  }

  .values,
  .values tbody,
  .values tr,
  .values th,
  .values td {
    display: block;
    width: 100%;
  }

  .values tr {
    padding: 4px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .values th:empty {
    display: none;
  }

  .values th,
  .values td {
    border: 0;
    padding: 0;
  }

  .stats .controls {
    flex-wrap: wrap;
  }
}
