html { background: rgb(var(--c-bg)); color: rgb(var(--c-ink)); }
html[data-mode="light"] { color-scheme: light; }
html[data-mode="dark"] { color-scheme: dark; }
html[data-portal="api"] {
  --c-bg: 247 245 240;
  --c-surface: 255 255 255;
  --c-ink: 28 25 23;
  --c-primary: 180 83 9;
  --c-primary-contrast: 255 255 255;
  --c-accent: 194 87 10;
  background: #F7F5F0;
  color: #1C1917;
  color-scheme: light;
}
.boot-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; background: rgb(var(--c-bg)); color: rgb(var(--c-ink)); font-family: system-ui, sans-serif; }
.boot-card { box-sizing: border-box; width: 100%; max-width: 520px; padding: 32px; border: 1px solid rgb(var(--c-ink) / .12); border-radius: 20px; background: rgb(var(--c-surface)); overflow-wrap: anywhere; }
.boot-card-api { display: none; }
html[data-portal="api"] .boot-card-main { display: none; }
html[data-portal="api"] .boot-card-api {
  display: block;
  max-width: 440px;
  border: 1px solid #E7E2DA;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgb(28 25 23 / 0.04);
  opacity: 0;
  animation: liw-boot-fade 180ms ease 260ms forwards;
}
@keyframes liw-boot-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.boot-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .08em; color: rgb(var(--c-primary)); }
html[data-portal="api"] .boot-brand { font-weight: 700; letter-spacing: -.01em; color: #1C1917; }
.boot-brand img, .boot-logo { display: block; width: 44px; height: 44px; flex: none; }
html[data-portal="api"] .boot-brand img { width: 32px; height: 32px; border-radius: 9px; }
.boot-card h1 { font-size: 24px; line-height: 1.4; margin: 16px 0; }
.boot-card p { line-height: 1.8; }
.boot-card a, .boot-card button { display: inline-block; box-sizing: border-box; max-width: 100%; margin-top: 12px; padding: 12px 18px; border: 0; border-radius: 10px; background: rgb(var(--c-primary)); color: rgb(var(--c-primary-contrast)); font: inherit; text-decoration: none; cursor: pointer; }
.boot-card a:focus-visible, .boot-card button:focus-visible { outline: 3px solid rgb(var(--c-accent)); outline-offset: 3px; }
