:root {
    --primary: #314d7d;
    --primary-strong: #2f4b78;
    --primary-hover: #293f66;
    --primary-light: #657da8;
    --primary-soft: #eaf0fb;
    --panel: #e6e8f0;
    --page: #eef1f5;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-hover: #eef4fa;
    --surface-translucent: rgba(255,255,255,.95);
    --surface-overlay: rgba(255,255,255,.3);
    --transparent: transparent;
    --text: #172746;
    --muted: #677b9a;
    --border: #d5e0ef;
    --border-strong: #9aaabd;
    --divider: #e4eaf2;
    --success: #1f9d70;
    --pix: var(--primary);
    --warning: #d18c22;
    --danger: #d84b57;
    --danger-soft: #fff0f1;
    --danger-translucent: rgba(216,75,87,.22);
    --removed-item-line: var(--danger);
    --status-border-success: var(--success);
    --status-border-danger: var(--danger);
    --on-primary: #ffffff;
    --on-primary-muted: #e9ebed;
    --on-primary-border: rgba(255,255,255,.2);
    --on-primary-border-strong: rgba(255,255,255,.25);
    --on-primary-hover: rgba(255,255,255,.3);
    --action-fill: var(--primary);
    --action-fill-hover: var(--primary-hover);
    --action-text: var(--on-primary);
    --action-border: var(--action-fill);
    --action-border-hover: var(--action-fill-hover);
    --accent-border: var(--primary);
    --summary-bg: var(--primary);
    --summary-border: var(--primary);
    --summary-text: var(--on-primary);
    --summary-muted: var(--on-primary-muted);
    --summary-divider: var(--on-primary-border);
    --section-bg: var(--primary-strong);
    --section-text: var(--on-primary);
    --section-border: var(--primary-strong);
    --overlay: rgba(20,32,53,.4);
    --overlay-soft: rgba(0,0,0,.08);
    --overlay-medium: rgba(0,0,0,.3);
    --shadow: 0 10px 28px rgba(55,81,126,.12);
    --shadow-subtle: 0 1px 1px rgba(0,0,0,.14902), 0 1px 2px rgba(0,0,0,.09804);
    --shadow-control: 0 3px 6px rgba(0,0,0,.16);
    --shadow-floating: 0 14px 30px rgba(31,41,55,.2);
    --shadow-banner: 0 12px 35px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
    --shadow-action: 0 6px 14px rgba(47,75,120,.25);
    --radius: 5px;
    --header-bg: #37517e;
    --header-brand-bg: #37517e;
    --header-brand-ink: #ffffff;
    --header-text: #ffffff;
    --header-muted: #dce6f5;
    --header-accent: #ffffff;
    --header-border: rgba(255,255,255,.22);
    --header-avatar-bg: #ffffff;
    --header-avatar-text: #314d7d;
    --header-hover: rgba(255,255,255,.14);
}

:root[data-theme="light"] {
    --primary: #37517e;
    --primary-strong: #37517e;
    --primary-hover: #2f4b78;
    --primary-soft: #dadfe8;
    --action-fill: #d9d9d9;
    --action-fill-hover: #cfd0d3;
    --action-text: #37517e;
    --summary-bg: #ffffff;
    --summary-border: #a1a4ac;
    --summary-text: #37517e;
    --summary-muted: #657da8;
    --summary-divider: #a1a4ac;
    --section-bg: #eeeeee;
    --section-text: #37517e;
    --section-border: #a1a4ac;
    --shadow-action: none;
    --page: #eceef0;
    --panel: #eceef0;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #1f2023;
    --muted: #64748b;
    --border: var(--border-strong);
    --divider: var(--border-strong);
    --header-bg: var(--page);
    --header-brand-bg: var(--page);
    --header-brand-ink: #37517e;
    --header-text: #172746;
    --header-muted: #677b9a;
    --header-accent: #37517e;
    --header-border: var(--border-strong);
    --header-avatar-bg: #37517e;
    --header-avatar-text: #ffffff;
    --header-hover: #eaf0fb;
}

:root[data-theme="dark"] {
    --primary: #7896c4;
    --primary-strong: #7896c4;
    --primary-hover: #93afd2;
    --primary-light: #93afd2;
    --primary-soft: #343b47;
    --page: #22242a;
    --panel: #2c2f36;
    --surface: #25272d;
    --surface-soft: #30333a;
    --surface-hover: #343b47;
    --surface-translucent: rgba(37,39,45,.96);
    --text: #bcc3ce;
    --muted: #929cab;
    --removed-item-line: rgba(216,75,87,.48);
    --border: var(--header-border);
    --border-strong: var(--header-border);
    --divider: var(--header-border);
    --on-primary: #ffffff;
    --on-primary-muted: #bcc3ce;
    --on-primary-border: var(--header-border);
    --on-primary-border-strong: var(--header-border);
    --status-border-success: var(--header-border);
    --status-border-danger: var(--header-border);
    --action-fill: #383b44;
    --action-fill-hover: #343b47;
    --action-text: #edf1f7;
    --action-border: var(--header-border);
    --action-border-hover: var(--header-border);
    --accent-border: var(--header-border);
    --summary-bg: #2c2f36;
    --summary-border: var(--header-border);
    --summary-text: #edf1f7;
    --summary-muted: #929cab;
    --summary-divider: var(--header-border);
    --section-bg: #2c2f36;
    --section-text: #7896c4;
    --section-border: var(--header-border);
    --overlay: rgba(0,0,0,.55);
    --shadow: 0 10px 28px rgba(0,0,0,.28);
    --header-bg: #2c2f36;
    --header-brand-bg: #2c2f36;
    --header-brand-ink: #7896c4;
    --header-text: #bcc3ce;
    --header-muted: #929cab;
    --header-accent: #7896c4;
    --header-border: #434752;
    --header-avatar-bg: #7896c4;
    --header-avatar-text: #22242a;
    --header-hover: #343b47;
}
