/* Component styles. Brand values live in theme.css; reference tokens only. */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.35 var(--font-body);
  font-weight: 400;
}

body::before {
  content: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 50% at 8% var(--bar-edge), var(--glow-orange), transparent),
    radial-gradient(ellipse 55% 45% at 95% var(--bar-edge), var(--glow-blue), transparent);
}

@media print {
  :root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) body::before {
    display: none;
  }
}

h1,
h2,
h3,
strong,
b,
th {
  font-weight: 500;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

.site-footer a,
main p a,
main li>a[target="_blank"] {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  transform: translateY(calc(-100% + 6px));
  transition: transform .15s ease-out .1s;
}

.site-header:hover,
.site-header:focus-within {
  transform: translateY(0);
  transition-delay: 0s;
}

@media (hover: none),
print {
  .site-header {
    position: static;
    transform: none;
  }
}

[data-banner="pinned"] .site-header {
  position: sticky;
  transform: none;
}

.site-footer {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 24px 16px;
  text-align: center;
  font: 400 12px var(--font-mono);
  color: var(--mute);
}

.site-header .inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.site-header .brand {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: .01em;
}

.site-header .brand {
  display: inline-flex;
  align-items: flex-end;
}

.site-header .brand-wave {
  position: relative;
  /* more negative = further left */
  left: -20px;
  /* bigger = lower */
  top: 0px;
  height: 60px;
  width: auto;
  margin-top: -7px;
  margin-bottom: -7px;
  margin-right: -30px;
}

.brand-name {
  position: relative;
  font-family: var(--font-brand);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-ink);
}

.site-header .brand-name {
  /* more negative = further left */
  left: -20px;
  /* more negative = higher */
  top: -7px;
  font-size: 17px;
  line-height: 1.2;
}

/* the letter hides its own square dot (top band transparent) and a round light-blue circle takes its place */
.brand-i {
  position: relative;
  display: inline-block;
  line-height: 1;
  background: linear-gradient(to bottom, transparent 0 28%, var(--brand-ink) 28%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-i::after {
  content: "";
  position: absolute;
  top: 0.09em;
  left: 80%;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--brand-blue);
  transform: translateX(-50%);
}

.site-header .header-menu {
  position: relative;
}

.site-header .header-menu summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink-strong);
  font-weight: 500;
}

.site-header .header-menu summary:hover,
.site-header .header-menu summary:focus-visible {
  color: var(--accent);
}

.site-header .header-menus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.site-header .customer {
  color: var(--ink-strong);
  font-weight: 500;
}

.site-header .header-menu .menu {
  position: absolute;
  right: 0;
  z-index: 5;
  margin-top: 6px;
  min-width: 220px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}

.site-header .switcher .menu {
  min-width: 260px;
}

.site-header .menu-email {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--mute);
}

.site-header .header-menu .menu a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
}

.site-header .header-menu .menu a:hover,
.site-header .header-menu .menu a[aria-current="page"],
.site-header .header-menu summary[aria-current="page"] {
  color: var(--accent);
}

.site-header .sign-out {
  margin: 0;
}

.site-header .header-menu .sign-out button {
  font-size: 14px;
}

.theme-toggle,
.time-zone-link,
.sign-out button {
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.time-zone-link:hover,
.time-zone-link:focus-visible,
.sign-out button:hover,
.sign-out button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.look-switch {
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  cursor: pointer;
}

.look-switch:hover,
.look-switch:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.site-header nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.site-header nav a,
.site-header nav summary {
  display: block;
  padding: 6px 12px;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  list-style: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav summary:hover {
  color: var(--ink-strong);
}

.site-header nav a[aria-current="page"],
.site-header nav summary[aria-current="page"] {
  color: var(--ink-strong);
  border-bottom-color: var(--accent);
}

.site-header .gear {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 3px 8px;
  color: var(--mute);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--chip);
  text-decoration: none;
}

.site-header .gear:hover,
.site-header .gear:focus-visible,
.site-header .gear[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

main h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink-strong);
}

.intro {
  margin-bottom: 2px;
}

abbr.glossary-hint {
  text-decoration: underline dotted;
  cursor: help;
}

.intro-purpose {
  margin: 2px 0 0;
  color: var(--mute);
  font-size: 14.5px;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--card-shadow);
  min-width: 0;
}

h2 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--ink-strong);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.kpi .l,
.kpi-title {
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.kpi .v,
.kpi-value {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-strong);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--mute);
  margin: 0 0 6px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shots figure {
  margin: 0;
}

.shots img {
  max-width: 100%;
  height: auto;
}

.tw {
  overflow: auto;
  max-height: calc(100vh - 140px);
}

.tw.tall {
  overflow: auto;
  max-height: calc(100vh - 140px);
}

table.plain thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
}

table.grid th.task {
  vertical-align: bottom;
}

table.grid th.hot,
table.grid td.hn.hot {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.sym {
  margin-right: 4px;
}

.wave-toggle {
  all: unset;
  cursor: pointer;
  display: inline-block;
  padding: 2px 12px 2px 8px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 16px;
}

.wave-toggle:hover,
.wave-toggle:focus-visible {
  background: var(--accent-hover);
}


:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.segmented-options, .filter-choices, .wave-chips, .seg) {
  background: var(--tray);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px var(--tray-edge);
  color: var(--mute);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.segmented-options, .filter-choices, .wave-chips, .seg) {
  padding: 3px;
  gap: 2px;
  overflow: visible;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .wave-chips {
  display: inline-flex;
  width: fit-content;
  border-radius: 18px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.segmented, .filter-choices) a {
  padding: 3px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--mute);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.segmented, .filter-choices) a:first-child {
  border: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .segmented a[aria-current="page"],
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .filter-choices a[aria-current="true"],
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input:checked+span {
  background: var(--raised);
  color: var(--ink-strong);
  font-weight: 500;
  box-shadow: 0 1px 3px var(--tray-edge);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .segmented a[aria-current="page"]::before {
  content: none;
}

.wave-chips .chip {
  white-space: nowrap;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .wave-chips .chip {
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .wave-chips .chip:hover,
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .wave-chips .chip:focus-visible {
  color: var(--ink-strong);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .wave-chips .chip[aria-current="page"] {
  background: var(--raised);
  color: var(--ink-strong);
  font-weight: 500;
  box-shadow: 0 1px 3px var(--tray-edge);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg span {
  color: var(--mute);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input:focus-visible+span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input:checked+span {
  color: var(--fill-on);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input[value="show"]:checked+span {
  background: var(--fill-done);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input[value="hide"]:checked+span {
  background: var(--fill-orange);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input[value="zone"]:checked+span {
  background: var(--fill-purple);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .seg input[value="hostname"]:checked+span {
  background: var(--fill-blue);
}

/* Pastel top bar: the five round controls share one height, one pill shape and one fill, 8px apart. */
:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .inner {
  column-gap: 8px;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.look-switch, .theme-toggle, .jump-open, .site-header .gear) {
  box-sizing: border-box;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tray);
  box-shadow: inset 0 1px 3px var(--tray-edge);
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.theme-toggle, .site-header .gear) {
  width: 34px;
  min-width: 0;
  padding: 0;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .jump-open {
  justify-content: flex-start;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.look-switch, .theme-toggle, .jump-open, .site-header .gear):is(:hover, :focus-visible),
:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .gear[aria-current="page"] {
  color: var(--accent);
}

/* Pastel top bar: the light or dark button, the pin and the gear are line drawings in the text colour, not emoji. */
:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is([data-theme-toggle], [data-banner-pin], .site-header .gear) {
  font-size: 0;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is([data-theme-toggle], [data-banner-pin], .site-header .gear)::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  flex: 0 0 auto;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) [data-theme-toggle] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"])[data-theme="dark"] [data-theme-toggle] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]):not([data-theme="light"]) [data-theme-toggle] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .gear {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h0a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h0a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v0a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) [data-banner-pin] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l-1 6 3 3v2H7v-2l3-3zM12 14v7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) [data-banner-pin][aria-pressed="true"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l-1 6 3 3v2H7v-2l3-3zM12 14v7' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: var(--accent);
}

/* Every look: the person and the customer stack on two lines, larger, with the full-size round picture. */
:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .header-menus {
  min-width: 0;
  max-width: 100%;
}

:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .header-menus>* {
  min-width: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .header-menu summary:is(:hover, :focus-visible) {
  color: var(--accent);
}

/* Pastel top bar: the brand and the first tab's text share one left edge; a slightly stronger brand fits the same row. */
:root:is([data-look="guided"], [data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header nav {
  padding-inline: 12px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .brand {
  font-size: 17px;
  line-height: 1.2;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header .brand-name {
  font-size: 17px;
  line-height: 1.2;
}

/* Pastel top bar: idle tabs get a darker muted colour; "More" shows an arrow as it opens a list. */
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header nav :is(a, summary) {
  color: var(--tab-idle);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header nav :is(a, summary):is(:hover, :focus-visible),
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header nav :is(a, summary)[aria-current="page"] {
  color: var(--ink-strong);
}

/* Pastel top bar: a clear, soft lower edge. The glow behind the page starts below it (see --bar-edge in theme.css). */
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .site-header {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 6px 14px -8px var(--card-lift);
}

.follow-btn {
  all: unset;
  cursor: pointer;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 0.85em;
  color: var(--ink-strong);
  border: 1px solid currentColor;
  border-radius: 12px;
}

.follow-btn:hover,
.follow-btn:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.follow-btn[aria-pressed="true"] {
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.follow-btn:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

.wave-toggle::before {
  content: "\25BE";
  display: inline-block;
  width: 1.2em;
  color: var(--accent-ink);
}

.wave-toggle[aria-expanded="false"]::before {
  content: "\25B8";
}

.wave-toggle:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

table.grid tr.wave-head th .size {
  margin: 0 10px;
  font-weight: 400;
}

table.grid tr.wave-head th .wave-link {
  display: inline-block;
  padding: 2px 12px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 16px;
}

table.grid tr.wave-head th .wave-link:hover,
table.grid tr.wave-head th .wave-link:focus-visible {
  background: var(--accent-hover);
}

table.grid {
  border-collapse: separate;
  border-spacing: 1px;
}

table.grid th,
table.grid td {
  padding: 2px 8px;
  font-size: 12.5px;
  text-align: center;
  border-radius: 4px;
  white-space: nowrap;
}

table.grid thead th {
  font: 400 11px var(--font-mono);
  color: var(--mute);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
}

table.grid th[scope="row"] {
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  background: var(--panel);
  position: sticky;
  left: 0;
}

table.grid tr.wave-head th {
  text-align: left;
  font-weight: 500;
  background: var(--chip);
  padding: 4px 10px;
}

td.idx {
  color: var(--mute);
}

table.plain td.idx {
  width: 1%;
  text-align: right;
  font: 400 12px var(--font-mono);
}

.s-none {
  background: var(--st-none);
  color: var(--mute);
}

.s-red {
  background: var(--fill-red);
  color: var(--fill-on);
}

.s-orange {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.s-blue {
  background: var(--fill-blue);
  color: var(--fill-on);
}

.s-purple {
  background: var(--fill-purple);
  color: var(--fill-on);
}

.s-done {
  background: var(--fill-done);
  color: var(--fill-on);
}

.s-na {
  background: transparent;
  color: var(--mute);
}

button.cell {
  all: unset;
  display: block;
  width: 100%;
  min-width: 26px;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
}

button.cell:hover {
  outline: 2px solid var(--accent);
}

button.cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

table.grid .s-red {
  background: color-mix(in srgb, var(--fill-red) 82%, var(--panel));
}

table.grid .s-orange {
  background: color-mix(in srgb, var(--fill-orange) 82%, var(--panel));
}

table.grid .s-blue {
  background: color-mix(in srgb, var(--fill-blue) 82%, var(--panel));
}

table.grid .s-purple {
  background: color-mix(in srgb, var(--fill-purple) 82%, var(--panel));
}

table.grid .s-done {
  background: color-mix(in srgb, var(--fill-done) 82%, var(--panel));
}

table.grid .s-none {
  color: var(--mute);
}

table.grid .s-red {
  box-shadow: inset 0 0 0 1px light-dark(transparent, var(--st-red));
}

table.grid .s-orange {
  box-shadow: inset 0 0 0 1px light-dark(transparent, var(--st-orange));
}

table.grid .s-blue {
  box-shadow: inset 0 0 0 1px light-dark(transparent, var(--st-blue));
}

table.grid .s-purple {
  box-shadow: inset 0 0 0 1px light-dark(transparent, var(--st-purple));
}

table.grid .s-done {
  box-shadow: inset 0 0 0 1px light-dark(transparent, var(--st-done));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--chip);
  color: var(--mute);
  font-size: 12.5px;
}

.chip:hover,
.chip:focus-visible {
  color: var(--ink-strong);
}

.chip[aria-current="page"],
.chip[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

h3 {
  margin: 8px 0 0;
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

h2 .count {
  margin-left: 10px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--chip);
  color: var(--mute);
  font-size: 11px;
  vertical-align: middle;
}

.tracker-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.intro:has(> .tracker-side) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  align-items: start;
}

.intro:has(> .tracker-side)>.tracker-side {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.intro .tracker-side {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
}

.intro .tracker-side details {
  position: relative;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-height: none;
}

.intro .tracker-side summary {
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.intro .tracker-side details[open]>summary {
  color: var(--ink-strong);
  border-color: var(--line-strong);
}

.intro .tracker-side details> :not(summary) {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 6;
  width: 270px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 6px 0 0;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.intro .tracker-side .legend {
  flex-direction: column;
  gap: 6px;
}

.task-key ol.tasks {
  columns: 1;
}

.task-key-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.task-key-actions .btn {
  padding: 1px 10px;
  font-size: 12.5px;
}

.task-key .task-choice {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 1px 4px;
  margin: 0 -4px;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.task-key .task-choice:hover,
.task-key .task-choice:focus-visible {
  color: var(--accent);
}

.task-key .task-choice[aria-pressed="false"] {
  color: var(--mute);
  opacity: .6;
}

.intro .tracker-side details[open]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

@media (max-width: 700px) {
  .intro:has(> .tracker-side) {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro:has(> .tracker-side)>.tracker-side {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
}

@media print {
  .intro .tracker-side {
    display: none;
  }
}

ol.tasks {
  columns: 1;
}

ol.tasks {
  columns: 2 260px;
  margin: 8px 0 0;
  padding-left: 26px;
  font-size: 13px;
  color: var(--mute);
}

table.plain {
  border-collapse: separate;
  border-spacing: 1px;
  width: 100%;
  font-size: 13px;
}

table.audit th,
table.audit td:first-child {
  white-space: nowrap;
}

table.audit td {
  overflow-wrap: anywhere;
}

table.plain th,
table.plain td {
  text-align: left;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  vertical-align: top;
}

table.readiness td:not(:last-child) {
  white-space: nowrap;
}

table.readiness td:last-child {
  width: 100%;
}

table.readiness ul {
  margin: 0;
  padding-left: 18px;
}

.proposals-card>summary,
.rules-card>summary {
  cursor: pointer;
}

.proposals-card>summary h2,
.rules-card>summary h2 {
  display: inline;
}

table.proposals th,
table.proposals td:not(:nth-child(5)) {
  white-space: nowrap;
}

table.plain tr.wave-head th {
  font: 500 13px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-strong);
  background: var(--chip);
  padding: 4px 10px;
}

table.zones td,
table.zones th {
  vertical-align: middle;
}

table.zones thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
  vertical-align: top;
}

table.sortable th[tabindex] {
  cursor: pointer;
  user-select: none;
}

table.sortable th[aria-sort="ascending"]::after {
  content: " \25B2";
  font-size: 9px;
}

table.sortable th[aria-sort="descending"]::after {
  content: " \25BC";
  font-size: 9px;
}

table.plain th {
  font: 400 11px var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
}

table.plain th[scope="row"] {
  font: 400 13px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.mute {
  color: var(--mute);
}

.card p code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink-strong);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.switcher .menu button {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--accent);
}

.switcher .menu button img.cdn-logo {
  flex: 0 0 5em;
  width: 5em;
  margin-left: 0;
  object-position: left center;
}

.switcher .menu button[aria-current="true"] {
  color: var(--ink-strong);
  font-weight: 500;
  cursor: default;
}

.switcher .menu button:hover,
.switcher .menu button:focus-visible {
  color: var(--accent-hover);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

form.inline {
  display: inline;
}

form.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: flex-end;
}

form.stack label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  color: var(--mute);
}

form.stack label.check {
  flex: 1 0 100%;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

form.stack .dropzone {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
}

form.stack .dropzone p {
  margin: 0;
}

form.stack .dropzone.over {
  border-color: var(--ink-strong);
  background: var(--field);
}

form.stack .dropzone.centered {
  align-items: center;
  text-align: center;
}

form.stack .dropzone label.btn {
  cursor: pointer;
}

form.stack .dropzone label.btn:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

form.stack .dropzone:hover {
  border-color: var(--accent);
}

form.stack .dropzone label.btn:is(:hover, :focus-within) {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--chip);
}

#import-issues .form-actions {
  justify-content: flex-start;
}

#import-issues form[action="/issues/import"] .form-actions {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

form.stack .dropzone [data-import-status] {
  color: var(--st-done);
  font-weight: 700;
}

form.stack .dropzone [data-import-status].error {
  color: var(--st-red);
}

/* Calm forms: labelled boxes in groups, extras under a fold, actions on their own line. */
form.form-calm {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

form.form-calm .field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

form.form-calm .group-label {
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

form.form-calm .group-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: flex-end;
}

form.form-calm .top-aligned .group-controls {
  align-items: flex-start;
}

form.form-calm .group-controls label.field:first-child {
  flex: 1 1 240px;
}

form.form-calm label.field {
  min-width: 0;
}

form.form-calm label.field> :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
}

form.form-calm label.field input[size="3"],
form.form-calm label.field input[type="number"] {
  width: 5em;
}

form.form-calm .hint {
  font-size: 12px;
  color: var(--mute);
}

form.form-calm label.field>span:has(> input[list]) {
  display: flex;
}

form.form-calm label.field>span:has(> input[list])>input {
  width: 100%;
  min-width: 0;
}

form.form-calm label.check {
  flex: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink);
}

form.form-calm label.check .hint {
  flex: 1 0 100%;
  padding-left: 22px;
}

form.form-calm textarea {
  min-height: 90px;
  font-family: var(--font-body);
  font-size: 13.5px;
}

/* One chevron for every fold on a form or a card. */
form.form-calm .fold>summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

form.form-calm .fold>summary::-webkit-details-marker {
  display: none;
}

form.form-calm .fold>summary::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}

form.form-calm .fold[open]>summary::before {
  transform: rotate(45deg);
}

form.form-calm .fold>summary:hover,
form.form-calm .fold>summary:focus-visible {
  color: var(--accent);
}

form.form-calm .fold {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

form.form-calm .fold>summary {
  display: inline-flex;
  font-size: 13px;
  color: var(--mute);
}

form.form-calm .fold-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
}

form.form-calm .fold-body p.mute {
  margin: 0;
  font-size: 12.5px;
}

form.form-calm .form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Side panel: slides in from the right when its id is the page target or the server opens it. */
.side-panel {
  position: fixed;
  top: var(--panel-top, 6px);
  right: 0;
  bottom: 0;
  z-index: 9;
  width: 30vw;
  min-width: 360px;
  max-width: 520px;
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .18s ease-out, visibility 0s linear .18s;
}

.side-panel:target,
.side-panel[data-open] {
  transform: translateX(0);
  visibility: visible;
  transition: transform .18s ease-out;
}

.side-panel[data-closed] {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .18s ease-out, visibility 0s linear .18s;
}

.side-panel .panel-resize {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 8px;
  height: 100vh;
  margin: -28px 0 -100vh -24px;
  cursor: col-resize;
  touch-action: none;
  background: transparent;
}

.side-panel .panel-resize::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 2px;
  height: 36px;
  margin-top: -18px;
  border-radius: 2px;
  background: var(--line-strong);
}

.side-panel .panel-resize:hover::after,
.side-panel .panel-resize:focus-visible::after,
body.panel-dragging .side-panel .panel-resize::after {
  background: var(--accent);
}

.side-panel .panel-resize:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

body.panel-dragging {
  cursor: col-resize;
  user-select: none;
}

.side-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.side-panel.wide {
  width: 40vw;
  min-width: 420px;
  max-width: 680px;
  padding-bottom: 14px;
}

.side-panel .panel-head.bare {
  justify-content: flex-end;
  margin: -10px -8px 10px 0;
}

.side-panel .panel-section {
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-panel .panel-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.side-panel .panel-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.side-panel .panel-section .fold {
  border-top: 0;
  padding-top: 0;
  margin-top: 10px;
}

.side-panel .panel-section .fold>summary {
  font-size: 13.5px;
}

.side-panel .panel-section .fold-body {
  padding-top: 6px;
}

.side-panel .panel-section h3 {
  margin: 0 0 8px;
}

/* Ticket-style issue panel: crumb row, grouped facts, folded description, comments last. */
.side-panel .panel-crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  margin: -6px 28px 8px 0;
}

.side-panel .panel-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.side-panel form.ticket {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-panel form.ticket h2 {
  margin: 0;
}

.side-panel form.ticket .title-input {
  width: 100%;
  box-sizing: border-box;
  font: 600 18px var(--font-body);
  color: var(--ink-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-left: -6px;
  display: block;
  resize: none;
  overflow: hidden;
  field-sizing: content;
  line-height: 1.3;
  min-height: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.side-panel form.ticket .title-input:hover,
.side-panel form.ticket .title-input:focus {
  background: var(--field);
  border-color: var(--line-strong);
}

.side-panel form.ticket .facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-panel form.ticket .facts-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 20px;
  align-items: start;
}

.side-panel form.ticket .facts-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.side-panel form.ticket .fold {
  border-top: 0;
  margin: 0;
}

.side-panel form.ticket .fold>summary {
  font-weight: 600;
  color: var(--ink-strong);
  font-size: 13.5px;
}

.side-panel form.ticket .fold-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.side-panel form.ticket .facts>.fold>.fold-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 20px;
}

.side-panel form.ticket .facts>.fold .fact {
  grid-template-columns: 5.5em minmax(0, 1fr);
}

.side-panel .fact {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
}

.side-panel .facts-side .fact {
  grid-template-columns: 5.5em minmax(0, 1fr);
}

.side-panel .fact-label {
  color: var(--mute);
  font-size: 12.5px;
}

.side-panel .fact-value {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.side-panel .fact-value input,
.side-panel .fact-value select {
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13.5px;
  padding: 2px 6px;
}

.side-panel .assign-me {
  font-size: 12.5px;
  flex-basis: 100%;
}

.side-panel form.ticket textarea {
  width: 100%;
  min-height: 90px;
  font-family: var(--font-body);
  font-size: 13.5px;
}

.side-panel .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.side-panel .section-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-strong);
}

.side-panel .order-note {
  font-size: 12px;
}

.side-panel ol.comments {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 22vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel ol.comments .comment-head {
  font-size: 12.5px;
}

.side-panel ol.comments .comment-text {
  white-space: pre-wrap;
  font-size: 13.5px;
  margin-top: 2px;
}

.side-panel .panel-section form.form-calm {
  margin-top: 6px;
}

.card .fold {
  border-top: 0;
  padding-top: 0;
}

.card .fold>summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mute);
}

.card .fold>summary::-webkit-details-marker {
  display: none;
}

.card .fold>summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}

.card .fold[open]>summary::before {
  transform: rotate(45deg);
}

.card .fold-body {
  padding-top: 10px;
}

.side-panel form.form-calm .panel-cancel {
  margin-left: 4px;
}

.side-panel .panel-section p.mute {
  margin: 0 0 6px;
  font-size: 12.5px;
}

.side-panel .panel-section form.form-calm {
  margin-top: 12px;
}

.side-panel .panel-section form.form-calm .form-actions {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.side-panel .panel-section ol {
  margin: 0 0 10px;
  padding-left: 1.2em;
  font-size: 13.5px;
}

.side-panel p.notice,
.side-panel p.error {
  margin: 0 0 10px;
}

@media (max-width: 720px) {
  .side-panel.wide {
    width: 100vw;
    min-width: 0;
    max-width: none;
  }
}

.side-panel .panel-head h2 {
  margin: 0;
}

.side-panel .panel-close {
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
  color: var(--mute);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.side-panel .panel-close:hover,
.side-panel .panel-close:focus-visible {
  color: var(--accent);
}

.side-panel>p.mute {
  margin: 0 0 12px;
  font-size: 12.5px;
}

.side-panel form.form-calm .group-controls>label.field {
  flex: 1 1 0;
}

.side-panel form.form-calm .group-controls>label.field:first-child {
  flex: 1 1 0;
}

.side-panel form.form-calm label.field input[size="3"] {
  width: 100%;
}

.side-panel form.form-calm textarea {
  min-height: 120px;
}

.side-panel .panel-cancel {
  font: inherit;
  text-decoration: none;
  color: var(--mute);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
}

.side-panel .panel-cancel:hover,
.side-panel .panel-cancel:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.side-panel form.form-calm .form-actions {
  position: sticky;
  bottom: 0;
  margin: 4px -24px -24px;
  padding: 12px 24px 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .side-panel {
    width: 100vw;
    min-width: 0;
    max-width: none;
  }
}

@media print {
  .side-panel {
    display: none;
  }
}

/* Meetings are one-line links that open a side panel. Risky buttons sit in a footer, away from the fields. */
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 3px 8px;
}

textarea {
  width: 100%;
  min-height: 160px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

button.btn {
  font: inherit;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  cursor: pointer;
}

button.btn:hover,
button.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

ol.task-editor {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

ol.task-editor li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

ol.task-editor li.retired {
  opacity: .6;
}

ol.task-editor .num {
  font: 400 12px var(--font-mono);
  color: var(--mute);
  min-width: 28px;
}

.error {
  color: var(--st-red);
  font-weight: 500;
}

.notice {
  color: var(--st-done);
  font-weight: 500;
}

.notice.loud {
  margin: 0 0 14px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--st-done);
  background: color-mix(in srgb, var(--st-done) 14%, transparent);
}

.notice.loud {
  transition: opacity .6s ease;
}

.notice.loud.fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .notice.loud {
    transition: none;
  }
}

table.grid a.roll {
  display: block;
  color: inherit;
}

table.grid a.roll:hover,
table.grid a.roll:focus-visible {
  outline: 2px solid var(--accent);
}

table.grid th[scope="row"] a {
  color: inherit;
}

table.grid th[scope="row"] a:hover,
table.grid th[scope="row"] a:focus-visible {
  color: var(--accent);
}

ul.hosts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

ul.hosts li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

details>summary {
  cursor: pointer;
  color: var(--accent);
}

.bar {
  display: inline-block;
  width: 140px;
  height: 6px;
  background: var(--band);
  border-radius: 3px;
  vertical-align: middle;
  overflow: hidden;
}

.bar .fill {
  height: 100%;
  background: var(--st-done);
}

.gonogo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gonogo span {
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.analytics-page .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 20px;
}

.analytics-page .stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.analytics-page .stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-strong);
}

.analytics-page .stat-label {
  font-size: 12.5px;
  color: var(--mute);
}

.analytics-page .window-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.analytics-page .window-pick [aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-strong);
}

.analytics-page section.analytics {
  margin-top: 24px;
}

.analytics-page .chart-title {
  margin: 14px 0 4px;
  font-weight: 600;
}

.chart {
  width: 100%;
  height: auto;
  max-height: 240px;
  overflow: visible;
}

.chart .ch-grid {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.chart .ch-label {
  fill: var(--mute);
  font-size: 11px;
}

.chart .ch-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 2;
  stroke-linejoin: round;
}

.chart .ch-dot,
.chart .ch-bar {
  fill: var(--c);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--c);
  vertical-align: -1px;
}

.c-1 {
  --c: var(--accent);
}

.c-2 {
  --c: var(--st-orange);
}

.c-3 {
  --c: var(--st-done);
}

.c-4 {
  --c: var(--st-purple);
}

.c-5 {
  --c: var(--st-red);
}

.c-6 {
  --c: var(--st-blue);
}

.c-7 {
  --c: var(--mute);
}

.c-critical {
  --c: var(--sev-critical);
}

.c-high {
  --c: var(--sev-high);
}

.c-medium {
  --c: var(--sev-medium);
}

.c-low {
  --c: var(--sev-low);
}

.chart .ch-line.c-2,
.chart .ch-line.c-5 {
  stroke-dasharray: 6 3;
}

.chart .ch-line.c-3,
.chart .ch-line.c-6 {
  stroke-dasharray: 2 3;
}

@media print {

  .site-header,
  form,
  .btn,
  .analytics-page .no-print {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 0;
  }

  .analytics-page .chart,
  .analytics-page .swatch,
  .analytics-page .stat {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .analytics-page section.analytics,
  .analytics-page .chart-block,
  .analytics-page .stat {
    break-inside: avoid;
  }
}

.jump-open {
  margin-left: auto;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: inherit;
  font-size: 12.5px;
  color: var(--mute);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  cursor: pointer;
  min-width: 220px;
}

.jump-open:hover,
.jump-open:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.jump-open .kbd {
  margin-left: auto;
  font: 400 11px var(--font-mono);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 5px;
}

dialog.jump {
  width: min(560px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

dialog.jump::backdrop {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

dialog.jump input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  font-size: 15px;
}

dialog.jump .jump-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

dialog.jump .jump-bar input[type="search"] {
  flex: 1;
}

dialog.jump .jump-view {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--mute);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
}

dialog.jump .jump-view::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--jump-view-icon) center / contain no-repeat;
  mask: var(--jump-view-icon) center / contain no-repeat;
  --jump-view-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='1.5' y='2' width='4' height='4'/%3E%3Crect x='1.5' y='10' width='4' height='4'/%3E%3Cpath d='M8 3h7M8 5.5h7M8 11h7M8 13.5h7'/%3E%3C/svg%3E");
}

dialog.jump .jump-view:is(:hover, :focus-visible),
dialog.jump .jump-view[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

dialog.jump .detail {
  display: none;
  margin-top: 2px;
  font: 400 12px var(--font-mono);
  color: var(--mute);
}

dialog.jump[data-view="detailed"] .detail {
  display: block;
}

dialog.jump #jump-results {
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 10px;
}

dialog.jump h3 {
  margin: 10px 0 4px;
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

dialog.jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog.jump li a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink);
}

dialog.jump li a:hover,
dialog.jump li a:focus-visible {
  background: var(--chip);
  color: var(--accent);
}

dialog.jump .hint {
  margin: 10px 0 0;
  font-size: 12px;
}

/* timeline (Gantt) */
.gantt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0;
}

.gantt-label {
  flex: 0 0 84px;
  font-size: 12.5px;
  color: var(--mute);
}

.gantt-track {
  position: relative;
  flex: 1;
  height: 28px;
  background: var(--bar);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gantt-ticks {
  height: 18px;
  background: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
}

.gantt-tick {
  position: absolute;
  top: 0;
  font: 400 11px var(--font-mono);
  color: var(--mute);
  border-left: 1px solid var(--line-strong);
  padding-left: 3px;
  white-space: nowrap;
}

.gantt-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 6px;
  color: var(--phase-on);
  font-size: 11px;
  line-height: 20px;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
}

.gantt-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, transparent 0 6px, var(--line) 6px 12px);
  opacity: .9;
}

.gantt-cutover {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--st-orange);
}

.gantt-cutover.passed {
  background: none;
  border-left: 3px dotted var(--st-orange);
}

.gantt-clash {
  display: block;
  color: var(--st-red);
  font-size: 11px;
  font-weight: 500;
}

.clash-summary {
  margin: 4px 0 8px;
}

.gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--st-yellow);
  box-shadow: 0 0 8px var(--st-yellow);
}

.gantt-today-label {
  position: absolute;
  top: 0;
  z-index: 1;
  transform: translateX(-50%);
  padding: 0 6px;
  font: 500 11px var(--font-mono);
  color: var(--st-yellow-on);
  background: var(--st-yellow);
  border-radius: 4px;
  white-space: nowrap;
}

.gantt-end {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--st-red);
}

.gantt-legends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}

.gantt-legend {
  padding: 1px 8px;
  border-radius: 10px;
  color: var(--phase-on);
}

.phase-prepare {
  background: var(--phase-prepare);
}

.phase-build {
  background: var(--phase-build);
}

.phase-test {
  background: var(--phase-test);
}

.phase-cname {
  background: var(--phase-cname);
}

.phase-dns {
  background: var(--phase-dns);
}

.phase-watch {
  background: var(--phase-watch);
}

.clashes {
  color: var(--st-red);
  font-weight: 500;
}

/* dashboard */
.guide {
  background: linear-gradient(135deg, var(--guide-from), var(--panel));
  border-color: var(--guide-edge);
}

.guide-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--ink-strong);
}

