/* The city map page. A light, familiar map-app arrangement: the city fills the
   viewport and a bar, two panels and a few controls float over it as quiet white
   cards. One blue for what is chosen, amber for what needs attention. */

:root {
  color-scheme: light dark;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --land: light-dark(#e2e7ec, #0f1317);
  --panel: light-dark(#ffffff, #1b2127);
  --ink: light-dark(#111827, #e8edf2);
  --ink-2: light-dark(#4b5563, #b7c1cb);
  --ink-3: light-dark(#536070, #9aa6b2);
  --rule: light-dark(#e5e8ec, #2c343c);
  --fill: light-dark(#f1f3f5, #252d35);
  --field-line: light-dark(#7f8a96, #6b7783);

  --accent: light-dark(#1f5ee0, #8ab4ff);
  --accent-ink: light-dark(#ffffff, #0b1220);
  --accent-wash: light-dark(#e8effd, rgb(138 180 255 / 0.16));
  --accent-line: light-dark(rgb(31 94 224 / 0.4), rgb(138 180 255 / 0.45));

  --warn: light-dark(#92400e, #fcd34d);
  --warn-wash: light-dark(#fef3c7, rgb(245 158 11 / 0.18));
  --warn-line: #f59e0b;
  --ok: light-dark(#166534, #86efac);
  --ok-wash: light-dark(#dcfce7, rgb(34 197 94 / 0.16));
  /* The map's place colours, the same in both themes: src/map/vm/style.rs paints them in
     MapLibre, where a CSS variable cannot reach, so the key repeats them here. */
  --map-ok: #4b6b8a;
  --map-changed: #2563eb;
  --map-bad: #dc2626;
  --map-conflict: #db2777;

  --shadow: 0 1px 2px rgb(15 23 42 / 0.08), 0 8px 24px rgb(15 23 42 / 0.12);
  --shadow-soft: 0 1px 2px rgb(15 23 42 / 0.08), 0 2px 8px rgb(15 23 42 / 0.06);

  --r-card: 16px;
  /* Fixed in both themes on purpose: MapLibre's attribution box is pale in both, and the key's dots repeat the
     map's own marks. */
  --attrib-ring: #0b1220;
  --attrib-halo: #ffffff;
  --dot-core: #ffffff;
  --dot-core-bad: #111827;
  --r-ctl: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad: 16px;
  --bar-h: 64px;
  /* The width of a sidebar's edge tab. */
  --tab-w: 40px;
  --panel-w: 360px;
  /* How far the panels reach in from each side, for what floats between them. */
  --lw: calc(var(--pad) + var(--panel-w));
  --rw: calc(var(--pad) + var(--panel-w));

  /* The drawing of the city. */
  --casing: light-dark(#7d8996, #6a7886);
  --road: light-dark(#ffffff, #3a4550);
  --k-sidewalk: light-dark(#cfd7de, #27303a);
  --k-planting: light-dark(#a5d696, #3c6a39);
  --k-bike: light-dark(#7fd3c3, #2f7468);
  --k-travel: light-dark(#ffffff, #3a4550);
  --k-bus: light-dark(#f2a99b, #8a4b43);
  --k-parking: light-dark(#b9c2cc, #2f3943);
  --k-median: light-dark(#93c98a, #3f7438);
  --k-loading: light-dark(#f6d777, #8a7a2b);
  --k-shoulder: light-dark(#cbd3db, #232b33);
  --k-bikerack: light-dark(#cdd6e2, #46525f);
  --k-bikeshare: light-dark(#b5c7e8, #3f5a85);
  --k-pole: light-dark(#9aa4b0, #75808c);
  --k-busshelter: light-dark(#f6c9bf, #7a4039);
  --k-busstation: light-dark(#eeb8ab, #6d3832);
  --k-bench: light-dark(#d8c8ad, #6e5d48);
  --k-terrace: light-dark(#f1dca0, #7d6a30);
  --k-buffer: light-dark(#bdb8ae, #4d4a45);
  --k-streetlamp: light-dark(#d9dcc0, #5d6148);
  /* The surface materials in 2.5D (street/view/iso/, junction/view/iso/): the typical colour of each material, the same in
     both themes (a material looks like itself), and the two tones of its texture (`-line`, `-alt`). The pavement paint keeps
     its 3:1 against each through its edge (a test in street/view/iso/surface.rs reads these). */
  --mat-asphalt: #3b3f43; /* weathered asphalt, dark grey */
  --mat-asphalt-line: #8a9096;
  --mat-asphalt-alt: #1f2225;
  --mat-concrete: #bdc0c1; /* broom-finished concrete, light grey */
  --mat-concrete-line: #7c8082;
  --mat-concrete-alt: #d9dcdd;
  --mat-permeable: #9a9a95; /* interlocking permeable pavers, mid warm grey */
  --mat-permeable-line: #66665f;
  --mat-permeable-alt: #b6b6ae;
  --mat-brick: #a4523b; /* clay brick, red-brown */
  --mat-brick-line: #d6c4ae;
  --mat-brick-alt: #7f3c2a;
  --mat-grass: #5f8f3e; /* lawn green */
  --mat-grass-line: #3b6a25;
  --mat-grass-alt: #80ae57;
  --mat-planted: #4e4230; /* a bed: dark soil and mulch, the green is the plants */
  --mat-planted-line: #7d8c4a;
  --mat-planted-alt: #2d2318;
  --mat-gravel: #b3aa98; /* crushed stone, greyish beige */
  --mat-gravel-line: #7b7363;
  --mat-gravel-alt: #d3cbba;
  --mat-trees: #6a6358; /* a tree pit: compacted soil and a grate, brown-grey */
  --mat-trees-line: #a79f90;
  --mat-trees-alt: #38332b;
  --mat-rain_garden: #35574a; /* a rain garden: wet dark soil, the cobbles darker and the reeds lighter */
  --mat-rain_garden-line: #8cc4a4;
  --mat-rain_garden-alt: #1f362d;
}

/* A control the keyboard focuses scrolls clear of the sticky bar (src/shell/header.rs keeps its real height). */
html {
  scroll-padding-top: var(--bar-stuck, 0px);
}

:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;

  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px rgb(0 0 0 / 0.5);
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px rgb(0 0 0 / 0.5);
    --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
  }
}

:root[data-inspector="closed"] {
  --lw: 0px;
}
:root[data-notes="closed"] {
  --rw: 0px;
}
:root[data-inspector="closed"] .panel.left,
:root[data-notes="closed"] .panel.right {
  display: none;
}

/* ---- base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--land);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--land);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
/* The first stop of an editor page: out of sight until the keyboard reaches it, then a card above the bar. */
.skip-link {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateY(calc(-100% - 16px));
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.fig {
  font-variant-numeric: tabular-nums;
}
::selection {
  background: var(--accent-wash);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
* {
  scrollbar-color: var(--field-line) transparent;
  scrollbar-width: thin;
}
kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--field-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink-2);
  font: 600 12px/1.5 var(--font);
  text-align: center;
}

/* ---- buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-ctl);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.a-btn-reset,
a.btn {
  text-decoration: none;
}
.btn:hover:not(:disabled) {
  background: var(--fill);
}
.btn:disabled {
  color: var(--ink-3);
  opacity: 0.6;
  cursor: default;
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
}
.btn.quiet:hover {
  background: var(--fill);
  color: var(--ink);
}
.btn.quiet[aria-expanded="true"] {
  background: var(--accent-wash);
  color: var(--accent);
}
.btn-ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- the bar ---------------------------------------------------------------- */

.bar {
  position: fixed;
  z-index: 30;
  top: var(--pad);
  left: var(--pad);
  right: var(--pad);
  height: var(--bar-h);
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 0 12px 0 18px;
  background: var(--panel);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  display: block;
  height: 30px;
  width: auto;
  --logo-a: var(--accent);
}
.search-slot {
  justify-self: center;
  width: 100%;
  max-width: 640px;
}
.surfaces {
  display: flex;
  gap: 2px;
}
.surface {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.surface:hover {
  background: var(--fill);
  color: var(--ink);
}
.surface[aria-current="page"] {
  background: var(--accent-wash);
  color: var(--accent);
}
.surface[hidden] {
  display: none;
}
.top-end {
  display: flex;
  align-items: center;
  gap: 4px;
}
.account,
.session {
  position: relative;
  margin-left: 6px;
}
/* A page that shows its project read-only offers its editing controls disabled (`shared::locked::locked`). */
.read-only-controls {
  display: contents;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* A page that shows its project read-only says so in its top bar (`shell::view::ReadOnlyTag`). */
.read-only-slot {
  display: contents;
}
.read-only-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 6px;
  padding: 5px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.session-box[hidden] {
  display: none;
}
/* While it is not known whether there is anything to sign in to, the box keeps its place, unseen and out of the
   tab order, so the buttons beside it do not move when it appears. */
.session-box.pending {
  visibility: hidden;
}

/* The search: the first thing in the bar, and the largest. */
.search {
  position: relative;
  width: 100%;
}
.search input {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 46px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--land);
  color: var(--ink);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.search input::placeholder {
  color: var(--ink-3);
}
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  -webkit-appearance: none;
}
.search input:hover {
  border-color: var(--ink-3);
}
.search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.search-ico {
  position: absolute;
  left: 15px;
  top: 13px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.bar .search-go {
  display: none;
}
.search-go {
  position: absolute;
  right: 8px;
  top: 8px;
  min-height: 0;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.search-go:hover {
  filter: brightness(0.94);
}
.search-key {
  position: absolute;
  right: 12px;
  top: 12px;
  pointer-events: none;
}
.search-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  max-height: min(64vh, 540px);
  overflow: auto;
  padding: 6px;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.search-pop[hidden],
.search:not(:focus-within) .search-pop {
  display: none;
}
.search-note {
  padding: 8px 10px 6px;
  color: var(--ink-2);
  font-size: 13px;
}
.search-pop li[aria-selected="true"] .place-row {
  background: var(--accent-wash);
}

/* The settings menu. */
.menu {
  position: absolute;
  z-index: 50;
  right: 0;
  top: calc(100% + 12px);
  width: 300px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.menu[hidden] {
  display: none;
}
.menu-h {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

.menu-note {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 13px;
}
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.menu-row:first-of-type {
  border-top: 0;
}
.menu select {
  max-width: 170px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.units {
  display: inline-flex;
  min-inline-size: 0;
  margin: 0;
  border: 0;
  padding: 3px;
  border-radius: 10px;
  background: var(--fill);
}
.unit {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.unit[aria-pressed="true"] {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}
/* Forced colours drop the pressed button's background and shadow: an outline in the system's highlight marks it. */
@media (forced-colors: active) {
  .unit[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
.menu-act {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.menu-foot {
  margin-top: 10px;
  font-size: 13px;
}
/* A target of at least 24 by 24 px (WCAG 2.5.8): the line alone is 16 px tall. */
.menu-foot a {
  display: inline-block;
  min-height: 24px;
  padding: 4px 0;
  box-sizing: border-box;
}
.site-foot {
  position: fixed;
  left: var(--pad);
  bottom: 0;
  z-index: 5;
  height: var(--pad);
  color: var(--ink-3);
  font-size: 12px;
  line-height: var(--pad);
  pointer-events: none;
}

/* ---- the panels ------------------------------------------------------------- */

.panel {
  position: fixed;
  z-index: 20;
  top: calc(var(--pad) + var(--bar-h) + 12px);
  bottom: var(--pad);
  width: var(--panel-w);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel.left {
  left: var(--pad);
}
.panel.right {
  right: var(--pad);
  /* As tall as what it holds, so the map shows beside it. */
  bottom: auto;
  max-height: calc(100% - var(--pad) * 2 - var(--bar-h) - 12px);
}
.panel-head {
  padding: 18px 20px 6px;
}
.panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 12px 12px;
}
.panel.right .panel-body {
  flex: 0 1 auto;
  padding: 14px 20px 12px;
}
.panel-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
}
.street-sub {
  display: none;
}
#street-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.insp-head {
  padding: 10px 8px 4px;
}
.insp-name {
  display: inline;
  margin-right: 8px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.insp-sub {
  display: inline;
  color: var(--ink-3);
  font-size: 13px;
}
.map-hint {
  padding: 2px 8px 8px;
  color: var(--ink-2);
  font-size: 13px;
}
.insp-sec {
  margin-top: 6px;
}
.note-h {
  padding: 12px 8px 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.insp-sec .note-h {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}

/* A place in a list. */
.place-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 120ms var(--ease-out);
  /* a row that is a button, as in a list of places to choose from */
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.place-row:hover,
.place-row.on {
  background: var(--accent-wash);
}
.place-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.place-row b {
  font-size: 15px;
  font-weight: 600;
}
.place-row small {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 13px;
}
.place-row .st {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.place-row .st.bad {
  background: var(--warn-wash);
  color: var(--warn);
}

/* Notes. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 12px 12px 0;
  padding: 3px;
  border-radius: 12px;
  background: var(--fill);
}
.tab {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-selected="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.panel-tab[hidden],
.panel-level[hidden] {
  display: none;
}
.hint {
  padding: 0 8px 6px;
  color: var(--ink-2);
  font-size: 14px;
}
.fine {
  padding: 10px 8px 0;
  color: var(--ink-3);
  font-size: 13px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid var(--rule);
}
.checks li:first-child {
  border-top: 0;
}
/* A selected street: its name, then the button that drops it. The list shares the checks' look, not their icon
   column. */
.checks li.selection-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.checks svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.checks li.bad svg {
  stroke: var(--warn);
}
.checks b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.checks a {
  color: var(--ink);
}
.checks span {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
}
.checks li.bad span {
  color: var(--warn);
}
/* The Area rules panel. An area's row is a button: it selects the area, and the selected one opens its form under it. */
.area-list > li + li {
  border-top: 1px solid var(--rule);
}
.area-list > li.on > .place-row {
  background: var(--accent-wash);
}
.area-list > li.on {
  padding-bottom: 6px;
}
#declare-area {
  margin: 4px 8px 10px;
}
.area-undone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.area-form {
  display: grid;
  gap: 6px;
  padding: 8px 8px 10px;
}
.area-form label {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.area-form input,
.area-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.area-form input::placeholder {
  color: var(--ink-3);
}
.area-form .hint {
  padding: 0;
}
.area-form .btns,
#map-areas .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
#areas-slot > .btns {
  padding: 0 8px 10px;
}
.area-form .note-h {
  padding: 10px 0 0;
  font-size: 14px;
}
/* From the keyboard a corner is placed at the centre of the map: a cross marks it while an outline is drawn,
   in the ink of the page with a halo of its panel colour, so it shows on a light map and a dark one. */
.map-canvas[data-drawing]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
  filter: drop-shadow(0 0 1px var(--panel)) drop-shadow(0 0 1px var(--panel));
}
/* While drawing a press anywhere places a corner, over a street too: the cross beats the pointer hand
   `web/mapcanvas.js` sets on the canvas over a place. */
.map-canvas[data-drawing] .maplibregl-canvas {
  cursor: crosshair !important;
}
.title-block {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px 22px;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--rule);
}
.tb-cell span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.tb-cell b {
  font-size: 15px;
  font-weight: 700;
}

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

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--land);
}
.drawing {
  position: absolute;
  inset: 0;
}
/* The map is MapLibre's; a place that cannot be shown says why over it. MapLibre makes its container
   `position: relative` (`.maplibregl-map`, specificity 0,1,0); this selector (0,2,0) wins, so the map fills
   the drawing. */
.drawing > .map-canvas {
  position: absolute;
  inset: 0;
}
.map-canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.map-canvas-note {
  position: absolute;
  inset: auto 50% 50% auto;
  transform: translate(50%, 50%);
  max-width: 36ch;
  margin: 0;
  padding: 12px 16px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-ctl);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.map-canvas-note[hidden] {
  display: none;
}
/* MapLibre's corners are the map's, which runs under the floating panels: the scale goes beside the left
   panel, above the footer, and the status bar leaves room for it (`.statusbar`). The
   attribution, which opens leftwards into a line of text, stands on the zoom buttons (`.zoom-dock`: three
   44px buttons and two 1px rules), its right edge in line with theirs, clear of the status bar and the Notes.
   Each control keeps MapLibre's own 10px margin. */
.drawing .maplibregl-ctrl-bottom-left {
  left: var(--lw);
  bottom: var(--pad);
}
.drawing .maplibregl-ctrl-bottom-right {
  right: calc(var(--rw) + var(--pad) - 10px);
  bottom: calc(var(--pad) + 3 * 44px + 2px);
}
/* MapLibre's attribution is a pale box over the map in both themes, so the page's ring (light blue in dark) is
   lost on it: a dark ring with a white one outside it is seen on the box and on the map either side. */
.maplibregl-ctrl-attrib a:focus-visible {
  outline: 2px solid var(--attrib-ring);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--attrib-halo);
}
/* The key's dots repeat `style::OK`, `CHANGED`, `BAD` and `CONFLICT`: keep them equal. */
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px var(--field-line);
  vertical-align: -1px;
}
.dot-ok {
  background: var(--map-ok);
}
.dot-changed {
  background: var(--map-changed);
}
.dot-bad {
  background: var(--map-bad);
}
.dot-conflict {
  background: var(--map-conflict);
}
/* The marks the map draws besides the colour (src/map/vm/style.rs): a light dot in a changed junction, a dark one in
   one that needs attention. */
.dot-changed,
.dot-bad {
  position: relative;
}
.dot-changed::after,
.dot-bad::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--dot-core);
}
.dot-bad::after {
  background: var(--dot-core-bad);
}

/* The home page's backdrop: the city drawn as an SVG. */
#map line,
#map circle {
  fill: none;
  stroke-linecap: butt;
}
#map .m-bad {
  stroke: var(--warn-line);
}
#map .m-bad-disc {
  fill: var(--warn-line);
  fill-opacity: 0.35;
  stroke: none;
}
#map .m-out {
  stroke: var(--casing);
}
#map .m-walk {
  stroke: var(--k-sidewalk);
}
#map .m-shoulder {
  stroke: var(--k-shoulder);
}
#map .m-road {
  stroke: var(--road);
}
#map .m-k-sidewalk {
  stroke: var(--k-sidewalk);
}
#map .m-k-planting {
  stroke: var(--k-planting);
}
#map .m-k-bike {
  stroke: var(--k-bike);
}
#map .m-k-travel {
  stroke: var(--k-travel);
}
#map .m-k-bus {
  stroke: var(--k-bus);
}
#map .m-k-parking {
  stroke: var(--k-parking);
}
#map .m-k-median {
  stroke: var(--k-median);
}
#map .m-k-buffer {
  stroke: var(--k-buffer);
}
#map .m-k-loading {
  stroke: var(--k-loading);
}
#map .m-k-shoulder {
  stroke: var(--k-shoulder);
}
#map .m-k-bikerack {
  stroke: var(--k-bikerack);
}
#map .m-k-bikeshare {
  stroke: var(--k-bikeshare);
}
#map .m-k-pole {
  stroke: var(--k-pole);
}
#map .m-k-busshelter {
  stroke: var(--k-busshelter);
}
#map .m-k-busstation {
  stroke: var(--k-busstation);
}
#map .m-k-bench {
  stroke: var(--k-bench);
}
#map .m-k-terrace {
  stroke: var(--k-terrace);
}
#map .m-k-streetlamp {
  stroke: var(--k-streetlamp);
}
/* Lane types are told apart by tint, by the key, and by their names when zoomed in; the hatch of the
   editors is too busy at city scale. */
#map .m-h {
  display: none;
}
#map pattern * {
  vector-effect: non-scaling-stroke;
  stroke: var(--ink-3);
}
#map text {
  paint-order: stroke;
  stroke: var(--land);
  stroke-linejoin: round;
  pointer-events: none;
}
#map .m-name {
  fill: var(--ink-2);
  font-weight: 600;
}
#map .m-tag {
  fill: var(--ink-3);
  font-weight: 500;
}
#map .m-jc {
  fill: var(--panel);
  stroke: var(--accent);
}
#map .m-jn {
  fill: var(--accent);
  font-weight: 700;
  stroke: none;
}
#map .m-badge circle {
  fill: var(--panel);
  stroke: var(--warn-line);
}
#map .m-badge path {
  fill: none;
  stroke: var(--warn);
  stroke-linecap: round;
}
#map a.place {
  outline: none;
  cursor: pointer;
}
#map a.place:focus-visible .m-hit {
  fill: var(--accent-wash);
  stroke: var(--accent);
  stroke-opacity: 0.5;
}
#map a.place:focus-visible circle.m-hit {
  stroke-opacity: 1;
  stroke-width: 2px;
}
#map .m-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

