/* Shared palette/spacing foundation. No desktop layout selectors or touch-size overrides. */

/* site palette and theme assets. */
:root {
    --bg: #d7dce2;
    --chrome: #202a33;
    --chrome-2: #2f3943;
    --surface: #f6f8fa;
    --panel: #e9edf2;
    --panel-2: #dfe5ec;
    --field: #ffffff;
    --line: #9aa6b2;
    --line-strong: #6f7c8a;
    --ink: #111827;
    --muted: #52616f;
    --label-ink: #263342;
    --control-ink: #172334;
    --grid-head-ink: #172334;
    --chrome-ink: #dbe4ec;
    --chrome-muted: #aab5c0;
    --sort-badge-ink: #0f2536;
    --disabled-ink: #7a8490;
    --scroll-track: #dfe5ec;
    --scroll-thumb: #7f8b98;
    --scroll-thumb-hover: #5f6d7b;
    --accent: #0067b1;
    --accent-dark: #004a80;
    --accent-soft: #d8e8f6;
    --ok: #b8e6b2;
    --warn: #f2b44a;
    --stop: #ff725c;
    --dispatch: #c8f3f7;
    --header-height: 48px;
    --app-font: 13px;
    --title-font: clamp(28px, 4vw, 34px);
    --control-height: 28px;
    --filter-panel-height: 144px;
    --grid-font: 12px;
    --field-pad-y: 3px;
    --field-pad-x: 7px;
    --button-pad-y: 4px;
    --button-pad-x: 12px;
    --control-radius: 6px;
    --button-radius: 7px;
    --tab-pad-y: 8px;
    --tab-pad-x: 12px;
    --cell-pad-y: 5px;
    --cell-pad-x: 7px;
    --panel-pad: 10px;
    --compact-pad: 8px;
    --ui-gap: 8px;
    --window-title-pad-y: 10px;
    --window-title-pad-x: 14px;
    --title-control-height: 28px;
}

