/* deakin-web: the shared style of Maksym Slavnenko's sites, after deakin.edu.au as it looks in October 2026:
   Open Sans throughout (bold charcoal headings), Titillium Web only for a wordmark, charcoal on white, soft teal for
   section bands and hover, yellow for the primary call to action, pill buttons, chevron-in-circle links. Both faces
   are SIL Open Font License, declared in deakin-fonts.css. deakin.edu.au has no dark mode; the dark values are ours.
   The Deakin logo is never part of this file. */

:root {
  color-scheme: light dark;

  --dk-ink: #191919;
  --dk-charcoal: #302f2f;
  --dk-charcoal-light: #5a5a5a;
  --dk-muted: #828282;
  --dk-grey-dark: #dddddd;
  --dk-grey: #e1e1e1;
  --dk-grey-light: #f7f7f7;
  --dk-white: #ffffff;
  --dk-teal-soft: #76b1a6;
  --dk-teal: #007d98;
  --dk-turquoise: #0b7161;
  --dk-green-deep: #024c41;
  --dk-yellow: #f2d23a;
  --dk-pink: #c74298;

  --bg: var(--dk-white);
  --surface: var(--dk-white);
  --surface-2: var(--dk-grey-light);
  --fg: var(--dk-charcoal);
  --fg-strong: var(--dk-charcoal);
  --muted: var(--dk-muted);
  --line: var(--dk-grey-dark);
  --outline: var(--dk-charcoal);
  --link: var(--dk-charcoal);
  --link-hover: var(--dk-teal-soft);
  --accent: var(--dk-teal-soft);
  --cta: var(--dk-yellow);
  --cta-fg: var(--dk-charcoal);
  --focus: var(--dk-teal);
  --band-bg: var(--dk-ink);
  --band-fg: var(--dk-white);
  --band-active: var(--dk-teal-soft);
  --footer-bg: var(--dk-grey-dark);
  --ok: var(--dk-turquoise);
  --ok-bg: #e3f1ee;
  --amber: #9a5b00;
  --amber-bg: #fff6d6;
  --red: #b42318;
  --red-bg: #fdecec;

  --font-display: "Titillium Web", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --radius: 12px;
  --radius-card: 8px;
  --radius-pill: 999px;
  --control: 36px;
  --content-width: 64rem;
  --gutter: max(var(--space-4), calc((100% - var(--content-width)) / 2));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --surface: #242424;
    --surface-2: #2d2d2d;
    --fg: #e1e1e1;
    --fg-strong: #ffffff;
    --muted: #a9a9a9;
    --line: #3a3a3a;
    --outline: #e1e1e1;
    --link: #e1e1e1;
    --band-bg: #000000;
    --footer-bg: #242424;
    --ok: #3fae94;
    --ok-bg: #163a33;
    --amber: #e0a030;
    --amber-bg: #3a2d10;
    --red: #f06060;
    --red-bg: #3e1a1a;
  }
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-text); font-weight: 700; line-height: 1.2; color: var(--fg-strong); margin: 1.2em 0 0.5em; }
h1 { font-size: 1.5rem; margin-top: 0.8em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 1rem; }
h1:focus { outline: none; }
p, ul, ol, dl { margin: 0.6em 0; }
a { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--link-hover); }
code, pre, kbd, samp, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--surface-2); padding: 0.05em 0.3em; border-radius: 4px; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0.6em 0.8em; overflow-x: auto; line-height: 1.35; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
.muted, .meta { color: var(--muted); }
.lede { font-size: 1rem; margin-top: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Links that lead somewhere: the chevron in a circle before the text; a box glyph after a link that leaves the site */
.cta { display: inline-flex; align-items: center; gap: 10px; }
.cta::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background-color: var(--outline);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill-rule='evenodd' d='M14 0a14 14 0 1 1 0 28A14 14 0 0 1 14 0zm-2.6 7.2 6.8 6.8-6.8 6.8-1.6-1.6L15 14l-5.2-5.2z'/%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 28 28'%3E%3Cpath fill-rule='evenodd' d='M14 0a14 14 0 1 1 0 28A14 14 0 0 1 14 0zm-2.6 7.2 6.8 6.8-6.8 6.8-1.6-1.6L15 14l-5.2-5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta:hover::before, .cta:focus-visible::before, .on-dark .cta::before { background-color: var(--dk-teal-soft); }
.on-dark .cta { color: var(--dk-white); }
.on-dark .cta:hover { color: var(--dk-teal-soft); }
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.35em;
  vertical-align: super;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h6v2H4v8h8V8h2v6H2z'/%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9z'/%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 16 16'%3E%3Cpath d='M2 2h6v2H4v8h8V8h2v6H2z'/%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The band: the page header strip, near-black, white items, the active one in soft teal with a rounded bar */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .band-inner, .band.inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
}
.band .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--band-fg);
  text-decoration: none;
  margin-right: var(--space-4);
  padding-right: var(--space-5);
  border-right: 1px solid rgb(255 255 255 / 0.25);
}
.band .brand:hover { color: var(--band-active); }
.band .kicker { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dk-grey); }
.band nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.band nav a {
  position: relative;
  color: var(--band-fg);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.3rem 0;
}
.band nav a:hover { color: var(--band-active); }
.band nav a.active { color: var(--band-active); }
.band nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  border-radius: 2px;
  background: var(--band-active);
}
.band .who { margin-left: auto; color: var(--dk-grey); display: flex; gap: var(--space-3); align-items: center; }
.band .who a, .band .who button.link { color: var(--band-fg); }
.band .who a:hover, .band .who button.link:hover { color: var(--band-active); }
.band button, .band .button { background: transparent; color: var(--band-fg); border-color: var(--band-fg); }
.band button:hover, .band .button:hover { background: var(--band-active); border-color: var(--band-active); color: var(--dk-charcoal); }