/* The button for a sidebar: a tab down the window's edge, against the sidebar (`--lw` / `--rw` are how far it reaches
   in, nothing when it is hidden), its text running downwards. The map page has the area rules' on the left and the
   Notes' on the right; the editors have the details' on the left. Under 900px the sidebars stack below the page (`--lw` and `--rw` are nothing), so
   the tabs stay at the window's edge, as on the map. */
.edge-tab {
  position: fixed;
  z-index: 11;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  min-width: var(--tab-w);
  padding: 16px 0;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.edge-tab.right {
  right: var(--rw);
  border-radius: 14px 0 0 14px;
}
.edge-tab.left {
  left: var(--lw);
  border-radius: 0 14px 14px 0;
}
.edge-tab:hover {
  background: var(--fill);
}
.edge-tab[aria-expanded="true"] {
  color: var(--accent);
}

/* Zoom, whole city. */
.zoom-dock {
  position: absolute;
  z-index: 10;
  right: calc(var(--rw) + var(--pad));
  bottom: var(--pad);
}
.map-tools {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.map-tools .btn {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.map-tools .btn:hover {
  background: var(--fill);
}
.map-tools .btn + .btn {
  border-top: 1px solid var(--rule);
}
#zoom-in {
  order: 1;
}
#zoom-out {
  order: 2;
}
#zoom-fit {
  order: 3;
}
.map-tools .lbl {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The key to the streets, in the notes panel. */
.key-section {
  margin-top: 6px;
}
.plan-key {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding: 2px 8px 6px;
  color: var(--ink-2);
  font-size: 13px;
}
.plan-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 26px;
  height: 13px;
  border-radius: 3px;
  stroke: var(--field-line);
  stroke-width: 1px;
}
.swatch rect {
  stroke: none;
}
/* The key shows the flat tints the map is drawn in, not the editors' hatch. */
.swatch rect[fill^="url"] {
  display: none;
}
.k-sidewalk {
  fill: var(--k-sidewalk);
}
.k-planting {
  fill: var(--k-planting);
}
.k-bike {
  fill: var(--k-bike);
}
.k-travel {
  fill: var(--k-travel);
}
.k-bus {
  fill: var(--k-bus);
}
.k-parking {
  fill: var(--k-parking);
}
.k-median {
  fill: var(--k-median);
}
.k-loading {
  fill: var(--k-loading);
}
.k-buffer {
  fill: var(--k-buffer);
}
.k-shoulder {
  fill: var(--k-shoulder);
}
.k-bikerack {
  fill: var(--k-bikerack);
}
.k-bikeshare {
  fill: var(--k-bikeshare);
}
.k-pole {
  fill: var(--k-pole);
}
.k-busshelter {
  fill: var(--k-busshelter);
}
.k-busstation {
  fill: var(--k-busstation);
}
.k-bench {
  fill: var(--k-bench);
}
.k-terrace {
  fill: var(--k-terrace);
}
.k-streetlamp {
  fill: var(--k-streetlamp);
}
.swatch .k-travel {
  stroke: var(--field-line);
  stroke-width: 1px;
}

