:root {
  color-scheme: light dark;

  /* The isolines palette is the source of truth for the page and for the
     shader, which reads --paper, --ink, --line and the two alphas at boot.
     Colour follows survey-sheet convention: brown for elevation, blue for
     water, green for vegetation, red for survey marks. */
  --paper: #f5f2ea;
  --ink: #1c1913;
  --line: #8a6b47;
  --line-alpha: 0.34;
  --index-alpha: 0.62;

  --water: #38637f;
  --vegetation: #4f7444;
  --survey: #a4453a;
  --sun: #96701f;

  /* neatline (map frame) and its hairline relatives */
  --rule: rgba(28, 25, 19, 0.5);
  --rule-faint: rgba(28, 25, 19, 0.16);

  /* Surfaces and text, named for how the app uses them. */
  --bg: var(--paper);
  --panel: #efeade;
  --panel-2: #e6e0d0;
  --text: var(--ink);
  --muted: #6d6355;
  --accent: var(--water);
  --pass: var(--vegetation);
  --fail: var(--survey);
  --warn: var(--sun);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans:
    ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  /* A printed plate has corners, not pills. */
  --radius: 3px;
  --plate-margin: clamp(14px, 2.4vmin, 26px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210;
    --ink: #eae4d6;
    --line: #a98c62;
    --line-alpha: 0.3;
    --index-alpha: 0.55;

    --water: #7ea8c4;
    --vegetation: #8aa87a;
    --survey: #cf8074;
    --sun: #c8a04e;

    --rule: rgba(234, 228, 214, 0.42);
    --rule-faint: rgba(234, 228, 214, 0.14);

    --panel: #1a1815;
    --panel-2: #221f1a;
    --muted: #9a9082;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line-alpha: 0.55;
    --index-alpha: 0.85;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

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

code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 13px;
}

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

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

#header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 52px;
  border-bottom: 1px solid var(--rule-faint);
  background: var(--panel);
  flex: none;
}

#header:empty {
  display: none;
}

.brand {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
}

.spacer {
  flex: 1;
}

.who {
  font-family: var(--mono);
  color: var(--muted);
}

#root {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

button {
  font: inherit;
  border-radius: 6px;
  padding: 6px 14px;
  border: 1px solid var(--rule-faint);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
button:hover:not(:disabled) {
  border-color: var(--muted);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1220;
  font-weight: 600;
}
button.ghost {
  background: transparent;
}

input {
  font: inherit;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--rule-faint);
  background: var(--panel-2);
  color: var(--text);
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.badge {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--rule-faint);
  color: var(--muted);
}
.difficulty.easy {
  color: var(--pass);
  border-color: color-mix(in srgb, var(--pass) 40%, transparent);
}
.difficulty.medium {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
}
.difficulty.hard {
  color: var(--fail);
  border-color: color-mix(in srgb, var(--fail) 40%, transparent);
}
.badge.local {
  color: var(--warn);
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-2);
  border-radius: 4px;
  padding: 1px 6px;
}

/* --- sign in: the landing page, with a form under the word ---------------- */

body.signing-in {
  overflow: hidden;
}

/* The map plate: a double-rule neatline inset from the viewport edge.
   Contours are clipped by the canvas edge, as on a printed survey sheet. */
.plate {
  position: fixed;
  inset: max(var(--plate-margin), env(safe-area-inset-top))
    max(var(--plate-margin), env(safe-area-inset-right))
    max(var(--plate-margin), env(safe-area-inset-bottom))
    max(var(--plate-margin), env(safe-area-inset-left));
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule-faint);
  outline-offset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  opacity: 0;
}

/* The swap from real text to rendered text happens in one paint, once the
   first GL frame is up — no transition, no layout shift. */
html.live .signin canvas {
  opacity: 1;
}
html.live .signin .word {
  opacity: 0;
  user-select: none;
}

.signin-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  pointer-events: none;
}

