/* GENERATED from tokens.json (dark-factory, tokens/build.mjs) — the platform's theme, do not edit by hand. */
/* Own styles go into the app's own stylesheet next to this one; this file is replaced on a starter update. */
:root {
  --theme-surface-base: #f5f6f7;
  --theme-surface-raised: #ffffff;
  --theme-surface-sunken: #eaecef;
  --theme-text-primary: #111318;
  --theme-text-secondary: #3d4652;
  --theme-text-muted: #5c6673;
  --theme-border-subtle: #d1d5db;
  --theme-border-strong: #7d8b9d;
  --theme-accent-base: #bf4512;
  --theme-accent-strong: #9a3412;
  --theme-accent-active: #7c2d12;
  --theme-accent-contrast: #ffffff;
  --theme-state-success: #15803d;
  --theme-state-warning: #a16207;
  --theme-state-danger: #b91c1c;
  --theme-highlight-base: var(--theme-accent-base);
  --theme-font-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --theme-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --theme-size-step--2: 0.694rem;
  --theme-size-step--1: 0.833rem;
  --theme-size-step-0: 1rem;
  --theme-size-step-1: 1.2rem;
  --theme-size-step-2: 1.44rem;
  --theme-size-step-3: 1.728rem;
  --theme-size-step-4: 2.074rem;
  --theme-size-step-5: 2.488rem;
  --theme-size-step-6: 3.375rem;
  --theme-space-3xs: 0.25rem;
  --theme-space-2xs: 0.5rem;
  --theme-space-xs: 0.75rem;
  --theme-space-s: 1rem;
  --theme-space-m: 1.5rem;
  --theme-space-l: 2rem;
  --theme-space-xl: 3rem;
  --theme-space-2xl: 4.5rem;
  --theme-space-3xl: 7rem;
  --theme-radius-s: 4px;
  --theme-radius-m: 6px;
  --theme-radius-l: 10px;
  --theme-radius-full: 9999px;
  --theme-measure-prose: 68ch;
  --theme-measure-page: 1180px;
  --theme-control-min: 2.75rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --theme-surface-base: #111318;
    --theme-surface-raised: #181c24;
    --theme-surface-sunken: #0c1017;
    --theme-text-primary: #eaf0f5;
    --theme-text-secondary: #a1acbd;
    --theme-text-muted: #9ba6b7;
    --theme-border-subtle: #232833;
    --theme-border-strong: #646e7d;
    --theme-accent-base: #ff6b2c;
    --theme-accent-strong: #ff874f;
    --theme-accent-active: #fca77d;
    --theme-accent-contrast: #111318;
    --theme-state-success: #4ade80;
    --theme-state-warning: #fbbf24;
    --theme-state-danger: #f87171;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  font-family: var(--theme-font-sans);
  font-size: var(--theme-size-step-0);
  line-height: 1.5;
  color: var(--theme-text-primary);
  background: var(--theme-surface-base);
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--theme-space-s); }
h1 { font-size: var(--theme-size-step-4); }
h2 { font-size: var(--theme-size-step-3); }
h3 { font-size: var(--theme-size-step-2); }
h4 { font-size: var(--theme-size-step-1); }
p, ul, ol { margin: 0 0 var(--theme-space-s); }
small { font-size: var(--theme-size-step--1); color: var(--theme-text-muted); }
a { color: var(--theme-accent-base); }
a:hover, a:focus-visible { color: var(--theme-accent-strong); }
:focus-visible { outline: 2px solid var(--theme-accent-base); outline-offset: 2px; }
code, pre { font-family: var(--theme-font-mono); font-size: var(--theme-size-step--1); }
pre { padding: var(--theme-space-s); overflow: auto; background: var(--theme-surface-sunken); border-radius: var(--theme-radius-m); }
hr { border: 0; border-top: 1px solid var(--theme-border-subtle); margin: var(--theme-space-m) 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 var(--theme-space-m); }
th, td { text-align: left; padding: var(--theme-space-2xs) var(--theme-space-xs); border-bottom: 1px solid var(--theme-border-subtle); }
th { color: var(--theme-text-secondary); font-weight: 600; }
label { display: block; margin: 0 0 var(--theme-space-3xs); color: var(--theme-text-secondary); }
input, select, textarea {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: var(--theme-space-2xs) var(--theme-space-xs);
  background: var(--theme-surface-raised);
  border: 1px solid var(--theme-border-strong);
  border-radius: var(--theme-radius-m);
}
select, textarea, input:not([type='checkbox'], [type='radio']) { min-block-size: var(--theme-control-min); }
button {
  font: inherit;
  cursor: pointer;
  min-block-size: var(--theme-control-min);
  min-inline-size: var(--theme-control-min);
  padding: var(--theme-space-2xs) var(--theme-space-s);
  color: var(--theme-accent-contrast);
  background: var(--theme-accent-base);
  border: 1px solid transparent;
  border-radius: var(--theme-radius-m);
}
button:hover, button:focus-visible { background: var(--theme-accent-strong); }
button:active { background: var(--theme-accent-active); }
button:disabled { cursor: not-allowed; opacity: 0.6; }
button.secondary { color: var(--theme-text-primary); background: var(--theme-surface-raised); border-color: var(--theme-border-strong); }
.success { color: var(--theme-state-success); }
.warning { color: var(--theme-state-warning); }
.danger { color: var(--theme-state-danger); }

