/* Soft Ledger — see docs/design/design-book.md. Light theme only; token shape mirrors
   PT Garant's theme.css so a future [data-theme="dark"] block is a value swap, not a rewrite. */
:root {
    --bg-page: #f7f6f3;
    --bg-surface: #ffffff;
    --bg-hover: #f7f6f3;
    --border: #eceae5;
    --border-strong: #e0ded8;
    --text-primary: #37352f;
    --text-secondary: #787066;
    --text-muted: #9b958c;

    --accent: #200e8b;
    --accent-hover: #180a6b;
    --accent-contrast: #ffffff;
    --accent-quiet: #5a4bc4;
    --accent-soft: #edebf8;

    --status-done-bg: #e6f6ee;
    --status-done-text: #0f7d57;
    --status-done-dot: #17a673;
    --status-progress-bg: #fdf0dc;
    --status-progress-text: #a96a05;
    --status-progress-dot: #e8961b;
    --status-none-bg: #eef0f3;
    --status-none-text: #6d7a89;
    --status-none-dot: #9aa6b4;
    --status-na-text: #c0c8d1;
    --status-overdue-bg: #fdecec;
    --status-overdue-text: #b42318;
    --status-overdue-dot: #e5484d;

    /* report table grid (design-book: "Report table") */
    --grid-line: #ebe9e4;
    --grid-group-line: #c9c5bc;
    --grid-head-bg: #fbfaf8;
    --grid-na-bg: #f7f6f3;
    --changed: #7b43d6;
    --changed-soft: #f2ebfd;
    --note-bg: #fffaf0;
    --note-border: #f6e3c0;
    --note-text: #6b4e16;
    /* business group (main client + linked clients): stripe/branch line + linked-row tint */
    --group-line: #8f84d8;
    --group-tint: #f8f7fd;

    --success: #16a34a;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --warning: #a16207;
    /* Solid tints instead of color-mix(): it needs Chrome 111 / Safari 16.2. */
    --success-soft: #e8f6ed;
    --danger-soft: #fdeded;
    --warning-soft: #f8f3e6;

    --dur-fast: 120ms;
    --dur-base: 180ms;
    --ease: cubic-bezier(.2, 0, 0, 1);

    --font-ui: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

    /* platform admin area: warm ink instead of the company accent, so "I'm editing every company" reads at a glance */
    --platform-ink: #37352f;
    --platform-ink-soft: #efede8;

    /* Telegram preview ONLY (.tg-*): Telegram's own light-theme channel look, so the Owner sees the post as clients
       will. Never use these outside the preview — the app's colour is --accent. */
    --tg-wall: #dfe7d6;
    --tg-wall-dot: rgba(255, 255, 255, .45);
    --tg-bubble: #ffffff;
    --tg-link: #3390ec;
    --tg-meta: #8a9aa9;
    --tg-button-bg: rgba(43, 82, 51, .24);
    --tg-button-text: #ffffff;
    --tg-text: #000000;

    --radius-pill: 4px;
    --radius-control: 8px;
    --radius-card: 12px;
}