/* Page body, section bands and the footer */
.content { max-width: var(--content-width); margin: 0 auto; padding: var(--space-4); }
.section { padding: var(--space-6) var(--gutter); }
.section.grey { background: var(--surface-2); }
.band-teal { background: var(--dk-teal-soft); color: var(--dk-charcoal); padding: var(--space-6) var(--gutter); }
.band-teal h1, .band-teal h2, .band-teal h3, .band-teal a, .band-teal .cta::before { color: var(--dk-charcoal); }
.band-teal .cta::before { background-color: var(--dk-charcoal); }
.band-teal a:hover { color: var(--dk-ink); }
.band-teal .inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.band-teal .inner > :first-child { margin: 0; }
.callout { display: grid; grid-template-columns: minmax(16rem, 2fr) 3fr; background: var(--footer-bg); color: var(--fg); }
.callout .title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-6) var(--space-6);
  background: var(--dk-yellow);
  color: var(--dk-charcoal);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.callout .body { padding: var(--space-5) var(--space-6); }
.footer-line {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--gutter);
  background: var(--footer-bg);
  color: var(--fg);
  font-size: 0.85rem;
}
.footer-line a { color: var(--fg); }
.footer-line a:hover { color: var(--link-hover); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-top-width: 6px;
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-4) var(--space-4);
}
.card.amber { border-top-color: var(--amber); }
.card.red { border-top-color: var(--red); }
.card.ok { border-top-color: var(--ok); }
.card.muted { border-top-color: var(--muted); }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.card .title { margin: 0.25rem 0 0.5rem; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.card .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0.25rem 0; font-size: 0.95rem; color: var(--fg); }
.card .cta { margin-top: auto; padding-top: var(--space-3); align-self: flex-start; }
/* Cards whose parts line up across the row: each card spans one grid row per part, so the tallest title, meta line or table in a row sets that part's height for every card beside it */
.cards.aligned > .card { display: grid; grid-template-rows: subgrid; grid-row: span var(--card-parts, 7); row-gap: 0.25rem; align-content: start; }
.cards.aligned > .card .title, .cards.aligned > .card .meta, .cards.aligned > .card .verdict { margin: 0; }
.cards.aligned > .card table.weeks { margin: 0.25rem 0 0; }
.cards.aligned > .card .cta { margin-top: 0; align-self: end; justify-self: start; }

