/* Maat Mate panel, variant 3 'Prowadzenie'. Tokens: kierunek-graficzny/design/tokens.css plus additions.
   Literal values of token groups live only in this file; app.css uses var(--...) only. */
:root {
  --color-navy-950: #0b1a31;
  --color-navy-900: #112647;
  --color-lapis-700: #173d80;
  --color-lapis-600: #20509b;
  --color-gold-600: #b58b52;
  --color-gold-300: #dfbd82;
  --color-paper: #f7f1e8;
  --color-paper-light: #fffbf5;
  --color-surface: #ffffff;
  --color-border: #d8cec0;
  --color-border-strong: #a9a08e;
  --color-ink: #172235;
  --color-text-muted: #5f6874;
  --color-text-inverse: #fffdf8;
  --color-critical: #b33e37;
  --color-critical-soft: #f9e9e6;
  --color-warning: #9a611e;
  --color-warning-soft: #f9eddb;
  --color-success: #267356;
  --color-success-soft: #e7f4ed;
  --color-focus: #20509b;
  /* added */
  --color-lapis-soft: #e8eef8;
  --color-nav-text: #d5dcea;
  --color-nav-hover: rgb(255 255 255 / 0.09);
  --color-nav-active: rgb(255 255 255 / 0.14);
  --color-overlay: rgb(11 26 49 / 0.55);
  --color-paper-sunk: #efe7da;

  --background-app: var(--color-paper);
  --background-sidebar: var(--color-navy-900);
  --background-card: var(--color-paper-light);
  --background-input: var(--color-surface);
  --foreground-primary: var(--color-ink);
  --foreground-secondary: var(--color-text-muted);
  --foreground-inverse: var(--color-text-inverse);
  --border-default: var(--color-border);
  --action-primary-bg: var(--color-lapis-700);
  --action-primary-fg: var(--color-text-inverse);

  --font-family-display: Georgia, 'Times New Roman', serif;
  --font-family-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* added */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-h3: 1.25rem;
  --font-size-h2: 1.5rem;
  --font-size-h1: 1.875rem;
  --font-size-h1-wide: 2.5rem;
  --font-size-code: 0.8125rem;
  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-body: 1.5;
  --line-height-reading: 1.65;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999rem;
  --radius-round: 50%;
  --border-width-default: 1px;
  --border-width-accent: 3px;
  --border-width-focus: 2px;
  --shadow-card: 0 4px 24px rgb(17 38 71 / 0.055);
  --shadow-popover: 0 14px 44px rgb(17 38 71 / 0.12);
  --shadow-sheet: 0 -8px 32px rgb(17 38 71 / 0.18);
  --shadow-bar: 0 -4px 16px rgb(17 38 71 / 0.07);

  --size-sidebar: 15.5rem;
  --size-rail: 4.5rem;
  --size-bar-height: 3.5rem;
  --size-content-max: 60rem;
  --size-form-max: 38rem;
  --size-dialog-max: 34rem;
  --size-editor-min: 22rem;
  --size-preview-max: 30rem;
  --size-icon: 1.25rem;
  --size-icon-lg: 1.75rem;
  --size-dot: 2rem;
  --size-fact-min: 11rem;
  --size-step-rail: 14rem;
  --size-brand-mark: 2rem;
  --size-ornament: 14rem;
  --size-panel: 22rem;
  --size-calendar: 21rem;
  --size-stage-min: 36rem;
  --control-min-height: 2.75rem;
  --tap-target-min-size: 2.75rem;
  --opacity-ornament: 0.5;
  --opacity-disabled: 0.5;

  /* Breakpoints (sheet section 5, recorded once). app.js reads them and sets data-layout on <html>:
     "mobile" below tablet; "tablet" from tablet; "tablet desktop" from desktop. */
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1200px;

  /* decoration (variant 3 round 2) */
  --color-gold-100: #f3e8d3;
  --color-gold-glow: rgb(223 189 130 / 0.28);
  --gradient-sidebar: linear-gradient(180deg, #1d4d9a 0%, #173d80 22%, #112f66 55%, #0b1a31 100%);
  --gradient-gold-rule: linear-gradient(90deg, #b58b52 0%, #dfbd82 55%, rgb(223 189 130 / 0) 100%);
  --gradient-primary: linear-gradient(180deg, #2a62b4 0%, #1b4592 45%, #123068 100%);
  --gradient-card: linear-gradient(180deg, #fffcf4 0%, #fbf3e3 100%);
  --gradient-nav-active: linear-gradient(90deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.03));
  --gradient-bar: linear-gradient(180deg, #fffdf8 0%, #f8eedb 100%);
  --gradient-appbar: linear-gradient(180deg, #1d4d9a 0%, #123068 100%);
  --image-wash: radial-gradient(
    60rem 28rem at 100% 0,
    rgb(223 189 130 / 0.2),
    rgb(223 189 130 / 0) 70%
  );
  --image-login:
    radial-gradient(44rem 30rem at 50% 0, rgb(223 189 130 / 0.3), rgb(223 189 130 / 0) 70%),
    radial-gradient(36rem 26rem at 0 100%, rgb(223 189 130 / 0.16), rgb(223 189 130 / 0) 70%);
  --image-corner: url('assets/corner-geometry.svg');
  --image-reed: url('assets/reed-lines.svg');
  --image-divider: url('assets/divider-feather.svg');
  --image-feather: url('assets/maat-feather-compact.webp');
  --shadow-halo: 0 0 0 0.25rem rgb(181 139 82 / 0.28);
  --shadow-button: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 -2px 0 #b58b52;
  --shadow-login: 0 18px 60px rgb(17 38 71 / 0.16);
  --size-bar-clear: 9rem;
  --size-rule: 3rem;
  --size-tick: 0.875rem;
  --size-ornament-corner: 20rem;
  --size-ornament-reed: 24rem;
  --size-illustration: 7rem;
  --size-divider-width: 20rem;
  --size-divider-height: 2rem;
  --size-brand-mark-lg: 3.5rem;
  --size-reed-sidebar: 16rem;
  --opacity-faint: 0.45;
  --image-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.42 0 0 0 0 0.25 0 0 0 0.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --image-ribbon: url('assets/angled-ribbon.svg');
  --shadow-aged: inset 0 0 1.75rem rgb(181 139 82 / 0.16), inset 0 0 0.25rem rgb(154 97 30 / 0.12);
  --shadow-aged-flat: inset 0 0 1.5rem rgb(181 139 82 / 0.12);
  --shadow-lapis-edge: 1px 0 0 #b58b52, 4px 0 0 #112647, 5px 0 0 #dfbd82;
  --color-lapis-800: #123068;
  --size-ribbon-width: 28rem;
  --size-ribbon-height: 1.2rem;
  --z-behind: -1;
  --z-base: 0;
  --z-sticky: 20;
  --z-popover: 60;
  --z-modal: 100;
  --transition-fast: 140ms ease;
  --transition-base: 220ms ease;
}
