/* Skin "modern" (Meridian), ADR 0047, palette and type in ai/tasks/SKINS/design.md. Load order: tokens.css, this file, eink.css.
   Colours live in the blocks that exclude e-ink, so the e-ink tokens always win; the last block only turns the skin's web font, motion and shadows off. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }

:root[data-skin="modern"] {
  --pd-font-display: "Inter", "Inter Fallback", system-ui, sans-serif;
  --pd-font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --pd-font-ui: "Inter", "Inter Fallback", system-ui, sans-serif;
  --pd-font: var(--pd-font-ui);
  --pd-text-xs: 0.75rem; --pd-text-sm: 0.875rem; --pd-text-md: 1rem; --pd-text-lg: 1.125rem;
  --pd-text-xl: 1.375rem; --pd-text-2xl: 1.875rem; --pd-text-3xl: 2.5rem;
  --pd-text-hero: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --pd-leading: 1.5; --pd-leading-tight: 1.15; --pd-tracking-display: -0.02em; --pd-weight-display: 700;
  --pd-radius-xs: 6px; --pd-radius-sm: 10px; --pd-radius: 14px; --pd-radius-lg: 20px; --pd-radius-pill: 999px;
  --pd-border-w: 1px;
  --pd-density: 0.9;
  --pd-space-1: calc(4px * var(--pd-density)); --pd-space-2: calc(8px * var(--pd-density)); --pd-space-3: calc(12px * var(--pd-density));
  --pd-space-4: calc(16px * var(--pd-density)); --pd-space-5: calc(24px * var(--pd-density)); --pd-space-6: calc(32px * var(--pd-density));
  --pd-space-7: calc(48px * var(--pd-density));
  --pd-rail-width: 4.5rem; --pd-aside-w: 22.5rem; --pd-measure: 72ch;
  --pd-duration: 180ms; --pd-ease: cubic-bezier(0.2, 0.8, 0.2, 1); --pd-motion: 1;
  --pd-pattern: none;
}
:root[data-skin="modern"][data-density="compact"] { --pd-density: 0.72; --pd-section-space: 24px; }
:root[data-skin="modern"]:not([data-theme="dark"]):not([data-theme="eink"]) {
  --pd-bg: #f4f6fa; --pd-surface: #ffffff; --pd-surface-2: #e9edf4;
  --pd-ink: #0f172a; --pd-muted: #4b5768; --pd-line: #d8dee8;
  --pd-accent: #1d4ed8; --pd-accent-ink: #ffffff; --pd-accent-soft: #e3eafd;
  --pd-accent-2: #22d3ee; --pd-accent-2-ink: #0f172a;
  --pd-ok: #15803d; --pd-warn: #a16207; --pd-danger: #b91c1c; --pd-info: #1d4ed8; --pd-danger-ink: #ffffff;
  --pd-nav-bg: rgba(255, 255, 255, 0.72); --pd-nav-ink: #0f172a; --pd-nav-active: #e3eafd;
  --pd-hero-bg: linear-gradient(135deg, #e3eafd 0%, #f4f6fa 45%, #dff7fb 100%); --pd-hero-ink: #0f172a;
  --pd-selection: rgba(29, 78, 216, 0.22); --pd-scrim: rgba(15, 23, 42, 0.5);
  --pd-focus: 0 0 0 3px #1d4ed8;
  --pd-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); --pd-shadow-raised: 0 8px 24px rgba(15, 23, 42, 0.08); --pd-shadow-hard: none;
  --pd-texture: url("../../skins/modern/assets/background.svg");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-skin="modern"]:not([data-theme="light"]):not([data-theme="eink"]) {
    --pd-bg: #0b0e14; --pd-surface: #12161e; --pd-surface-2: #1a2029;
    --pd-ink: #e6eaf2; --pd-muted: #9aa6b8; --pd-line: #262d38;
    --pd-accent: #7c9cff; --pd-accent-ink: #0b0e14; --pd-accent-soft: #1a2440;
    --pd-accent-2: #38bdf8; --pd-accent-2-ink: #0b0e14;
    --pd-ok: #4ade80; --pd-warn: #facc15; --pd-danger: #f87171; --pd-info: #7c9cff; --pd-danger-ink: #0b0e14;
    --pd-nav-bg: rgba(18, 22, 30, 0.72); --pd-nav-ink: #e6eaf2; --pd-nav-active: #1a2440;
    --pd-hero-bg: linear-gradient(135deg, #1a2440, #0b0e14 50%, #0e2a33); --pd-hero-ink: #e6eaf2;
    --pd-selection: rgba(124, 156, 255, 0.3); --pd-scrim: rgba(0, 0, 0, 0.6);
    --pd-focus: 0 0 0 3px #7c9cff;
    --pd-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); --pd-shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.5);
    --pd-texture: url("../../skins/modern/assets/background-dark.svg");
    color-scheme: dark;
  }
}
:root[data-skin="modern"][data-theme="dark"] {
  --pd-bg: #0b0e14; --pd-surface: #12161e; --pd-surface-2: #1a2029;
  --pd-ink: #e6eaf2; --pd-muted: #9aa6b8; --pd-line: #262d38;
  --pd-accent: #7c9cff; --pd-accent-ink: #0b0e14; --pd-accent-soft: #1a2440;
  --pd-accent-2: #38bdf8; --pd-accent-2-ink: #0b0e14;
  --pd-ok: #4ade80; --pd-warn: #facc15; --pd-danger: #f87171; --pd-info: #7c9cff; --pd-danger-ink: #0b0e14;
  --pd-nav-bg: rgba(18, 22, 30, 0.72); --pd-nav-ink: #e6eaf2; --pd-nav-active: #1a2440;
  --pd-hero-bg: linear-gradient(135deg, #1a2440, #0b0e14 50%, #0e2a33); --pd-hero-ink: #e6eaf2;
  --pd-selection: rgba(124, 156, 255, 0.3); --pd-scrim: rgba(0, 0, 0, 0.6);
  --pd-focus: 0 0 0 3px #7c9cff;
  --pd-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); --pd-shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.5); --pd-shadow-hard: none;
  --pd-texture: url("../../skins/modern/assets/background-dark.svg");
  color-scheme: dark;
}
/* E-ink keeps the skin's layout and radii; it drops web fonts, motion, shadows and texture. */
:root[data-skin="modern"][data-theme="eink"] {
  --pd-font-display: system-ui, sans-serif; --pd-font-body: system-ui, sans-serif; --pd-font-ui: system-ui, sans-serif;
  --pd-text-sm: 1rem; --pd-text-xs: 0.875rem;
  --pd-shadow-raised: none; --pd-shadow-hard: none; --pd-texture: none; --pd-pattern: none;
  --pd-duration: 0ms; --pd-motion: 0;
}