/* Tables */
.table { border-collapse: collapse; width: 100%; margin: var(--space-2) 0 var(--space-4); background: var(--surface); }
.table th, .table td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 700; color: var(--fg-strong); border-bottom: 2px solid var(--outline); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* Pills: states */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--outline);
  color: var(--fg);
  background: var(--surface);
  white-space: nowrap;
}
.pill.ok { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.pill.amber { color: var(--amber); border-color: var(--amber); background: var(--amber-bg); }
.pill.red { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.pill.teal { color: var(--dk-teal); border-color: var(--dk-teal); }
.pill.muted { color: var(--muted); border-color: var(--muted); }

/* Forms: rounded fields with a charcoal outline, round radios, pill search */
label { display: block; font-size: 0.95rem; color: var(--fg); }
input, select, textarea, button, .button { font: inherit; color: var(--fg); }
input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="url"], select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  min-height: var(--control);
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}
textarea { padding: 10px 14px; resize: vertical; line-height: 1.5; }
input.search, input[type="search"] {
  border-radius: var(--radius-pill);
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23302f2f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
}
input:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
input[type="radio"], input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--surface);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"]::before, input[type="checkbox"]::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--outline); transform: scale(0); transition: transform 0.1s; }
input[type="checkbox"]::before { border-radius: 2px; }
input[type="radio"]:checked::before, input[type="checkbox"]:checked::before { transform: scale(1); }
.form { display: grid; gap: var(--space-3); }
.form.inline { display: flex; flex-wrap: wrap; align-items: end; }
.form.narrow { max-width: 22rem; }
.form .actions, .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-3) 0; }

/* Buttons: pills; outline by default, yellow for the one action that matters, round for pagers */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control);
  padding: 0 22px;
  font-family: var(--font-text);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover, button:focus-visible, .button:focus-visible { background: var(--dk-teal-soft); border-color: var(--dk-teal-soft); color: var(--dk-charcoal); }