.guide p.mute {
  margin: 0 0 12px;
}

.guide pre.command {
  margin: 0 0 4px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: 400 12.5px var(--font-mono);
}

a.action {
  display: inline-block;
  padding: 7px 16px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

a.action:hover,
a.action:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

ul.attention {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

ul.attention li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.status-on {
  background: var(--fill-done);
  color: var(--fill-on);
}

.status-behind {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.status-risk {
  background: var(--fill-red);
  color: var(--fill-on);
}

.status-none {
  background: var(--st-none);
  color: var(--mute);
}

.status-manual {
  background: var(--fill-yellow);
  color: var(--fill-yellow-on);
}

.status-scope {
  background: var(--fill-purple);
  color: var(--fill-on);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pill {
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
}

/* notes tabs and changelog */
.tabs {
  display: flex;
  gap: 14px;
  margin: 0 0 12px;
}

.tabs a[aria-current="page"] {
  font-weight: 500;
  color: var(--ink-strong);
}

.draft {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.entry pre {
  white-space: pre-wrap;
}

input[data-tags-url][data-state="saved"] {
  border-color: var(--st-done);
}

input[data-tags-url][data-state="error"] {
  border-color: var(--st-red);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar .chips {
  flex: 1 1 auto;
  align-items: center;
}

.toolbar .wave-chips {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

#tracker-find {
  flex: 1 1 24em;
}

#tracker-find input[type="search"] {
  width: 100%;
  min-width: 24em;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented-options {
  display: inline-flex;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--field);
  overflow: hidden;
}

.segmented a {
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--ink);
  border-left: 1px solid var(--line);
}

.segmented a:first-child {
  border-left: 0;
}

.segmented a:hover,
.segmented a:focus-visible {
  color: var(--accent);
}

.segmented a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.segmented a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

table.zones .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.group-toggle {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
}

.group-toggle::before {
  content: "\25BE";
  display: inline-block;
  width: 1.2em;
  color: var(--mute);
}

.group-toggle[aria-expanded="false"]::before {
  content: "\25B8";
}

.group-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

tbody[data-collapsed] tr:not(.wave-head) {
  display: none;
}

tbody[data-collapsed][data-filtering] tr:not(.wave-head):not([hidden]) {
  display: table-row;
}

.download {
  position: relative;
}

.download summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 3px 8px;
  color: var(--mute);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--chip);
}

.download summary:hover,
.download summary:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.download .menu {
  position: absolute;
  z-index: 5;
  right: 0;
  min-width: 280px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--field);
  padding: 2px;
}

.seg label {
  margin: 0;
  display: inline-flex;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  padding: 2px 12px;
  border-radius: 999px;
  color: var(--mute);
}

.seg input:checked+span {
  background: var(--st-blue);
  color: var(--st-on);
}

.seg input[value="zone"]:checked+span {
  background: var(--st-purple);
}

.seg input:focus-visible+span {
  outline: 2px solid var(--st-blue);
  outline-offset: 2px;
}

form[data-autosave][data-state="saved"] input[name="name"],
form[data-autosave][data-state="saved"] input[name="folder"] {
  border-color: var(--st-done);
}

form[data-autosave][data-state="error"] input[name="name"],
form[data-autosave][data-state="error"] input[name="folder"] {
  border-color: var(--st-red);
}

form[data-autosave][data-state="error"] .seg {
  border-color: var(--st-red);
}

ol.task-editor li[draggable="true"] {
  cursor: grab;
}

ol.task-editor li.dragging {
  opacity: .4;
}

ol.task-editor[data-state="error"] {
  outline: 2px solid var(--st-red);
  outline-offset: 4px;
  border-radius: 6px;
}

ol.task-editor .handle {
  color: var(--mute);
  cursor: grab;
  user-select: none;
}

.add-task {
  position: relative;
}

.add-task summary {
  list-style: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--field);
  font-size: 18px;
  color: var(--ink);
}

.add-task summary::-webkit-details-marker {
  display: none;
}

.add-task[open] summary {
  background: var(--st-blue);
  color: var(--st-on);
}

.add-task form {
  position: absolute;
  left: 0;
  top: 34px;
  z-index: 5;
  padding: 8px;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  white-space: nowrap;
}

ol.task-editor form.num input {
  width: 4ch;
  text-align: center;
  font: 400 12px var(--font-mono);
  padding: 3px 2px;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.s-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.s-item .l {
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.s-item .v {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-strong);
}

.strip .progress,
.kpi .progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.strip .bar {
  width: 160px;
}

tr[hidden] {
  display: none;
}

.toolbar input[type="search"] {
  min-width: 180px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--mute);
  cursor: pointer;
}

.theme-toggle {
  min-width: 34px;
  line-height: 1.2;
}

button.cell .next {
  display: none;
}

button.cell:hover .next,
button.cell:focus-visible .next {
  display: inline;
  opacity: .7;
}

button.cell:hover .now,
button.cell:focus-visible .now {
  display: none;
}

button.bulk {
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  color: var(--mute);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 6px;
  cursor: pointer;
  opacity: 0;
}

tr:hover .bulk,
th:hover .bulk,
button.bulk:focus-visible {
  opacity: 1;
}

button.bulk:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (hover: none) {
  .bulk {
    opacity: 1;
  }
}

.notice-bar {
  position: sticky;
  top: 8px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--alert-ink);
  background: var(--alert-bg);
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert-bg) 40%, transparent), 0 0 22px var(--alert-bg);
  animation: notice-pulse 1.4s ease-out 2;
}

@keyframes notice-pulse {
  0% {
    transform: scale(.985);
  }

  40% {
    transform: scale(1.01);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-bar {
    animation: none;
  }
}

.notice-bar[hidden] {
  display: none;
}

.notice-bar.saved {
  transition: opacity .6s ease;
}

.notice-bar.saved.fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .notice-bar.saved {
    transition: none;
  }
}

.notice-bar .btn {
  font-weight: 500;
  color: var(--alert-ink);
  background: transparent;
  border: 2px solid var(--alert-ink);
}

.notice-bar .btn:hover,
.notice-bar .btn:focus-visible {
  color: var(--alert-bg);
  background: var(--alert-ink);
}

.notice-bar .confirm {
  background: var(--alert-ink);
  color: var(--alert-bg);
}

.notice-bar .confirm:hover,
.notice-bar .confirm:focus-visible {
  outline: 3px solid var(--alert-ink);
  outline-offset: 2px;
}

.unit {
  display: block;
  font-size: 10px;
  line-height: 1.1;
}

.bulks {
  display: inline-flex;
  gap: 2px;
}

tr.wave-head[data-dim] {
  opacity: .5;
  transition: opacity .15s;
}

tr.wave-head[data-dim]:hover,
tr.wave-head[data-dim]:focus-within {
  opacity: 1;
}

.gantt-bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  z-index: 2;
}

.gantt-text {
  margin-top: 10px;
}

.gantt-table {
  font-size: 14px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.gantt-table th,
.gantt-table td {
  padding: 12px 20px;
  text-align: left;
}

.gantt-table tbody tr+tr>* {
  border-top: 1px solid var(--line);
}

.dates-table th:first-child {
  min-width: 130px;
  text-align: left;
}

.dates-table .wave-about {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  white-space: nowrap;
}

.dates-table .wave-about.counts {
  display: grid;
  grid-template-columns: 2.4ch auto;
  column-gap: .6ch;
}

.dates-table .wave-about .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dates-table .error {
  margin: 4px 0 0;
  font-weight: 400;
}

.deadlines {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px 28px;
  align-items: flex-start;
}

.deadlines>form {
  flex: 1 1 0;
  min-width: 0;
}

.cal {
  flex: 0 0 auto;
}

.cal-months {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-month {
  width: 196px;
}

@media (max-width: 1100px) {
  .deadlines {
    flex-wrap: wrap;
  }
}

.cal-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cal-title {
  margin: 0 0 4px;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
}

.cal-month[hidden] {
  display: none;
}

.cal table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.cal th {
  font-size: 11px;
  font-weight: 400;
  color: var(--mute);
  text-align: center;
  padding: 2px 0;
}

.cal td {
  text-align: center;
  vertical-align: middle;
  padding: 0;
  aspect-ratio: 1;
  font-size: 12px;
  border: 1px solid transparent;
}

.cal-band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--st-purple) 40%, transparent), color-mix(in srgb, var(--st-purple) 14%, transparent));
}

.cal-end {
  background: linear-gradient(135deg, color-mix(in srgb, var(--st-red) 55%, transparent), color-mix(in srgb, var(--st-red) 18%, transparent));
}