.signin .word {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(56px, min(11vw + 32px, 26vh), 190px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.signin .sub {
  margin: 0 0 14px;
  font-size: 13px;
}

.login {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: auto;
}
.login input {
  width: 10em;
}
.error {
  color: var(--fail);
  font-size: 13px;
  margin: 0;
  flex-basis: 100%;
}

/* --- problem list --------------------------------------------------------- */

.list {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.list-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
}
.list-head p {
  margin: 0 0 24px;
  font-size: 14px;
}

.grid {
  width: 100%;
  border-collapse: collapse;
}
.grid th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule-faint);
}
.grid td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule-faint);
  vertical-align: top;
}
.grid th.person,
.grid td.person {
  text-align: center;
  width: 96px;
}
.grid td.person .mark {
  display: block;
  font-size: 16px;
  color: var(--muted);
}
.grid td.solved .mark {
  color: var(--pass);
}
.grid td.trying .mark {
  color: var(--warn);
}
.grid td.person .muted {
  font-size: 11px;
  font-family: var(--mono);
}
.grid .dot {
  color: var(--rule-faint);
}
.tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* --- problem page --------------------------------------------------------- */

.problem {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.problem-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule-faint);
  flex: none;
}
.problem-head h1 {
  font-size: 17px;
  margin: 0;
}
.back {
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.statement {
  overflow: auto;
  padding: 24px 28px 64px;
  border-right: 1px solid var(--rule-faint);
}
.statement h2 {
  font-size: 15px;
  margin: 28px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
/* Section headings are uppercased, but an identifier inside one is not — the
   function really is called count_tags, not COUNT_TAGS. */
.statement h2 code,
details.hint > summary code {
  text-transform: none;
}

.statement p,
.statement li {
  font-size: 14.5px;
}
.statement pre {
  background: var(--panel);
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
}
.statement :not(pre) > code {
  background: var(--panel-2);
  border-radius: 4px;
  padding: 1px 5px;
}

details.hint {
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  padding: 0 14px;
  margin: 16px 0;
  background: var(--panel);
}
details.hint > summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 13px;
  color: var(--warn);
  font-family: var(--mono);
  list-style: none;
}
details.hint > summary::before {
  content: "▸ ";
}
details.hint[open] > summary::before {
  content: "▾ ";
}
details.hint > summary::-webkit-details-marker {
  display: none;
}
details.hint[open] {
  padding-bottom: 8px;
}

.workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.editor {
  flex: 1 1 45%;
  min-height: 180px;
  overflow: auto;
  background: var(--panel);
}
.editor .cm-editor {
  height: 100%;
}
.editor .cm-scroller {
  font-family: var(--mono);
  font-size: 13px;
}
.plain-editor {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  resize: none;
  padding: 12px 14px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}
.plain-editor:focus {
  outline: none;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
  flex: none;
}
.status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.status.running {
  color: var(--warn);
}
.status.ready {
  color: var(--pass);
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 8px 14px 0;
  flex: none;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
}
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.results {
  flex: 1 1 55%;
  overflow: auto;
  padding: 12px 14px 40px;
  min-height: 0;
}
.empty {
  color: var(--muted);
  font-size: 13px;
}

.summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--rule-faint);
  margin-bottom: 12px;
}
.summary.all-passed {
  border-color: color-mix(in srgb, var(--pass) 45%, transparent);
  color: var(--pass);
}

.blocked {
  border: 1px solid color-mix(in srgb, var(--fail) 45%, transparent);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: color-mix(in srgb, var(--fail) 8%, var(--panel));
}
.blocked strong {
  color: var(--fail);
}
.blocked p {
  margin: 4px 0 0;
  font-size: 14px;
}