button.primary, .button.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-fg); text-transform: uppercase; letter-spacing: 0.04em; }
button.primary:hover, .button.primary:hover, button.primary:focus-visible, .button.primary:focus-visible { background: var(--cta); border-color: var(--cta); color: var(--cta-fg); filter: brightness(0.9); box-shadow: inset 0 0 0 999px rgb(0 0 0 / 0.06); }
button.secondary, .button.secondary { background: transparent; }
button.circle, .button.circle { width: var(--control); padding: 0; background: var(--outline); border-color: var(--outline); color: var(--surface); }
button.circle.muted, .button.circle.muted { background: var(--muted); border-color: var(--muted); }
button.circle:hover, .button.circle:hover { background: var(--dk-teal-soft); border-color: var(--dk-teal-soft); color: var(--dk-charcoal); }
button.link { display: inline; min-height: 0; background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
button.link:hover { background: none; color: var(--link-hover); }
button.small, .button.small { min-height: 36px; padding: 0 16px; font-size: 0.9rem; }
button:disabled, .button:disabled { opacity: 0.5; cursor: default; }

/* Notices */
.notice {
  border: 1px solid var(--outline);
  border-left-width: 6px;
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 0.6rem 0.9rem;
  margin: var(--space-3) 0;
}
.notice.warn, .notice.amber { border-color: var(--amber); background: var(--amber-bg); color: var(--amber); }
.notice.bad, .notice.red { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.notice.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.error { color: var(--red); }
.ok-text { color: var(--ok); }

/* Loading line and the Blazor error strip */
.loading { padding: var(--space-5) var(--space-4); color: var(--muted); font-size: 1.1rem; }
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 1.25rem 0.7rem;
  background: var(--amber-bg);
  color: var(--amber);
  border-top: 2px solid var(--amber);
  z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

@media (max-width: 64rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .cards { grid-template-columns: 1fr; }
  .band-teal .inner { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .callout .title { border-radius: 0 0 var(--radius-pill) 0; }
  .band nav a { font-size: 1rem; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .footer-line, button, .button, nav, #blazor-error-ui { display: none !important; }
  a { color: #000; text-decoration: none; }
  .cta::before, a[target="_blank"]::after { display: none; }
}

/* ==== 2.0 components (2026-10-27): Deakin look, Apple HIG structure; docs/design-2.0.md ====
   Every class below starts with dk- so it cannot clash with the classes above or with an app's own. They use the
   tokens above and the few semantic ones added here; a page opts in by wrapping its body in .dk-app. */

:root {
  --fg-2: var(--dk-charcoal-light);
  --field-line: var(--dk-charcoal-light);
  --action: var(--dk-teal);
  --switch-off: var(--dk-muted);
  --selected-bg: var(--dk-charcoal);
  --selected-fg: var(--dk-white);
  --dk-header-h: 64px;
  --dk-target: 44px;
  --dk-target-lg: 52px;
  --dk-main: 880px;
  --dk-main-narrow: 760px;
  --dk-frame: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg-2: #b5b5b5;
    --field-line: #a9a9a9;
    --action: var(--dk-teal-soft);
    --switch-off: #6e6e6e;
    --selected-bg: #e1e1e1;
    --selected-fg: #191919;
  }
}

/* Icons: a mask over currentColor, so one glyph works in both themes and in any text colour */
.dk-icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--dk-glyph) center / contain no-repeat;
  mask: var(--dk-glyph) center / contain no-repeat;
}
.dk-icon-chevron { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.dk-icon-check { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.dk-icon-lock { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.dk-icon-folder { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A1.5 1.5 0 0 1 4.5 6H9l2 2h8.5A1.5 1.5 0 0 1 21 9.5v8A1.5 1.5 0 0 1 19.5 19h-15A1.5 1.5 0 0 1 3 17.5z'/%3E%3C/svg%3E"); }
.dk-icon-folder-up { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A1.5 1.5 0 0 1 4.5 6H9l2 2h8.5A1.5 1.5 0 0 1 21 9.5v8A1.5 1.5 0 0 1 19.5 19h-15A1.5 1.5 0 0 1 3 17.5z'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M9.5 13.5L12 11l2.5 2.5'/%3E%3C/svg%3E"); }
.dk-icon-info { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5v.5'/%3E%3C/svg%3E"); }
.dk-icon-list { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h10'/%3E%3Cpath d='M4 18h7'/%3E%3C/svg%3E"); }
.dk-icon-again { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 13.7-5.6L20 9'/%3E%3Cpath d='M20 4v5h-5'/%3E%3Cpath d='M20 12a8 8 0 0 1-13.7 5.6L4 15'/%3E%3Cpath d='M4 20v-5h5'/%3E%3C/svg%3E"); }
.dk-icon-calendar { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M9 3v4'/%3E%3Cpath d='M15 3v4'/%3E%3C/svg%3E"); }
.dk-icon-send { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4'/%3E%3Cpath d='M8 8l4-4 4 4'/%3E%3Cpath d='M6 12H5a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-1'/%3E%3C/svg%3E"); }
.dk-icon-menu { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E"); }
.dk-icon-close { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12'/%3E%3Cpath d='M18 6L6 18'/%3E%3C/svg%3E"); }
.dk-icon-warning { --dk-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.5 20h19z'/%3E%3Cpath d='M12 10v4.5'/%3E%3Cpath d='M12 17.5v.5'/%3E%3C/svg%3E"); }

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

/* The app frame: header band, a main area that grows, the footer; 16 px text on the canvas scale */
.dk-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}
.dk-body { flex: 1; width: 100%; }
.dk-body:has(.dk-tint) { background: var(--surface-2); }
.dk-main, .dk-main-narrow {
  width: 100%;
  max-width: var(--dk-main);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.dk-main-narrow { max-width: var(--dk-main-narrow); }
.dk-center { width: 100%; padding: 64px 24px; display: flex; justify-content: center; align-items: flex-start; }
.dk-center > * { width: 100%; max-width: 520px; }
.dk-center.dk-center-small > * { max-width: 460px; }
.dk-stack { display: flex; flex-direction: column; gap: 16px; }
.dk-stack-tight { display: flex; flex-direction: column; gap: 8px; }
.dk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Type on the canvas scale: one large title per screen, a lede in the secondary text colour */
.dk-title { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; color: var(--fg-strong); }
.dk-title-md { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--fg-strong); }
.dk-heading { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--fg-strong); }
.dk-heading-sm { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--fg-strong); }
.dk-lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--fg-2); }
.dk-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.dk-small { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.dk-mono { font-family: var(--font-mono); font-size: 0.94em; overflow-wrap: anywhere; }
.dk-strong { font-weight: 700; color: var(--fg); }
.dk-head { display: flex; flex-direction: column; gap: 10px; }

/* The header band: wordmark, nav with the active underline, the account chip or Sign in */
.dk-header { background: var(--band-bg); color: var(--band-fg); position: relative; z-index: 20; }
.dk-header-inner {
  max-width: var(--dk-frame);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--dk-header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.dk-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--band-fg);
  text-decoration: none;
  white-space: nowrap;
}
.dk-wordmark:hover, .dk-wordmark:focus-visible { color: var(--band-active); }
.dk-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.dk-nav a {
  color: var(--band-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 20px 0 17px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.dk-nav a:hover { color: var(--band-active); }
.dk-nav a[aria-current="page"], .dk-nav a.is-active { border-bottom-color: var(--band-active); color: var(--band-fg); }
.dk-header-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dk-signin {
  display: inline-flex;
  align-items: center;
  min-height: var(--dk-target);
  padding: 0 18px;
  border: 2px solid var(--band-fg);
  border-radius: var(--radius-pill);
  color: var(--band-fg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.dk-signin:hover, .dk-signin:focus-visible { color: var(--dk-charcoal); background: var(--band-active); border-color: var(--band-active); }
.dk-chip { display: inline-flex; align-items: center; gap: 10px; min-height: var(--dk-target); color: var(--band-fg); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dk-chip:hover, .dk-chip:focus-visible { color: var(--band-active); }
.dk-chip[aria-current="page"] .dk-avatar { box-shadow: 0 0 0 3px var(--band-bg), 0 0 0 5px var(--band-active); }
.dk-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--dk-teal-soft);
  color: var(--dk-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}
.dk-avatar-lg { width: 64px; height: 64px; font-size: 28px; }
.dk-menu-button {
  display: none;
  width: var(--dk-target);
  height: var(--dk-target);
  min-height: var(--dk-target);
  padding: 0;
  margin-left: auto;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--band-fg);
  font-size: 24px;
}
.dk-menu-button:hover, .dk-menu-button:focus-visible { background: rgb(255 255 255 / 0.12); color: var(--band-fg); }
.dk-menu-panel { display: none; }

/* Pill buttons: outline by default, yellow with a chevron for the one action that matters, text for the quiet ones */
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--dk-target);
  padding: 0 18px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}
.dk-btn:hover, .dk-btn:focus-visible { background: var(--dk-teal-soft); border-color: var(--dk-teal-soft); color: var(--dk-charcoal); }
.dk-btn:disabled, .dk-btn[aria-disabled="true"] { opacity: 0.45; cursor: default; pointer-events: none; }
.dk-btn[target="_blank"]::after { content: none; }
.dk-btn-lg { min-height: var(--dk-target-lg); padding: 0 26px; font-size: 16px; }
.dk-btn-block { display: flex; width: 100%; }
.dk-btn.dk-btn-primary { background: var(--cta); border-color: var(--cta); color: var(--cta-fg); font-weight: 800; }
.dk-btn.dk-btn-primary.dk-btn-lg { padding: 0 28px; font-size: 17px; }
.dk-btn.dk-btn-primary:hover, .dk-btn.dk-btn-primary:focus-visible { background: var(--cta); border-color: var(--cta); color: var(--cta-fg); box-shadow: inset 0 0 0 999px rgb(0 0 0 / 0.08); }
.dk-btn.dk-btn-primary::after, .dk-btn.dk-btn-primary[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: middle;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 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 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dk-btn.dk-btn-primary.dk-no-chevron::after { content: none; }
.dk-btn.dk-btn-text {
  min-width: var(--dk-target);
  padding: 0 12px;
  border-color: transparent;
  background: transparent;
  color: var(--action);
}
.dk-btn.dk-btn-text:hover, .dk-btn.dk-btn-text:focus-visible { background: var(--surface-2); border-color: transparent; color: var(--action); text-decoration: underline; text-underline-offset: 0.18em; }
.dk-btn.dk-btn-danger { color: var(--red); }
.dk-btn.dk-btn-danger:hover, .dk-btn.dk-btn-danger:focus-visible { color: var(--red); }
.dk-btn.dk-btn-danger-fill { background: var(--red); border-color: var(--red); color: var(--dk-white); }
.dk-btn.dk-btn-danger-fill:hover, .dk-btn.dk-btn-danger-fill:focus-visible { background: var(--red); border-color: var(--red); color: var(--dk-white); box-shadow: inset 0 0 0 999px rgb(0 0 0 / 0.12); }
.dk-btn.dk-btn-field { border-width: 1px; border-color: var(--field-line); border-radius: var(--radius-card); min-width: 64px; padding: 0 14px; }

/* A link that leads on: bold, the action colour, a chevron after the text */
.dk-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: var(--dk-target);
  color: var(--action);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.dk-link::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 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 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dk-link[target="_blank"]::after {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 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 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dk-link:hover, .dk-link:focus-visible { color: var(--action); text-decoration: underline; text-underline-offset: 0.18em; }
.dk-link.dk-link-plain { color: var(--fg); text-decoration: underline; text-underline-offset: 0.18em; }
.dk-link.dk-link-plain::after { content: none; }

/* Text fields: a visible label above, a help line below, 48 px tall */
.dk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dk-label { display: block; margin: 0; font-size: 15px; font-weight: 700; color: var(--fg); }
.dk-label .dk-optional { font-weight: 400; color: var(--fg-2); }
.dk-help { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.dk-error { margin: 0; font-size: 14px; line-height: 1.45; color: var(--red); font-weight: 600; }
input.dk-input, textarea.dk-input, select.dk-input {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
}
textarea.dk-input { padding: 12px 14px; line-height: 1.55; }
input.dk-input.dk-input-lg { min-height: var(--dk-target-lg); font-size: 17px; }
input.dk-input.dk-mono, textarea.dk-input.dk-mono { font-family: var(--font-mono); font-size: 15px; }
input.dk-input[readonly] { background: var(--surface-2); border-color: var(--line); }
input.dk-input[aria-invalid="true"] { border-color: var(--red); }
.dk-input-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.dk-input-row > input.dk-input { flex: 1 1 240px; width: auto; }
.dk-input-row.dk-nowrap { flex-wrap: nowrap; }
.dk-input-row.dk-nowrap > input.dk-input { flex: 1 1 auto; }
.dk-input-group {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.dk-input-group:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dk-input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg-2);
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dk-input-group input.dk-input { flex: 1; border: 0; border-radius: 0; min-width: 6ch; }
.dk-input-group input.dk-input:focus-visible { outline: none; }
.dk-fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* A value to copy (a password, a link) on a grey strip with its buttons */
.dk-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  background: var(--surface-2);
}
.dk-value-label { font-size: 14px; color: var(--fg-2); }
.dk-value-text { flex: 1 1 200px; min-width: 0; font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }

/* Segmented control: two to four choices of one kind, the chosen one filled */
.dk-segmented {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.dk-segmented > button {
  min-height: var(--dk-target);
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
}
.dk-segmented > button:hover, .dk-segmented > button:focus-visible { background: var(--surface); color: var(--fg); }
.dk-segmented > button[aria-pressed="true"], .dk-segmented > button[aria-checked="true"] { background: var(--selected-bg); color: var(--selected-fg); font-weight: 700; }

/* Switch: a real button with role="switch" and aria-checked; the track and knob are drawn, the target is 44 px */
.dk-switch {
  position: relative;
  flex: none;
  width: 56px;
  height: var(--dk-target);
  min-height: var(--dk-target);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}
.dk-switch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 56px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--switch-off);
  transition: background 0.15s;
}
.dk-switch::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dk-white);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  transition: left 0.15s;
}
.dk-switch[aria-checked="true"]::before { background: var(--ok); }
.dk-switch[aria-checked="true"]::after { left: 27px; }
.dk-switch:hover, .dk-switch:focus-visible { background: transparent; }
.dk-switch:disabled { opacity: 0.45; cursor: default; }
.dk-switch-row { display: flex; align-items: center; gap: 16px; }
.dk-switch-row > :first-child { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dk-switch-label { font-size: 17px; font-weight: 700; color: var(--fg); }

/* Radio cards: one choice of a few, each with a title and a line of help */
.dk-choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dk-choices > legend { padding: 0; margin-bottom: 12px; font-size: 22px; font-weight: 800; color: var(--fg-strong); }
.dk-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
}
.dk-choice > input[type="radio"] { margin: 1px 0 0; flex: none; }
.dk-choice.is-selected, .dk-choice:has(input:checked) { border: 2px solid var(--outline); padding: 16px 18px; }
.dk-choice:has(input:disabled), .dk-choice.is-disabled { cursor: default; opacity: 0.6; }
.dk-choice:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dk-choice > input:focus-visible { outline: none; }
.dk-choice-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dk-choice-title { font-size: 17px; font-weight: 700; color: var(--fg); }
.dk-choice-help { font-size: 15px; line-height: 1.5; color: var(--fg-2); }

/* Step indicator: where a person is in a short task */
.dk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.dk-step { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.dk-step + .dk-step::before { content: "\2014"; color: var(--fg-2); margin-right: 2px; }
.dk-step-mark {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.dk-step[aria-current="step"] { color: var(--fg); font-weight: 700; }
.dk-step[aria-current="step"] .dk-step-mark { border-color: var(--selected-bg); background: var(--selected-bg); color: var(--selected-fg); }
.dk-step.is-done { color: var(--ok); font-weight: 600; }
.dk-step.is-done .dk-step-mark { border-color: var(--ok-bg); background: var(--ok-bg); color: var(--ok); }
.dk-step.is-done .dk-step-mark .dk-icon { width: 16px; height: 16px; }

/* Success header: the check in a circle, the title that says what happened, a line of what to do next */
.dk-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dk-success-mark, .dk-mark {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dk-success-mark .dk-icon { width: 30px; height: 30px; }
.dk-mark { width: 64px; height: 64px; background: var(--surface-2); color: var(--fg); }
.dk-mark .dk-icon { width: 32px; height: 32px; }

/* Cards: a quiet group, 1 px grey line, 12 px corners */
.dk-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.dk-card-tight { padding: 20px; gap: 14px; }
.dk-card-head { display: flex; align-items: center; gap: 12px; }
.dk-card-head > :first-child { flex: 1; }
.dk-card.dk-card-dialog { padding: 36px 32px; gap: 20px; }
.dk-card.dk-card-center { align-items: center; text-align: center; }
.dk-card.dk-card-center > form, .dk-card.dk-card-center > .dk-field { align-self: stretch; text-align: left; }
.dk-divider { border-top: 1px solid var(--line); padding-top: 24px; }

/* "More options": what most people never need, one click away */
details.dk-more { margin: 0; }
details.dk-more > summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: var(--dk-target);
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
details.dk-more > summary::-webkit-details-marker { display: none; }
details.dk-more > summary::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background-color: currentColor;
  transition: transform 0.15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 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 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
details.dk-more[open] > summary::before { transform: rotate(90deg); }
details.dk-more > summary:hover { color: var(--action); }
.dk-more-hint { font-weight: 400; color: var(--fg-2); }
.dk-more-body { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Progress bar for a quota */
.dk-meter { display: flex; flex-direction: column; gap: 6px; }
progress.dk-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--line);
  color: var(--ok);
  overflow: hidden;
}
progress.dk-progress::-webkit-progress-bar { background: var(--line); border-radius: var(--radius-pill); }
progress.dk-progress::-webkit-progress-value { background: var(--ok); border-radius: var(--radius-pill); }
progress.dk-progress::-moz-progress-bar { background: var(--ok); border-radius: var(--radius-pill); }
progress.dk-progress.is-high::-webkit-progress-value { background: var(--amber); }
progress.dk-progress.is-high::-moz-progress-bar { background: var(--amber); }

/* Small state badge, a grey hint strip, a list of notes with icons, an inline confirmation */
.dk-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--fg-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.dk-badge.is-ok { background: var(--ok-bg); color: var(--ok); }
.dk-badge.is-amber { background: var(--amber-bg); color: var(--amber); }
.dk-hint { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-card); background: var(--surface-2); font-size: 15px; line-height: 1.5; color: var(--fg); }
.dk-hint > .dk-icon { margin-top: 2px; }
.dk-hint.is-warn { background: var(--amber-bg); color: var(--amber); }
.dk-hint.is-bad { background: var(--red-bg); color: var(--red); }
.dk-hint.is-ok { background: var(--ok-bg); color: var(--ok); }
.dk-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.dk-notes > li { display: flex; gap: 12px; align-items: flex-start; }
.dk-notes > li > .dk-icon { margin-top: 2px; }
.dk-notes.dk-notes-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dk-notes .dk-icon.is-ok { color: var(--ok); }
.dk-confirm { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-left: 4px solid var(--red); border-radius: var(--radius-card); background: var(--red-bg); color: var(--fg); }
.dk-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dk-item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.dk-item-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-item-title { font-size: 16px; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.dk-item-meta { font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }

/* The footer */
.dk-footer { background: var(--footer-bg); color: var(--fg); font-size: 14px; }
.dk-footer-inner { max-width: var(--dk-frame); margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dk-footer a { color: var(--fg); }

/* The action bar: a row of buttons on wide screens, a bar fixed to the bottom of a phone screen */
.dk-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

@media (min-width: 641px) {
  .dk-phone-only { display: none !important; }
}

@media (max-width: 640px) {
  .dk-header-inner { min-height: 56px; padding: 0 8px 0 16px; gap: 8px; }
  .dk-wordmark { font-size: 20px; }
  .dk-header .dk-nav, .dk-header .dk-header-end { display: none; }
  .dk-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .dk-menu-panel.is-open { display: flex; flex-direction: column; padding: 4px 16px 12px; border-top: 1px solid rgb(255 255 255 / 0.15); }
  .dk-menu-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    color: var(--band-fg);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }
  .dk-menu-panel a[aria-current="page"] { color: var(--band-active); }
  .dk-main, .dk-main-narrow { padding: 20px 16px 24px; gap: 18px; }
  .dk-center { padding: 24px 16px; }
  .dk-card { padding: 16px; }
  .dk-card.dk-card-dialog { padding: 24px 20px; }
  .dk-title { font-size: 30px; }
  .dk-title-md { font-size: 26px; }
  .dk-lede { font-size: 16px; }
  .dk-segmented { display: flex; align-self: stretch; }
  .dk-segmented > button { flex: 1; padding: 0 10px; }
  .dk-fields-2, .dk-notes.dk-notes-2 { grid-template-columns: 1fr; }
  .dk-switch-label { font-size: 16px; }
  .dk-value { padding: 10px 10px 10px 14px; }
  .dk-value-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dk-value-text { flex: 1 1 60%; font-size: 15px; overflow-wrap: break-word; }
  details.dk-more > summary .dk-more-hint { flex: 1 1 100%; padding-left: 24px; font-size: 14px; }
  .dk-input-group { max-width: none; }
  .dk-step:not([aria-current="step"]) .dk-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dk-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0 -16px;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .dk-actionbar > .dk-btn { width: 100%; }
  .dk-main:has(> .dk-actionbar:last-child), .dk-main-narrow:has(> .dk-actionbar:last-child) { padding-bottom: 0; }
  .dk-wide-only { display: none !important; }
}

@media print {
  .dk-header, .dk-footer, .dk-actionbar, .dk-btn, details.dk-more { display: none !important; }
}