.cal-today {
  background: linear-gradient(135deg, color-mix(in srgb, var(--st-yellow) 70%, transparent), color-mix(in srgb, var(--st-yellow) 30%, transparent));
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

.cal-key {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dates-table input.empty {
  color: var(--mute);
}

.timeline-guide ol {
  margin: 6px 0 0;
  padding-left: 22px;
}

.timeline-guide li {
  margin: 4px 0;
}

.timeline-guide a {
  color: var(--st-red);
  font-weight: 500;
}

.toc {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 8px 0;
  margin-bottom: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.toc a {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--mute);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink-strong);
}

.toc a[aria-current] {
  color: var(--accent-ink);
  background: var(--accent);
}

.settings-group {
  scroll-margin-top: 170px;
  margin-bottom: 16px;
}

.group-title {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 500;
}

.settings-group .card h3 {
  margin: 0 0 6px;
  font: 500 15px var(--font-body);
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-strong);
}

.field-title {
  color: var(--ink-strong);
  font-weight: 500;
}

.quiet-box {
  min-height: 0;
  height: calc(3 * 1.4em + 16px);
  line-height: 1.4;
  overflow-y: auto;
  resize: none;
}

ul.attention .urgency {
  font: 400 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  min-width: 6ch;
}

.attention-more {
  margin-top: 6px;
}

.setup-checklist ol {
  margin: 6px 0 0;
  padding-left: 22px;
}

.setup-checklist li {
  margin: 6px 0;
}

.setup-checklist li.done {
  color: var(--mute);
}

.setup-checklist .pill {
  margin-right: 8px;
}

.setup-checklist a {
  color: var(--accent);
  font-weight: 500;
}

table.zones:has(tr.wave-head) td.idx {
  text-align: left;
  padding-left: 26px;
}

table.zones:has(tr.wave-head) thead th:first-child {
  padding-left: 26px;
}

table.proposals th .btn {
  text-align: center;
  line-height: 1.2;
}

/* Skip link: out of sight until the keyboard reaches it. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 30;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
}

.skip-link:focus-visible {
  top: 8px;
  color: var(--accent-ink);
}

main:focus {
  outline: none;
}

/* Steady header: Guided Flow keeps the header in view. Generic keeps the sliding header above. */
:root[data-look="guided"] {
  scroll-padding-top: 6rem;
}

:root[data-look="guided"] .site-header {
  position: sticky;
  top: 0;
  transform: none;
}

/* Command copy button: the script adds it to every command block, only the Akamai Purple look shows it. */
.copy-command,
.copy-status {
  display: none;
}