/* Whether the city works, and the keys. */
.statusbar {
  position: absolute;
  z-index: 10;
  left: calc(var(--lw) + (100% - var(--lw) - var(--rw)) / 2);
  transform: translateX(-50%);
  bottom: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - var(--lw) - var(--rw) - 160px);
  min-width: 0;
}
/* On the map it is centred between the scale (bottom left, up to 110px with its margin) and the zoom
   buttons (bottom right), so each side keeps clear the wider of them. */
.drawing:has(> .map-canvas) ~ .statusbar {
  max-width: calc(100% - var(--lw) - var(--rw) - 2 * 128px);
}
.fit {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ok);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.fit.bad {
  background: var(--warn-wash);
  color: var(--warn);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--warn-line);
}
.report-notice {
  gap: 8px;
}
.report-notice-close {
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.report-notice-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.keys {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

/* A checker's tick: the sheet works. It draws itself in once. */
.tick {
  width: 16px;
  height: 16px;
  margin-inline-end: 8px;
  stroke-width: 2;
}
.tick path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.tick.fresh path {
  animation: draw-tick 420ms var(--ease-out) both;
}
@keyframes draw-tick {
  from {
    stroke-dashoffset: 1;
  }
}

/* ---- touch, small screens, motion ------------------------------------------- */

@media (any-pointer: coarse) {
  .btn,
  .tab,
  .unit {
    min-height: 44px;
  }
  .place-row {
    padding: 12px 10px;
  }
  .menu-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .report-notice-close {
    min-width: 44px;
    min-height: 44px;
  }
  .shell-notice button,
  .shell-notice.fork-notice a {
    min-height: 44px;
  }
  details.src summary {
    min-height: 44px;
  }
  .keys,
  .search-key {
    display: none;
  }
}

/* Under 900px the panels stack below the map instead of floating over it. */
@media (max-width: 899px) {
  /* The page scrolls here, so the footer ends it instead of floating over it. */
  .site-foot {
    order: 4;
    position: static;
    height: auto;
    padding: 4px var(--pad) 12px;
  }
  :root {
    --bar-h: auto;
    --lw: 0px;
    --rw: 0px;
    --pad: 8px;
  }
  .bar {
    position: sticky;
    margin: 8px;
    top: 8px;
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 10px 8px;
    padding: 10px 10px 12px 14px;
    order: 0;
  }
  .search-slot {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }
  .surfaces {
    grid-column: 1 / -1;
    grid-row: 3;
    overflow-x: auto;
  }
  .btn.quiet span {
    display: none;
  }
  /* The menus hang from the bar, not from their buttons: with three buttons, the left-most one's menu would
     start left of the window. */
  .account,
  .session {
    position: static;
  }
  .menu {
    right: 10px;
    width: min(300px, calc(100% - 20px));
  }
  .top-end {
    grid-column: 2;
    grid-row: 1;
    /* the column is as wide as the rows that span it need, so the buttons keep to the bar's end */
    justify-content: flex-end;
  }
  body {
    display: flex;
    flex-direction: column;
  }
  .stage {
    order: 1;
    position: relative;
    height: 62svh;
    min-height: 340px;
    margin: 0 8px;
    border-radius: var(--r-card);
  }
  .panel {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px 8px;
  }
  .panel.left {
    order: 2;
  }
  .panel.right {
    order: 3;
    max-height: none;
  }
  .panel-body {
    overflow: visible;
  }
  .statusbar {
    left: 50%;
    max-width: calc(100% - 24px - 56px);
    bottom: 12px;
  }
  .zoom-dock {
    right: 12px;
    bottom: 12px;
  }
  /* The map is a box of its own here, with the status line across its foot: MapLibre's scale goes to its
     top left corner, where nothing floats, and the attribution stays on the zoom buttons. */
  .drawing:has(> .map-canvas) ~ .statusbar {
    max-width: calc(100% - 24px - 56px);
  }
  .drawing .maplibregl-ctrl-bottom-left {
    top: 10px;
    bottom: auto;
  }
  .drawing .maplibregl-ctrl-bottom-right {
    right: 2px;
    bottom: calc(12px + 3 * 44px + 2px);
  }
  .fit {
    font-size: 14px;
    padding: 9px 14px;
  }
}

/* Where the logo and the three end buttons no longer fit side by side, the buttons take a row of their own. */
@media (max-width: 379px) {
  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .top-end {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .search-slot {
    grid-row: 3;
  }
  .surfaces {
    grid-row: 4;
  }
  .account:first-child,
  .top-end > :first-child {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .search input,
  .place-row {
    transition: none;
  }
  .tick.fresh path {
    animation: none;
  }
}

@media print {
  .bar,
  .panel,
  .zoom-dock,
  .keys {
    display: none;
  }
  .stage {
    position: static;
    height: 90vh;
  }
}

/* ---- a page to read: one white card on the land ----------------------------- */

.bar .top-end .surface {
  color: var(--ink-2);
}
.read-card {
  max-width: 720px;
  margin: calc(var(--pad) + var(--bar-h) + 28px) auto 48px;
  padding: 32px 40px 36px;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.read-card h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.read-card .lede {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 18px;
}
.read-card section {
  margin-top: 26px;
}
.read-card .note-h {
  padding: 0 0 6px;
  font-size: 17px;
}
.read-card p,
.read-card .credit-list {
  max-width: 62ch;
  margin-top: 8px;
}
.credit-list {
  padding-left: 18px;
  list-style: disc;
}
.back-links {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 899px) {
  .read-card {
    margin: 12px 8px 32px;
    padding: 24px 20px 28px;
  }
}
/* The network checks of the map's details: a row and a count for each at the city's level, and a check's findings at
   its own. */
.net-h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  margin: 14px 8px 4px;
  font-size: 15px;
  font-weight: 600;
}
.net-count {
  color: var(--ink-2);
  font-weight: 400;
}
/* The places of a finding are a list of their own inside a `.checks` item, so the item's grid, its border and its
   block spans are taken off them again. */
.checks .net-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks .net-links li {
  display: block;
  padding: 0;
  border: 0;
}
/* A place a finding names: a press shows it in the details, so it is a button drawn as the link it reads as. */
.net-links .net-link {
  display: inline-block;
  min-height: 24px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.net-links .net-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
/* The city's row for each network check: its name, and its count on the right. */
.net-rows .place-row small {
  grid-column: 2;
  grid-row: 1;
}
.net-rows .goal-mark {
  grid-column: 1 / -1;
}
.net-more {
  margin: 0 8px 4px;
}
/* The sources behind a rule, under its check, network check or area rule (shared/sources_view.rs): a disclosure, so the list stays out of the way. */
details.src {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}
details.src summary {
  min-height: 24px;
  cursor: pointer;
}
details.src p,
details.src ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.checks li.bad details.src {
  color: var(--ink-2);
}

/* Guided design goals (#72): the picker and the checks that bear on the chosen goal. Marked by an edge and by words,
   never by colour alone. */
.goal-guide {
  border: 0;
  margin: 0;
  padding: 0;
}
.goal-guide legend {
  font-weight: 600;
  padding: 0;
}
.goal-guide label {
  display: block;
  font-weight: 600;
  padding-bottom: 4px;
}
#goal-pick {
  min-height: 32px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
#goal-pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.goal-note,
.goal-picks span {
  color: var(--ink-2);
}
.goal-picks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.goal-picks li {
  border-top: 1px solid var(--rule);
  padding: 8px 0;
}
.goal-picks span {
  display: block;
}
.goal-picks .goal-conflict {
  font-style: italic;
}
.checks li.goal {
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}
.goal-mark {
  display: block;
  font-size: 0.85em;
  font-weight: 400;
}


/* A standards profile (#79): which standard a check or a range came from. */
.check-standard {
  display: block;
  font-size: 0.85em;
  color: var(--ink-2);
}
.insp-range .check-standard {
  display: inline;
}
.standards h3,
.standards h4,
.standards h5 {
  margin: 0.75rem 0 0.25rem;
}
.standards-field {
  display: grid;
  gap: 0.15rem;
  margin: 0.4rem 0;
}
.standards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.35rem 0;
}
.standards-list,
.standards ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.standards-error {
  color: var(--warn);
}
.standards-hint {
  font-size: 0.85em;
  color: var(--ink-2);
}
.standards textarea {
  width: 100%;
}

/* A network check that bears on the chosen goal (#72), marked as the street page's checks are. */
.net-rule.goal {
  border-left: 3px solid var(--accent);
}
.goal-use {
  margin-top: 4px;
}
.goal-select {
  display: block;
  color: var(--ink-2);
}

/* The map's details one level at a time (`map/view/details.rs`): the city's tabs and notes, or the place a press shows.
   A level lays out as its contents did before it was wrapped. */
.map-level {
  display: contents;
}
/* The path over a panel's levels: the street, junction and map pages each have one. */
.panel-path {
  margin: 12px 12px 0;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--rule);
}
.panel-path ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-path li {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
/* The separator is drawn, not said: the list already tells a screen reader the steps apart. */
.panel-path li + li::before {
  content: "›" / "";
  color: var(--ink-3);
}
.path-step {
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.path-step:hover {
  background: var(--fill);
}
.path-here {
  padding: 2px 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.path-step:focus-visible,
.path-here:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
@media (any-pointer: coarse) {
  .path-step {
    min-height: 44px;
  }
}
/* The place a press on the map shows: its name heads the level, as a street's or a junction's does on its page. */
.map-level .insp-head {
  padding: 0;
}
.map-level .insp-name {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.map-level .insp-sub {
  display: block;
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
/* The map has no left panel: its area rules are a level of the details on the right. */
body.map-page {
  --lw: 0px;
}
.map-go {
  margin: 4px 0;
}
/* Under the city's rows: what a press on the map does. */
.map-city-hint {
  margin: 12px 0 4px;
}
/* The path's City while an outline is drawn: no step back until it is finished or cancelled. */
.path-still {
  padding: 2px 6px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}
.map-level[hidden] {
  display: none;
}
.map-path .panel-path {
  padding: 0 4px;
}
.map-place-failing {
  margin: 0;
  padding-left: 18px;
  color: var(--warn);
}
.map-place-actions {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.map-place-actions .btn {
  justify-content: center;
}
.shell-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 16px;
  padding: 8px 12px;
  border-radius: 8px;
  /* The dark wash is translucent: laid on the panel's colour, it reads the same over the map as over a panel. */
  background: linear-gradient(var(--warn-wash), var(--warn-wash)), var(--panel);
  color: var(--warn);
  box-shadow: inset 0 0 0 1px var(--warn-line);
}
/* On an editor's page, where the bar floats, so do the stage and the panels: the notice floats just below the bar,
   above the stage, below the bar's menus, centred between the side panels as the status bar is (`--lw` / `--rw`), so
   it never covers their heads; with no panel open it has the whole width. An editor with a column (street,
   intersection) holds it at the top of that column, and a page in flow (the timeline) in its own sheet. */
@media (min-width: 900px) {
  body:has(main.stage) > div > .shell-notice {
    position: fixed;
    z-index: 25;
    top: calc(var(--pad) + var(--bar-h) + 12px);
    left: calc(var(--lw) + (100% - var(--lw) - var(--rw)) / 2);
    transform: translateX(-50%);
    max-width: min(640px, calc(100% - var(--lw) - var(--rw) - var(--pad) * 2));
    width: max-content;
    margin: 0;
    box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--warn-line);
  }
  body:has(main.stage):not(:has(.panel)) > div > .shell-notice {
    --lw: 0px;
    --rw: 0px;
  }
}
.shell-notice button {
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.shell-notice button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* On a copy of a shared design, the notice offers to make it one of the person's projects (`shell::view::ForkNotice`),
   in the read-only tag's colours: it says what can be done, not that something went wrong. Its link, once the copy is
   made, looks as its button did. */
.shell-notice.fork-notice {
  flex-wrap: wrap;
  background: linear-gradient(var(--accent-wash), var(--accent-wash)), var(--panel);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
@media (min-width: 900px) {
  body:has(main.stage) > div > .shell-notice.fork-notice {
    box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--accent-line);
  }
}
.fork-notice p {
  margin: 0;
}
.fork-notice a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.fork-notice a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.fork-notice .btn-ico {
  margin-right: 6px;
  vertical-align: -3px;
}
/* A fork that failed is said in the cleared-edits notice's warning colours, so it reads as a failure. */
.fork-notice .fork-error {
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(var(--warn-wash), var(--warn-wash)), var(--panel);
  color: var(--warn);
  box-shadow: inset 0 0 0 1px var(--warn-line);
}
