/* Shared foundations. Prototype, references and generated overview use this source. */
:root {
  --color-text: #111111;
  --color-text-secondary: #666666;
  /* White control / field icons (⋯, search, sort, filters). */
  --color-icon-control: #454545;
  --color-icon-muted: #A3A3A3;
  --color-border: #E5E5E5;
  --color-background: #F5F5F5;
  --color-surface: #FFFFFF;
  /* Soft green fills: brighter on the main dashboard, lighter in the home sheet. */
  --color-surface-light-green: #E6FFD1;
  --color-surface-soft-green: #ECFFE0;
  /* White interactive surfaces retain their fill on hover. */
  --color-tag-border: transparent;
  --shadow-tag: 0 0 2px rgba(28, 28, 32, 0.15), 0 1px 2px rgba(28, 28, 32, 0.08);
  --shadow-control-hover: 0 2px 8px rgba(28, 28, 32, 0.08);
  --color-status-surface: rgba(28, 28, 32, 0.12);
  --status-glass-highlight: radial-gradient(ellipse at 26% 10%, rgba(255,255,255,.65) 0%, rgba(255,255,255,.12) 25%, rgba(255,255,255,0) 52%), linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.08) 100%);
  --status-glass-saturation: 1;
  --color-status-icon: #FFFFFF;
  --status-glass-blur: 12px;
  --status-glass-shadow: 0 6px 20px rgba(0,0,0,.14);
  --status-glass-rim: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.32) 24%, rgba(255,255,255,0) 47%, rgba(255,255,255,.06) 72%, rgba(255,255,255,.52) 100%);
  --status-size-sm: 28px;
  --status-icon-sm: 14px;
  --status-size-md: 36px;
  --status-icon-md: 16px;
  --status-size-books: 40px;
  --status-icon-books: 20px;
  --color-accent: #8E1E18;
  /* Firm mint from the shelf logo; deep shade keeps tab labels readable on glass. */
  --color-brand-green: #80BB8E;
  --color-brand-green-deep: #457E55;
  /* Salad lime for button/card focus outlines and guest accents. */
  --color-accent-lime: #C3FF53;
  /* Light green for focused text fields, search, and login inputs. */
  --color-input-focus: #B1F668;
  --input-focus-ring: 0 0 0 2px var(--color-input-focus);
  /* Soft blue for reader settings sliders only. */
  --reader-blue: #9cbad3;
  --reading-progress-fill: rgba(28, 28, 32, 0.76);
  /* Light glass for the compact dock: same recipe as the cover status marks, kept more transparent. */
  --tabbar-surface: var(--status-glass-highlight), rgba(255, 255, 255, 0.38);
  --tabbar-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  --tabbar-active-backing: rgba(28, 28, 32, 0.08);
  --tabbar-active-icon: var(--color-brand-green);
  --color-cover-meta: rgba(245,245,245,0.82);
  --color-backdrop: rgba(0,0,0,0.25);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-field: 12px;
  --radius-layer: 16px;
  --radius-panel: 20px;
  --radius-hero: 24px;
  --radius-pill: 999px;
  --radius-round: 50%;
  /* Один ритм высоты: кнопка / поле / круг рядом смотрятся ровно. */
  --control-height: 36px;
  --control-height-compact: var(--control-height);
  --control-height-icon: var(--control-height);
  --field-height: var(--control-height);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.04);
  --shadow-raised: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-selected: 0 1px 4px rgba(0,0,0,0.08);
  --focus-ring: 2px solid var(--color-accent-lime);
  --focus-offset: 3px;
  --ink: var(--color-text);
  --text: var(--color-text);
  --muted: var(--color-text-secondary);
  --quiet: var(--color-text-secondary);
  --line: var(--color-border);
  --line-strong: var(--color-border);
  --paper: var(--color-background);
  --surface: var(--color-surface);
  --soft: var(--color-background);
  --soft-2: var(--color-border);
  --accent: var(--color-accent);
  --radius: var(--radius-panel);
  --shadow: var(--shadow-card);
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* iOS-style cross-dissolve: ease-in-out, без сдвига контента */
  --motion-ease-dissolve: cubic-bezier(0.42, 0, 0.58, 1);
  --motion-screen: 320ms;
  --motion-tab: 180ms;
}
