    :root {
      color-scheme: dark;
      --bg: #12080d;
      --surface: #1c1016;
      --text: #f7f2f4;
      --muted: #c9b8bf;
      --accent: #ff0052;
      --line: #3d2832;
      --field: #0e070b;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      background: var(--bg);
      color: var(--text);
      font-family: ui-sans-serif, system-ui, sans-serif;
      line-height: 1.5;
    }
    body.overlay {
      background: transparent;
      color-scheme: normal;
    }
    a { color: var(--accent); }
    a:hover { text-decoration-thickness: 2px; }
    .site {
      display: flex;
      align-items: center;
      padding: 0.9rem 1.25rem;
      border-bottom: 1px solid var(--line);
      background: #180910;
    }
    .site a {
      color: var(--accent);
      font-weight: 700;
      letter-spacing: 0.04em;
      text-decoration: none;
    }
    .logo {
      display: block;
      height: 25px;
      width: auto;
    }
    main {
      width: min(68rem, calc(100% - 2rem));
      margin: 0 auto;
      padding: 1.25rem 0 3rem;
    }
    h1, h2, h3 { line-height: 1.2; }
    h1 { font-size: 1.8rem; margin: 0 0 0.6rem; }
    h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
    h3 { font-size: 1.05rem; margin: 1rem 0 0.35rem; }
    p { margin: 0.4rem 0 0.8rem; }
    .muted { color: var(--muted); }
    hr.form-break {
      border: 0;
      border-top: 1px solid var(--line);
      margin: 0.9rem 0;
    }
    .session {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem 1rem;
      margin-bottom: 1rem;
    }
    .session p { margin: 0; color: var(--muted); }
    .acting {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem 1rem;
      margin-bottom: 1rem;
      padding: 0.75rem 1rem;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0.85rem;
    }
    .acting p { margin: 0; }
    .acting form { margin: 0; }
    .session-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.55rem; margin-left: auto; max-width: 100%; }
    @media (max-width: 42rem) {
      .session-actions { flex-basis: 100%; }
    }
    .split {
      display: grid;
      gap: 1rem;
    }
    section {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0.85rem;
      padding: 1rem 1.2rem 1.2rem;
      margin: 0 0 1rem;
    }
    main > form {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0.85rem;
      padding: 1rem 1.2rem 1.2rem;
      margin: 0 0 1rem;
    }
    form#patreon-sync { display: none; }
    section form,
    .session form,
    .actions form,
    li form,
    td form {
      background: transparent;
      border: 0;
      padding: 0;
      margin: 0.4rem 0 0;
      border-radius: 0;
    }
    label {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      margin: 0.75rem 0;
    }
    label:has(input[type="checkbox"]) {
      flex-direction: row;
      align-items: center;
      gap: 0.55rem;
    }
    input, select, textarea {
      font: inherit;
      color: var(--text);
      background: var(--field);
      border: 1px solid var(--line);
      border-radius: 0.45rem;
      padding: 0.45rem 0.6rem;
    }
    input:focus, select:focus {
      outline: 2px solid var(--accent);
      border-color: var(--accent);
    }
    input:disabled, select:disabled, textarea:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }
    textarea { width: 100%; min-height: 8rem; resize: vertical; }
    input[type="checkbox"] {
      accent-color: var(--accent);
      width: 1rem;
      height: 1rem;
    }
    button, a.button, a.icon-button, label.icon-button {
      display: inline-block;
      font: inherit;
      font-weight: 650;
      background: var(--accent);
      color: #14060c;
      border: 0;
      border-radius: 999px;
      padding: 0.45rem 0.95rem;
      text-decoration: none;
      cursor: pointer;
    }
    button:hover, a.button:hover, a.icon-button:hover, label.icon-button:hover { filter: brightness(1.08); }
    button:disabled, button:disabled:hover {
      opacity: 0.45;
      cursor: not-allowed;
      filter: none;
    }
    button.icon-button, a.icon-button, label.icon-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.9rem;
      height: 1.9rem;
      margin: 0;
      padding: 0;
    }
    button.icon-button + button.icon-button { margin-left: 0.35rem; }
    button.icon-button .icon, a.icon-button .icon { display: block; }
    .overlay-address {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 0.55rem;
    }
    .overlay-address > span { min-width: 0; overflow-wrap: anywhere; }
    .overlay-address form { flex: 0 0 auto; margin: 0; }
    table.rules th .muted { color: var(--muted); font-weight: 400; }
    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      align-items: center;
      margin: 0.6rem 0 1rem;
    }
    section .actions { margin: 0; }
    .actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; }
    .actions form[hidden] { display: none; }
    .session-actions form { margin: 0; }
    .actions label { flex-direction: row; align-items: center; margin: 0; }
    .stats {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem 1.5rem;
      margin-bottom: 1rem;
    }
    .stats p { margin: 0; }
    .stats strong { color: var(--accent); font-variant-numeric: tabular-nums; }
    ul { margin: 0.4rem 0 0.8rem; padding-left: 1.15rem; }
    li { margin: 0.35rem 0; }
    code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.92em;
      color: var(--text);
      background: var(--field);
      border-radius: 0.3rem;
      padding: 0.05rem 0.35rem;
    }
    dl.elements { margin: 0.2rem 0 0.9rem; }
    dl.elements dt { margin-top: 0.65rem; }
    dl.elements dd { margin: 0.15rem 0 0; color: var(--muted); }
    .table-wrap, .rules-wrap { overflow-x: auto; }
    table.ledger { width: 100%; border-collapse: collapse; }
    table.ledger th, table.ledger td {
      border-bottom: 1px solid var(--line);
      padding: 0.55rem 0.5rem;
      vertical-align: top;
      text-align: left;
    }
    table.ledger th { color: var(--accent); font-weight: 650; white-space: nowrap; }
    table.users td { vertical-align: middle; }
    table.users td.row-actions { white-space: nowrap; }
    table.users td.row-actions form {
      display: inline-block;
      margin: 0 0.35rem 0 0;
      vertical-align: middle;
    }
    table.users td.row-actions form:last-child { margin-right: 0; }
    table.summary { width: auto; min-width: 20rem; border-collapse: collapse; margin: 0.6rem 0 1rem; }
    table.summary th, table.summary td {
      border-bottom: 1px solid var(--line);
      padding: 0.45rem 0.8rem 0.45rem 0;
      text-align: left;
    }
    table.summary th { color: var(--accent); font-weight: 650; }
    table.summary td:last-child, table.summary th:last-child {
      text-align: right;
      font-variant-numeric: tabular-nums;
      padding-left: 1.5rem;
    }
    .summary-pair { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; margin: 0; }
    .summary-pair figure.pie { flex: 0 0 23rem; margin: 0.6rem 0 0 auto; }
    .summary-pair:last-of-type { margin-bottom: 1rem; }
    hr.section-break { border: 0; border-top: 1px solid var(--line); margin: 1.15rem 0; }
    .time-chart { width: 100%; margin: 0 0 1.2rem; }
    .swatch { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.45rem; border-radius: 0.15rem; vertical-align: -0.1rem; }
    .pie-0 { background: #ff5c8a; }
    .pie-1 { background: #f0a202; }
    .pie-2 { background: #7bdff2; }
    .pie-3 { background: #b388eb; }
    .pie-4 { background: #9bde7e; }
    .pie-5 { background: #ff8c42; }
    .pie-6 { background: #5aa9e6; }
    .pie-7 { background: #f4d35e; }
    .pie-8 { background: #ee6c4d; }
    .pie-9 { background: #80ed99; }
    .pie-10 { background: #c77dff; }
    .pie-11 { background: #4cc9f0; }
    table.ledger td.payload {
      color: var(--muted);
      max-width: 16rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.85rem;
    }
    table.ledger td.payload button.payload-toggle {
      display: block;
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      font-weight: 400;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      cursor: pointer;
    }
    table.ledger td.payload button.payload-toggle.open,
    table.ledger td.payload:has(button.payload-toggle.open) {
      overflow: visible;
      white-space: normal;
      text-overflow: clip;
      word-break: break-word;
    }
    .pager { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 0.4rem 0 0.8rem; }
    nav.pager [aria-current="page"] { color: var(--text); }
    nav.crumbs ol {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.45rem;
      list-style: none;
      margin: 0 0 1rem;
      padding: 0;
    }
    nav.crumbs li { display: flex; align-items: center; gap: 0.45rem; }
    nav.crumbs li + li::before { content: "/"; color: var(--muted); }
    nav.crumbs [aria-current="page"] { color: var(--text); }
    table.rules { width: 100%; border-collapse: collapse; }
    table.rules th, table.rules td {
      border-bottom: 1px solid var(--line);
      padding: 0.65rem 0.55rem;
      vertical-align: top;
      text-align: left;
    }
    table.rules th { color: var(--accent); font-weight: 650; }
    .rules-save-row { padding-top: 1rem; }
    .controls-note { margin: 0.15rem 0 0; }
    .controls-save { padding: 1rem 0 0.85rem; }
    .access-list { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; }
    .access-row { position: relative; margin: 0.55rem 0 0.85rem; }
    .access-toggle {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      border: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }
    .access-line {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem 0.7rem;
    }
    .access-line form { margin: 0; }
    .access-who { min-width: 0; }
    .access-toggle:focus-visible + .access-line label.icon-button { outline: 2px solid var(--accent); }
    .access-row > .access-form { display: none; }
    .access-toggle:checked ~ .access-form { display: block; }
    .access-form fieldset {
      min-inline-size: 0;
      margin: 0.9rem 0;
      padding: 0.55rem 0.9rem 0.2rem;
      border: 1px solid var(--line);
      border-radius: 0.65rem;
    }
    .access-form > button { margin: 0.35rem 0 0.95rem; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    table.rules td:first-child { width: 16rem; }
    table.rules td:last-child { color: var(--muted); min-width: 16rem; }
    .time { display: inline-flex; flex-wrap: nowrap; gap: 0.4rem; align-items: center; white-space: nowrap; }
    .time input[type="number"],
    table.rules input[type="number"] { width: 5.5rem; }
    table.rules input:not([type="checkbox"]):not([type="number"]) { width: 100%; max-width: 14rem; }
    footer { width: min(68rem, calc(100% - 2rem)); margin: 0 auto 2rem; color: var(--muted); }
    footer.session-footer {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
      align-items: baseline;
      column-gap: 1rem;
    }
    footer.session-footer p { margin: 0; }
    footer.session-footer p:nth-child(1),
    footer.session-footer p:nth-child(3) { white-space: nowrap; }
    footer.session-footer p:nth-child(1) { text-align: start; }
    footer.session-footer p:nth-child(2) { text-align: center; }
    footer.session-footer p:nth-child(3) { text-align: end; }
    footer.session-footer .revision-prefix { opacity: 0.65; }
    #outside-contribution form {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin: 0 0 0.9rem;
      min-width: 0;
    }
    #outside-contribution .outside-row {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 0.55rem 0.85rem;
      min-width: 0;
    }
    #outside-contribution .outside-row label {
      margin: 0;
      flex: 1 1 9rem;
      min-width: 0;
    }
    #outside-contribution .outside-row input,
    #outside-contribution .outside-row select {
      width: 100%;
      min-width: 0;
    }
    #outside-contribution .outside-row:nth-of-type(2) {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: end;
    }
    @media (max-width: 40rem) {
      #outside-contribution .outside-row:nth-of-type(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    #outside-contribution .outside-row label:has(input[name="note"]) { flex: 1 1 16rem; }
    #outside-contribution .outside-row button { flex: 0 0 auto; }
    details.fold {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0.85rem;
      padding: 0.15rem 1.2rem 0.35rem;
      margin: 0 0 1rem;
    }
    details.fold > summary {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      cursor: pointer;
      font-size: 1.25rem;
      font-weight: 650;
      line-height: 1.2;
      padding: 0.85rem 0;
      list-style: none;
    }
    details.fold > summary::-webkit-details-marker { display: none; }
    details.fold > summary::before {
      content: "";
      flex: 0 0 auto;
      width: 0.45rem;
      height: 0.45rem;
      margin-top: -0.2rem;
      border-right: 2px solid var(--accent);
      border-bottom: 2px solid var(--accent);
      transform: rotate(-45deg);
    }
    details.fold[open] > summary::before {
      margin-top: 0.15rem;
      transform: rotate(45deg);
    }
    details.fold > summary:focus-visible {
      outline: 2px solid var(--accent);
      border-radius: 0.3rem;
    }
    details.fold details.fold {
      margin: 0.35rem 0 0.7rem;
    }
    details.fold details.fold > summary {
      font-size: 1rem;
      padding: 0.45rem 0;
    }
    .heading {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem;
      position: relative;
      margin: 0 0 0.8rem;
    }
    .heading h1 { margin: 0; }
    details.name-edit > summary {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
      list-style: none;
      font-weight: 650;
      color: var(--accent);
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 0.25rem 0.75rem;
    }
    details.name-edit > summary::-webkit-details-marker { display: none; }
    details.name-edit > summary:focus-visible { outline: 2px solid var(--accent); }
    details.name-edit .icon { display: block; }
    details.name-edit form {
      position: absolute;
      z-index: 3;
      left: 0;
      top: calc(100% + 0.35rem);
      width: min(24rem, 100%);
      margin: 0;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0.85rem;
      padding: 0.2rem 1rem 0.9rem;
    }
    table.rules tr.group th {
      padding-top: 1.35rem;
      border-top: 1px solid var(--line);
      font-size: 1.05rem;
    }
    table.rules tbody tr.group:first-child th {
      padding-top: 0.35rem;
      border-top: 0;
    }
    @media (min-width: 52rem) {
      .split { grid-template-columns: 1fr 1fr; align-items: start; }
    }
  

/* :where() keeps these defaults at the same weight as an account's overlay CSS. */
:where(html.overlay),
:where(html.overlay) body {
  margin: 0;
  min-height: 0;
  background: transparent;
  color: #f7f2f4;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
:where(html.overlay) #clock,
:where(html.overlay) .clock {
  display: inline-block;
  white-space: nowrap;
}
:where(html.overlay) #digits,
:where(html.overlay) .digits {
  display: block;
  color: #ff0052;
  font-size: 4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
:where(html.overlay) #digits:has(+ #elapsed),
:where(html.overlay) #digits:has(+ #label),
:where(html.overlay) .digits:has(+ .elapsed),
:where(html.overlay) .digits:has(+ .label) {
  margin-bottom: 0.2rem;
}
:where(html.overlay) #elapsed,
:where(html.overlay) .elapsed {
  color: #ff0052;
  font-size: 1.5rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
:where(html.overlay) #label,
:where(html.overlay) .label {
  color: #ff0052;
  font-size: 1.25rem;
}
:where(html.overlay) #elapsed + #label,
:where(html.overlay) .elapsed + .label {
  margin-left: 0.4rem;
}