:root:is([data-look="purple"], [data-look="mono"]) .copy-command {
  display: inline-block;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  margin-right: 10px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

:root:is([data-look="purple"], [data-look="mono"]) .copy-command:hover {
  background: var(--chip);
}

:root:is([data-look="purple"], [data-look="mono"]) .copy-status {
  display: inline;
  color: var(--mute);
  font-size: 13.5px;
}

.overview-row {
  display: contents;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: 16px;
  align-items: stretch;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row .status-strip {
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row .status-strip .kpi {
  flex: 0 0 auto;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row .route-card {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 900px) {
  :root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row {
    grid-template-columns: minmax(0, 1fr);
  }

  :root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row .status-strip {
    grid-row: 1;
  }

  :root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .overview-row .route-card {
    grid-column: 1;
    grid-row: 2;
  }
}


/* Guided Flow: headline, welcome and the route of each wave. Other looks show only the text-free base. */
.headline,
.welcome,
.route-card {
  display: none;
}

:root[data-look="guided"] :is(.headline, .welcome, .route-card) {
  display: block;
}

:root[data-look="guided"] .headline-text {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

/* Guided Flow lift: cards that need attention keep their solid border and gain a soft glow instead of a frame, the route title is an eyebrow pill, and everything rises in on a soft spring. */
:root[data-look="guided"] :is(.headline, .welcome, .route-card, .rate-card, .no-go-notice) {
  padding: 14px 18px;
  box-shadow:
    inset 0 1px 0 var(--bezel-light),
    0 0 24px -2px var(--guide-glow);
  transition:
    transform 700ms var(--spring),
    box-shadow 700ms var(--spring);
  animation: guided-rise 800ms var(--spring) both;
}

:root[data-look="guided"] :is(.headline, .route-card):hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 var(--bezel-light),
    0 0 32px 0 var(--guide-glow);
}

:root[data-look="guided"] .route-card {
  animation-delay: 90ms;
}

:root[data-look="guided"] .route-title {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--guide-edge);
  background: var(--guide-from);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

:root[data-look="guided"] .route-stops .stop::before {
  height: 3px;
  top: 12px;
  border-radius: 999px;
  transition: background-color 700ms var(--spring);
}

:root[data-look="guided"] .route-stops .stop-mark {
  transition:
    transform 500ms var(--spring),
    background-color 500ms var(--spring);
}

:root[data-look="guided"] .route-stops .stop:hover .stop-mark {
  transform: scale(1.12);
}

:root[data-look="guided"] .route-stops .current .stop-mark {
  animation: route-flash 1.8s var(--spring) infinite;
}

@keyframes guided-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-look="guided"] :is(.headline, .welcome, .route-card, .rate-card, .no-go-notice, .route-stops .current .stop-mark) {
    animation: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  :root[data-look="guided"] :is(.headline, .welcome, .route-card, .rate-card, .no-go-notice) {
    padding: 12px 14px;
  }
}

.route {
  margin: 0 0 14px;
}

.route-title {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.route-stops {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0;
}

.route-stops .stop {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  position: relative;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}

.route-stops .stop::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}

.route-stops .stop:first-child::before {
  display: none;
}

.route-stops .stop.done::before,
.route-stops .stop.current::before {
  background: var(--accent);
}

.route-stops .stop-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  border: 2px solid var(--mute);
  background: var(--panel);
  color: var(--mute);
  font-size: 13px;
}

.route-stops .done .stop-mark {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}

.route-stops .current .stop-mark {
  background: var(--st-orange);
  border-color: var(--st-orange);
  color: var(--st-orange-on);
  animation: route-flash 1.4s ease-in-out infinite;
}

.route-stops .current .stop-name {
  color: var(--ink-strong);
  font-weight: 500;
}

@keyframes route-flash {
  0% {
    box-shadow: 0 0 0 0 var(--st-orange);
  }

  70% {
    box-shadow: 0 0 0 9px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-stops .current .stop-mark {
    animation: none;
  }

  .route * {
    transition: none;
  }
}

@media (max-width: 480px) {
  .route-stops .stop-name {
    font-size: 11px;
  }
}

/* Guided Flow: pass-rate line on Testing and the no-go notice on Issues. Akamai Orange and Purple also show the notice. */
.rate-card,
.no-go-notice {
  display: none;
}

:root[data-look="guided"] :is(.rate-card, .no-go-notice) {
  display: block;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .no-go-notice {
  display: block;
}

.rate-line {
  width: 100%;
  height: auto;
  max-height: 180px;
  overflow: visible;
}

.rate-line .rate-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.rate-line .rate-point {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 2;
}

.rate-line .rate-point.latest {
  fill: var(--accent);
  stroke: var(--ink-strong);
}

.rate-line .rate-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.rate-line text {
  fill: var(--mute);
  font-size: 11px;
}

.no-go-notice {
  box-shadow:
    inset 0 1px 0 var(--bezel-light),
    0 0 26px -2px color-mix(in srgb, var(--st-red) 45%, transparent);
}

:root[data-look] .no-go-notice {
  box-shadow:
    inset 0 1px 0 var(--bezel-light),
    0 0 26px -2px color-mix(in srgb, var(--st-red) 45%, transparent);
}

.no-go-notice h2 {
  margin-top: 0;
}

.no-go-notice ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

/* Overview Waves table: the wave name shows under the wave link, and the counts are bare numbers, on Akamai Orange only. */
.readiness .wave-name {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .readiness .wave-name {
  display: block;
  color: var(--mute);
  font-size: 12.5px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .readiness .unit {
  display: none;
}

.more-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.more-tiles a {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.more-tiles a:hover {
  border-color: var(--accent);
}

.more-tiles .tile-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-strong);
}

.more-tiles .tile-count {
  font-size: 28px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.ways-in {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

@media (min-width: 900px) {
  main:has(> .toc) {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }

  main:has(> .toc)>* {
    grid-column: 2;
  }

  main:has(> .toc)>.toc {
    grid-column: 1;
    grid-row: 1 / span 20;
    position: sticky;
    top: 4.5rem;
    flex-direction: column;
    flex-wrap: nowrap;
    border-bottom: 0;
    background: transparent;
  }
}

/* Coverage Report: one shared block. Shown in every look unless it is turned off in Settings. */
.coverage {
  display: block;
}

:root[data-coverage="off"] .coverage {
  display: none;
}

.cov-tiles {
  margin-bottom: 14px;
}

.cov-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.cov-row>div {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(90px, 0.8fr) 80px minmax(120px, 2fr) 48px;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.cov-scope,
.cov-count {
  color: var(--mute);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.cov-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--chip);
  overflow: hidden;
}

.cov-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.cov-percent {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .cov-fill {
    transition: none;
  }
}

@media (max-width: 600px) {
  .cov-row>div {
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
  }

  .cov-name {
    grid-column: 1 / -1;
  }

  .cov-bar {
    grid-column: 1;
  }
}

:root[data-look] main:has(.status-strip) .coverage .kpi-value {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

:root[data-look] main:has(.status-strip) .coverage .kpi {
  grid-column: auto;
  padding: 8px 12px;
  border-top: 0;
}

/* Coverage Report rows that filter their page: links with a visible focus, and a text flag beside colour. */
.cov-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.cov-link:hover {
  background: var(--chip);
}

.cov-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cov-title {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
}

.cov-flag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-strong);
  border: 1px solid var(--st-red);
  border-radius: 999px;
  padding: 0 8px;
}

.cov-clear {
  margin: 8px 0 0;
  font-size: 13.5px;
}

.following-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.following-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.following-list li[hidden],
#following[hidden] {
  display: none;
}

.more-tiles a {
  transition: border-color .15s, box-shadow .15s;
}

.more-tiles a:hover {
  box-shadow: var(--card-shadow);
  background: var(--band);
}

.more-tiles a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.more-tiles .tile-go {
  color: var(--accent);
}

.more-tiles .tile-arrow {
  margin-left: 6px;
}

.more-tiles a:hover .tile-arrow {
  margin-left: 10px;
}

.route-stops .stop-when {
  font-size: 14px;
  color: var(--mute);
}

.route-stops .stop-state {
  font-size: 14px;
  color: var(--mute);
}

.route-stops .done .stop-name,
.route-stops .upcoming .stop-name,
.route-stops .undated .stop-name {
  color: var(--mute);
}

.route-stops .current .stop-when,
.route-stops .current .stop-state {
  color: var(--ink-strong);
}

table.grid.detail :is(td, th) {
  vertical-align: top;
}

table.grid.detail th.task {
  min-width: 104px;
  max-width: 120px;
  vertical-align: top;
  white-space: normal;
  font-size: 14px;
}

table.grid.detail th.task .name {
  display: block;
  margin: 4px auto 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 400 14px var(--font-body);
  color: var(--ink);
}

table.grid.detail th.task .owner {
  display: block;
  margin: 2px auto 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 400 12px var(--font-body);
  color: var(--ink-soft, var(--ink));
}

table.grid.detail th.task .owner.gap {
  color: var(--warn, var(--ink-strong));
  font-weight: 600;
}

table.grid.detail thead tr.phase-band th {
  top: 0;
  height: 28px;
  font: 400 14px var(--font-body);
  color: var(--ink-strong);
  background: var(--chip);
}

table.grid.detail thead tr.task-numbers th {
  top: 30px;
  height: 26px;
}

table.grid.detail thead tr.task-bulk th {
  top: 56px;
  height: 32px;
}

table.grid.detail thead tr.task-names th {
  top: 88px;
}

table.grid.detail:not(.hosts) tbody td.idx,
table.grid.detail:not(.hosts) thead tr.task-names> :nth-child(1) {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: sticky;
  left: 1px;
  z-index: 1;
  background: var(--panel);
}

table.grid.detail:not(.hosts) tbody tr:not(.wave-head)>th[scope="row"],
table.grid.detail:not(.hosts) thead tr.task-names> :nth-child(2) {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  position: sticky;
  left: 42px;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.grid.detail:not(.hosts) tbody tr:not(.wave-head)> :nth-child(3),
table.grid.detail:not(.hosts) tr.wave-head>td:nth-child(2),
table.grid.detail:not(.hosts) thead tr.task-names> :nth-child(3) {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  position: sticky;
  left: 443px;
  z-index: 1;
}

table.grid.detail:not(.hosts) tbody tr:not(.wave-head)> :nth-child(4),
table.grid.detail:not(.hosts) tr.wave-head>td:nth-child(3),
table.grid.detail:not(.hosts) thead tr.task-names> :nth-child(4) {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  position: sticky;
  left: 507px;
  z-index: 1;
}

table.grid.detail:not(.hosts) tr.wave-head>th:first-child {
  position: sticky;
  left: 1px;
  z-index: 1;
  width: 441px;
  white-space: nowrap;
}

table.grid.detail:not(.hosts) thead tr>.frozen-end:first-child {
  position: sticky;
  left: 1px;
  z-index: 3;
  background: var(--panel);
}

table.grid.detail:not(.hosts) thead tr.task-names> :nth-child(-n+4) {
  z-index: 3;
  background: var(--panel);
}

table.grid.detail:not(.hosts) .frozen-end,
table.grid.detail:not(.hosts) tbody tr:not(.wave-head)> :nth-child(4),
table.grid.detail:not(.hosts) tr.wave-head>td:nth-child(3),
table.grid.detail:not(.hosts) thead tr.task-names> :nth-child(4) {
  border-right: 2px solid var(--line-strong);
}

.card h3.spaced {
  margin-top: 24px;
}

.group-title[title],
.card h3[title] {
  cursor: help;
}

.saved-folder {
  margin: 4px 0 8px;
}

a.markdown-link {
  display: inline-flex;
  align-items: center;
  color: var(--mute);
  text-decoration: none;
}

a.markdown-link:is(:hover, :focus-visible) {
  color: var(--accent);
}

.title-with-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.markdown-logo {
  width: 26px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20208%20128'%3E%3Crect%20x='5'%20y='5'%20width='198'%20height='118'%20rx='10'%20fill='none'%20stroke='black'%20stroke-width='10'/%3E%3Cpath%20fill='black'%20fill-rule='evenodd'%20d='M30%2098V30h20l20%2025%2020-25h20v68H90V59L70%2084%2050%2059v39zm125%200l-30-33h20V30h20v35h20z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20208%20128'%3E%3Crect%20x='5'%20y='5'%20width='198'%20height='118'%20rx='10'%20fill='none'%20stroke='black'%20stroke-width='10'/%3E%3Cpath%20fill='black'%20fill-rule='evenodd'%20d='M30%2098V30h20l20%2025%2020-25h20v68H90V59L70%2084%2050%2059v39zm125%200l-30-33h20V30h20v35h20z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media print {
  .markdown-link {
    display: none;
  }

  .release-toc {
    display: none;
  }
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  border: 0;
  border-radius: 12px 12px 4px 12px;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.to-top[hidden] {
  display: none;
}

.to-top::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16V4M4 10l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16V4M4 10l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.to-top:is(:hover, :focus-visible) {
  background: var(--accent);
}

@media print {
  .to-top {
    display: none;
  }
}

.scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  margin-bottom: 4px;
}

.scroll-top[hidden] {
  display: none;
}

.scroll-top-inner {
  height: 1px;
}

table.grid.detail:not(.hosts) :is(td.idx, th[scope="row"], thead tr > :nth-child(-n+4), tr.wave-head > th:first-child, tr.wave-head > td:nth-child(-n+3)) {
  box-sizing: border-box;
}

table.grid.detail th.phase-prepare {
  background: var(--phase-prepare);
  color: var(--phase-on);
}

table.grid.detail thead th.task[data-phase="prepare"],
table.grid.detail thead th.task-num[data-phase="prepare"],
table.grid.detail thead th.task-bulk[data-phase="prepare"] {
  background: color-mix(in srgb, var(--phase-prepare) 28%, var(--panel));
}

table.grid.detail th.phase-build {
  background: var(--phase-build);
  color: var(--phase-on);
}

table.grid.detail thead th.task[data-phase="build"],
table.grid.detail thead th.task-num[data-phase="build"],
table.grid.detail thead th.task-bulk[data-phase="build"] {
  background: color-mix(in srgb, var(--phase-build) 28%, var(--panel));
}

table.grid.detail th.phase-test {
  background: var(--phase-test);
  color: var(--phase-on);
}

table.grid.detail thead th.task[data-phase="test"],
table.grid.detail thead th.task-num[data-phase="test"],
table.grid.detail thead th.task-bulk[data-phase="test"] {
  background: color-mix(in srgb, var(--phase-test) 28%, var(--panel));
}

table.grid.detail th.phase-cname {
  background: var(--phase-cname);
  color: var(--phase-on);
}

table.grid.detail thead th.task[data-phase="cname"],
table.grid.detail thead th.task-num[data-phase="cname"],
table.grid.detail thead th.task-bulk[data-phase="cname"] {
  background: color-mix(in srgb, var(--phase-cname) 28%, var(--panel));
}

table.grid.detail th.phase-dns {
  background: var(--phase-dns);
  color: var(--phase-on);
}

table.grid.detail thead th.task[data-phase="dns"],
table.grid.detail thead th.task-num[data-phase="dns"],
table.grid.detail thead th.task-bulk[data-phase="dns"] {
  background: color-mix(in srgb, var(--phase-dns) 28%, var(--panel));
}

table.grid.detail th.phase-watch {
  background: var(--phase-watch);
  color: var(--phase-on);
}

table.grid.detail thead th.task[data-phase="watch"],
table.grid.detail thead th.task-num[data-phase="watch"],
table.grid.detail thead th.task-bulk[data-phase="watch"] {
  background: color-mix(in srgb, var(--phase-watch) 28%, var(--panel));
}

.phase-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.phase-pill {
  cursor: pointer;
  padding: 3px 12px;
  border-radius: 16px;
  border: 2px solid transparent;
  font: 400 14px var(--font-body);
  color: var(--phase-on);
}

.phase-pill[aria-pressed="true"]::before {
  content: "\2713\00a0";
}

.phase-pill[aria-pressed="false"] {
  color: var(--mute);
}

.phase-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.phase-pill.phase-prepare[aria-pressed="true"] {
  background: var(--phase-prepare);
}

.phase-pill.phase-prepare[aria-pressed="false"] {
  background: color-mix(in srgb, var(--phase-prepare) 22%, var(--panel));
}

.phase-pill.phase-build[aria-pressed="true"] {
  background: var(--phase-build);
}

.phase-pill.phase-build[aria-pressed="false"] {
  background: color-mix(in srgb, var(--phase-build) 22%, var(--panel));
}

.phase-pill.phase-test[aria-pressed="true"] {
  background: var(--phase-test);
}

.phase-pill.phase-test[aria-pressed="false"] {
  background: color-mix(in srgb, var(--phase-test) 22%, var(--panel));
}

.phase-pill.phase-cname[aria-pressed="true"] {
  background: var(--phase-cname);
}

.phase-pill.phase-cname[aria-pressed="false"] {
  background: color-mix(in srgb, var(--phase-cname) 22%, var(--panel));
}

.phase-pill.phase-dns[aria-pressed="true"] {
  background: var(--phase-dns);
}

.phase-pill.phase-dns[aria-pressed="false"] {
  background: color-mix(in srgb, var(--phase-dns) 22%, var(--panel));
}

.phase-pill.phase-watch[aria-pressed="true"] {
  background: var(--phase-watch);
}

.phase-pill.phase-watch[aria-pressed="false"] {
  background: color-mix(in srgb, var(--phase-watch) 22%, var(--panel));
}

.phase-pill.phase-other[aria-pressed="false"] {
  background: var(--panel);
}

.phase-pill.phase-other[aria-pressed="true"] {
  background: var(--chip);
  color: var(--ink);
}

table.grid.detail th.phase-other {
  background: var(--chip);
  color: var(--ink-strong);
}

.gantt-bar .bar-start {
  margin-right: 6px;
  opacity: .85;
}

.zone-form {
  margin: 6px 0 10px;
  text-align: left;
}

.zone-form fieldset {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 0;
}

.zone-form legend {
  padding: 0 6px;
  color: var(--mute);
}

.zone-form label {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.zone-form label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 6px;
}

table.grid.detail th.task-num {
  color: var(--ink-strong);
  font-size: 14px;
  background: var(--panel);
}

.audit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.audit-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.route-stops .stop-times {
  font: inherit;
  font-size: 14px;
  color: var(--mute);
  min-height: 1.4em;
}

.route-stops .current .stop-times {
  color: var(--ink-strong);
}

.dates-table input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

.dates-table input[type="date"],
.dates-table input[type="time"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.dates-table input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}

.cutover-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.cutover-times .cutover-title {
  grid-column: 1 / -1;
  font-size: 14px;
}

.landing {
  max-width: 420px;
  margin-top: 12vh;
  text-align: center;
}

.landing h1 {
  white-space: nowrap;
}

.landing .brand {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
}

.landing .brand-wave {
  position: relative;
  /* more negative = further left */
  left: -24px;
  /* bigger = lower */
  top: 15px;
  height: 132px;
  width: auto;
  margin-top: -21px;
  margin-bottom: -21px;
  margin-right: -90px;
}

.landing .brand-name {
  font-size: 34px;
}

.landing-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.landing-choices .btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.landing-choices a.btn:hover,
.landing-choices a.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.landing-choices .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.landing-choices .btn:disabled .mute {
  font-size: 13px;
}

/* Issues page: toggles inside table cells */
/* New Issue: the same filled button as New Test Batch. */
.new-issue-text {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.new-issue-text:hover,
.new-issue-text:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

.columns-icon {
  display: inline-flex;
  align-items: center;
}

.columns-icon svg {
  width: 24px;
  height: 24px;
}

.needs-domain-fold>summary {
  cursor: pointer;
}

.needs-domain-fold>summary h2 {
  display: inline;
}

table.issues th[data-col="age"],
table.issues td[data-col="age"] {
  min-width: 4.5em;
  white-space: nowrap;
}

table.issues .choices {
  display: flex;
}

/* every pill grows to the widest pill in its column */
table.issues .choices>.pill {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

table.issues .pill {
  font-size: 10.5px;
  font-weight: 400;
  padding: 2px 10px;
  border-color: transparent;
  white-space: nowrap;
  min-width: 5.5em;
  text-align: center;
}

table.issues [data-field="status"] .pill {
  min-width: 6.5em;
}

table.issues th[scope="row"] {
  min-width: 18em;
  width: 40%;
}

table.issues .pill:hover,
table.issues .pill:focus-visible {
  filter: brightness(1.08);
}

table.issues .pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table.issues .pill:focus:not(:focus-visible) {
  outline: none;
}

table.issues .cell-pill.status-open,
table.issues tr.wave-head th.status-open {
  background: var(--fill-blue);
  color: var(--fill-on);
}

table.issues .cell-pill.status-in_progress,
table.issues tr.wave-head th.status-in_progress {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

table.issues .cell-pill.status-blocked,
table.issues tr.wave-head th.status-blocked {
  background: var(--fill-red);
  color: var(--fill-on);
}

table.issues .cell-pill.status-closed,
table.issues tr.wave-head th.status-closed {
  background: var(--fill-done);
  color: var(--fill-on);
}

table.issues .cell-pill.blocks-yes,
table.issues tr.wave-head th.blocks-yes {
  background: var(--fill-red);
  color: var(--fill-on);
}

table.issues .cell-pill.blocks-no,
table.issues tr.wave-head th.blocks-no {
  background: var(--fill-done);
  color: var(--fill-on);
}

table.issues .cell-pill.kind-problem,
table.issues tr.wave-head th.kind-problem {
  background: var(--fill-red);
  color: var(--fill-on);
}

table.issues .cell-pill.kind-action,
table.issues tr.wave-head th.kind-action {
  background: var(--fill-purple);
  color: var(--fill-on);
}

table.issues tr.wave-head th.owner-akamai {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

table.issues tr.wave-head th.owner-customer {
  background: var(--fill-blue);
  color: var(--fill-on);
}

table.issues tr.wave-head th.owner-shared {
  background: var(--fill-purple);
  color: var(--fill-on);
}

table.issues .pill.owner-pill.owner-other {
  background: var(--chip);
  color: var(--ink);
}

table.issues tbody tr:not(.wave-head):hover td,
table.issues tbody tr:not(.wave-head):hover th,
table.issues tbody tr:not(.wave-head):focus-within td,
table.issues tbody tr:not(.wave-head):focus-within th {
  background: var(--band);
}

/* Waves rows light up under the mouse, as on the Issues page. */
table.zones tbody tr:not(.wave-head):hover td,
table.zones tbody tr:not(.wave-head):hover th {
  background: var(--band);
}

table.issues tr.wave-head th,
table.audit tr.wave-head th {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
  border-left: 4px solid var(--accent);
  border-top-color: color-mix(in srgb, var(--accent) 45%, var(--panel));
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, var(--panel));
  padding: 8px 10px;
}

/* Issues page: filters as toggles */
.filter-grid .filter-group>.mute {
  text-align: left;
}

.filter-choices {
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
}

.filter-choices {
  display: inline-flex;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--field);
  overflow: hidden;
}

.filter-choices a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border-left: 1px solid var(--line);
  padding: 2px 5px;
  white-space: nowrap;
}

.filter-choices a:first-child {
  border-left: 0;
}

.filter-choices a:hover,
.filter-choices a:focus-visible {
  color: var(--accent);
}

.filter-choices a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.filter-choices a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

.zone-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zone-menu input[type="search"] {
  width: 16em;
  max-width: 100%;
  box-sizing: border-box;
}

.zone-menu .zone-picked {
  font-size: 13px;
  color: var(--mute);
}

.zone-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  margin-top: 4px;
  min-width: 18em;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  text-align: left;
}

.zone-menu:not([data-open]):not(:focus-within) .zone-panel {
  display: none;
}

.zone-actions {
  display: flex;
  gap: 16px;
}

.zone-panel :is(.clear-zones, .select-zones) {
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
}

.zone-list {
  max-height: 16em;
  overflow-y: auto;
}

.zone-list label,
form.stack .zone-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 14px;
  color: var(--ink);
}

.zone-list label[hidden] {
  display: none;
}

form.stack .zone-list label[hidden] {
  display: none;
}

.zone-list .kind {
  font-size: 12px;
}

.zone-list .count {
  margin-left: auto;
}

form.stack.issue-filters {
  display: grid;
  grid-template-columns: auto auto 16px auto auto 16px auto auto 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.list-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.list-head #issue-q {
  width: 20em;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.view-row .head-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
}

/* Open filters: two tidy columns of label + pills, capped in width and left-aligned, apart from the head row's grid. */
.issue-filters {
  --filter-label: 8em;
  --filter-width: 900px;
}

.issue-filters .filter-fold {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.issue-filters .filter-fold>summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.issue-filters .filter-fold>summary::-webkit-details-marker {
  display: none;
}

.issue-filters .filter-fold>summary:hover,
.issue-filters .filter-fold>summary:focus-visible {
  color: var(--accent-hover, var(--accent));
}

.issue-filters .filter-fold>summary .mute {
  font-size: 12px;
  text-decoration: none;
}

.issue-filters .filter-grid {
  width: 100%;
  max-width: var(--filter-width);
  display: grid;
  grid-template-columns: var(--filter-label) minmax(0, 1fr) var(--filter-label) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 10px;
  align-items: center;
}

.issue-filters .filter-grid .filter-group {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 2;
  align-items: center;
}

.issue-filters .filter-grid .filter-group:nth-child(odd) {
  padding-right: 24px;
}

.issue-filters .filter-group>.mute {
  text-align: left;
  font-size: 12.5px;
  white-space: nowrap;
}

.issue-filters .view-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 8px;
}

.issue-filters .group-row {
  width: 100%;
  max-width: var(--filter-width);
  display: grid;
  grid-template-columns: var(--filter-label) minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.issue-filters .group-row .filter-group {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
}

.issue-filters .filter-fold>a {
  font-size: 13px;
}

table.plain.issues,
table.plain.catalog-table {
  border-collapse: collapse;
  border-spacing: 0;
}

table.plain.issues th,
table.plain.issues td,
table.plain.catalog-table th,
table.plain.catalog-table td {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

/* The row just added: a bold accent bar and a glow that fade away over a few seconds, once. */
table.issues tr.just-added>td {
  animation: just-added-fade 6s ease-out forwards;
}

table.issues tr.just-added>td:first-child {
  animation: just-added-fade 6s ease-out forwards, just-added-bar 6s ease-out forwards;
}

table.issues tr.just-added {
  scroll-margin-top: 80px;
}

@keyframes just-added-fade {

  0%,
  60% {
    background-color: color-mix(in srgb, var(--accent) 18%, var(--panel));
  }

  100% {
    background-color: transparent;
  }
}

@keyframes just-added-bar {

  0%,
  60% {
    box-shadow: inset 4px 0 0 var(--accent);
  }

  100% {
    box-shadow: inset 4px 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  table.issues tr.just-added>td {
    animation: none;
    background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  }

  table.issues tr.just-added>td:first-child {
    box-shadow: inset 4px 0 0 var(--accent);
  }
}

@media (max-width: 800px) {

  form.stack.issue-filters,
  .list-head,
  .issue-filters .filter-grid,
  .issue-filters .filter-grid .filter-group,
  .issue-filters .group-row,
  .issue-filters .group-row .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Needs a domain: tag a row in place. */
table.issues .tag-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

table.issues .tag-form input {
  min-width: 11em;
}

table.issues .tag-form select,
table.issues .tag-form input {
  font-size: 13.5px;
  padding: 2px 6px;
}

table.issues .tag-form .btn {
  padding: 2px 10px;
}

table.issues td p.error {
  margin: 4px 0 0;
  font-size: 12.5px;
}

.choice-tip,
.cursor-tip {
  position: fixed;
  z-index: 30;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink-strong);
  border-radius: var(--radius-sm);
  pointer-events: none;
  width: max-content;
  max-width: min(70ch, calc(100vw - 16px));
  white-space: pre-line;
  overflow-wrap: anywhere;
  box-shadow: var(--card-shadow);
}

.choice-tip[hidden],
.cursor-tip[hidden] {
  display: none;
}

table.issues .cell-pill.severity-critical,
table.issues tr.wave-head th.severity-critical {
  background: var(--sev-critical);
  color: var(--sev-critical-on);
}

table.issues .cell-pill.severity-high,
table.issues tr.wave-head th.severity-high {
  background: var(--sev-high);
  color: var(--sev-high-on);
}

table.issues .cell-pill.severity-medium,
table.issues tr.wave-head th.severity-medium {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

table.issues .cell-pill.severity-low,
table.issues tr.wave-head th.severity-low {
  background: var(--sev-low);
  color: var(--sev-low-on);
}

.settings-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}

.settings-pair>.card {
  margin-bottom: 0;
}

.retire-task {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 26px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--field);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}

.retire-task:hover,
.retire-task:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.retire-task:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table.plain.dates-table {
  border-collapse: collapse;
  border-spacing: 0;
}

table.plain.dates-table th,
table.plain.dates-table td {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.schedule-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.schedule-head h2 {
  margin: 0;
}

table.plain {
  border-collapse: collapse;
  border-spacing: 0;
}

table.plain th,
table.plain td {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.delete-wave {
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 20px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--field);
  font-size: 14px;
  font-weight: 400;
  color: var(--mute);
  cursor: pointer;
}

.delete-wave:hover,
.delete-wave:focus-visible {
  color: var(--st-on);
  background: var(--st-red);
  border-color: var(--st-red);
}

.delete-wave:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

tr.wave-head th form.inline {
  display: inline;
}

.wave-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wave-head-row .group-toggle {
  flex: 0 1 auto;
  text-align: left;
}

.wave-head-row .delete-wave,
.wave-head-row form.inline {
  margin-left: auto;
}

.wave-head-row form.inline {
  flex: 0 0 auto;
  display: block;
  margin: 0;
}

.notice-bar .wave-delete {
  display: grid;
  gap: 12px;
}

.notice-bar .wave-delete label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-bar .wave-delete-actions {
  display: flex;
  gap: 12px;
}

.notice-bar .wave-delete .btn.confirm {
  background: var(--st-done);
  color: var(--st-on);
  border: 0;
}

.notice-bar .wave-delete .btn.cancel {
  background: var(--st-red);
  color: var(--st-on);
  border: 0;
  text-decoration: none;
}

.notice-bar .wave-delete .btn.confirm:hover,
.notice-bar .wave-delete .btn.cancel:hover,
.notice-bar .wave-delete .btn.confirm:focus-visible,
.notice-bar .wave-delete .btn.cancel:focus-visible {
  color: var(--st-on);
  outline: 0;
  filter: brightness(1.1);
}

.notice-bar .wave-delete-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 88px;
  padding: 3px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.route-stops a.no-dates {
  color: var(--st-red);
  text-decoration: underline;
}

.route-stops a.no-dates:hover {
  color: var(--st-red);
  text-decoration-thickness: 2px;
}

.route-stops a.no-dates:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.audit-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.dates-table input[type="datetime-local"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.cutover-pickers {
  display: grid;
  gap: 6px;
}

.cutover-pickers label {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  align-items: center;
  gap: 8px;
}

.dates-table .date-col {
  width: 1%;
  white-space: nowrap;
}

.dates-table .date-col input[type="date"] {
  width: 9.5em;
}

.cutover-pickers .pick-label {
  font-size: 14px;
}

.cutover-pickers .cutover-end {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 8px;
  padding-right: 9px;
}

.cutover-pickers .cutover-end [data-cutover-end] {
  padding-left: 9px;
}

.site-header nav a[hidden] {
  display: none;
}

.tab-rows {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-width: 200px;
}

.tab-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 2px 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.tab-rows li[data-dragging] {
  opacity: .5;
}

.tab-rows li[data-drop="before"] {
  border-top-color: var(--accent);
}

.tab-rows li[data-drop="after"] {
  border-bottom-color: var(--accent);
}

.tab-rows .tab-handle {
  font: inherit;
  letter-spacing: -2px;
  color: var(--mute);
  background: none;
  border: 0;
  padding: 2px 6px;
  cursor: grab;
  border-radius: var(--radius-sm);
}

.tab-rows .tab-handle:hover,
.tab-rows .tab-handle:focus-visible {
  color: var(--accent);
}

.tab-rows .tab-handle:active {
  cursor: grabbing;
}

.tab-rows .tab-handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

table.grid.detail th.phase[data-tasks] {
  position: sticky;
}

table.grid.detail th.phase[data-tasks]::after {
  content: attr(data-tasks);
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 7;
  margin-top: 6px;
  min-width: max-content;
  max-width: 360px;
  padding: 8px 12px;
  white-space: pre;
  text-align: left;
  font: 400 13px/1.5 var(--font-body);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  pointer-events: none;
}

table.grid.detail th.phase[data-tasks]:hover::after {
  display: block;
}

/* Pastel Overview: calmer, with one route and one orange button. Guided Flow rules above are not touched. */
.rule-hint>summary {
  display: none;
}

.rule-hint::details-content {
  content-visibility: visible;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint>summary {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
  background: var(--chip);
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint>summary::-webkit-details-marker {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint>summary:hover,
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint>summary:focus-visible {
  color: var(--accent);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint:not([open]) .rule-text {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .route-card {
  display: block;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .route-stops .stop-mark {
  border-radius: 50%;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .route-stops .current .stop-mark {
  animation: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(.status-strip) .card {
  box-shadow: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(.status-strip) .pill:not(.state-pill) {
  background: var(--chip);
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-items: baseline;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .status-strip .kpi {
  flex: 1 1 190px;
  border: 0;
  background: transparent;
  padding-inline: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .attention-empty::before {
  content: "✓ ";
  color: var(--st-done);
  font-weight: 500;
}

/* Pastel Waves page: calm table, routes first, one fold toggle and a banner for waiting proposals. Guided Flow is not touched. */
.fold-toggle,
.pending-banner {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .fold-toggle {
  display: inline-block;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) [data-groups="expand"],
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) [data-groups="collapse"] {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .pending-banner {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--chip);
  color: var(--ink-strong);
  font-weight: 500;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .pending-banner:hover,
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .pending-banner:focus-visible {
  color: var(--accent);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones) :is(#zones, .proposals-card, .rules-card, .route-card) {
  box-shadow: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones) .pill {
  background: var(--chip);
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones)>.route-card {
  order: -1;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones)>.route-card>h2 {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones)>.notice-bar {
  order: -2;
}

/* Pastel Rules editor: the example on the left, the TOML with line numbers on the right, and the check or error banner right above it. */
.line-gutter,
.rules-note-here {
  display: none;
}

.rules-note-top {
  display: contents;
}

.editor {
  display: block;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-note-top {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-note-here {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-note-here .notice-bar {
  position: static;
  font-size: 16px;
  font-weight: 500;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .editor,
.editor.numbered {
  position: relative;
  margin-top: 4px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .line-gutter,
.editor.numbered .line-gutter {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5ch;
  margin: 0;
  padding: 3px 8px 3px 0;
  overflow: hidden;
  user-select: none;
  text-align: right;
  color: var(--mute);
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  font: 400 12.5px/1.5 var(--font-mono);
  box-sizing: border-box;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .editor textarea,
.editor.numbered textarea {
  display: block;
  min-height: 320px;
  padding-left: calc(5ch + 8px);
  line-height: 1.5;
  white-space: pre;
  overflow: auto;
}

.editor.numbered textarea {
  min-height: 200px;
  width: 100%;
  box-sizing: border-box;
}

/* Pastel hint: the ? sits on the title line and its text opens as a small panel, so nothing below moves. */
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .card>h2:has(+ .rule-hint) {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .card>.rule-hint {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint[open] .rule-text {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 4;
  width: max-content;
  max-width: min(420px, 80vw);
  margin: 0;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rule-hint {
  position: relative;
}


.check-result-here {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-note-here [data-check="ok"] {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .check-result-here {
  display: block;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .check-result-here:empty {
  display: none;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .check-result-here .notice-bar {
  position: static;
  animation: none;
  box-shadow: none;
  margin: 8px 0;
  font-size: 14px;
  background: var(--chip);
  color: var(--ink-strong);
}

table.grid.detail th.task .task-num {
  display: block;
  font: 400 14px var(--font-mono);
  color: var(--ink-strong);
}

table.grid.detail td.s-na {
  font-size: 13px;
  color: var(--mute);
}

table.grid.detail:not(.hosts) tr.wave-head>th:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

table.grid.detail:not(.hosts) tr.wave-head>td.hn {
  background: var(--chip);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

[data-host-search] {
  display: block;
  width: 350px;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 8px 12px;
  font-size: 15px;
  transition: width .15s ease;
}

[data-host-search]:focus,
[data-host-search]:not(:placeholder-shown) {
  width: min(100%, 520px);
}

table.grid.detail:not(.hosts) tbody tr:not(.wave-head)>td.hn {
  background: var(--panel);
}

ol.tasks.numbered {
  list-style: none;
  padding-left: 0;
}

ol.tasks.numbered .task-no {
  display: inline-block;
  min-width: 2ch;
  margin-right: 4px;
  font-family: var(--font-mono);
  color: var(--ink-strong);
}

.back-link {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.release-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: start;
  gap: 48px;
  align-items: start;
}

.release-notes {
  grid-column: 2;
  grid-row: 1;
  line-height: 1.6;
}

.release-toc {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 120px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 13.5px;
}

.release-toc-title {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--ink-strong);
}

.release-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-toc a {
  display: block;
  padding: 4px 0 4px 10px;
  margin-left: -17px;
  border-left: 2px solid transparent;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-toc a:is(:hover, :focus-visible),
.release-toc a[aria-current] {
  color: var(--accent);
}

.release-toc a[aria-current] {
  border-left-color: var(--accent);
}

@media (max-width: 1000px) {
  .release-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .release-notes,
  .release-toc {
    grid-column: 1;
    grid-row: auto;
  }

  .release-toc {
    position: static;
    max-height: 40vh;
    overflow-y: auto;
    padding-left: 0;
    border-left: 0;
  }

  .release-toc a {
    margin-left: 0;
  }
}


.release-notes h2 {
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.release-notes h3 {
  margin: 24px 0 8px;
}

.release-notes ul {
  padding-left: 24px;
}

table.grid.hosts td.idx {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel);
  text-align: left;
  padding-left: 10px;
}

table.grid.hosts th[scope="row"] {
  left: 40px;
  z-index: 1;
  border-right: 2px solid var(--line-strong);
}

table.grid.hosts thead tr> :nth-child(1) {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--panel);
}

table.grid.hosts thead tr> :nth-child(2) {
  position: sticky;
  left: 40px;
  z-index: 3;
  background: var(--panel);
  text-align: left;
  border-right: 2px solid var(--line-strong);
}

table.grid.hosts td:has(> button.cell) {
  padding: 0;
}

table.grid.hosts button.cell {
  box-sizing: border-box;
  min-height: 34px;
  padding: 8px 6px;
}

table.grid.hosts td.s-none button.cell {
  opacity: .45;
}

table.grid.hosts td.s-none button.cell:hover,
table.grid.hosts td.s-none button.cell:focus-visible {
  opacity: 1;
}

.zone-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zone-details>summary {
  width: fit-content;
  margin-bottom: 6px;
}

.zone-details:not([open])>summary {
  color: var(--mute);
}

table.grid tr.wave-head th .pill,
table.grid tr.wave-head th .follow-btn {
  margin-left: 12px;
}

#zone-notice:empty {
  display: none;
}

#zone-notice .notice-bar {
  animation: none;
}

.card ol.comments {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card ol.comments .comment-text {
  white-space: pre-wrap;
  margin-top: 2px;
}

.side-panel .panel-section form.form-calm textarea {
  min-height: 52px;
}

.side-panel .panel-section form.form-calm .form-actions {
  margin-top: 0;
}

/* Form toggles: flat chips that wrap cleanly. Not the Settings tray, so no look turns them into a blob. */
.chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.chips label {
  margin: 0;
  display: inline-flex;
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips span {
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s;
}

.chips label:hover span {
  border-color: var(--accent);
  color: var(--accent);
}

.chips input:checked+span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

.chips input:focus-visible+span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chips[data-field="severity"] input[value="critical"]:checked+span {
  background: var(--sev-critical);
  border-color: var(--sev-critical);
  color: var(--sev-critical-on);
}

.chips[data-field="severity"] input[value="high"]:checked+span {
  background: var(--sev-high);
  border-color: var(--sev-high);
  color: var(--sev-high-on);
}

.chips[data-field="severity"] input[value="medium"]:checked+span {
  background: var(--fill-orange);
  border-color: var(--fill-orange);
  color: var(--fill-orange-on);
}

/* Kind and owner chips wear the same fills as the pills in the issues table. */
.chips[data-field="kind"] input[value="problem"]:checked+span {
  background: var(--fill-red);
  border-color: var(--fill-red);
  color: var(--fill-on);
}

.chips[data-field="kind"] input[value="action"]:checked+span {
  background: var(--fill-purple);
  border-color: var(--fill-purple);
  color: var(--fill-on);
}

.chips[data-field="owner"] input[value="akamai"]:checked+span {
  background: var(--fill-orange);
  border-color: var(--fill-orange);
  color: var(--fill-orange-on);
}

.chips[data-field="owner"] input[value="customer"]:checked+span {
  background: var(--fill-blue);
  border-color: var(--fill-blue);
  color: var(--fill-on);
}

.chips[data-field="owner"] input[value="shared"]:checked+span {
  background: var(--fill-purple);
  border-color: var(--fill-purple);
  color: var(--fill-on);
}

.chips[data-field="severity"] input[value="low"]:checked+span {
  background: var(--sev-low);
  border-color: var(--sev-low);
  color: var(--sev-low-on);
}

.chips[data-field="status"] input[value="closed"]:checked+span {
  background: var(--st-done);
  border-color: var(--st-done);
  color: var(--st-on);
}

.side-panel .fact.wide,
.side-panel form.ticket .facts>.fold .fact.wide {
  grid-column: 1 / -1;
  grid-template-columns: 5.5em minmax(0, 1fr);
}

.side-panel .facts-side .fact {
  grid-template-columns: 4.3em minmax(0, 1fr);
}

form.form-calm label.field>.chips {
  align-self: flex-start;
}

.meeting-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.meeting-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.meeting-actions .btn {
  display: inline-block;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Waves toolbar: the Filter columns funnel and the Download icon sit side by side on one centre line. */
.meeting-actions .head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meeting-actions .head-actions .columns-menu>summary.columns-icon,
.meeting-actions .head-actions .columns-menu {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.meeting-actions .btn:hover,
.meeting-actions .btn:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

.meeting-line {
  padding: 0;
}

.meeting-line>summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  color: var(--mute);
  cursor: pointer;
  list-style: none;
}

.meeting-line>summary::-webkit-details-marker {
  display: none;
}

.meeting-line>summary::before {
  content: "\25B8";
  color: var(--mute);
  transition: transform .12s ease-out;
}

.meeting-line[open]>summary::before {
  transform: rotate(90deg);
}

.meeting-line>summary:hover,
.meeting-line>summary:focus-visible {
  color: var(--accent);
}

.meeting-line .meeting-day {
  font-weight: 500;
  color: var(--ink-strong);
}

.meeting-line .meeting-title {
  color: var(--ink-strong);
  font-weight: 500;
}

.side-panel h2 .meeting-title-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  margin-left: -6px;
}

.side-panel h2 .meeting-title-input:hover,
.side-panel h2 .meeting-title-input:focus {
  background: var(--field);
  border-color: var(--line-strong);
}

.meeting-line .mute {
  font-size: 13px;
}

.meeting-line .meeting-body {
  padding: 0 14px 12px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-line .agenda-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meeting-line .agenda-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meeting-line .agenda-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.meeting-line .agenda-title {
  color: var(--ink-strong);
}

.meeting-line .issue-items {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meeting-line .issue-item {
  --owner: var(--mute);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.meeting-line .issue-item::before {
  content: "\2022";
  color: var(--owner);
  font-size: 16px;
  line-height: 1;
}

.meeting-line .issue-item.owner-akamai {
  --owner: var(--st-orange);
}

.meeting-line .issue-item.owner-customer {
  --owner: var(--st-blue);
}

.meeting-line .issue-item.owner-shared {
  --owner: var(--st-purple);
}

.meeting-line .issue-link {
  color: var(--owner);
}

.meeting-line .issue-link:hover,
.meeting-line .issue-link:focus-visible {
  text-decoration: underline;
}

.open-chip {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--chip);
  color: var(--ink);
}

.open-chip.done {
  background: color-mix(in srgb, var(--fill-done) 82%, var(--panel));
  color: var(--ink-strong);
}

.open-chip.none {
  background: none;
  color: var(--mute);
}

.save-status {
  min-height: 1.2em;
  font-size: 12.5px;
  color: var(--st-done);
}

.save-status.error {
  color: var(--st-red);
  font-weight: 500;
}

.meeting-row textarea[name="notes"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 8em;
}

.row-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill:not([class*="status-"]) {
  cursor: pointer;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.pill:not([class*="status-"]):hover,
.pill:not([class*="status-"]):focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.owner-pill {
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 600;
  border-color: transparent;
}

.pill.owner-pill:hover,
.pill.owner-pill:focus-visible {
  filter: brightness(1.08);
}

.pill.owner-pill.owner-akamai {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.pill.owner-pill.owner-customer {
  background: var(--fill-blue);
  color: var(--fill-on);
}

.pill.owner-pill.owner-shared {
  background: var(--fill-purple);
  color: var(--fill-on);
}

.follow-ups {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.follow-ups li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
  font-size: 14px;
}

.row-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.row-chips .chip-link {
  font-size: 13px;
}

.chip-menu>summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
}

.chip-menu>summary::-webkit-details-marker {
  display: none;
}

.chip-menu[open]>input {
  margin-left: 6px;
}

.chip-menu[open] {
  display: inline-flex;
  align-items: center;
}

.more-menu {
  position: relative;
  display: inline-block;
  margin: 0 0 6px;
}

.more-menu>summary.menu-trigger {
  cursor: pointer;
  list-style: none;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--mute);
}

.more-menu>summary.menu-trigger::-webkit-details-marker {
  display: none;
}

.more-menu>summary.menu-trigger:hover,
.more-menu>summary.menu-trigger:focus-visible {
  color: var(--accent);
  background: var(--chip);
}

.more-menu .confirm {
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.more-menu .confirm>summary {
  cursor: pointer;
}

.note-lines {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.note-lines li {
  padding: 2px 0;
  font-size: 14px;
}

.note-lines .make-it {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  font-size: 12.5px;
  opacity: 0;
  transition: opacity .12s;
}

.note-lines li:hover .make-it,
.note-lines li:focus-within .make-it {
  opacity: 1;
}

.promote-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (hover: none) {
  .note-lines .make-it {
    opacity: 1;
  }
}

.follow-ups li {
  flex-wrap: wrap;
}

.follow-ups .follow-text.done {
  text-decoration: line-through;
  color: var(--mute);
}

.follow-ups .chip.status {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--chip);
  color: var(--ink);
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.link-chip .chip-x {
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
  color: var(--mute);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.link-chip .chip-x:hover,
.link-chip .chip-x:focus-visible {
  color: var(--accent);
}

a.btn {
  display: inline-block;
  font: inherit;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  cursor: pointer;
  text-decoration: none;
}

a.btn:hover,
a.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.panel-confirm {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--alert-ink);
  border-radius: var(--radius);
  background: var(--alert-bg);
  color: var(--alert-ink);
}

.panel-confirm p {
  margin: 0 0 8px;
}

.panel-confirm-actions {
  display: flex;
  gap: 12px;
}

.panel-confirm .btn {
  color: var(--alert-ink);
  background: transparent;
  border: 1px solid var(--alert-ink);
  font-weight: 500;
}

.panel-confirm .btn:hover,
.panel-confirm .btn:focus-visible {
  color: var(--alert-bg);
  background: var(--alert-ink);
}

.month-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 16px;
  overflow-x: auto;
  align-items: start;
  /* room for the card glow, which the scrolling box would otherwise cut off in a hard edge */
  padding: 28px;
  margin: -28px;
}

.month-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.month-heading {
  margin: 0;
  font: 500 13px var(--font-mono);
  letter-spacing: .08em;
  color: var(--mute);
}

.months-choice {
  margin-left: auto;
}

@media (max-width: 720px) {
  .month-columns {
    display: flex;
    flex-direction: column-reverse;
    overflow-x: visible;
    padding: 0;
    margin: 0;
  }
}

.meeting-tools .cancel-flag[aria-pressed="true"] {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
  border-color: transparent;
  font-weight: 600;
}

.cancelled-chip {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.link-list {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-chip .ext-icon {
  margin-left: 4px;
  font-size: 12px;
  color: var(--mute);
}

.link-chip .chip-link:hover .ext-icon,
.link-chip .chip-link:focus-visible .ext-icon {
  color: var(--accent);
}

.meeting-tools input[type="search"] {
  width: 40ch;
  max-width: 100%;
}

.utc-note {
  margin-left: 6px;
  font-size: 12px;
  opacity: .8;
}

table.issues tr.wave-head th .group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

table.issues tr.wave-head th .group-count {
  font-weight: 400;
  font-size: 13px;
}

.state-pills {
  display: inline-flex;
}

.pill.state-pill {
  font-size: 13px;
  font-weight: 400;
  padding: 3px 14px;
  border-color: transparent;
  min-width: 6em;
  text-align: center;
  cursor: pointer;
}

.pill.state-pill:hover,
.pill.state-pill:focus-visible {
  filter: brightness(1.08);
}

.pill.state-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.state-pill.status-open {
  background: var(--fill-blue);
  color: var(--fill-on);
}

.state-pill.status-in_progress {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.state-pill.status-blocked {
  background: var(--fill-red);
  color: var(--fill-on);
}

.state-pill.status-closed {
  background: var(--fill-done);
  color: var(--fill-on);
}

.state-pill.kind-problem {
  background: var(--fill-red);
  color: var(--fill-on);
}

.state-pill.kind-action {
  background: var(--fill-purple);
  color: var(--fill-on);
}

.state-pill.severity-critical {
  background: var(--sev-critical);
  color: var(--sev-critical-on);
}

.state-pill.severity-high {
  background: var(--sev-high);
  color: var(--sev-high-on);
}

.state-pill.severity-medium {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.state-pill.severity-low {
  background: var(--sev-low);
  color: var(--sev-low-on);
}

.state-pill.owner-akamai {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.state-pill.owner-customer {
  background: var(--fill-blue);
  color: var(--fill-on);
}

.state-pill.owner-shared {
  background: var(--fill-purple);
  color: var(--fill-on);
}

.state-pill.owner-other {
  background: var(--chip);
  color: var(--ink);
}

.state-pill.blocks-yes {
  background: var(--fill-red);
  color: var(--fill-on);
}

.state-pill.blocks-no {
  background: var(--fill-done);
  color: var(--fill-on);
}

.side-panel form.ticket .meta-line {
  margin: -2px 0 0;
  font-size: 12.5px;
}

.side-panel form.ticket table.detail-grid {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
}

.side-panel form.ticket table.detail-grid th {
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  color: var(--mute);
  padding: 0 8px 4px 0;
  white-space: nowrap;
}

.side-panel form.ticket table.detail-grid td {
  vertical-align: top;
  padding: 0 20px 10px 0;
}

.side-panel form.ticket table.detail-grid .pill.state-pill {
  min-width: 0;
  padding: 3px 10px;
}

.side-panel form.ticket table.detail-grid input[name="assignee"] {
  width: 100%;
  min-width: 6em;
  box-sizing: border-box;
}

.side-panel form.ticket table.detail-grid td a {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
}

ol.comments li.comment .comment-head {
  font-size: 13px;
}

ol.comments li.comment .comment-when {
  font-weight: 400;
  color: var(--mute);
}

ol.comments li.comment .comment-edited {
  margin-left: 8px;
  font-size: 12px;
  color: var(--mute);
  font-style: italic;
}

ol.comments li.comment .comment-text[hx-get] {
  cursor: text;
}

ol.comments li.comment .comment-hint {
  margin: 2px 0 0;
  font-size: 12px;
}

ol.comments li.comment form textarea {
  width: 100%;
  box-sizing: border-box;
}

.side-panel ol.comments li.comment .comment-head {
  font-size: 13px;
}

[data-plain]>summary {
  cursor: pointer;
  list-style: none;
}

[data-plain]>summary::-webkit-details-marker {
  display: none;
}

[data-plain]>summary::marker {
  content: "";
}

[data-plain]>summary::before {
  display: none;
}

form.form-calm .fold[data-plain]>summary::before,
.card .fold[data-plain]>summary::before {
  display: none;
}

.side-panel form.ticket {
  container-type: inline-size;
}

@container (max-width: 460px) {

  table.detail-grid,
  table.detail-grid tbody {
    display: block;
  }

  table.detail-grid tbody.labels {
    display: none;
  }

  table.detail-grid tr {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  table.detail-grid td {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0;
  }

  table.detail-grid {
    width: 100%;
  }

  table.detail-grid td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: var(--mute);
  }
}

.side-panel form.ticket table.detail-grid {
  grid-column: 1 / -1;
  justify-self: start;
}

.side-panel .panel-section:has(.section-head),
#issue-panel .panel-section:has(.section-head) {
  margin-top: 36px;
  padding-top: 4px;
}

.pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.side-panel .fact-value .chips {
  min-width: 0;
}

.side-panel[data-panel-theme="dark"] {
  color-scheme: dark;
}

.side-panel[data-panel-theme="light"] {
  color-scheme: light;
}

.side-panel {
  color: var(--ink);
}

.side-panel .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  margin-left: auto;
  color: var(--mute);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.panel-theme:hover,
.panel-theme:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
}

.jump-comment {
  margin-left: 12px;
  font-size: 12.5px;
  font-weight: 400;
}

#issue-panel .panel-head.bare {
  position: absolute;
  top: 23px;
  right: 36px;
  margin: 0;
  gap: 14px;
  justify-content: flex-end;
}

#issue-panel .panel-crumbs {
  margin: 28px 96px 8px 0;
}

.side-panel .fact-value .zone-menu {
  flex: 1 1 14em;
  min-width: 0;
}

.side-panel .zone-menu .zone-panel {
  z-index: 6;
}

.source-note {
  margin-left: 12px;
}

/* Drag an issue to another group */
table.issues th:has(> .row-grip) {
  position: relative;
  padding-left: 26px;
}

table.issues .row-grip {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  cursor: grab;
  letter-spacing: -2px;
  user-select: none;
}

table.issues .row-grip:hover {
  color: var(--accent);
}

table.issues .row-grip:active {
  cursor: grabbing;
}

table.issues tr[data-dragging] {
  opacity: .5;
}

table.issues th[data-drop="allowed"] {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

table.issues th[data-drop="refused"] {
  cursor: not-allowed;
  outline: 2px dashed var(--mute);
  outline-offset: -2px;
  opacity: .6;
}

/* Empty groups are drop zones only while an issue is being dragged */
table.issues tbody.group-empty {
  display: none;
}

body[data-dragging-issue] table.issues tbody.group-empty {
  display: table-row-group;
}

/* A coloured group heading is one flat band of its pill colour: no side bar, no edge lines */
table.issues tr.wave-head th.group-colour {
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.rules-summary {
  margin: 4px 0 8px;
}

.rules-guide .field-label {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.phase-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.phase-step {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--mute);
  background: var(--chip);
  border: 1px solid transparent;
}

.phase-step .mark {
  min-width: 0.8em;
  text-align: center;
}

.phase-step[data-state="undated"],
.phase-step[data-state="upcoming"] {
  background: transparent;
  border-color: var(--line-strong);
}

.phase-step[data-phase="prepare"][data-state="undated"],
.phase-step[data-phase="prepare"][data-state="upcoming"],
.phase-step[data-phase="build"][data-state="undated"],
.phase-step[data-phase="build"][data-state="upcoming"] {
  background: var(--st-blue);
  color: var(--st-on);
  border-color: var(--st-blue);
}

.phase-step[data-state="done"] {
  background: var(--st-done);
  color: var(--st-on);
  font-weight: 600;
}

.phase-step[data-state="current"] {
  background: var(--st-yellow);
  color: var(--st-yellow-on);
  font-weight: 600;
}

.phase-step[data-state="late"] {
  background: var(--st-red);
  color: var(--st-on);
  font-weight: 600;
}

.phase-step:hover,
.phase-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.phase-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-left: 6px;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-card form label {
  display: block;
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--mute);
}

#zone-panel-body .why {
  margin: 8px 0;
}

#zone-panel-body .facts {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 14px;
}

#zone-panel-body .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

#zone-panel-body .form-actions form.inline {
  margin: 0;
}

.rule-matches-box {
  margin: 12px 0 0;
}

.rule-matches-box .field-label {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--mute);
}

.rule-matches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 14px;
}

#zone-panel-body .phase-line {
  margin: 2px 0 8px;
  font-size: 13.5px;
}

table.zones th:has(> .row-grip) {
  position: relative;
  padding-left: 26px;
}

table.zones .row-grip {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  cursor: grab;
  letter-spacing: -2px;
  user-select: none;
}

table.zones .row-grip:hover {
  color: var(--accent);
}

table.zones .row-grip:active {
  cursor: grabbing;
}

table.zones tr[data-dragging] {
  opacity: .5;
}

table.zones th[data-drop="allowed"] {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

.columns-menu {
  position: relative;
}

.columns-menu>summary {
  cursor: pointer;
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  list-style: none;
}

.columns-menu>summary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.audit-groupbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.audit-groupbar .audit-actions {
  margin-left: auto;
  align-items: center;
}

.sheet-menu .menu {
  min-width: 280px;
}

.columns-menu>summary::-webkit-details-marker {
  display: none;
}

.columns-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  display: grid;
  gap: 4px;
  min-width: 200px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.columns-menu .column-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

table.audit [data-col][hidden] {
  display: none;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.route-toggle {
  font: inherit;
  font-size: 13.5px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guided-flow {
  margin-bottom: 14px;
}

.guided-flow[hidden] {
  display: none;
}

.guided-flow .route {
  margin: 0 0 8px;
}

.guided-flow .route-title {
  margin-bottom: 2px;
}

table.zones .ctr {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

table.zones th[scope="row"] {
  width: 1%;
  white-space: nowrap;
}

table.zones th.stick-state,
table.zones td.stick-state,
table.zones th.stick-detail,
table.zones td.stick-detail {
  position: sticky;
  background: var(--panel);
  z-index: 1;
  white-space: nowrap;
}

table.zones th.stick-detail,
table.zones td.stick-detail {
  right: 0;
  width: 84px;
  min-width: 84px;
}

table.zones th.stick-state,
table.zones td.stick-state {
  right: 84px;
}

table.zones thead th.stick-state,
table.zones thead th.stick-detail {
  z-index: 3;
}

.issue-filters .filter-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.issue-filters .filter-line .filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.issue-filters .view-row {
  flex-wrap: nowrap;
  gap: 12px 14px;
}

.issue-filters .view-row .filter-group {
  gap: 6px;
}

.issue-filters .view-row .filter-group>.mute {
  font-size: 12.5px;
  white-space: nowrap;
}

.issue-filters a.btn[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.issue-filters, .people-filter, .catalog-group, .audit-group) .filter-choices {
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--field);
  box-shadow: none;
  overflow: hidden;
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.issue-filters, .people-filter, .catalog-group, .audit-group) .filter-choices a {
  padding: 2px 5px;
  border-radius: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.issue-filters, .people-filter, .catalog-group, .audit-group) .filter-choices a:first-child {
  border-left: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.issue-filters, .people-filter, .catalog-group, .audit-group) .filter-choices a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  box-shadow: none;
}

table.plain.dates-table th[scope="row"] {
  font-weight: 600;
  color: var(--ink-strong);
}

.dates-table .wave-about.wave-name {
  font-weight: 600;
  color: var(--ink-strong);
  max-width: 40ch;
  white-space: normal;
}

form.stack.issue-filters {
  row-gap: 12px;
}

.issue-filters .view-row {
  margin-bottom: 0;
}

.issue-filters .view-row .filter-group:first-child>.mute,
.issue-filters .filter-line .filter-group:first-child>.mute {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  box-sizing: border-box;
}

.issue-filters .view-row .filter-group {
  display: inline-flex;
  align-items: center;
}

.issue-filters .filter-line,
.issue-filters .list-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 28px;
}

.issue-filters .list-head> :first-child {
  flex: 0 0 380px;
  width: 380px;
}

.issue-filters .filter-line {
  flex-wrap: nowrap;
  gap: 28px;
}

.issue-filters .filter-line .filter-group {
  gap: 6px;
}

.issue-filters .list-head> :first-child input[type="search"] {
  width: 100%;
  box-sizing: border-box;
}

.dates-table th:first-child {
  min-width: 0;
  width: 1%;
  white-space: nowrap;
}

.dates-table .date-col input[type="date"] {
  width: 8.6em;
}

.dates-table .pick-col input[type="datetime-local"] {
  width: 11.5em;
}

.dates-table .cutover-pickers label {
  grid-template-columns: 2.6em 1fr;
  gap: 4px;
}

.dates-table .cutover-pickers .cutover-end {
  grid-template-columns: 2.6em 1fr;
  gap: 4px;
}

.dates-table .wave-about.wave-name {
  display: inline;
  margin-left: 10px;
}

.dates-table th.ctr,
.dates-table td.ctr {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dates-table thead th[tabindex] {
  cursor: pointer;
}

table.zones {
  width: 100%;
}

table.zones :is(th, td).num,
table.zones :is(th, td).ctr {
  width: 1%;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}

table.zones :is(th, td).spacer {
  width: auto;
  padding: 0;
}

table.zones th.stick-state,
table.zones td.stick-state {
  width: 1%;
  padding-left: 6px;
  padding-right: 6px;
}

.status-denied {
  background: var(--fill-red);
  color: var(--fill-on);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones) .pill.status-on {
  background: var(--fill-done);
  color: var(--fill-on);
  border: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones) .pill.status-denied {
  background: var(--fill-red);
  color: var(--fill-on);
  border: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) main:has(#zones) .pill.status-manual {
  background: var(--fill-yellow);
  color: var(--fill-yellow-on);
  border: 0;
}

/* Detail panel: move or flag a zone or ticked hostnames */
.side-panel .pinned {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--chip);
}

.side-panel .pinned p {
  margin: 0;
}

.side-panel .pinned .btn {
  font-weight: 600;
}

.zone-form .pick {
  margin: 6px 0;
}

.zone-form .pick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 4px;
}

.zone-form .pick-tools input[type=search] {
  flex: 1 1 160px;
  min-width: 0;
}

.zone-form .pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.zone-form .pick-list li {
  padding: 2px 8px;
}

.zone-form .pick-list li[hidden] {
  display: none;
}

.zone-form .pick-list label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.zone-form .pick-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0;
}

.zone-form .pick-fields label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zone-form .pick-fields label:last-child {
  flex: 1 1 160px;
}

.zone-form .pick-fields label:last-child input {
  width: 100%;
}

.zone-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-form .form-actions .btn {
  font-weight: 600;
}

.side-panel .panel-section h3.sentence {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-strong);
}

.zone-form [aria-invalid="true"] {
  border-color: var(--st-red);
  outline: 2px solid var(--st-red);
  outline-offset: 0;
}

.zone-form .pick-error {
  margin: 0 0 8px;
  color: var(--st-red);
  font-weight: 600;
}

.zone-form .pick-error[hidden] {
  display: none;
}

.split-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--chip);
  font-size: 11px;
  color: var(--ink);
  cursor: help;
}

.side-panel .split-line {
  margin: 2px 0;
}

table.zones tr.also-here>th[scope="row"] a {
  font-style: italic;
}

table.zones tr.also-here {
  color: var(--mute);
}

main.read-only form[method="post"]:not(.tour-skip),
main.read-only [hx-post],
main.read-only [hx-put],
main.read-only [hx-patch],
main.read-only [hx-delete] {
  display: none;
}

.account-mark {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12.5px;
  white-space: nowrap;
}

main.customer-view form[action^="/waves/rules"],
main.customer-view form[action$="/delete"],
main.customer-view form[action$="/export/sheet"] {
  display: none;
}

main.read-only .batch-delete {
  display: none;
}

#import-issues .import-rows {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

#import-issues .import-rows table {
  width: 100%;
  font-size: 13px;
}

#import-issues .import-rows th {
  position: sticky;
  top: 0;
  background: var(--panel);
}

#import-issues .import-rows tr[data-action=error] td {
  color: var(--alert-ink);
}

#import-issues .import-rows tr[data-action=skip] td {
  color: var(--mute);
}

#import-issues .pick-note {
  margin: 0;
}

#import-issues .pick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

#import-issues .pick-actions [data-pick-count] {
  margin-right: auto;
  font-weight: 500;
}

form.stack .dropzone.off,
form.stack label:has(input:disabled) {
  opacity: 0.5;
}

#import-issues .import-intro-end {
  margin-bottom: 20px;
}

form.stack .drop-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

form.stack .drop-buttons label.btn {
  cursor: pointer;
}

form.stack .drop-buttons label.btn:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.project-row .project-save {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.project-row .project-save:hover,
.project-row .project-save:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

.project-row .logo-field {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.logo-preview {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  align-self: flex-start;
}

.project-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.project-row input {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row .logo-field,
  .project-row .project-save {
    grid-row: auto;
  }
}

.snippet {
  margin: 8px 0;
  background: var(--band);
  border-radius: 6px;
  overflow: hidden;
}

.snippet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.snippet-name {
  font: 400 12px var(--font-mono);
  color: var(--mute);
}

.snippet .copy-icon {
  padding: 4px 6px;
}

.snippet .copy-icon.copied {
  color: var(--st-done);
  border-color: var(--st-done);
}

.snippet-body {
  margin: 0;
  padding: 8px 12px 8px 0;
  overflow-x: auto;
  background: transparent;
}

.snippet-body code {
  counter-reset: line;
}

.snippet-body .line {
  display: block;
  counter-increment: line;
}

.snippet-body .line::before {
  content: counter(line);
  display: inline-block;
  width: 3em;
  margin-right: 12px;
  text-align: right;
  color: var(--mute);
  user-select: none;
}

#import-issues .import-sources {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 12px;
  align-items: stretch;
}

#import-issues .import-sources>* {
  min-width: 0;
}

#import-issues .sheet-fields {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

#import-issues .sheet-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#import-issues .sheet-fields input {
  width: 100%;
  box-sizing: border-box;
}

#import-issues [data-csv-name] {
  color: var(--st-done);
  font-weight: 700;
}

#import-issues form[action="/issues/import"] {
  margin-bottom: 12px;
}

#import-issues .ext-icon {
  margin-left: 3px;
  font-size: .85em;
}

#import-issues form[action="/issues/import/confirm"] .form-actions {
  bottom: -24px;
  padding-bottom: 24px;
}

@media (max-width: 1100px) {

  .issue-filters .filter-line,
  .issue-filters .view-row,
  .issue-filters .list-head {
    flex-wrap: wrap;
  }

  .issue-filters .view-row {
    position: relative;
    width: 100%;
  }

  .issue-filters .view-row .head-actions {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }

  .issue-filters .filter-line,
  .issue-filters .view-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .issue-filters .filter-line .filter-group,
  .issue-filters .view-row .filter-group {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    align-items: start;
    width: 100%;
    gap: 4px 12px;
  }

  .issue-filters .filter-group:is(:first-child, :not(:first-child))>.mute {
    width: auto;
    min-width: 0;
    padding-top: 5px;
    white-space: normal;
  }

  .issue-filters .view-row .filter-group:first-child {
    padding-right: 150px;
  }

  :root .issue-filters .filter-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .issue-filters .list-head {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .issue-filters .list-head> :first-child {
    flex: 1 1 0;
    width: auto;
    min-width: 120px;
  }

  .issue-filters .list-head .zone-menu {
    flex: 1 1 0;
    min-width: 110px;
  }

  .issue-filters .list-head .zone-menu input[type="search"] {
    width: 100%;
  }

  .issue-filters .list-head> :is(.hide-closed, a) {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {

  .issue-filters .filter-line .filter-group,
  .issue-filters .view-row .filter-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .issue-filters .filter-group:is(:first-child, :not(:first-child))>.mute {
    padding-top: 0;
  }

  .issue-filters .view-row .filter-group:first-child {
    padding-right: 0;
  }

  .issue-filters .list-head> :first-child {
    flex: 1 1 100%;
    width: 100%;
  }
}

table.audit td[data-col="old"],
table.audit th[data-col="old"],
table.audit td[data-col="new"],
table.audit th[data-col="new"],
table.audit td[data-col="action"],
table.audit th[data-col="action"],
table.audit td[data-col="user"],
table.audit th[data-col="user"] {
  width: 1%;
  white-space: nowrap;
}

table.audit td[data-col="time"],
table.audit th[data-col="time"] {
  width: 1%;
}

.audit-bar input[type="search"] {
  width: 360px;
  max-width: 100%;
}

.audit-bar input[type="datetime-local"] {
  width: 190px;
}

.timepick {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.timepick select {
  font: inherit;
}

.dates-table .timepick {
  display: flex;
  width: 100%;
}

.dates-table .timepick input[type="date"] {
  width: 8.6em;
  flex: none;
}

.dates-table .timepick select {
  min-width: 0;
  flex: 1;
}

.audit-quick {
  display: flex;
  gap: 8px;
}

#needs-domain>.card {
  background: color-mix(in oklab, var(--st-blue) 10%, var(--panel));
}

.side-panel form.ticket .facts-side {
  margin-top: 18px;
}

ol.comments {
  max-height: 22em;
  overflow-y: auto;
}

.column-list {
  display: grid;
  gap: 4px;
}

.link-action,
.columns-menu>summary.link-action {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
}

.link-action:hover,
.link-action:focus-visible {
  color: var(--ink);
}

.link-action[aria-current="true"] {
  font-weight: 600;
  text-decoration-thickness: 2px;
}

/* Rules frame: instruction always on show, then the example, the actual rule and the result side by side with their first lines lined up. */
.rules-columns {
  --bar-h: 40px;
  --code-top: 8px;
  --code-font: 400 12.5px/1.5 var(--font-mono);
  display: grid;
  grid-template-columns: minmax(0, 30fr) minmax(0, 45fr) minmax(0, 25fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 0 16px;
  margin-top: 8px;
}

.rules-example,
.rules-actual,
.rules-result {
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  min-width: 0;
}

.rules-example .snippet {
  grid-row: 3;
  margin: 0;
  min-height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.rules-actual>form {
  display: contents;
}

.rules-actual .rules-box {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
}

.rules-actual .rules-actions {
  display: flex;
  gap: 6px;
}

.rules-actual .line-gutter .has-problem {
  color: var(--st-on);
  background: var(--st-red);
  border-radius: 3px;
}

.rules-problems {
  margin: 0;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.rules-problems:empty {
  display: none;
}

.rules-problems li {
  margin: 2px 0;
}

.rules-problems .problem-jump {
  padding: 0;
  border: 0;
  background: none;
  color: var(--st-red);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.rules-actual .field-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0 12px;
}

.rules-actual .spell-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--mute);
  cursor: pointer;
}

.rules-actual .field-insert {
  display: flex;
  flex: 0 1 18rem;
  gap: 6px;
  min-width: 0;
  margin: 0 8px;
}

.rules-actual .field-insert .field-picker {
  flex: 1 1 auto;
  min-width: 0;
  font: 400 12px var(--font-mono);
}

.rules-actual .field-insert .btn {
  padding: 4px 14px;
  font-size: 12.5px;
}

.rules-actual .rules-actions .btn {
  padding: 4px 14px;
  font-size: 12.5px;
}

.rules-actual .editor-bar .btn,
.rules-actual .editor-bar .field-picker {
  box-sizing: border-box;
  height: 28px;
  white-space: nowrap;
}

.rules-actual .editor-bar>span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-actual>.rules-note-here {
  grid-row: 2;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-note-here:empty {
  display: none;
  margin: 0;
}

.rules-result .rule-matches-box {
  grid-row: 3;
  margin: 0;
}

@media (max-width: 1100px) {
  .rules-columns {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .rules-example,
  .rules-actual,
  .rules-result {
    display: block;
    grid-row: auto;
  }

  .rules-result {
    margin-top: 12px;
  }

  .rules-actual .rules-box {
    display: flex;
  }

  .rules-example .snippet {
    margin: 0 0 12px;
  }
}

.rules-example .snippet-bar,
.rules-actual .editor-bar {
  box-sizing: border-box;
  height: var(--bar-h);
}

.rules-actual .editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 12px;
  border-bottom: 1px solid var(--line);
  font: 400 12px var(--font-mono);
  color: var(--mute);
}

.rules-example .snippet-bar .copy-icon {
  padding: 2px 6px;
  margin-top: 2px;
}

.rules-example .snippet-body {
  font: var(--code-font);
  padding: var(--code-top) 12px var(--code-top) 0;
  overflow-x: hidden;
}

.rules-example .snippet-body code .line {
  position: relative;
  padding-left: calc(3em + 12px);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rules-example .snippet-body code .line::before {
  position: absolute;
  left: 0;
  margin-right: 0;
}

:root .rules-actual .editor.numbered {
  flex: 1;
  margin-top: 0;
}

:root .rules-actual .editor.numbered textarea {
  min-height: 320px;
  height: 100%;
  resize: none;
  border: 0;
  border-radius: 0;
  font: var(--code-font);
  padding-top: var(--code-top);
  padding-bottom: var(--code-top);
}

:root .rules-actual .editor.numbered .line-gutter {
  font: var(--code-font);
  padding-top: var(--code-top);
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
}

.rules-example .field-label,
.rules-actual .field-label,
.rules-result>.field-label {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
}

.rules-guide {
  margin: 8px 0 12px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.notice-bar.loud {
  position: static;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 700;
  border: 3px solid var(--alert-ink);
}

.notice-bar.loud.error {
  color: var(--st-on);
  background: var(--st-red);
  border-color: var(--ink-strong);
}

.notice-bar.loud[data-check="ok"],
.notice-bar.loud.saved {
  color: var(--st-on);
  background: var(--st-done);
  border-color: var(--ink-strong);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .rules-note-here .notice-bar.loud {
  font-size: 18px;
  font-weight: 700;
}

#zone-panel-body .hostname-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

#zone-panel-body .hostname-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.validation-switch {
  margin: 4px 0 8px;
}

.validation-card[data-view="collapsed"] .validation-detailed {
  display: none;
}

.validation-card[data-view="detailed"] .validation-collapsed {
  display: none;
}

.validation-switch .btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .check-result-here .notice-bar.loud {
  font-size: 18px;
  font-weight: 700;
  background: var(--st-done);
  color: var(--st-on);
  border: 3px solid var(--ink-strong);
}

/* Needs a domain: fit the page width, no sideways scroll. */
#needs-domain .tw {
  overflow-x: visible;
  max-height: none;
}

#needs-domain table.issues {
  width: 100%;
  table-layout: auto;
}

#needs-domain table.issues th[scope="row"] {
  min-width: 0;
  width: auto;
}

#needs-domain table.issues th,
#needs-domain table.issues td {
  white-space: normal;
  overflow-wrap: anywhere;
}

#needs-domain table.issues .tag-form {
  flex-wrap: wrap;
  white-space: normal;
}

#needs-domain table.issues .tag-form input {
  min-width: 0;
  width: 100%;
  max-width: 14em;
}

#needs-domain table.issues th[scope="row"] {
  width: 32%;
}

#needs-domain table.issues th[data-col="id"],
#needs-domain table.issues td[data-col="id"] {
  min-width: 4ch;
  white-space: nowrap;
}

#needs-domain table.issues .pill {
  font-size: 10.5px;
  min-width: 0;
  padding: 1px 6px;
}


/* Issues: pill columns are only as wide as their header (or pill, if wider); Blocks cutover wraps to two lines. */
table.issues .pill,
table.issues [data-field="status"] .pill {
  min-width: 0;
}

table.issues thead th[data-col="blocks"],
table.issues thead th[data-col="kind"],
table.issues thead th[data-col="severity"],
table.issues thead th[data-col="status"],
table.issues thead th[data-col="owner"] {
  width: 1%;
  white-space: nowrap;
}

table.issues thead th[data-col="blocks"] {
  white-space: normal;
  min-width: 5em;
  max-width: 6em;
}

/* Deleted issues on view: the link turns dark gray but stays a link. */
.link-action.showing-deleted {
  color: var(--mute);
}

/* Issues: the action icons are bare, no frame, in the same accent as the New issue plus. */
.issue-filters .head-actions .icon-btn,
.issue-filters .head-actions .columns-icon,
.audit-actions .icon-btn {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--accent);
  padding: 3px 4px;
}

.issue-filters .head-actions .icon-btn:hover,
.issue-filters .head-actions .icon-btn:focus-visible,
.issue-filters .head-actions .columns-icon:hover,
.issue-filters .head-actions .columns-icon:focus-visible,
.audit-actions .icon-btn:hover,
.audit-actions .icon-btn:focus-visible {
  color: var(--ink);
}

.issue-filters .head-actions .icon-btn.delete-all:hover:not(:disabled),
.issue-filters .head-actions .icon-btn.delete-all:focus-visible {
  color: var(--st-red);
}

.issue-filters .head-actions .icon-btn.delete-all:disabled {
  opacity: .4;
  cursor: not-allowed;
}

main.read-only .issue-filters .head-actions .delete-all {
  display: none;
}

.issue-filters .head-actions .columns-menu {
  display: inline-flex;
  align-items: center;
}

/* Issues Columns menu: checkbox then name on one left-aligned row, like the Audit one. */
.issue-columns .column-list {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.issue-columns .column-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  width: 100%;
}

/* Issues: every top icon sits on one centre line. */
.issue-filters .head-actions {
  align-items: center;
}

.issue-filters .head-actions .columns-menu>summary.columns-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 3px 4px;
}

/* a.btn makes the links inline-block, which lifts the icon above the others; make them flex like the Columns icon. */
.issue-filters .head-actions a.icon-btn {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.tick-grid {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tick-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tick-row label.tick {
  flex: 1;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tick-name {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .tick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tick-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tick-row .row-grip {
  color: var(--mute);
  cursor: grab;
  letter-spacing: -2px;
  user-select: none;
}

.tick-num {
  min-width: 18px;
  height: 18px;
  line-height: 16px;
  padding: 0 4px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  font-size: 11px;
  text-align: center;
}

.tick-num:empty {
  visibility: hidden;
}

.tick-row .row-grip:hover,
.tick-row .row-grip:focus-visible {
  color: var(--accent);
}

.tick-row[data-dragging] {
  opacity: 0.5;
}

form.stack.export-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.export-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.export-right {
  min-width: 0;
}

.export-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.export-layout .export-buttons .icon-btn {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--bezel-light, transparent), 0 1px 2px var(--card-lift, transparent);
  cursor: pointer;
  transition:
    transform 500ms var(--spring, cubic-bezier(0.32, 0.72, 0, 1)),
    box-shadow 500ms var(--spring, cubic-bezier(0.32, 0.72, 0, 1)),
    border-color 500ms var(--spring, cubic-bezier(0.32, 0.72, 0, 1));
}

.export-layout .export-buttons .icon-btn svg {
  width: 22px;
  height: 22px;
  margin: 0;
  vertical-align: middle;
}

.export-layout .export-buttons .icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.export-layout .export-buttons .icon-btn:active {
  transform: scale(0.97);
}

.export-layout .export-buttons .icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.export-layout .export-buttons .icon-btn:has(.icon-sheets):hover {
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--icon-sheets) 60%, transparent);
}

.export-layout .export-buttons .icon-btn:has(.icon-excel):hover {
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--icon-excel) 60%, transparent);
}

.export-layout .export-buttons .icon-btn:has(.icon-pdf):hover {
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--icon-pdf) 60%, transparent);
}

.export-layout .export-buttons .icon-btn:has(.icon-mail):hover {
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--icon-mail) 60%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .export-layout .export-buttons .icon-btn {
    transition: none;
  }

  .export-layout .export-buttons .icon-btn:hover,
  .export-layout .export-buttons .icon-btn:active {
    transform: none;
  }
}

#export-zone-menu {
  position: relative;
  display: block;
}

#export-zone-menu input[type="search"] {
  width: 100%;
}

#export-zone-menu .zone-picked {
  display: block;
  padding-top: 4px;
}

#export-zone-menu .zone-picked:empty {
  display: none;
}

#export-zone-menu .zone-panel {
  display: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

#export-zone-menu[data-searching]:focus-within .zone-panel,
#export-zone-menu[data-searching][data-open] .zone-panel {
  display: block;
}

#export-zone-menu .zone-list {
  max-height: 14em;
}

.sheet-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.sheet-options .toggle {
  align-self: flex-start;
}

.sheet-options input {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  form.stack.export-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.toggle {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}

form.stack .toggle-option {
  position: relative;
  display: block;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}

.export-left .toggle {
  display: flex;
  align-self: stretch;
}

.export-left .toggle-option {
  flex: 1 1 0;
  text-align: center;
}

form.stack .toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

form.stack .toggle-option span {
  display: block;
  padding: 5px 18px;
}

form.stack .toggle-option:has(input:checked) {
  background: var(--accent);
  color: var(--panel);
}

form.stack .toggle-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.btn svg {
  vertical-align: -3px;
  margin-right: 6px;
}

svg.icon-pdf .page {
  fill: var(--icon-pdf);
}

svg.icon-excel .page {
  fill: var(--icon-excel);
}

svg.icon-sheets .page {
  fill: var(--icon-sheets);
}

svg.icon-pdf .fold,
svg.icon-excel .fold,
svg.icon-sheets .fold {
  fill: var(--icon-shade);
  fill-opacity: 0.25;
}

svg.icon-pdf .letters {
  fill: none;
  stroke: var(--icon-ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.icon-excel .cross {
  fill: none;
  stroke: var(--icon-ink);
  stroke-width: 2;
  stroke-linecap: round;
}

svg.icon-sheets .cells {
  fill: var(--icon-ink);
}

svg.icon-sheets .lines {
  fill: none;
  stroke: var(--icon-sheets);
  stroke-width: 1;
}

.btn.icon-btn {
  padding: 8px 14px;
  line-height: 0;
}

.btn.icon-btn svg {
  width: 24px;
  height: 24px;
  margin: 0;
  vertical-align: middle;
}

.export-layout .btn {
  background: linear-gradient(to bottom, var(--panel), var(--bg));
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 var(--line-strong), 0 4px 8px var(--shadow-color);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.export-layout .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--line-strong), 0 6px 10px var(--shadow-color);
}

.export-layout .btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 var(--line-strong), 0 1px 2px var(--shadow-color);
}

.section-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.section-link {
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 2px 0;
  text-decoration: underline;
  cursor: pointer;
}

svg.icon-mail .body {
  fill: var(--icon-mail);
}

svg.icon-mail .flap {
  fill: none;
  stroke: var(--icon-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Waves "Group by": same joined, square-cornered look as the Issues filters */
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .segmented .segmented-options {
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--field);
  box-shadow: none;
  overflow: hidden;
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .segmented .segmented-options a {
  padding: 2px 5px;
  border-radius: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .segmented .segmented-options a:first-child {
  border-left: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .segmented .segmented-options a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  box-shadow: none;
}

/* Waves "Group by" label: plain text like Issues, not a chip */
.segmented>span.mute {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  color: var(--mute);
}

/* Tracker wave tabs: same joined, square-cornered look as Issues and Waves */
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .toolbar .wave-chips {
  display: inline-flex;
  padding: 0;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  box-shadow: none;
  overflow: hidden;
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .toolbar .wave-chips .chip {
  padding: 2px 8px;
  font-size: 14px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .toolbar .wave-chips .chip:first-child {
  border-left: 0;
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .toolbar .wave-chips .chip:hover,
:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .toolbar .wave-chips .chip:focus-visible {
  color: var(--accent);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .toolbar .wave-chips .chip[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  box-shadow: none;
}

/* Akamai Blue lift: the soft card glow, a lit eyebrow label on the route title, and a spring entrance for the headline cards. */
:root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) .card {
  transition:
    transform 700ms var(--spring),
    box-shadow 700ms var(--spring);
}

:root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.headline, .route-card):hover {
  transform: translateY(-2px);
}

:root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.headline, .welcome, .route-card, .rate-card, .no-go-notice) {
  animation: guided-rise 800ms var(--spring) both;
}

:root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) .route-card {
  animation-delay: 90ms;
}

:root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) .route-title {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--guide-edge);
  background: var(--guide-from);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
  :root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) :is(.headline, .welcome, .route-card, .rate-card, .no-go-notice) {
    animation: none;
  }

  :root:is(:not([data-look]), [data-look="purple"], [data-look="mono"]) .card {
    transition: none;
  }
}

/* Look palette: five colour blocks in one joined strip, like the Group by switch. The select stays in the page, hidden, to hold the saved choice. */
.look-palette {
  display: inline-flex;
  align-items: stretch;
  box-sizing: border-box;
  height: 26px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--chip);
}

:root:is([data-look="pastel"], :not([data-look]), [data-look="purple"], [data-look="mono"]) .look-palette {
  border-radius: 999px;
}

.look-palette .look-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.look-palette .look-swatch {
  position: relative;
  width: 26px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 500ms var(--spring, cubic-bezier(0.32, 0.72, 0, 1));
}

.look-palette .look-swatch[data-look-pick="mono"] {
  background: var(--swatch-mono);
}

.look-palette .look-swatch[data-look-pick="purple"] {
  background: var(--swatch-purple);
}

.look-palette .look-swatch[data-look-pick="blue"] {
  background: var(--swatch-blue);
}

.look-palette .look-swatch[data-look-pick="pastel"] {
  background: var(--swatch-orange);
}

.look-palette .look-swatch[data-look-pick="guided"] {
  background: var(--swatch-guided);
}

.look-palette .look-swatch:hover {
  transform: scale(1.08);
}

.look-palette .look-swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.look-palette .look-swatch[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--panel);
}

.look-palette .look-swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 9px;
  border: solid var(--swatch-tick);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
  filter: drop-shadow(0 0 1px var(--swatch-tick-shade));
}

.look-palette .look-swatch[data-look-pick="guided"][aria-pressed="true"]::after {
  border-color: var(--swatch-tick-dark);
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .look-palette .look-swatch {
    transition: none;
  }
}

/* API page: endpoint groups and method pills */
table.api-endpoints th[id] {
  scroll-margin-top: 4.5rem;
}

.method {
  display: inline-block;
  min-width: 3.6em;
  text-align: center;
  padding: 2px 8px;
  border-radius: 6px;
  font: 600 12px/1.5 var(--font-mono);
  color: color-mix(in srgb, var(--c) 65%, var(--ink));
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.method.get {
  --c: var(--st-done);
}

.method.post {
  --c: var(--st-blue);
}

.method.put,
.method.patch {
  --c: var(--st-orange);
}

.method.delete {
  --c: var(--st-red);
}

ul.terms {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.people-card {
  --people-cols: 2rem 4.5rem minmax(6rem, var(--w-area, 14rem)) minmax(5rem, var(--w-team, 8rem)) 2.5rem 3.5rem minmax(6rem, var(--w-name, 14rem)) minmax(8rem, var(--w-email, 19rem)) minmax(16rem, 1fr);
}

.people-head,
.people-editor li,
.people-fields {
  display: grid;
  grid-template-columns: var(--people-cols);
  gap: 8px;
  align-items: center;
}

.people-head {
  padding: 0 0 4px;
  font: 500 12px var(--font-mono);
  color: var(--mute);
  grid-template-columns: var(--people-cols) 52px;
  align-items: start;
}

.people-editor {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.people-editor li {
  grid-template-columns: 1fr 52px;
  padding: 3px 0;
  border: 0;
}

.people-editor .people-fields {
  grid-template-columns: var(--people-cols);
}

.people-fields input:not([type="radio"]),
.people-fields select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.people-fields[data-state="error"] {
  outline: 2px solid var(--st-red);
  outline-offset: 2px;
  border-radius: 6px;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.people-toolbar {
  display: flex;
  justify-content: flex-end;
}

/* Owner and Lead pills match the Issues page pills: same small font, one shared size */
.people-fields .pill.owner-pill,
.people-fields .pill.lead-pill {
  font-size: 10.5px;
  font-weight: 400;
  padding: 2px 10px;
  border-color: transparent;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  justify-self: start;
}

.people-fields .pill.lead-pill.lead-yes {
  background: var(--fill-done);
  color: var(--fill-on);
}

.people-fields .pill.one-pager-pill {
  font-size: 10.5px;
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  justify-self: start;
  border-color: transparent;
}

.people-fields .pill.one-pager-pill.one-pager-yes {
  background: var(--fill-done);
  color: var(--fill-on);
}

.people-fields .pill.one-pager-pill.one-pager-no {
  background: var(--panel);
  color: var(--mute);
  border-color: var(--line-strong);
}

.people-fields .pill.lead-pill.lead-no {
  background: var(--panel);
  color: var(--mute);
  border-color: var(--line-strong);
}

.people-fields .pill:hover,
.people-fields .pill:focus-visible {
  filter: brightness(1.08);
}

.people-head span {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Import Data is a bare icon in the same accent as on the Issues page. */
.people-toolbar .icon-btn {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--accent);
  padding: 3px 4px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.people-toolbar .icon-btn:hover,
.people-toolbar .icon-btn:focus-visible {
  color: var(--ink);
}

.people-head [data-sort-field] {
  cursor: pointer;
  user-select: none;
}

.people-head [data-sort-field]:hover,
.people-head [data-sort-field]:focus-visible {
  color: var(--ink);
}

.people-head [aria-sort="ascending"]::after {
  content: " \25B2";
  font-size: 8px;
}

.people-head [aria-sort="descending"]::after {
  content: " \25BC";
  font-size: 8px;
}

.people-editor li[hidden] {
  display: none;
}

.people-filter .filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.people-filter .filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.people-filter .list-head input[type="search"] {
  width: 20em;
  max-width: 100%;
  box-sizing: border-box;
}

/* New row opens below the selected row, in the same grid and pill style as every other row. */
.people-editor li[data-draft] {
  display: block;
  background: var(--panel);
  border-radius: 8px;
  padding: 4px 0;
}

.people-draft-form {
  grid-template-columns: var(--people-cols) 52px;
}

.people-editor .people-draft-form {
  grid-template-columns: var(--people-cols) 52px;
}

.add-person {
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--field);
  font-size: 18px;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.add-person:hover,
.add-person:focus-visible {
  background: var(--st-blue);
  color: var(--st-on);
}

/* The filter bar is three stacked rows like the Issues filters: count, owner / lead / area, then search. */
div.people-filter {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

div.people-filter .filter-line {
  flex: 0 0 auto;
}

div.people-filter .filter-line input[type="search"] {
  width: 14em;
  max-width: 100%;
  box-sizing: border-box;
}

.people-editor li.people-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
  border-left: 4px solid var(--accent);
  border-radius: 0;
}

.people-editor li.people-group .group-count {
  font-size: 13px;
  font-weight: 400;
}

.people-editor li.people-group.group-colour {
  border-left: 0;
}

/* Columns without pills: every band gets its own colour, never a colour a pill uses. */
.people-editor li.people-group.band-dyn {
  background: oklch(var(--band-l) var(--band-c) var(--band-h));
  color: var(--band-on);
}

.people-editor li.people-group.band-dyn.band-dark {
  color: var(--band-on-dark);
}

/* Pill columns: the band takes the pill's own colour. */
.people-editor li.people-group.owner-akamai {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.people-editor li.people-group.owner-customer {
  background: var(--fill-blue);
  color: var(--fill-on);
}

.people-editor li.people-group.owner-shared {
  background: var(--fill-purple);
  color: var(--fill-on);
}

.people-editor li.people-group.lead-yes {
  background: var(--fill-done);
  color: var(--fill-on);
}

.people-editor li.people-group.lead-no,
.people-editor li.people-group.band-none {
  background: var(--chip);
  color: var(--ink-strong);
}

.people-fields .num {
  font: 400 12px var(--font-mono);
  color: var(--mute);
  text-align: right;
}

.people-editor li[data-group-head][hidden] {
  display: none;
}

/* Smaller + and - on each row. */
.people-editor .add-person,
.people-editor .row-actions .retire-task {
  width: 20px;
  height: 20px;
  line-height: 18px;
  font-size: 14px;
}

.row-actions {
  gap: 4px;
}

/* Grouped by a column: that column is not shown, its band says it. */
.people-card[data-group="side"] {
  --people-cols: 2rem minmax(6rem, var(--w-area, 14rem)) minmax(5rem, var(--w-team, 8rem)) 2.5rem 3.5rem minmax(6rem, var(--w-name, 14rem)) minmax(8rem, var(--w-email, 19rem)) minmax(16rem, 1fr);
}

.people-card[data-group="area"] {
  --people-cols: 2rem 4.5rem minmax(5rem, var(--w-team, 8rem)) 2.5rem 3.5rem minmax(6rem, var(--w-name, 14rem)) minmax(8rem, var(--w-email, 19rem)) minmax(16rem, 1fr);
}

.people-card[data-group="team"] {
  --people-cols: 2rem 4.5rem minmax(6rem, var(--w-area, 14rem)) 2.5rem 3.5rem minmax(6rem, var(--w-name, 14rem)) minmax(8rem, var(--w-email, 19rem)) minmax(16rem, 1fr);
}

.people-card[data-group="lead"] {
  --people-cols: 2rem 4.5rem minmax(6rem, var(--w-area, 14rem)) minmax(5rem, var(--w-team, 8rem)) 3.5rem minmax(6rem, var(--w-name, 14rem)) minmax(8rem, var(--w-email, 19rem)) minmax(16rem, 1fr);
}

.people-card[data-group="side"] :is(.people-fields .owner-pill, .people-head [data-sort-field="side"]),
.people-card[data-group="area"] :is(.people-fields input[name="area"], .people-head [data-sort-field="area"]),
.people-card[data-group="team"] :is(.people-fields input[name="team"], .people-head [data-sort-field="team"]),
.people-card[data-group="lead"] :is(.people-fields .lead-pill, .people-head [data-sort-field="lead"]) {
  display: none;
}

/* Dark mode: the row fields have no outline until you point at them or type in them. */
@media (prefers-color-scheme: dark) {

  :root:not([data-theme="light"]) .people-fields input:not([type="radio"]):not(:hover):not(:focus),
  :root:not([data-theme="light"]) .people-fields .pill.lead-pill.lead-no,
  :root:not([data-theme="light"]) .people-fields .pill.one-pager-pill.one-pager-no {
    border-color: transparent;
  }
}

:root[data-theme="dark"] .people-fields input:not([type="radio"]):not(:hover):not(:focus),
:root[data-theme="dark"] .people-fields .pill.lead-pill.lead-no,
:root[data-theme="dark"] .people-fields .pill.one-pager-pill.one-pager-no {
  border-color: transparent;
}

.people-toolbar .icon-btn.delete-all:hover:not(:disabled),
.people-toolbar .icon-btn.delete-all:focus-visible {
  color: var(--st-red);
}

.people-toolbar .icon-btn.delete-all:disabled {
  opacity: .4;
  cursor: not-allowed;
}

dialog.confirm-dialog {
  max-width: 28rem;
  padding: 20px 24px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

dialog.confirm-dialog::backdrop {
  background: color-mix(in srgb, var(--ink-strong) 45%, transparent);
}

dialog.confirm-dialog .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

dialog.confirm-dialog .btn.danger {
  background: var(--st-red);
  border-color: var(--st-red);
  color: var(--accent-ink);
}

/* The icons sit at the right end of the first filter row, like the Issues page. */
div.people-filter .top-line {
  justify-content: space-between;
}

div.people-filter .people-toolbar {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Drag a row to another group; the grip shows only while the list is grouped. */
.people-grip {
  display: none;
  cursor: grab;
  color: var(--mute);
  margin-right: 4px;
  user-select: none;
}

.people-card[data-group]:not([data-group=""]) .people-grip {
  display: inline;
}

.people-editor li.dragging {
  opacity: .4;
}

.people-group.drop-over {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* The plain table is only for the Markdown copy of the page. */
.md-only {
  display: none;
}

/* The Download/Export icon is bare, in the same accent as the other icons. */
:is(.people-toolbar, .head-actions, .batches-actions) .download summary {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--accent);
  padding: 3px 4px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download summary:hover,
:is(.people-toolbar, .head-actions, .batches-actions) .download summary:focus-visible {
  color: var(--ink);
}

:is(.people-toolbar, .head-actions, .batches-actions) .download summary svg {
  width: 24px;
  height: 24px;
}

/* Download/Export menu: PDF | CSV | EXCEL | SHEETS on one line, Sheets opens Existing or New. */
:is(.people-toolbar, .head-actions, .batches-actions) .download .menu .export-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line>* {
  flex: 1 1 0;
  text-align: center;
  padding: 0 10px;
  border-left: 1px solid var(--line-strong);
  font: inherit;
  font-size: 13px;
  letter-spacing: .04em;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line> :first-child {
  border-left: 0;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line .link-button {
  background: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  color: var(--accent);
  cursor: pointer;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .people-sheets[hidden] {
  display: none;
}

/* Menu options are black until chosen; the chosen one uses the theme colour. */
:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line > a,
:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line .link-button {
  color: var(--ink);
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line > a:hover,
:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line > a:focus-visible,
:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line .link-button:hover {
  color: var(--accent);
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .export-line .link-button[aria-expanded="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .people-sheets {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

:is(.people-toolbar, .head-actions, .batches-actions) .download .people-sheets .toggle {
  align-self: flex-end;
}

/* Row text matches the Issues table. */
.people-fields input:not([type="radio"]) {
  font-size: 13px;
}

.help-link {
  box-sizing: border-box;
  height: 26px;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tray);
  box-shadow: inset 0 1px 3px var(--tray-edge);
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.help-link:hover,
.help-link:focus-visible {
  color: var(--accent);
}

/* The one-sentence verdict at the top of Overview, the finish forecast and the since-your-last-visit banner under it. */
.verdict {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.forecast,
.since-visit {
  margin: 0 0 12px;
}

/* The first-visit tour on Overview. Without the script every stop is simply listed. */
.tour-stops {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.tour-stops li {
  margin: 0 0 10px;
}

.tour-count {
  display: block;
  color: var(--mute);
  font-size: 12px;
}

.tour-title {
  font-weight: 500;
}

.tour-actions {
  display: flex;
  gap: 8px;
}

.tour-ready:not(.tour-running) .tour-stops {
  display: none;
}

/* The "?" link lands on one of these: keep it clear of the top bar and mark which one it is. */
.guide-page {
  scroll-margin-top: 110px;
}

.guide-page:target {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* The two guide tables share one first-column width so their second columns line up. */
table#glossary,
table#page-answers {
  table-layout: fixed;
  width: 100%;
}

table#glossary th:first-child,
table#page-answers th:first-child {
  width: 14rem;
}

/* The tour offer glows in the accent colour so it stands out from the cards around it. */
.card.tour {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 28px 2px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: tour-glow 2.8s ease-in-out infinite;
}

@keyframes tour-glow {
  50% {
    box-shadow:
      0 0 0 1px var(--accent),
      0 0 40px 6px color-mix(in srgb, var(--accent) 60%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.tour {
    animation: none;
  }
}

.pick-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pick-title {
  font-size: 13px;
  color: var(--mute);
}

.pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pick-chip {
  font: inherit;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}

.pick-chip:hover {
  border-color: var(--accent);
}

/* Issues and Stakeholders filters: the choice trays stand out from the card in both light and dark mode. */
:root:root :is(.people-filter, .issue-filters, .catalog-group, .audit-group) .filter-choices {
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  justify-self: start;
  background: color-mix(in srgb, var(--panel) 86%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--panel) 70%, var(--ink));
}

:root:root :is(.people-filter, .issue-filters, .catalog-group, .audit-group) .filter-choices a {
  color: var(--ink);
}

:root:root :is(.people-filter, .issue-filters, .catalog-group, .audit-group) .filter-choices a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

/* Test runs search: one picker for wave, zone and hostname, toggles for feature and target, actions on the right. */
.run-search {
  display: grid;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 14px 16px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.run-search .field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.run-search .field-row > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--mute);
}

.run-search .run-picker {
  display: flex;
  flex: 0 1 30em;
}

.run-search .run-picker input[type="search"] {
  width: 100%;
  min-width: 0;
}

.run-search .zone-group {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.run-search .picker-row {
  flex-wrap: nowrap;
}

.run-search .form-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}


.run-search .filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.run-search .filter-group > .mute {
  font-size: 14px;
}

:root:root .run-search .filter-choices {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 86%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--panel) 70%, var(--ink));
  color: var(--ink);
}

.run-search .filter-choices label {
  margin: 0;
  display: inline-flex;
  flex-direction: row;
  cursor: pointer;
  border-left: 1px solid var(--line);
}

.run-search .filter-choices label:first-child {
  border-left: 0;
}

.run-search .filter-choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.run-search .filter-choices span {
  padding: 2px 5px;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.run-search .filter-choices label:hover span {
  color: var(--accent);
}

.run-search .filter-choices input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

.run-search .filter-choices input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.run-search .filter-choices :is(a, button) {
  margin: 0;
  padding: 2px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.run-search .filter-choices :is(a, button):first-child {
  border-left: 0;
}

.run-search .filter-choices :is(a, button):hover {
  color: var(--accent);
}

.run-search .filter-choices :is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.run-search .filter-choices button.search-button {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

.run-search .filter-choices button.search-button:hover {
  color: var(--accent-ink);
  filter: brightness(1.08);
}

.dates-table th:first-child {
  min-width: 17em;
}

table.plain.dates-table th,
table.plain.dates-table td {
  padding-left: 6px;
  padding-right: 6px;
}

.dates-table .date-col:not(.pick-col) input[type="date"] {
  width: 7.6em;
}

.deadlines>form.stack {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto auto auto;
  justify-content: start;
  align-items: start;
  gap: 3px 16px;
}

.deadlines>form.stack>label {
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  gap: 3px;
}

.deadlines>form.stack>label:first-child {
  grid-column: 1;
}

.deadlines>form.stack>label:nth-child(2) {
  grid-column: 2;
}

.deadlines>form.stack>label:first-child input {
  grid-row: 3;
}

.deadlines>form.stack>label .quiet-box {
  grid-row: 3;
  box-sizing: border-box;
  width: 1px;
  min-width: 100%;
}

.deadlines>form.stack>button {
  grid-row: 4;
  grid-column: 1;
  justify-self: start;
  margin-top: 8px;
}

.deadlines .editor.numbered {
  margin-top: 0;
}

.deadlines .editor.numbered textarea.quiet-box {
  min-height: 0;
  height: calc(3 * 1.5em + 8px);
  line-height: 1.5;
  width: 1px;
  min-width: 100%;
}

.deadlines {
  margin-top: 16px;
}

.deadlines .editor.numbered textarea.quiet-box {
  color: var(--mute);
}

.deadlines .editor.numbered textarea.quiet-box {
  font: inherit;
  line-height: 1.5;
}

.deadlines .editor.numbered {
  width: 30ch;
}

.deadlines .editor.numbered textarea.quiet-box {
  width: 100%;
  min-width: 0;
}

.deadlines>form.stack>button {
  margin-top: 20px;
}

/* Akamai checks: the two tasks, the button's answer and the wave summary. */
.zone-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.akamai-tasks,
.akamai-answers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.akamai-tasks .check-mark,
.akamai-answers .check-mark {
  font-weight: 700;
}

.akamai-task.done .check-mark,
.akamai-answers .check-ready .check-mark {
  color: var(--st-done);
}

.akamai-answers .check-not-ready .check-mark {
  color: var(--ink);
}

.akamai-result {
  margin-top: 10px;
}

.akamai-summary {
  margin: 0 0 8px;
  font-weight: 500;
}

.akamai-answers>li {
  padding-left: 10px;
  border-left: 4px solid var(--line);
}

.akamai-answers>.check-ready {
  border-left-color: var(--st-done);
}

.akamai-answers>.check-not-ready {
  border-left-color: var(--st-orange);
}

.akamai-answers>.check-could-not {
  border-left-color: var(--st-red);
}

.wave-head-row .check-all {
  margin-left: 8px;
}

.akamai-spinner,
.btn.busy::before {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 6px;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: akamai-spin 0.8s linear infinite;
}

.btn.busy::before {
  content: "";
}

.akamai-close {
  margin-top: 8px;
}

@keyframes akamai-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .akamai-spinner,
  .btn.busy::before {
    animation-duration: 2.4s;
  }
}

/* New issue: tighter spacing so the form scrolls less, and the last hint clears the sticky Submit bar. */
#new-issue form.form-calm {
  gap: 8px;
  padding-bottom: 12px;
}

#new-issue form.form-calm .field-group {
  gap: 2px;
}

#new-issue form.form-calm textarea {
  min-height: 56px;
}

#new-issue form.form-calm .form-actions {
  padding-top: 8px;
  padding-bottom: 12px;
}

/* Test catalog page: table, Add check button, pills, chip picker and side panel. */
.catalog .tw {
  margin-top: 20px;
}

table.plain.catalog-table thead th {
  font: 400 11px var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--mute);
  background: transparent;
}

.catalog-table thead th:nth-child(1),
.catalog-table thead th:nth-child(2),
.catalog-table thead th:nth-child(7),
.catalog-table thead th:nth-child(9) {
  width: 1%;
  white-space: nowrap;
}

.catalog-table thead th:nth-child(3),
.catalog-table thead th:nth-child(4),
.catalog-table thead th:nth-child(5) {
  width: 80px;
  min-width: 80px;
}

.catalog-table thead th:nth-child(6) {
  width: 100px;
  min-width: 100px;
}

.catalog-table tbody {
  counter-reset: catalog-row;
}

.catalog-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.catalog-title h2 {
  margin: 0;
}

.catalog-group > .mute {
  font-size: 12.5px;
  white-space: nowrap;
}

.catalog-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.catalog-table tr.wave-head th {
  display: table-cell;
  font: 500 14px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
  padding: 8px 10px;
}

.catalog-table tr.wave-head th.group-3 {
  background: var(--fill-done);
  color: var(--fill-on);
}

/* Same band colours as the Stakeholder page: each group gets its own, never a pill colour. */
.catalog-table tr.wave-head th.band-dyn {
  background: oklch(var(--band-l) var(--band-c) var(--band-h));
  color: var(--band-on);
}

.catalog-table tr.wave-head th.band-dyn.band-dark {
  color: var(--band-on-dark);
}

.catalog-table tr.wave-head th.group-off {
  background: var(--chip);
  color: var(--ink);
}

.catalog-table tr.wave-head th[class*="group-"] .group-count {
  color: inherit;
}

.catalog-table tr.wave-head .group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.catalog-table tr.wave-head .group-count {
  font-weight: 400;
  font-size: 13px;
  color: var(--mute);
}

.catalog-table tbody tr.catalog-row {
  counter-increment: catalog-row;
}

.catalog-num::before {
  content: counter(catalog-row);
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.catalog-table td {
  position: relative;
  vertical-align: middle;
  white-space: nowrap;
}

.catalog-table td.catalog-desc {
  width: 100%;
  white-space: normal;
}

.catalog-table .btn {
  white-space: nowrap;
}

.catalog-table tr.catalog-off td {
  color: var(--mute);
}

.catalog-table tr.catalog-off .pill.enabled-False {
  background: var(--line);
  color: var(--mute);
}

.catalog .btn-filled {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.catalog .btn-filled:hover,
.catalog .btn-filled:focus-visible {
  background: var(--accent-hover);
}

.catalog-table .pill {
  display: inline-block;
  box-sizing: border-box;
  width: 72px;
  padding: 4px 8px;
  border: 1px solid transparent;
  text-align: center;
  font-size: 10.5px;
  cursor: pointer;
  background: var(--line);
  color: var(--ink-strong);
}

.catalog-table .pill:hover,
.catalog-table .pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.catalog-table .pill.mode-automated {
  background: var(--fill-blue);
  color: var(--fill-on);
}

.catalog-table .pill.enabled-True {
  background: var(--fill-done);
  color: var(--fill-on);
}

.catalog-table .pill.required-required {
  background: var(--fill-orange);
  color: var(--fill-orange-on);
}

.catalog-table .menu-trigger > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-table .menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink-strong);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-table .menu-trigger:hover,
.catalog-table .menu-trigger:focus-visible,
.catalog-table .menu-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  outline: none;
}

.catalog-table .menu-caret {
  color: var(--mute);
  font-size: 11px;
}

.catalog-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 4px;
  z-index: 20;
  min-width: 330px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow), 0 12px 32px var(--shadow-color);
}

.catalog-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-strong);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.catalog-menu .menu-item:hover,
.catalog-menu .menu-item:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  outline: none;
}

.catalog-menu .menu-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-menu .menu-name {
  font-weight: 600;
}

.catalog-menu .menu-help {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.35;
}

.catalog-menu .menu-item:hover .menu-help,
.catalog-menu .menu-item:focus-visible .menu-help {
  color: inherit;
}

.catalog-menu .menu-item {
  align-items: flex-start;
}

.catalog-menu-fixed {
  color: var(--text-muted, inherit);
  cursor: default;
}

.catalog-guide {
  margin: 0.75rem 0 1.5rem;
}

.catalog-guide > summary {
  margin-bottom: 0.5rem;
}

.catalog-guide :is(ol, table, p) {
  margin: 0.5rem 0 0.75rem;
}

.catalog-edge > :is(h3, p) {
  flex: 1 0 100%;
  margin: 0;
}

.catalog-edge-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 16em);
  gap: 8px 12px;
  align-items: center;
}

.catalog-edge-grid label {
  margin: 0;
}

.catalog-edge-grid input {
  margin: 0;
  width: 100%;
}

.catalog > p,
.catalog-edge :is(p, label, input, button) {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
}

.catalog .catalog-edge h3 {
  font: 500 14px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-strong);
}

.catalog .btn-filled {
  font-weight: 500;
}

.catalog-menu .menu-check {
  flex: 0 0 14px;
  width: 14px;
  color: var(--accent);
}

.catalog-menu .menu-item:hover .menu-check,
.catalog-menu .menu-item:focus-visible .menu-check {
  color: var(--accent-ink);
}

.catalog-error {
  display: block;
  white-space: normal;
  margin-top: 4px;
  color: var(--st-red);
  font-weight: 500;
  font-size: 12.5px;
}

.catalog-starter-list {
  columns: 2;
  margin: 8px 0 12px;
  padding-left: 20px;
}

#check-panel .panel-head.bare {
  position: absolute;
  top: 23px;
  right: 36px;
  margin: 0;
  gap: 14px;
  justify-content: flex-end;
}

#check-panel .crumb {
  display: block;
  margin: 28px 96px 8px 0;
}

#check-panel form.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 12px;
}

#check-panel .stack label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#check-panel .title-input {
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-left: -6px;
  display: block;
  resize: none;
  overflow: hidden;
  field-sizing: content;
  line-height: 1.3;
}

#check-panel .title-input:hover,
#check-panel .title-input:focus {
  background: var(--field);
  border-color: var(--line-strong);
}

#check-panel h2 {
  margin: 0;
}