html[data-ui-tone="dark"] {
    --bg: #0b121a;
    --chrome: #111c27;
    --chrome-2: #1b2a38;
    --surface: #111923;
    --panel: #182433;
    --panel-2: #202d3b;
    --field: #0f1722;
    --line: #344657;
    --line-strong: #4e6578;
    --ink: #e7eef7;
    --muted: #a8b7c8;
    --label-ink: #e7eef7;
    --control-ink: #e7eef7;
    --grid-head-ink: #ffffff;
    --chrome-ink: #e7eef7;
    --chrome-muted: #91a4b7;
    --sort-badge-ink: #d7ecff;
    --disabled-ink: #8497aa;
    --scroll-track: #0f1722;
    --scroll-thumb: #4e6578;
    --scroll-thumb-hover: #78a0bd;
    --accent: #1f8fd1;
    --accent-dark: #0f6da6;
    --accent-soft: #183f5f;
    --tab-hover-bg: color-mix(in srgb, var(--accent) 35%, var(--panel-2));
    --tab-selected-bg: color-mix(in srgb, var(--accent) 60%, var(--panel-2));
    --tab-selected-hover-bg: color-mix(in srgb, var(--accent) 70%, var(--panel-2));
    --tab-marker: color-mix(in srgb, var(--accent) 50%, #ffffff);
    --ok: #2f6f58;
    --warn: #8f6725;
    --stop: #9b4639;
    --dispatch: #17495c;
}

html[data-ui-theme="floral"] {
    --bg: #eef2df;
    --chrome: #526b57;
    --chrome-2: #6f8162;
    --surface: #fffaf1;
    --panel: #f3ead8;
    --panel-2: #e8dfc5;
    --field: #fffdf7;
    --line: #b8b88e;
    --line-strong: #8b9871;
    --ink: #25342b;
    --muted: #66715f;
    --label-ink: #344235;
    --control-ink: #2e3d31;
    --grid-head-ink: #fefcf5;
    --chrome-ink: #fff8ef;
    --chrome-muted: #e9dbc8;
    --sort-badge-ink: #3c4e37;
    --disabled-ink: #8f9386;
    --scroll-track: #eadfc7;
    --scroll-thumb: #b98ea2;
    --scroll-thumb-hover: #8f6f8a;
    --accent: #b96f8a;
    --accent-dark: #83536f;
    --accent-soft: #f2dbe4;
    --ok: #bcd9a8;
    --warn: #f1cd7c;
    --stop: #e79384;
    --dispatch: #cbe8de;
}

html[data-ui-theme="space"] {
    --bg: #050914;
    --chrome: #0a1021;
    --chrome-2: #151d35;
    --surface: #0b1224;
    --panel: #101a2f;
    --panel-2: #17233d;
    --field: #070d1b;
    --line: #30415f;
    --line-strong: #586889;
    --ink: #edf3ff;
    --muted: #a6b5d8;
    --label-ink: #edf3ff;
    --control-ink: #edf3ff;
    --grid-head-ink: #ffffff;
    --chrome-ink: #f2f6ff;
    --chrome-muted: #99a8cc;
    --sort-badge-ink: #dcd6ff;
    --disabled-ink: #8291b6;
    --scroll-track: #070d1b;
    --scroll-thumb: #6b5fba;
    --scroll-thumb-hover: #9a8cff;
    --accent: #7f6df2;
    --accent-dark: #4b62d1;
    --accent-soft: #27244f;
    --ok: #1d6b65;
    --warn: #8e6b25;
    --stop: #8d3b62;
    --dispatch: #163c63;
}

/* theme-flourishes palette and theme assets. */
html[data-ui-theme="christmas"] {
    --theme-launch-start: #214d3b;
    --theme-launch-end: #123328;
    --theme-launch-hover-start: #30654c;
    --theme-launch-hover-end: #204936;
    --theme-launch-icon: #d8edce;
    color-scheme: light;
    --bg: #e5eeea;
    --chrome: #173f34;
    --chrome-2: #245648;
    --surface: #f8fcfa;
    --panel: #edf4ef;
    --panel-2: #dce9e1;
    --field: #ffffff;
    --line: #a8beb3;
    --line-strong: #6d8f7f;
    --ink: #193a2d;
    --muted: #526c5f;
    --label-ink: #294e3b;
    --control-ink: #193a2d;
    --grid-head-ink: #ffffff;
    --chrome-ink: #f7faf4;
    --chrome-muted: #c9ddd0;
    --sort-badge-ink: #244d3a;
    --disabled-ink: #7b8e83;
    --scroll-track: #e2ede5;
    --scroll-thumb: #769b86;
    --scroll-thumb-hover: #486f5a;
    --accent: #a52f43;
    --accent-dark: #7f2234;
    --accent-soft: #f2dce0;
    --ok: #b8dbc2;
    --warn: #edcf85;
    --stop: #efacae;
    --dispatch: #cbe6e6;
    --theme-ornament: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M15%2018C6%2019%203%2014%203%208l6%201%202-6%204%206%205-2c2%208-1%2012-5%2011Z%22%20fill%3D%22%2340785a%22%20stroke%3D%22%23183e2b%22%2F%3E%3Cpath%20d%3D%22M17%2019c2-8%207-11%2012-10l-1%206%204%203-6%202-1%206c-6-1-9-3-8-7Z%22%20fill%3D%22%2375a174%22%20stroke%3D%22%23315c3d%22%2F%3E%3Cpath%20d%3D%22m7%2010%209%209%2010-5%22%20fill%3D%22none%22%20stroke%3D%22%23d5e9bc%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2213%22%20cy%3D%2221%22%20r%3D%224%22%20fill%3D%22%23d94e61%22%20stroke%3D%22%237f2233%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2222%22%20r%3D%224%22%20fill%3D%22%23b63249%22%20stroke%3D%22%237f2233%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%2217%22%20r%3D%224%22%20fill%3D%22%23ef7180%22%20stroke%3D%22%237f2233%22%2F%3E%3Cpath%20d%3D%22M11%2020h2m3-4h2m1%205h2%22%20stroke%3D%22%23fff4eb%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    --theme-texture: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20stroke%3D%22%23c8e3e2%22%20stroke-width%3D%221%22%20opacity%3D%22.26%22%3E%3Cpath%20d%3D%22M16%203v26M5%2010l22%2012M5%2022%2027%2010m-15-4%204%204%204-4m-8%2020%204-4%204%204M6%2013l5%201-1-5m12%2014-1-5%205%201%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --theme-texture-size: 46px 46px;
    --theme-checkbox: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%205C3%205%203%200%206%201c2%200%204%204%204%204Zm0%200c7%200%207-5%204-4-2%200-4%204-4%204Z%22%20fill%3D%22none%22%20stroke%3D%22%239b6b70%22%20stroke-width%3D%221.5%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%23fffaf4%22%20stroke%3D%22%237e9484%22%2F%3E%3Cpath%20d%3D%22M10%205v14M2%208h16%22%20stroke%3D%22%23c28388%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E");
    --theme-checkbox-checked: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%205C3%205%203%200%206%201c2%200%204%204%204%204Zm0%200c7%200%207-5%204-4-2%200-4%204-4%204Z%22%20fill%3D%22none%22%20stroke%3D%22%23a42b43%22%20stroke-width%3D%221.5%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%23246447%22%20stroke%3D%22%2316462f%22%2F%3E%3Cpath%20d%3D%22M10%205v14M2%208h16%22%20stroke%3D%22%23da7280%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22m5.8%2012%202.7%202.8%205.9-6%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    --theme-glint: #cba55d;
}

html[data-ui-theme="halloween"] {
    --theme-launch-start: #3d2747;
    --theme-launch-end: #24192f;
    --theme-launch-hover-start: #57344f;
    --theme-launch-hover-end: #35213d;
    --theme-launch-icon: #ffd18e;
    color-scheme: dark;
    --bg: #18131d;
    --chrome: #211629;
    --chrome-2: #36213d;
    --surface: #221c2b;
    --panel: #2b2234;
    --panel-2: #382c40;
    --field: #1b1723;
    --line: #57465f;
    --line-strong: #8e7295;
    --ink: #f7eddf;
    --muted: #c6b4c8;
    --label-ink: #f4e6d8;
    --control-ink: #f7eddf;
    --grid-head-ink: #fff4e5;
    --chrome-ink: #fff2df;
    --chrome-muted: #d1b4d6;
    --sort-badge-ink: #ffdc9f;
    --disabled-ink: #a18fa7;
    --scroll-track: #1b1723;
    --scroll-thumb: #805a86;
    --scroll-thumb-hover: #b884ae;
    --accent: #ae4b19;
    --accent-dark: #87350e;
    --accent-soft: #543021;
    --ok: #32614b;
    --warn: #805f25;
    --stop: #894342;
    --dispatch: #3c4367;
    --tab-hover-bg: #583c4b;
    --tab-selected-bg: #784322;
    --tab-selected-hover-bg: #8b4b24;
    --tab-marker: #f4bd68;
    --theme-ornament: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M16%209c-1-5%202-7%205-7%22%20fill%3D%22none%22%20stroke%3D%22%2392a55e%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M16%2010C7%204%201%2012%203%2021c2%209%2010%2010%2013%207%206%204%2013-1%2014-8%201-9-6-14-14-10Z%22%20fill%3D%22%23ed922e%22%20stroke%3D%22%238a421d%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M13%2010C8%2016%209%2024%2013%2028m6-18c5%206%204%2014%200%2018%22%20fill%3D%22none%22%20stroke%3D%22%23c26920%22%2F%3E%3Cpath%20d%3D%22m7%2017%205-3%201%205Zm12-3%206%203-6%202ZM9%2022l5%201%202-2%203%203%205-2-3%205H12Z%22%20fill%3D%22%23382332%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2211%22%20r%3D%221.5%22%20fill%3D%22%23ffd277%22%2F%3E%3C%2Fsvg%3E");
    --theme-texture: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2050%2032%22%3E%3Cpath%20d%3D%22m4%2015%205-1%202-5%202%205%205%201c4-4%209-4%2014-2-4%201-5%204-5%207-4-3-7-1-10%203l-6-3-6%203c-3-4-6-6-10-3%200-3-1-6-5-7%205-2%2010-2%2014%202Z%22%20fill%3D%22%23d7a47e%22%20opacity%3D%22.13%22%2F%3E%3C%2Fsvg%3E");
    --theme-texture-size: 76px 42px;
    --theme-checkbox: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22m2%2016%2016%203m-16%200%2016-3%22%20stroke%3D%22%238c7a8f%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%201C0%201%200%2013%206%2014v3h8v-3C20%2013%2020%201%2010%201Z%22%20fill%3D%22%232a2232%22%20stroke%3D%22%23b49eb9%22%2F%3E%3Cpath%20d%3D%22M6%2015v2m4-2v2m4-2v2%22%20stroke%3D%22%23d2b1a3%22%2F%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%228.3%22%20r%3D%222%22%20fill%3D%22%23a795af%22%2F%3E%3Ccircle%20cx%3D%2213.5%22%20cy%3D%228.3%22%20r%3D%222%22%20fill%3D%22%23a795af%22%2F%3E%3Cpath%20d%3D%22m10%2011-1.2%202h2.4Z%22%20fill%3D%22%23a795af%22%2F%3E%3C%2Fsvg%3E");
    --theme-checkbox-checked: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22m2%2016%2016%203m-16%200%2016-3%22%20stroke%3D%22%23f1c58a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%201C0%201%200%2013%206%2014v3h8v-3C20%2013%2020%201%2010%201Z%22%20fill%3D%22%23bc591d%22%20stroke%3D%22%23ffd394%22%2F%3E%3Cpath%20d%3D%22M6%2015v2m4-2v2m4-2v2%22%20stroke%3D%22%23d2b1a3%22%2F%3E%3Cpath%20d%3D%22m5.8%2010.2%202.7%202.8%205.9-6%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    --theme-glint: #f3bb62;
}

html[data-ui-theme="floral"] {
    --theme-launch-start: #4b684e;
    --theme-launch-end: #304b39;
    --theme-launch-hover-start: #506e52;
    --theme-launch-hover-end: #405d45;
    --theme-launch-icon: #ffd9e6;
    color-scheme: light;
    --chrome-2: #5f7454;
    --accent: #99496d;
    --accent-dark: #743750;
    --theme-ornament: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M17%2018c-4%209-12%208-14%203%207-3%2011-1%2014-3Zm0%200c3-6%2010-6%2013-3-3%206-8%207-13%203Z%22%20fill%3D%22%236e8b5a%22%20stroke%3D%22%233c6546%22%2F%3E%3Cpath%20d%3D%22M17%2020c-5%202-9-2-7-6-5-3-1-10%204-8%203-6%2010-3%209%203%206%201%206%208%200%209-1%206-7%206-6%202Z%22%20fill%3D%22%23edb7cd%22%20stroke%3D%22%23a45579%22%2F%3E%3Cpath%20d%3D%22m17%2011-3-3m6%205%204-1m-7%204-1%205%22%20stroke%3D%22%23fff2f4%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2214%22%20r%3D%224%22%20fill%3D%22%23f4d27c%22%20stroke%3D%22%23af843e%22%2F%3E%3C%2Fsvg%3E");
    --theme-texture: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20110%2040%22%3E%3Cpath%20d%3D%22M1%2031C21%200%2048%2045%2071%2014S95%2011%20110%204%22%20fill%3D%22none%22%20stroke%3D%22%2371865d%22%20stroke-opacity%3D%22.16%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M12%2023C7%2011%2020%206%2023%2011c2%205-4%2010-11%2012m48%200c-5-12%208-17%2011-12%202%205-4%2010-11%2012%22%20fill%3D%22%23789362%22%20fill-opacity%3D%22.14%22%2F%3E%3Cg%20fill%3D%22%23d89bb5%22%20fill-opacity%3D%22.24%22%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2225%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2245%22%20cy%3D%2226%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2242%22%20cy%3D%2230%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --theme-texture-size: 110px 40px;
    --theme-checkbox: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%202c4-4%208%200%206%204%205%201%205%207%200%208%202%204-2%208-6%204-4%204-8%200-6-4-5-1-5-7%200-8-2-4%202-8%206-4Z%22%20fill%3D%22%23ffedf4%22%20stroke%3D%22%23a7768c%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%223%22%20fill%3D%22%23f4d688%22%2F%3E%3C%2Fsvg%3E");
    --theme-checkbox-checked: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%202c4-4%208%200%206%204%205%201%205%207%200%208%202%204-2%208-6%204-4%204-8%200-6-4-5-1-5-7%200-8-2-4%202-8%206-4Z%22%20fill%3D%22%239d426b%22%20stroke%3D%22%236f2c50%22%2F%3E%3Cpath%20d%3D%22m5.8%2010.2%202.7%202.8%205.9-6%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    --theme-glint: #b7a06a;
}

html[data-ui-theme="space"] {
    --theme-launch-start: #2c2a52;
    --theme-launch-end: #121b32;
    --theme-launch-hover-start: #403b71;
    --theme-launch-hover-end: #232d4d;
    --theme-launch-icon: #d6ceff;
    color-scheme: dark;
    --accent: #6554ba;
    --accent-dark: #4e4196;
    --theme-ornament: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22m12%2020-3%209%209-4%22%20fill%3D%22%23ffb658%22%2F%3E%3Cpath%20d%3D%22m12%2023-1%204%204-2%22%20fill%3D%22%23fff0ac%22%2F%3E%3Cpath%20d%3D%22m12%2011-7%204%201%208%208-3m7-8%207%201-3%209-6%202%22%20fill%3D%22%23887bea%22%20stroke%3D%22%23423e81%22%2F%3E%3Cpath%20d%3D%22M11%2020C11%2010%2019%203%2029%203c0%2010-7%2018-17%2018Z%22%20fill%3D%22%23d9efff%22%20stroke%3D%22%23546f9e%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22m23%204%205%205%22%20stroke%3D%22%236bbbd9%22%20stroke-width%3D%223%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2212%22%20r%3D%223.5%22%20fill%3D%22%2355bedb%22%20stroke%3D%22%23426c9e%22%2F%3E%3Cpath%20d%3D%22m4%204%201-3%201%203%203%201-3%201-1%203-1-3-3-1Z%22%20fill%3D%22%23f9df93%22%2F%3E%3C%2Fsvg%3E");
    --theme-texture: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20110%2055%22%3E%3Cg%20fill%3D%22%23a6b9ed%22%20opacity%3D%22.4%22%3E%3Ccircle%20cx%3D%227%22%20cy%3D%229%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2243%22%20cy%3D%2236%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2292%22%20cy%3D%2213%22%20r%3D%22.8%22%2F%3E%3Cpath%20d%3D%22m65%206%201.5%204L71%2012l-4.5%201.5L65%2018l-1.5-4.5L59%2012l4.5-2Z%22%2F%3E%3Cpath%20d%3D%22m22%2039%201%203%203%201-3%201-1%203-1-3-3-1%203-1Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --theme-texture-size: 110px 55px;
    --theme-checkbox: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2014C-2%202%208-1%2014%202c5%202%206%208%202%2012v4H4Z%22%20fill%3D%22%2319263f%22%20stroke%3D%22%238b9ac1%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%229%22%20rx%3D%224%22%20fill%3D%22%230b1328%22%20stroke%3D%22%238ba9d0%22%2F%3E%3Cpath%20d%3D%22M6%2017h8M6%207l2-1%22%20stroke%3D%22%23c5e8fc%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    --theme-checkbox-checked: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2014C-2%202%208-1%2014%202c5%202%206%208%202%2012v4H4Z%22%20fill%3D%22%236664ba%22%20stroke%3D%22%23c2cfff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%229%22%20rx%3D%224%22%20fill%3D%22%23345c99%22%20stroke%3D%22%238ba9d0%22%2F%3E%3Cpath%20d%3D%22M6%2017h8M6%207l2-1%22%20stroke%3D%22%23c5e8fc%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22m5.8%2010.2%202.7%202.8%205.9-6%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    --theme-glint: #a1d7ee;
}

/* theme-atmosphere palette and theme assets. */
html[data-ui-theme="space"] {
    --theme-ornament: url("../img/themes/space-orbit.svg");
    --theme-texture: url("../img/themes/space-stars-far.svg");
    --theme-texture-size: 480px 320px;
    --theme-launch-start: #1b304c;
    --theme-launch-end: #0b162b;
    --theme-launch-hover-start: #294362;
    --theme-launch-hover-end: #182841;
    --theme-launch-icon: #c2ddf7;
}

/* holiday-motion palette and theme assets. */
html[data-ui-theme="christmas"] {
    --holiday-snow-chrome: url("../img/themes/holiday-snow-chrome.svg");
}

html[data-ui-theme="halloween"] {
    --holiday-pumpkin-eyes: url("../img/themes/holiday-pumpkin-eyes.svg");
    --holiday-ghost-skull: url("../img/themes/holiday-ghost-skull.svg");
}

/* nature-themes palette and theme assets. */
html[data-ui-theme="autumn"] {
    color-scheme: light;
    --bg: #f0e7d8;
    --chrome: #443222;
    --chrome-2: #5b412b;
    --surface: #fffaf0;
    --panel: #f7eddd;
    --panel-2: #ebdcc6;
    --field: #fffdf7;
    --line: #c8b498;
    --line-strong: #9b7b55;
    --ink: #3d2d23;
    --muted: #75614c;
    --label-ink: #59422e;
    --control-ink: #3d2d23;
    --grid-head-ink: #fff6e6;
    --chrome-ink: #fff6e6;
    --chrome-muted: #e3ccb2;
    --sort-badge-ink: #61401f;
    --disabled-ink: #8c7b67;
    --scroll-track: #eee2cf;
    --scroll-thumb: #b99b73;
    --scroll-thumb-hover: #8e6d45;
    --accent: #964923;
    --accent-dark: #74351b;
    --accent-soft: #f4dec2;
    --ok: #c3d3a4;
    --warn: #edcc83;
    --stop: #ecc0ac;
    --dispatch: #c2d5cc;
    --tab-hover-bg: #efddc3;
    --tab-selected-bg: #e7c99f;
    --tab-selected-hover-bg: #dfba88;
    --tab-marker: #8b4828;
    --nature-glint: #d5a15d;
    --nature-ornament: url("../img/themes/autumn-leaf-acorn.svg");
    --nature-texture: url("../img/themes/autumn-branches.svg");
    --nature-texture-size: 180px 60px;
    --nature-checkbox: url("../img/themes/autumn-check.svg");
    --nature-checkbox-checked: url("../img/themes/autumn-check-selected.svg");
    --nature-launch-start: #674a30;
    --nature-launch-end: #3b2e23;
    --nature-launch-hover-start: #765235;
    --nature-launch-hover-end: #503a29;
    --nature-launch-icon: #f3d49c;
    --nature-launch-muted: #f1dfc7;
}

html[data-ui-theme="ocean"] {
    color-scheme: dark;
    --bg: #071b28;
    --chrome: #09212f;
    --chrome-2: #153c4b;
    --surface: #0d2935;
    --panel: #123442;
    --panel-2: #1b4250;
    --field: #0a2431;
    --line: #335965;
    --line-strong: #6b939c;
    --ink: #e9f7f6;
    --muted: #acccd1;
    --label-ink: #d3eceb;
    --control-ink: #e9f7f6;
    --grid-head-ink: #eafaf7;
    --chrome-ink: #eafaf7;
    --chrome-muted: #b3d7d9;
    --sort-badge-ink: #b0ebe0;
    --disabled-ink: #7f9fa8;
    --scroll-track: #0b2532;
    --scroll-thumb: #3e737d;
    --scroll-thumb-hover: #62a5ac;
    --accent: #126b74;
    --accent-dark: #0c515b;
    --accent-soft: #1c4652;
    --ok: #305b4c;
    --warn: #756139;
    --stop: #794e4e;
    --dispatch: #31566b;
    --tab-hover-bg: #245563;
    --tab-selected-bg: #226673;
    --tab-selected-hover-bg: #2d7480;
    --tab-marker: #9ddfce;
    --nature-glint: #86cfc3;
    --nature-ornament: url("../img/themes/ocean-shell-coral.svg");
    --nature-texture: url("../img/themes/ocean-waves.svg");
    --nature-texture-size: 210px 64px;
    --nature-checkbox: url("../img/themes/ocean-check.svg");
    --nature-checkbox-checked: url("../img/themes/ocean-check-selected.svg");
    --nature-launch-start: #164b5a;
    --nature-launch-end: #0b2c3d;
    --nature-launch-hover-start: #215d68;
    --nature-launch-hover-end: #123c4b;
    --nature-launch-icon: #ade4d9;
    --nature-launch-muted: #c5e3e3;
}

/* pirate-theme palette and theme assets. */
html[data-ui-theme="pirate"] {
    color-scheme: light;
    --bg: #eee6d3;
    --chrome: #142e3c;
    --chrome-2: #4b3b2a;
    --surface: #fff9ec;
    --panel: #f5ecd9;
    --panel-2: #e7dbc1;
    --field: #fffdf5;
    --line: #c3b497;
    --line-strong: #927954;
    --ink: #342d24;
    --muted: #6d5e48;
    --label-ink: #51422f;
    --control-ink: #342d24;
    --grid-head-ink: #fff5dd;
    --chrome-ink: #fff5dd;
    --chrome-muted: #d7cfb6;
    --sort-badge-ink: #514126;
    --disabled-ink: #8d806b;
    --scroll-track: #eee3cd;
    --scroll-thumb: #a68c60;
    --scroll-thumb-hover: #77613f;
    --accent: #3b5662;
    --accent-dark: #283f4b;
    --accent-soft: #e9dfc6;
    --ok: #c1d0ad;
    --warn: #ebcd89;
    --stop: #e5b6a8;
    --dispatch: #bed0d0;
    --tab-hover-bg: #eee0c0;
    --tab-selected-bg: #decda6;
    --tab-selected-hover-bg: #d4bd8c;
    --tab-marker: #735d35;
    --pirate-brass: #c2a46a;
    --pirate-ornament: url("../img/themes/pirate-compass-flag.svg");
    --pirate-ship: url("../img/themes/pirate-tallship.svg");
    --pirate-wave: url("../img/themes/pirate-waves.svg");
}

/* Text scale and its spacing tokens are shared by desktop and touch layouts. */
html[data-ui-scale="xs"] {
    --app-font: 11px;
    --title-font: 24px;
    --control-height: 22px;
    --filter-panel-height: 116px;
    --grid-font: 10px;
    --field-pad-y: 1px;
    --field-pad-x: 5px;
    --button-pad-y: 2px;
    --button-pad-x: 8px;
    --tab-pad-y: 5px;
    --tab-pad-x: 8px;
    --cell-pad-y: 3px;
    --cell-pad-x: 5px;
    --panel-pad: 6px;
    --compact-pad: 5px;
    --ui-gap: 5px;
    --window-title-pad-y: 6px;
    --window-title-pad-x: 10px;
    --title-control-height: 24px;
}

html[data-ui-scale="s"] {
    --app-font: 12px;
    --title-font: 26px;
    --control-height: 25px;
    --filter-panel-height: 128px;
    --grid-font: 11px;
    --field-pad-y: 2px;
    --field-pad-x: 6px;
    --button-pad-y: 3px;
    --button-pad-x: 10px;
    --tab-pad-y: 6px;
    --tab-pad-x: 10px;
    --cell-pad-y: 4px;
    --cell-pad-x: 6px;
    --panel-pad: 8px;
    --compact-pad: 6px;
    --ui-gap: 6px;
    --window-title-pad-y: 8px;
    --window-title-pad-x: 12px;
    --title-control-height: 26px;
}

html[data-ui-scale="l"] {
    --app-font: 15px;
    --title-font: 38px;
    --control-height: 34px;
    --filter-panel-height: 168px;
    --grid-font: 14px;
    --field-pad-y: 5px;
    --field-pad-x: 9px;
    --button-pad-y: 6px;
    --button-pad-x: 14px;
    --tab-pad-y: 10px;
    --tab-pad-x: 14px;
    --cell-pad-y: 7px;
    --cell-pad-x: 9px;
    --panel-pad: 12px;
    --compact-pad: 10px;
    --ui-gap: 10px;
    --window-title-pad-y: 12px;
    --window-title-pad-x: 16px;
    --title-control-height: 32px;
}