.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
}
.case.failed {
  background: color-mix(in srgb, var(--fail) 7%, transparent);
}
.case .mark {
  font-family: var(--mono);
  flex: none;
  width: 14px;
}
.case.passed .mark {
  color: var(--pass);
}
.case.failed .mark {
  color: var(--fail);
}
.case-body {
  min-width: 0;
  flex: 1;
}
.case-name {
  font-size: 13.5px;
}
.kind {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--rule-faint);
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 8px;
  text-transform: uppercase;
}
.why {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.diff {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  font-size: 12.5px;
}
.diff dt {
  color: var(--muted);
  font-family: var(--mono);
}
.diff dd {
  margin: 0;
  min-width: 0;
  overflow-x: auto;
}
.diff code {
  white-space: pre;
}

.stdout {
  margin-top: 16px;
}
.stdout h4 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stdout pre {
  margin: 0;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  overflow-x: auto;
}

.attempt-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.attempt {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-bottom: 1px solid var(--rule-faint);
}
.attempt .mark {
  color: var(--fail);
}
.attempt.passed .mark {
  color: var(--pass);
}

.locked {
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
}
.locked strong {
  color: var(--warn);
}
.locked p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.solution {
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.solution header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px;
  background: var(--panel-2);
  font-size: 13px;
}
.solution pre {
  margin: 0;
  padding: 12px;
  background: var(--panel);
  overflow-x: auto;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .statement {
    border-right: 0;
    border-bottom: 1px solid var(--rule-faint);
    max-height: 45vh;
  }
  .problem,
  #root {
    height: auto;
  }
}

/* --- dashboard ------------------------------------------------------------ */

.week {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.week-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.week-head h1 {
  margin: 0;
  font-size: 22px;
  min-width: 8ch;
}
.week-head button {
  padding: 2px 10px;
  line-height: 1.2;
}
.nav {
  font-size: 13px;
  color: var(--muted);
}
.nav:hover {
  color: var(--accent);
}

/* Logging has to be quick or it stops happening, so it is one row. */
.log {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-faint);
}
.log label {
  color: var(--muted);
  font-size: 13px;
}
.log .minutes {
  width: 5.5em;
}
.log .unit {
  color: var(--muted);
  font-size: 13px;
  margin-left: -4px;
}
.log .course {
  width: 9em;
}
.log .note {
  flex: 1;
  min-width: 8em;
}
.log .quick {
  display: flex;
  gap: 4px;
}
.log .quick button {
  padding: 6px 9px;
  font-size: 12px;
  font-family: var(--mono);
}

/* The week, drawn as a survey plate: a double-rule neatline around the sheet,
   the same frame the landing page uses. */
.week-plate {
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule-faint);
  outline-offset: 3px;
  padding: 14px 16px 10px;
  background: var(--paper);
}

.week-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
}
.week-grid th {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px 4px;
}
.week-grid thead th.today {
  color: var(--accent);
}
.week-grid .dow {
  display: block;
}
.week-grid .dom {
  display: block;
  font-size: 10px;
  opacity: 0.6;
}
.week-grid th.person {
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text);
  width: 7ch;
  padding-right: 10px;
}
.week-grid tr.mine th.person {
  color: var(--accent);
}