#check-panel .stack input:not([type="checkbox"]) {
  width: 100%;
  box-sizing: border-box;
}

#check-panel .form-actions {
  display: flex;
  gap: 10px;
}

main.read-only .catalog-open {
  display: none;
}

/* New batch panel: button, tabs, checklists and the one row of chosen items. */
.batches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.batches-head h2 {
  margin: 0;
}

.batches-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batches-actions .icon-btn,
.batches-actions .columns-icon {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--accent);
  padding: 3px 4px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.batches-actions .icon-btn:hover,
.batches-actions .icon-btn:focus-visible,
.batches-actions .columns-icon:hover,
.batches-actions .columns-icon:focus-visible {
  color: var(--ink);
}

.batches-actions .icon-btn.delete-all:hover:not(:disabled),
.batches-actions .icon-btn.delete-all:focus-visible {
  color: var(--st-red);
}

.batches-actions .icon-btn.delete-all:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.batches-actions .columns-menu {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.batches-actions .columns-icon svg,
.batches-actions .icon-btn svg {
  width: 24px;
  height: 24px;
}

main.read-only .batches-actions .delete-all {
  display: none;
}

tr.batch-row-deleted > * {
  opacity: 0.6;
}

tr.batch-row-deleted > .batch-restore-cell {
  opacity: 1;
}

.batch-restore-cell {
  width: 1%;
  white-space: nowrap;
}

.batch-icon-btn {
  padding: 2px 8px;
  line-height: 1.2;
}

.batch-open,
a.btn.batch-show-deleted {
  display: inline-block;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.batch-open:hover,
.batch-open:focus-visible,
a.btn.batch-show-deleted:hover,
a.btn.batch-show-deleted:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

#batch-panel .panel-head.bare {
  position: absolute;
  top: 23px;
  right: 36px;
  margin: 0;
  gap: 14px;
  justify-content: flex-end;
}

#batch-panel .panel-crumbs {
  margin: 28px 96px 8px 0;
}

