:root {
    --font-ui: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
    --font-title: var(--font-ui);
    --blue: #175a8a;
    --blue-dark: #102b4a;
    --blue-hover: #2179b5;
    --blue-soft: #e8f2f9;
    --red: #b32632;
    --red-soft: #fae8ea;
    --green: #24734b;
    --green-soft: #dff1e7;
    --yellow: #f4c95d;
    --orange: #d97825;
    --orange-soft: #fff0c7;
    --gray-950: #1c252e;
    --gray-800: #34434f;
    --gray-600: #687681;
    --gray-400: #98a3ab;
    --gray-300: #cbd3d9;
    --gray-200: #e5e9ec;
    --gray-100: #edf1f4;
    --gray-50: #f4f6f7;
    --white: #ffffff;
    --ui-bg: var(--gray-50);
    --ui-bg-end: color-mix(in srgb, var(--ui-bg) 76%, var(--blue-soft));
    --ui-text: var(--gray-950);
    --ui-muted: var(--gray-600);
    --ui-panel: var(--white);
    --ui-panel-alt: var(--gray-100);
    --ui-line: var(--gray-300);
    --ui-line-soft: var(--gray-200);
    --ui-field-bg: var(--white);
    --ui-field-line: var(--gray-300);
    --ui-btn-bg: var(--white);
    --ui-btn-text: var(--gray-800);
    --ui-topbar-bg: #102640;
    --ui-topbar-text: var(--white);
    --ui-topbar-subtext: #b9d5e8;
    --ui-sidebar-bg: var(--ui-panel);
    --ui-sidebar-text: var(--ui-text);
    --ui-sidebar-hover-bg: var(--blue-soft);
    --ui-sidebar-hover-line: var(--ui-line);
    --ui-status-loading-bg: var(--blue-soft);
    --ui-status-loading-line: var(--blue);
    --ui-status-error-bg: var(--red-soft);
    --ui-status-error-line: var(--red);
    --ui-table-head-bg: var(--ui-panel-alt);
    --ui-json-bg: var(--white);
    --ui-json-text: var(--gray-800);
    --ui-focus: rgb(33 121 181 / 28%);
    --ui-shadow: 0 8px 24px rgb(25 32 38 / 16%);
    --ui-panel-shadow: inset 0 1px 0 rgb(255 255 255 / 82%), 0 1px 3px rgb(25 32 38 / 10%);
    --ui-control-shadow: inset 0 1px 0 rgb(255 255 255 / 88%), 0 1px 2px rgb(25 32 38 / 14%);
    --ui-control-hover-shadow: inset 0 1px 0 rgb(255 255 255 / 94%), 0 2px 4px rgb(25 32 38 / 18%);
    --ui-control-pressed-shadow: inset 0 2px 3px rgb(25 32 38 / 24%), 0 1px 0 rgb(255 255 255 / 56%);
    --ui-field-shadow: inset 0 1px 2px rgb(25 32 38 / 12%), 0 1px 0 rgb(255 255 255 / 76%);
    --ui-chrome-shadow: 0 2px 6px rgb(16 38 64 / 20%);
    --ui-header-shadow: inset 0 1px 0 rgb(255 255 255 / 64%), inset 0 -1px 0 rgb(25 32 38 / 8%);
    --ui-toolbar-shadow: inset 0 1px 0 rgb(255 255 255 / 68%), 0 1px 2px rgb(25 32 38 / 10%);
    --ui-floating-shadow: 0 8px 20px rgb(25 32 38 / 20%), inset 0 1px 0 rgb(255 255 255 / 72%);
    --ui-primary-gradient: linear-gradient(180deg, #216797 0%, #154f7c 100%);
    --ui-danger-gradient: linear-gradient(180deg, #c33a45 0%, #9f202b 100%);
    --ui-success-gradient: linear-gradient(180deg, #2f8258 0%, #1f6842 100%);
    --ui-semantic-control-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 1px 2px rgb(25 32 38 / 20%);
    --ui-dialog-surface: #ffffff;
    --ui-dialog-border: #b8c4cc;
    --ui-dialog-shadow: 0 16px 42px rgb(25 32 38 / 24%);
    --ui-backdrop: rgb(16 38 64 / 56%);
}

body[data-theme="dark"] {
    --blue: #5794c7;
    --blue-dark: #8fc2e0;
    --blue-hover: #73b0dc;
    --blue-soft: #152a38;
    --red: #e05a5a;
    --red-soft: #30191b;
    --green: #7bb893;
    --green-soft: #162d20;
    --yellow: #cbb563;
    --orange: #d9955f;
    --orange-soft: #352818;
    --ui-bg: #080a0d;
    --ui-bg-end: #0d1116;
    --ui-text: #f1f3f5;
    --ui-muted: #aab1b8;
    --ui-panel: #111418;
    --ui-panel-alt: #191d22;
    --ui-line: #373d44;
    --ui-line-soft: #262b31;
    --ui-field-bg: #111418;
    --ui-field-line: #373d44;
    --ui-btn-bg: #111418;
    --ui-btn-text: #f1f3f5;
    --ui-topbar-bg: #0b0e12;
    --ui-topbar-text: #f1f3f5;
    --ui-topbar-subtext: #aab1b8;
    --ui-sidebar-bg: #111418;
    --ui-sidebar-text: #f1f3f5;
    --ui-sidebar-hover-bg: #152a38;
    --ui-sidebar-hover-line: #373d44;
    --ui-status-loading-bg: #152a38;
    --ui-status-loading-line: #5794c7;
    --ui-status-error-bg: #30191b;
    --ui-status-error-line: #e05a5a;
    --ui-table-head-bg: #191d22;
    --ui-json-bg: #0d1116;
    --ui-json-text: #f1f3f5;
    --ui-focus: rgb(87 148 199 / 42%);
    --ui-shadow: 0 12px 32px rgb(0 0 0 / 46%);
    --ui-panel-shadow: inset 0 1px 0 rgb(255 255 255 / 4.5%), 0 2px 5px rgb(0 0 0 / 32%);
    --ui-control-shadow: inset 0 1px 0 rgb(255 255 255 / 7.5%), 0 1px 2px rgb(0 0 0 / 42%);
    --ui-control-hover-shadow: inset 0 1px 0 rgb(255 255 255 / 11%), 0 2px 5px rgb(0 0 0 / 52%);
    --ui-control-pressed-shadow: inset 0 2px 4px rgb(0 0 0 / 66%), 0 1px 0 rgb(255 255 255 / 3.5%);
    --ui-field-shadow: inset 0 1px 3px rgb(0 0 0 / 52%), 0 1px 0 rgb(255 255 255 / 3.5%);
    --ui-chrome-shadow: 0 3px 8px rgb(0 0 0 / 54%);
    --ui-header-shadow: inset 0 1px 0 rgb(255 255 255 / 4.5%), inset 0 -1px 0 rgb(0 0 0 / 34%);
    --ui-toolbar-shadow: inset 0 1px 0 rgb(255 255 255 / 4.5%), 0 2px 4px rgb(0 0 0 / 28%);
    --ui-floating-shadow: 0 10px 26px rgb(0 0 0 / 62%), inset 0 1px 0 rgb(255 255 255 / 7%);
    --ui-primary-gradient: linear-gradient(180deg, #69a5d1 0%, #4d86b7 100%);
    --ui-danger-gradient: linear-gradient(180deg, #eb6c6c 0%, #c94b4b 100%);
    --ui-success-gradient: linear-gradient(180deg, #8bc9a4 0%, #65a17e 100%);
    --ui-semantic-control-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 2px 4px rgb(0 0 0 / 46%);
    --ui-dialog-surface: #1b2026;
    --ui-dialog-border: #59636d;
    --ui-dialog-shadow: 0 20px 52px rgb(0 0 0 / 64%);
    --ui-backdrop: rgb(0 0 0 / 68%);
}