.week-grid td.day {
  /* Each cell is a conical hill whose height is the minutes studied, drawn as
     level sets exactly like the landing page: a contour every CONTOUR_MINUTES,
     a heavier index contour every fifth, and solid ink for the plateau at or
     above that person's daily target. Ring count is the elevation, so the
     scale never saturates — five hours simply has more rings than two.
     --spacing, --summit and --fade are measured per cell in js/views/week.js. */
  --spacing: 100px;
  --summit: 0px;
  --plateau-alpha: 0;
  --fade: 1;
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(
          in srgb,
          var(--line) calc(var(--plateau-alpha) * 100%),
          transparent
        )
        0 var(--summit),
      transparent var(--summit)
    ),
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0 calc(var(--spacing) * 5 - 1px),
      color-mix(
          in srgb,
          var(--line) calc(var(--index-alpha) * 100%),
          transparent
        )
        calc(var(--spacing) * 5 - 1px) calc(var(--spacing) * 5)
    ),
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0 calc(var(--spacing) - 1px),
      color-mix(
          in srgb,
          var(--line) calc(var(--line-alpha) * var(--fade) * 100%),
          transparent
        )
        calc(var(--spacing) - 1px) var(--spacing)
    );
  background-color: var(--panel);
  border-radius: 2px;
  height: 62px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--rule-faint);
  /* The reading sits at the foot of the cell like a spot height on a map,
     so it does not punch a hole through the middle of the contours. */
  vertical-align: bottom;
  text-align: center;
  padding: 0 0 3px;
}
.week-grid td.day.empty {
  background-image: none;
}
.week-grid td.day.today {
  border-color: var(--rule);
}
.week-grid td.day .none {
  color: color-mix(in srgb, var(--muted) 40%, transparent);
}
.week-grid td.day .amount {
  display: inline-block;
  color: var(--text);
  text-shadow:
    0 0 3px var(--paper),
    0 0 3px var(--paper);
}
.week-grid td.total {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
  padding-left: 10px;
  white-space: nowrap;
}
.week-grid th.goal,
.week-grid td.goal {
  width: 128px;
  padding-left: 8px;
}

.bar {
  position: relative;
  height: 20px;
  border-radius: 4px;
  background: var(--panel-2);
  overflow: hidden;
}
.bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.bar .fill.hit {
  background: color-mix(in srgb, var(--pass) 60%, transparent);
}
.bar .pct {
  position: relative;
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
}

.xp-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.xp-row h2 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.xp-people {
  display: flex;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}
.xp-person {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}
.xp-person .who {
  font-family: var(--mono);
  color: var(--muted);
}
.xp-person.mine .who {
  color: var(--accent);
}
.xp-person .muted {
  font-size: 11px;
}
.xp-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.xp-form label {
  font-size: 12px;
  color: var(--muted);
}
.xp-form .xp {
  width: 5.5em;
}

.today-list h2,
.tasks h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}
.today-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.today-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule-faint);
  font-size: 13px;
}
.today-list .remove {
  margin-left: auto;
  border: 0;
  padding: 2px 8px;
  color: var(--muted);
}
.today-list .remove:hover {
  color: var(--fail);
}
.today-empty {
  margin: 0;
}

.task-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.task-column h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 6px;
}
.task-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-column li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-faint);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.task-column li.done {
  opacity: 0.5;
}
.task-column li.done .mark {
  color: var(--pass);
}
.task-column li.overdue .due {
  color: var(--fail);
}
.task-column .mark {
  font-family: var(--mono);
  color: var(--muted);
  width: 1em;
}
.task-column .due,
.task-column .muted {
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--muted);
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule-faint);
}
.composer label {
  font-size: 13px;
  color: var(--muted);
}
.composer select,
.composer input[type="date"] {
  font: inherit;
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--rule-faint);
  background: var(--panel-2);
  color: var(--text);
}
.composer input[type="text"] {
  flex: 1;
  min-width: 10em;
}

@media (max-width: 720px) {
  .task-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .week-grid td.day {
    height: 38px;
    font-size: 10px;
  }
  .week-grid th.goal,
  .week-grid td.goal {
    width: 84px;
  }
}

.targets {
  padding: 0;
}
.targets > summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--muted);
  list-style: none;
}
.targets > summary::before {
  content: "▸ ";
}
.targets[open] > summary::before {
  content: "▾ ";
}
.targets > summary::-webkit-details-marker {
  display: none;
}
.targets form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.targets label {
  font-size: 13px;
  color: var(--muted);
}
.targets input {
  width: 6em;
}
.targets .unit {
  font-size: 12px;
  color: var(--muted);
  margin-left: -4px;
}
.targets .saved {
  font-size: 12px;
  color: var(--fail);
}