#batch-panel form.batch-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  margin-top: 12px;
}

#batch-panel .batch-form > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#batch-panel .batch-form input:not([type="checkbox"]):not([type="radio"]),
#batch-panel .batch-form textarea {
  width: 100%;
  box-sizing: border-box;
}

#batch-panel .batch-title {
  margin: 0;
  max-width: calc(100% - 96px);
}

#batch-panel .batch-form input.batch-title-input {
  font: 600 18px var(--font-body);
  color: var(--ink-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-left: -6px;
  line-height: 1.3;
}

#batch-panel .batch-form input.batch-title-input:hover,
#batch-panel .batch-form input.batch-title-input:focus {
  background: var(--field);
  border-color: var(--line-strong);
  outline: none;
}

#batch-panel .field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

#batch-panel .field-row .pick-title {
  min-width: 0;
  margin-right: 4px;
}

#batch-panel .form-actions {
  display: flex;
  gap: 10px;
}

.batch-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.batch-tools .batch-search {
  flex: 1 1 90px;
  min-width: 0;
}

.batch-all {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink-strong);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.batch-all:hover,
.batch-all:focus-visible {
  border-color: var(--accent);
}

.batch-all[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.batch-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}

.batch-tab-panel[hidden] {
  display: none;
}

.batch-list {
  max-height: 155px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

#batch-panel .batch-list label,
#check-panel .batch-list label,
#new-issue .batch-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}

#batch-panel .batch-list label[hidden],
#check-panel .batch-list label[hidden],
#new-issue .batch-list label[hidden] {
  display: none;
}

