@layer tokens, base, layout, components, utilities;

/* Registered, so the rulers and reels can ease between whole steps. */
@property --pos {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --reel-pos {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

@layer tokens {
  :root {
    color-scheme: light dark;

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --text-xs: 11px;  --text-sm: 13px;  --text-base: 14px;
    --text-lg: 16px;  --text-xl: 20px;  --text-2xl: 28px;

    --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
    --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;

    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-pill: 999px;

    --bg:            light-dark(#fbfbfa, #0e0f10);
    --surface:       light-dark(#ffffff, #16181a);
    --surface-2:     light-dark(#f4f4f2, #1d2023);
    --border:        light-dark(#e4e4e0, #2a2e32);
    --border-strong: light-dark(#cfcfc9, #3a4045);
    --text:          light-dark(#17181a, #f2f3f4);
    --text-muted:    light-dark(#5c6066, #9aa1a8);
    --text-faint:    light-dark(#6b7076, #828a91);

    --accent:      light-dark(#4f46e5, #a5b4fc);
    --accent-ink:  light-dark(#ffffff, #10131a);
    --accent-soft: light-dark(#eef0ff, #1e2340);
    --success:     light-dark(#0f7b4f, #5eead4);
    --danger:      light-dark(#b4232b, #f87171);

    --shadow-1: 0 1px 2px light-dark(rgb(0 0 0 / .06), rgb(0 0 0 / .5));

    --ease: cubic-bezier(.2, .8, .2, 1);
    --dur-1: 120ms;
    --dur-2: 180ms;
  }

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

/* ==========================================================================
   Base
   ========================================================================== */

@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body {
    margin: 0;
    min-height: 100dvh;
    font-size: var(--text-base);
    line-height: 1.5;
  }

  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

  h1,
  h2,
  h3 {
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  button,
  input,
  select,
  textarea {
    color: inherit;
    font: inherit;
    accent-color: var(--accent);
  }

  button,
  select {
    cursor: pointer;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  ::placeholder {
    color: var(--text-faint);
    opacity: 1;
  }

  ::selection {
    background: var(--accent);
    color: var(--accent-ink);
  }

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

  html {
    scrollbar-color: var(--border-strong) var(--bg);
  }

  @media (prefers-reduced-motion: reduce) {
    :root {
      --dur-1: 1ms;
      --dur-2: 1ms;
    }

    html {
      scroll-behavior: auto;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
      animation: docket-view-out 120ms var(--ease) both;
    }

    ::view-transition-new(root) {
      animation: docket-view-in 180ms var(--ease) both;
    }
  }

  @keyframes docket-view-out {
    to {
      opacity: 0;
    }
  }

  @keyframes docket-view-in {
    from {
      opacity: 0;
    }
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

@layer layout {
  .app {
    background: var(--bg);
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(10px, 1.5vw, 16px) clamp(16px, 4vw, 40px);
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .app-header {
      background: var(--bg);
    }
  }

  .app-header__brand {
    display: inline-flex;
  }

  .app-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .app-header__account {
    max-width: 14rem;
    overflow: hidden;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-header__signout-form {
    margin: 0;
  }

  .app-header__signout {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .app-header__signout:hover {
    border-color: var(--border-strong);
    color: var(--text);
  }

  @media (max-width: 600px) {
    .app-header__account {
      display: none;
    }
  }

  .app-main {
    display: grid;
    gap: clamp(20px, 3vw, 32px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px) var(--space-8);
  }

  .auth {
    display: grid;
    place-items: center;
    padding: clamp(32px, 8vw, 96px) clamp(16px, 4vw, 40px);
  }

  .columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(20px, 3vw, 32px);
  }

  .timeline-column {
    display: grid;
    gap: clamp(20px, 3vw, 32px);
    align-content: start;
    min-width: 0;
  }

  .timeline,
  .calendar-pane {
    min-width: 0;
  }

  @media (max-width: 900px) {
    .columns {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* The calendar sets the row height; the timeline fills that same box so the
     two panes match, and its list scrolls inside instead of growing past it. */
  @media (min-width: 901px) {
    .columns {
      align-items: stretch;
    }

    .timeline-column {
      position: relative;
      display: block;
      min-height: 0;
    }

    .timeline-column > turbo-frame {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
  }
}

/* ==========================================================================
   Components
   Index: logo · segmented · notifications · composer · fields · buttons ·
          task-group · task-card · chip · calendar · headings · empty
   ========================================================================== */

@layer components {
  /* Logo ------------------------------------------------------------------- */

  .logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    line-height: 1;
  }

  .logo svg {
    flex: none;
  }

  .logo__word {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
  }

  /* Segmented control ------------------------------------------------------ */

  .segmented {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
  }

  .segmented__item {
    appearance: none;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    transition:
      background-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .segmented__item:hover {
    color: var(--text);
  }

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

  /* Appearance toggle ------------------------------------------------------ */

  .theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text);
  }

  .theme-toggle svg {
    display: none;
  }

  .theme-toggle[data-current-theme="light"] [data-theme-icon="light"],
  .theme-toggle[data-current-theme="dark"] [data-theme-icon="dark"],
  .theme-toggle[data-current-theme="auto"] [data-theme-icon="auto"] {
    display: block;
  }

  /* Install ---------------------------------------------------------------- */

  .install-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .install-toggle[hidden] {
    display: none;
  }

  .install-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text);
  }

  /* Notifications ---------------------------------------------------------- */

  .notifications-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .notifications-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text);
  }

  .notifications-toggle[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: var(--accent-soft);
    color: var(--accent);
  }

  .notifications-toggle[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--surface);
  }

  .notifications-toggle[aria-pressed="false"]::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 22px;
    height: 1.5px;
    border-radius: var(--radius-pill);
    background: var(--text-muted);
    box-shadow: 0 0 0 1.5px var(--surface);
    pointer-events: none;
    rotate: -45deg;
    transition: background-color var(--dur-1) var(--ease);
  }

  .notifications-toggle[aria-pressed="false"]:hover::before {
    background: var(--text);
  }

  .network-banner {
    display: flex;
    justify-content: center;
    padding: 8px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border));
    background: color-mix(in srgb, var(--danger) 10%, var(--bg));
    color: var(--danger);
    font-size: var(--text-sm);
  }

  .network-banner--sync {
    border-bottom-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    color: var(--text-muted);
  }

  .update-banner {
    position: fixed;
    left: 50%;
    bottom: var(--space-4);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: min(420px, calc(100vw - 2 * var(--space-4)));
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 14%, transparent);
    color: var(--text-muted);
    font-size: var(--text-sm);
    transform: translateX(-50%);
  }

  .network-banner[hidden],
  .update-banner[hidden] {
    display: none;
  }

  .update-banner span {
    flex: 1;
  }

  .update-banner__dismiss {
    appearance: none;
    padding: 2px 6px;
    border: 0;
    background: none;
    color: var(--text-faint);
    font-size: var(--text-lg);
    line-height: 1;
    cursor: pointer;
  }

  .update-banner__dismiss:hover {
    color: var(--text);
  }

  .toast-region {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 20;
    display: grid;
    gap: var(--space-2);
    width: min(360px, calc(100vw - 2 * var(--space-4)));
    pointer-events: none;
  }

  .toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 14%, transparent);
    pointer-events: auto;
    animation: toast-in var(--dur-2) var(--ease);
  }

  .toast__body {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
  }

  .toast__title {
    color: var(--text);
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .toast__meta {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .toast__close {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-faint);
    font-size: var(--text-lg);
    line-height: 1;
  }

  .toast__close:hover {
    background: var(--surface-2);
    color: var(--text);
  }

  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Section headings ------------------------------------------------------- */

  .section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
  }

  .section-heading__title {
    font-size: var(--text-xl);
    font-weight: 600;
  }

  .section-heading__count {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .timeline__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2) var(--space-3);
  }

  .task-card__edit {
    display: grid;
    gap: var(--space-2);
    padding-bottom: var(--space-3);
  }

  .task-card__edit[hidden] {
    display: none;
  }

  .task-card__edit-title,
  .task-card__edit-desc {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--dur-1) var(--ease);
  }

  .task-card__edit-title {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-lg);
    font-weight: 550;
    letter-spacing: -0.01em;
  }

  .task-card__edit-desc {
    min-height: 3rem;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.5;
    resize: vertical;
  }

  .task-card__edit-title:focus-visible,
  .task-card__edit-desc:focus-visible {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: -1px;
  }

  .task-card__edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
  }

  /* Composer --------------------------------------------------------------- */

  .composer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    transition: border-color var(--dur-2) var(--ease);
  }

  .composer__form {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .composer__main {
    display: grid;
    gap: var(--space-1);
  }

  .composer__title,
  .composer__description {
    width: 100%;
    border: 0;
    background: transparent;
    caret-color: var(--accent);
  }

  .composer__title {
    min-height: 28px;
    max-height: 160px;
    padding: 0;
    overflow-y: auto;
    resize: none;
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  .composer__description {
    padding: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  .composer__title:focus-visible,
  .composer__description:focus-visible {
    border-radius: var(--radius-sm);
  }

  @supports selector(:has(*)) {
    .composer__title:focus-visible,
    .composer__description:focus-visible {
      outline: none;
    }

    .composer:has(.composer__title:focus-visible),
    .composer:has(.composer__description:focus-visible) {
      border-color: var(--accent);
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
  }

  .composer__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
  }

  .composer__submit {
    margin-left: auto;
  }

  /* Fields ----------------------------------------------------------------- */

  .field {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
  }

  .field__label {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .field__control {
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.4;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .field__control:hover {
    border-color: var(--border-strong);
  }

  .field__control:focus-visible {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .field__control--compact {
    min-height: 28px;
    padding: 3px 6px;
  }

  /* Due picker ------------------------------------------------------------- */

  .due-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-width: 168px;
    text-align: start;
    cursor: pointer;
  }

  .due-trigger__chevron {
    flex: none;
    color: var(--text-faint);
    transition: rotate var(--dur-2) var(--ease);
  }

  .due-trigger[aria-expanded="true"] .due-trigger__chevron {
    rotate: 180deg;
  }

  .due-panel {
    display: grid;
    gap: var(--space-2);
    width: min(100%, 560px);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow-1);
  }

  .due-panel[hidden] {
    display: none;
  }

  .due-panel__hint {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .due-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-xl);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .due-year {
    display: flex;
  }

  .due-readout {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-1) var(--space-4);
    padding-block-end: var(--space-2);
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .due-readout__date {
    display: flex;
    align-items: baseline;
    font-size: clamp(34px, 6vw, 46px);
  }

  .due-readout__time {
    display: flex;
    align-items: baseline;
    color: var(--text-muted);
    font-size: clamp(22px, 4vw, 28px);
  }

  .due-readout__colon {
    padding-inline: 0.08em;
    color: var(--text-faint);
  }

  .due-reel {
    --reel-cell: 1.2em;
    display: inline-block;
    block-size: var(--reel-cell);
    overflow: hidden;
    vertical-align: top;
    transition: --reel-pos calc(var(--dur-2) * 3) var(--ease);
    -webkit-mask-image: linear-gradient(transparent, black 6% 94%, transparent);
    mask-image: linear-gradient(transparent, black 6% 94%, transparent);
  }

  .due-reel__strip {
    display: grid;
    justify-items: start;
    translate: 0 calc(var(--reel-pos, 0) * var(--reel-cell) * -1);
  }

  .due-reel__strip > i {
    block-size: var(--reel-cell);
    font-style: normal;
    line-height: var(--reel-cell);
  }

  .due-reel--day-tens {
    width: calc(0.58em * var(--day-tens, 1));
    transition:
      --reel-pos calc(var(--dur-2) * 3) var(--ease),
      width calc(var(--dur-2) * 2) var(--ease);
  }

  .due-reel--day-tens .due-reel__strip {
    justify-items: end;
    justify-content: end;
  }

  .due-reel--month {
    margin-inline-start: 0.26em;
  }

  .due-ruler {
    --gap: 40px;
    --tick: var(--border-strong);
    position: relative;
    block-size: 56px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    transition: --pos calc(var(--dur-2) * 2) var(--ease);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 28% 72%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 28% 72%, transparent);
  }

  .due-ruler--month,
  .due-ruler--year {
    --gap: 64px;
  }

  .due-ruler--hour {
    --gap: 40px;
  }

  .due-ruler--minute {
    --gap: 32px;
  }

  .due-ruler::after {
    content: "";
    position: absolute;
    inset-block-start: 4px;
    inset-inline-start: calc(50% - 1.5px);
    z-index: 2;
    inline-size: 3px;
    block-size: 22px;
    border-radius: 2px;
    background: var(--accent);
    transition: box-shadow var(--dur-1) var(--ease);
  }

  .due-ruler:has(input:focus-visible)::after {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
  }

  .due-ruler input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }

  .due-ruler__track {
    position: absolute;
    inset-block: 0;
    inset-inline-start: calc(50% - var(--gap) / 2);
    display: flex;
    translate: calc((1 - var(--pos, 1)) * var(--gap));
  }

  .due-ruler__track > span {
    flex: none;
    inline-size: var(--gap);
    padding-block-start: 28px;
    color: var(--text-muted);
    font-size: var(--text-xs);
    line-height: 1;
    text-align: center;
    background:
      linear-gradient(var(--tick), var(--tick)) 50% 4px / 2px 16px no-repeat,
      linear-gradient(var(--border), var(--border)) 0 4px / 1px 9px no-repeat;
  }

  .due-ruler--day::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      transparent calc(50% + (var(--len, 31) - var(--pos, 1) + 0.5) * var(--gap)),
      var(--surface-2) 0
    );
  }

  .due-time {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2);
  }

  .due-time__colon {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
  }

  .due-panel__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-block-start: var(--space-1);
  }

  .due-panel.is-dragging .due-ruler {
    cursor: grabbing;
    transition-duration: calc(var(--dur-2) / 2);
  }

  .due-panel.is-dragging .due-reel {
    transition-duration: var(--dur-2);
  }

  /* Buttons ---------------------------------------------------------------- */

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.2;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease),
      opacity var(--dur-1) var(--ease);
  }

  .btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
  }

  .btn--primary:hover {
    opacity: 0.88;
  }

  .btn--ghost {
    border-color: var(--border);
    background: transparent;
    color: var(--text-muted);
  }

  .btn--ghost:hover {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text);
  }

  .icon-btn {
    appearance: none;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .icon-btn--icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--danger);
  }

  /* Auth ------------------------------------------------------------------- */

  .auth__card {
    width: min(100%, 24rem);
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
  }

  .auth__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 1.2;
  }

  .auth__lead {
    margin: var(--space-1) 0 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  .auth__form {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-5);
  }

  .auth__form .field__control {
    min-height: 38px;
    padding: 8px 10px;
    font-size: var(--text-sm);
  }

  .auth__submit {
    width: 100%;
    margin-top: var(--space-1);
  }

  .auth__errors {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: var(--text-sm);
    list-style: none;
  }

  .auth__switch {
    margin: var(--space-5) 0 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
  }

  .auth__switch a {
    color: var(--accent);
  }

  /* Flash ------------------------------------------------------------------ */

  .flash-region {
    display: grid;
    gap: var(--space-1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3) clamp(16px, 4vw, 40px) 0;
  }

  .flash {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: var(--text-sm);
  }

  .flash--alert {
    border-color: var(--danger);
    color: var(--danger);
  }

  .flash--notice {
    border-color: var(--success);
    color: var(--success);
  }

  /* Task cards ------------------------------------------------------------- */

  .timeline__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    min-height: 0;
    scrollbar-color: var(--border-strong) transparent;
    scrollbar-width: thin;
  }

  @media (min-width: 901px) {
    .timeline {
      display: flex;
      flex: 1;
      flex-direction: column;
      min-height: 0;
    }

    .timeline__list {
      flex: 1;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
    }
  }

  .task-card {
    position: relative;
    min-width: 0;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition:
      border-color var(--dur-2) var(--ease),
      opacity var(--dur-2) var(--ease);

    &:hover {
      border-color: var(--border-strong);
    }

    &.is-collapsed .task-card__desc {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &.is-expanded .task-card__desc {
      overflow: visible;
      white-space: normal;
    }

    &.is-done {
      opacity: 0.55;

      .task-card__title {
        text-decoration: line-through;
        text-decoration-color: var(--text-faint);
      }
    }
  }

  .task-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
  }

  .task-card__title {
    min-width: 0;
    font-size: var(--text-lg);
    font-weight: 550;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .task-card__streak {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
  }

  .task-card__meta {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .task-card__desc {
    max-width: 100%;
    margin-top: var(--space-1);
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
    cursor: pointer;
    transition: color var(--dur-1) var(--ease);
  }

  .task-card__desc:hover {
    color: var(--text);
  }

  .task-card__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
  }

  .task-card__repeat,
  .task-card__toggle-form,
  .task-card__delete-form {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
  }

  .task-card__repeat {
    flex-wrap: wrap;
  }

  .task-card__field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
  }

  .task-card__due-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0;
    padding-top: 8px;
    border: 0;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .task-card__due-trigger:hover {
    color: var(--text);
  }

  .task-card__due-value {
    display: inline-block;
    min-width: 7rem;
    padding-block-end: 1px;
    border-block-end: 1px dotted var(--border-strong);
    text-align: start;
  }

  .task-card__due-value.is-empty {
    color: var(--text-faint);
    letter-spacing: 0.08em;
  }

  .task-card__due-panel {
    position: absolute;
    inset-block-start: calc(100% + var(--space-2));
    inset-inline-start: 0;
    z-index: 20;
    width: min(520px, calc(100vw - 2rem));
  }

  .task-card__edit-toggle {
    margin-left: auto;
  }

  .task-card__delete:hover {
    background: color-mix(in srgb, var(--danger) 8%, var(--surface-2));
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
    color: var(--danger);
  }

  .task-card__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: color var(--dur-1) var(--ease);
  }

  .task-card__check:hover {
    color: var(--text);
  }

  .task-card__checkbox {
    width: 15px;
    height: 15px;
    margin: 0;
  }

  /* Calendar chips --------------------------------------------------------- */

  .chip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-muted);
    box-shadow: var(--shadow-1);
    font-size: var(--text-xs);
    line-height: 1.4;
    text-align: left;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .chip:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
  }

  .chip__dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  .chip__dot--open {
    background: var(--accent);
  }

  .chip__dot--done {
    background: var(--success);
  }

  .chip__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Calendar --------------------------------------------------------------- */

  .calendar {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }

  .calendar__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .calendar__nav {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: 1;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .calendar__nav:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
  }

  .calendar__title {
    min-width: 0;
    text-align: center;
  }

  .calendar-title {
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .simple-calendar {
    min-width: 0;
  }

  .calendar-grid-wrap {
    overflow-x: auto;
  }

  .calendar-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;

    th {
      padding: var(--space-2) var(--space-1);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      color: var(--text-faint);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      font-weight: 500;
      letter-spacing: 0.08em;
      line-height: 1.2;
      text-align: center;
      text-transform: uppercase;
    }

    td {
      position: relative;
      padding: var(--space-1);
      border-top: 1px solid var(--border);
      border-left: 1px solid var(--border);
      vertical-align: top;
      transition: background-color var(--dur-1) var(--ease);
    }

    td:has(.calendar-day__link:hover),
    td:has(.calendar-day__link:focus-visible) {
      background: color-mix(in srgb, var(--accent) 6%, transparent);
    }

    tr:first-child td {
      border-top: 0;
    }

    td:first-child {
      border-left: 0;
    }

    .today .calendar-day__number {
      background: var(--accent);
      color: var(--accent-ink);
      border-radius: 50%;
    }

    .next-month,
    .prev-month {
      background: var(--surface-2);
      color: var(--text-faint);

      .calendar-day__number {
        color: var(--text-faint);
      }

      .calendar-day__done {
        opacity: 0.55;
      }

      .chip {
        display: none;
      }
    }
  }

  .calendar-day {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 2px;
    width: 100%;
    aspect-ratio: 1;
    min-height: 4.5rem;
  }

  .calendar-day__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-1);
    line-height: 1;
  }

  .calendar-day__number {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    min-width: 20px;
    height: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1;
  }

  .calendar-day__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

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

  .calendar-day__done {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-family: var(--font-mono);
    line-height: 1;
  }

  .calendar-day__icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--success);
    border-radius: 50%;
    font-size: var(--text-xs);
    line-height: 1;
  }

  .calendar-day__count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-grid;
    place-items: center;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    border-radius: var(--radius-pill);
    background: var(--success);
    color: var(--accent-ink);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
  }

  .calendar-day__events {
    display: flex;
    max-height: 5.5rem;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
  }

  /* Calendar day view ------------------------------------------------------ */

  .day-view {
    overflow: hidden;
  }

  .day-view__nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-bottom: 1px solid var(--border);
  }

  .day-view__eyebrow {
    justify-self: center;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .day-view__hero {
    position: relative;
    padding: var(--space-5) var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--border);
    background:
      radial-gradient(130% 150% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
      var(--surface);
  }

  .day-view__hero-main {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
  }

  .day-view__eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
  }

  .day-view__weekday {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .day-view__today {
    display: inline-grid;
    place-items: center;
    padding: 2px var(--space-2);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .day-view__daynum {
    flex: 0 0 auto;
    color: var(--text);
    font-size: clamp(4.5rem, 16vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
  }

  .day-view__meta {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-bottom: var(--space-1);
  }

  .day-view__full-date {
    overflow-wrap: anywhere;
    white-space: nowrap;
    color: var(--text);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
  }

  .day-view__summary {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .day-view__events {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: var(--space-2);
    list-style: none;
  }

  .day-event {
    display: grid;
    grid-template-columns: 2.75rem 12px minmax(0, 1fr) auto;
    gap: var(--space-2);
    align-items: start;
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius-md);
    transition: background-color var(--dur-1) var(--ease);
  }

  .day-event + .day-event {
    border-top: 1px solid var(--border);
  }

  .day-event:hover {
    background: var(--surface-2);
  }

  .day-event__time {
    padding-top: 1px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  .day-event__dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
  }

  .day-event__dot--open {
    border: 1.5px solid var(--accent);
    background: transparent;
  }

  .day-event__dot--done {
    border: 1.5px solid var(--success);
    background: var(--success);
  }

  .day-event__body {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .day-event__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    min-width: 0;
  }

  .day-event__title {
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: left;
    transition: color var(--dur-1) var(--ease);
  }

  .day-event__title:hover {
    color: var(--accent);
  }

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

  .day-event__freq {
    display: inline-grid;
    place-items: center;
    padding: 1px var(--space-2);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .day-event__desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .day-event__meta {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    line-height: 1.4;
  }

  .day-event.is-done {
    .day-event__title {
      color: var(--text-faint);
      text-decoration: line-through;
      text-decoration-color: var(--text-faint);
    }

    .day-event__time,
    .day-event__desc {
      color: var(--text-faint);
    }
  }

  .day-event__check-form {
    align-self: start;
  }

  .day-event__check {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-faint);
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .day-event__check:hover {
    border-color: var(--success);
    color: var(--success);
  }

  .day-event__check.is-done {
    border-color: var(--success);
    background: var(--success);
    color: var(--accent-ink);
  }

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

  .day-view__empty {
    padding: var(--space-6) var(--space-4);
  }

  .day-view__footer {
    display: flex;
    justify-content: center;
    padding: var(--space-3);
    border-top: 1px solid var(--border);
  }

  .day-view__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    transition:
      background-color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }

  .day-view__back:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
  }

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

  @media (max-width: 600px) {
    .day-view__hero {
      padding: var(--space-4) var(--space-3) var(--space-3);
    }

    .day-view__daynum {
      font-size: 3.75rem;
    }

    .day-view__full-date {
      font-size: var(--text-base);
    }

    .day-event {
      grid-template-columns: 2.25rem 12px minmax(0, 1fr) auto;
      padding: var(--space-2) var(--space-1);
    }
  }

  /* Empty states ----------------------------------------------------------- */

  .empty {
    padding: var(--space-7) 0;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
  }

  .calendar__empty {
    padding: var(--space-4);
    border-top: 1px solid var(--border);
  }

  @media (max-width: 600px) {
    .app-header__inner {
      align-items: flex-start;
    }

    .toast-region {
      right: var(--space-3);
      bottom: var(--space-3);
      left: var(--space-3);
      width: auto;
    }

    .composer__footer {
      align-items: stretch;
    }

    .composer__footer .field {
      flex: 1 1 140px;
    }

    .composer__submit {
      width: 100%;
      margin-left: 0;
    }

    .due-panel {
      padding: var(--space-3);
    }

    .due-time {
      grid-template-columns: minmax(0, 1fr);
    }

    .due-time__colon {
      display: none;
    }

    .task-card__head {
      display: grid;
    }

    .task-card__meta {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-start;
      gap: 2px var(--space-2);
    }

    .calendar__header {
      padding: var(--space-2);
    }

    .calendar-grid th {
      padding: var(--space-1) 1px;
      letter-spacing: 0.04em;
    }

    .calendar-grid td {
      padding: 3px;
    }

    .calendar-day__number {
      min-width: 18px;
      height: 18px;
    }

    .chip {
      padding: 1px 3px;
    }
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .is-flashing {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}