.container { max-width: var(--theme-measure-page); margin-inline: auto; padding: var(--theme-space-m) var(--theme-space-s); }
.prose { max-width: var(--theme-measure-prose); }
.stack > * + * { margin-top: var(--theme-space-s); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--theme-space-xs); align-items: center; }
.card { padding: var(--theme-space-m); background: var(--theme-surface-raised); border: 1px solid var(--theme-border-subtle); border-radius: var(--theme-radius-l); }

/* The app shell (dark-factory #1078): skip link, header with the logo slot, main, footer, and the status block of a
   view that is loading, empty or failed. The class names are the same in every platform starter; every value is a
   --theme-* token, and the page fits from 320 px up: the bars wrap, the content sits in .container. */
.app-shell {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100dvh;
}

.app-main {
  flex: 1 0 auto;
  inline-size: 100%;
}

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--theme-space-2xs) var(--theme-space-m);
  max-inline-size: var(--theme-measure-page);
  margin-inline: auto;
  padding: var(--theme-space-2xs) var(--theme-space-s);
}

.app-header {
  background: var(--theme-surface-raised);
  border-block-end: 1px solid var(--theme-border-subtle);
}

.app-footer {
  color: var(--theme-text-muted);
  border-block-start: 1px solid var(--theme-border-subtle);
}

/* The brand: the logo slot and the app's name, one link to the start page, a touch target of at least 44 px. */
.app-brand,
.app-brand:hover,
.app-brand:focus-visible {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-xs);
  min-block-size: var(--theme-space-xl);
  color: var(--theme-text-primary);
  font-size: var(--theme-size-step-1);
  font-weight: 600;
  text-decoration: none;
}

.app-brand:hover .app-name {
  text-decoration: underline;
}

.app-name {
  overflow-wrap: anywhere;
}

/* The logo slot: it keeps its size and paints nothing - no fill, no border, no placeholder - until the project's
   brand layer sets its background (or puts an image inside). */
.app-logo {
  flex: none;
  inline-size: var(--theme-space-l);
  block-size: var(--theme-space-l);
  border-radius: var(--theme-radius-m);
}

/* The navigation, once the app has more than one page: <nav class="app-nav"> after the brand, links as a list. */
.app-nav {
  margin-inline-start: auto;
}

.app-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--theme-space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--theme-space-xl);
  padding-inline: var(--theme-space-2xs);
  color: var(--theme-text-secondary);
  text-decoration: none;
  border-radius: var(--theme-radius-m);
}

.app-nav a:hover {
  color: var(--theme-text-primary);
  text-decoration: underline;
}

.app-nav a[aria-current='page'] {
  color: var(--theme-text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--theme-accent-base);
  text-underline-offset: var(--theme-space-3xs);
}

/* The skip link: off screen until it has the focus, then above the header, a touch target like every control. */
.skip-link,
.skip-link:hover,
.skip-link:focus-visible {
  position: absolute;
  inset-block-start: var(--theme-space-2xs);
  inset-inline-start: var(--theme-space-s);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-block-size: var(--theme-control-min);
  padding: var(--theme-space-2xs) var(--theme-space-s);
  color: var(--theme-accent-contrast);
  background: var(--theme-accent-base);
  border-radius: var(--theme-radius-m);
}

.skip-link:not(:focus) {
  transform: translateY(-200%);
}

/* The status block: the state in words in its heading, a detail, the next step; an error also in the danger tone. */
.app-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--theme-space-2xs);
  padding: var(--theme-space-l) var(--theme-space-m);
  text-align: center;
  background: var(--theme-surface-raised);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--theme-radius-l);
}

.app-status p {
  margin: 0;
}

.app-status-title {
  font-size: var(--theme-size-step-1);
  font-weight: 600;
}

.app-status-text {
  max-inline-size: var(--theme-measure-prose);
  color: var(--theme-text-secondary);
}

.app-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--theme-space-xs);
  margin-block-start: var(--theme-space-2xs);
}

.app-status-actions:empty {
  display: none;
}

.app-status[data-state='error'] {
  border-color: var(--theme-state-danger);
}

.app-status[data-state='error'] .app-status-title {
  color: var(--theme-state-danger);
}

.app-status[data-state='loading'] .app-status-title::before {
  display: inline-block;
  inline-size: 1em;
  block-size: 1em;
  margin-inline-end: var(--theme-space-2xs);
  vertical-align: -0.125em;
  content: '';
  border: 0.15em solid currentColor;
  border-inline-end-color: transparent;
  border-radius: var(--theme-radius-full);
  animation: app-status-spin 0.8s linear infinite;
}

@keyframes app-status-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-status[data-state='loading'] .app-status-title::before {
    animation: none;
  }
}