#batch-panel .batch-list .batch-name,
#check-panel .batch-list .batch-name,
#new-issue .batch-list .batch-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

#batch-panel .batch-list .batch-kind,
#check-panel .batch-list .batch-kind,
#new-issue .batch-list .batch-kind {
  flex: none;
  font-size: 12px;
  color: var(--mute);
}

#batch-panel .batch-list label:hover,
#check-panel .batch-list label:hover,
#new-issue .batch-list label:hover {
  background: var(--bg);
}

.batch-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.batch-chip {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink-strong);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.batch-chip:hover,
.batch-chip:focus-visible {
  border-color: var(--accent);
}

main.read-only .batch-open {
  display: none;
}

#batch-panel .batch-form:has(input[name="when"][value="create"]:checked) .run-only,
#batch-panel .batch-form:not(:has(input[name="when"][value="later"]:checked)) .later-only {
  display: none;
}

#batch-panel .batch-advanced > summary {
  cursor: pointer;
  font-weight: 600;
}

#batch-panel .batch-advanced-body,
#batch-panel .save-only:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

#batch-panel .batch-advanced-body label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#batch-panel .batch-advanced-body label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}

#batch-panel .batch-advanced-body .batch-quiet {
  align-self: flex-start;
}

.batch-quiet {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink-strong);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.batch-quiet:hover,
.batch-quiet:focus-visible {
  border-color: var(--accent);
}


/* Multi-line boxes: three lines tall, scroll after that, row numbers on the left. */
#batch-panel .numbered-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--field);
  overflow: hidden;
}

#batch-panel .numbered-box .row-numbers {
  margin: 0;
  padding: 3px 6px;
  min-width: 2.2em;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mute);
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}

#batch-panel .numbered-box textarea {
  flex: 1;
  min-height: 0;
  height: calc(3 * 1.5em + 8px);
  max-height: calc(3 * 1.5em + 8px);
  line-height: 1.5;
  border: 0;
  border-radius: 0;
  resize: none;
  overflow-y: auto;
}

/* Waves toolbar: Feature and Group by use the Issues tray, each on its own row */
.toolbar .segmented {
  flex: 1 1 100%;
}

:root:root .toolbar .segmented .segmented-options {
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--panel) 86%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--panel) 70%, var(--ink));
}

:root:root .toolbar .segmented .segmented-options a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

/* Waves toolbar: both labels share one width so the trays line up; the find box is wide */
.toolbar .segmented>span.mute {
  flex: 0 0 5.5em;
}

.toolbar #waves-find {
  flex: 1 1 100%;
  width: min(100%, 22em);
}

.toolbar #waves-find input[type="search"] {
  width: 100%;
  padding: 6px 14px;
}

/* Waves toolbar: filters stack on the left, the action buttons sit top right beside Feature */
.toolbar:has(#waves-find) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.toolbar:has(#waves-find)>:is(.segmented, #waves-find) {
  min-height: 32px;
  margin: 0;
}

.toolbar:has(#waves-find)>* {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.toolbar:has(#waves-find)>.meeting-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

@media (max-width: 700px) {
  .toolbar:has(#waves-find) {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar:has(#waves-find)>.meeting-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

/* Waves: the empty drag note takes no space, so the table sits one row-gap below the toolbar */
#zone-drag-note:empty {
  display: none;
}

.activity-button {
  margin-left: 10px;
  padding: 2px 4px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.activity-button:hover,
.activity-button:focus-visible,
.activity-button[aria-expanded="true"] {
  color: var(--accent);
}

.activity-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(var(--activity-width, 400px), 100vw);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
  color: var(--act-ink);
  background: var(--act-bg);
  border-left: 1px solid var(--line-strong);
  box-shadow: -8px 0 24px var(--shadow-color);
}

@media (min-width: 900px) {
  body.activity-open {
    padding-right: var(--activity-width, 400px);
  }
}

.activity-panel[hidden],
.activity-empty[hidden] {
  display: none;
}

.activity-resize {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  cursor: ew-resize;
  touch-action: none;
}

.activity-resize:hover,
.activity-resize:focus-visible {
  background: var(--act-edge);
}

.activity-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-icon {
  padding: 4px 6px;
  display: inline-grid;
  place-items: center;
  color: var(--act-ink);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.activity-icon:hover,
.activity-icon:focus-visible {
  color: var(--act-strong);
}

.activity-clear {
  margin-left: auto;
}

.activity-copy {
  display: inline-grid;
  margin-left: 6px;
  padding: 2px 4px;
  vertical-align: middle;
}

.activity-close {
  padding: 0 8px;
  font-size: 20px;
  line-height: 24px;
  color: var(--act-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.activity-title {
  margin: 0;
  font-weight: 700;
  color: var(--act-strong);
}

.activity-intro,
.activity-empty {
  margin: 0;
  font-size: 13px;
  color: var(--act-mute);
}

.activity-source {
  padding: 0 8px;
  font-size: 11px;
  color: var(--act-mute);
  border: 1px solid var(--act-line);
  border-radius: 999px;
}

.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.activity-row {
  padding: 8px 0;
  border-top: 1px solid var(--act-line);
}

.activity-row-top {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.activity-method {
  font-family: var(--font-mono);
  font-weight: 700;
}

.activity-path {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12px;
}

.activity-status {
  padding: 0 6px;
  font-size: 12px;
  border-radius: 6px;
}

.activity-good {
  color: var(--act-good-ink);
  background: var(--act-good-bg);
}

.activity-bad {
  color: var(--act-bad-ink);
  background: var(--act-bad-bg);
}

.activity-took,
.activity-at {
  font-size: 12px;
  color: var(--act-mute);
}

.activity-line {
  margin: 2px 0;
  font-size: 13px;
}

.activity-details-title {
  cursor: pointer;
  font-size: 12px;
  color: var(--act-mute);
}

.activity-url-line,
.activity-headers-title {
  margin: 6px 0 2px;
  font-size: 12px;
  color: var(--act-mute);
}

.activity-url {
  color: inherit;
  word-break: break-all;
}

.activity-headers {
  margin: 0;
  max-height: 160px;
  overflow: auto;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
}

.activity-details-body {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
}

@media print {
  .activity {
    display: none;
  }
}

img.cdn-logo {
  height: 1.25em;
  width: auto;
  max-width: 5em;
  object-fit: contain;
  margin-left: 6px;
  vertical-align: text-bottom;
}

form.bug-report {
  display: grid;
  gap: 0.75rem;
  max-width: 480px;
  text-align: left;
}

form.bug-report label.field {
  display: grid;
  gap: 0.25rem;
}
