/* The colours of the web interface, for each theme. A colour is named for the job it does (--hover, --field-edge, --danger-ink), never for its value, and the comment above each one in
   the light theme says where it is used. Use the one whose job is yours, even when another has the same value: two jobs that look alike today may not tomorrow (a disabled item and one
   still waiting are two colours). Add a new one here, in its group, with a value for both themes: a hard-coded colour in a stylesheet stays the same in both themes. The dark values were
   first worked out from the light ones (backgrounds that are light become dark, text that is dark becomes light, accents stay). The surface colours that were already variables (--ink,
   --muted ...) are set by hand. */

:root {
    color-scheme: light;
    --knob: #ffffff;
    --pie-free: #e8eef7;
    --pie-other: #9aa7b8;
    /* ---- Text ---- */
    /* Text of menus, folder panels, toasts, and tooltips. */
    --popup-ink: #26364b;
    /* Group titles and field names of the Storage options and the routed site form. */
    --form-heading-ink: #243650;
    /* What is typed or chosen in a box. */
    --field-ink: #41536c;
    /* The rows of a picker or a breakdown list. */
    --list-ink: #41536c;
    /* The path above the File Browser list. */
    --breadcrumb-ink: #41536c;
    /* The name of a field or a tick box list. */
    --label-ink: #53647b;
    /* Column heads, side menu group names, and the Permissions headings. */
    --heading-ink: #4f6280;
    /* Plain buttons (Secondary, toolbar toggles, icon buttons). */
    --button-ink: #536782;
    /* The File Browser toolbar and its split buttons. */
    --toolbar-button-ink: #6f8097;
    /* Small buttons that stay out of the way (view buttons, the path menu). */
    --quiet-button-ink: #8997ab;
    /* Minimise, maximise, close, and the close buttons of dialogs and notifications. */
    --window-button-ink: #7d8aa0;
    /* Small print in a form: notes, facts, counters, the agreement. */
    --note-ink: #536782;
    /* Items of a side menu. */
    --nav-ink: #6d7f96;
    /* Quieter text beside the main: an icon column, a group under a person, a tree leaf, the Console exit bar, a file's date, a fact's name, the date under the clock. */
    --caption-ink: #6d7f96;
    /* What an empty list says. */
    --empty-ink: #7c8796;
    /* A grey pill. */
    --pill-muted-ink: #78889d;
    /* The title of a menu. */
    --menu-title-ink: #7c8ba0;
    /* The title of a window that is not in front. */
    --inactive-title-ink: #6a7788;
    /* Key hints and notes in a menu, list column heads, file label details, and the File Browser status line. */
    --hint-ink: #94a1b1;
    /* Small headings in the System log and the Password Manager side menu, and a file picker with nothing chosen. */
    --section-label-ink: #8d9db2;
    /* The start menu search box. */
    --search-ink: #8193ab;
    /* The address box of the File Browser. */
    --path-box-ink: #92a0b2;
    /* A box or menu item that cannot be used. */
    --disabled-ink: #98a6b8;
    /* A picker item that cannot be chosen. */
    --dim-ink: #a3afc0;
    /* A file or share that cannot be reached. */
    --offline-ink: #a19797;
    /* A share in the side menu that cannot be reached. */
    --offline-nav-ink: #b3a1a1;
    /* Text and icons of the taskbar and its tray buttons. */
    --taskbar-ink: #35465e;
    /* The arrow that opens the hidden tray icons. */
    --tray-caret-ink: #8191a7;
    /* White text on a coloured fill (badges, primary buttons, the sign-in panel, the bars over the wallpaper). */
    --on-accent-ink: #ffffff;
    /* What an empty side menu says. */
    --nav-empty-ink: #9aa7b8;
    /* ---- Blue accent ---- */
    /* Primary buttons and the main blue fill. */
    --accent: #3979ee;
    /* A primary button under the pointer. */
    --accent-hover: #2f6cdb;
    /* The selected tab, media sliders, and a pressed media button. */
    --accent-strong: #3674e8;
    /* The dot of a news toast, and a file picker with a file dragged over it. */
    --info-dot: #3979ee;
    /* The bar beside a selected row, and the focus ring of a tree row. */
    --selection-bar: #4d91ff;
    /* The mark under the taskbar button of the window in front. */
    --active-window-mark: #4c9bff;
    /* A switch that is on. */
    --toggle-on: #4b86ef;
    /* The filled part of a meter. */
    --meter-fill: #4c88ef;
    /* The used part of the storage donut and its legend. */
    --donut-used: #4b83ed;
    /* Links and blue text: tags, the side menu item under the pointer, widget links, Storage's "more options", the notification panel buttons. */
    --link-ink: #3f78df;
    /* The chosen item of a picker. */
    --picker-selected-ink: #2f66c7;
    /* The symbols of the System overview. */
    --symbol-ink: #4079dc;
    /* A blue check or activity icon. */
    --info-icon-ink: #467de3;
    /* The text of a blue notice. */
    --notice-ink: #355f9f;
    /* The initial in a person's picture when there is no picture. */
    --avatar-ink: #365c9d;
    /* Focus outlines, rename boxes, and drop places. */
    --focus-ring: #76a6ff;
    /* The edge of the window in front, and the snap preview. */
    --active-window-edge: #72a8ff;
    /* The edge of a chosen option or a rename box in the Keystore. */
    --selected-edge: #9fc0fb;
    /* The edge of the chosen window in the window switcher. */
    --switcher-selected-edge: #b8d0ff;
    /* The edge of a blue notice. */
    --notice-edge: #bcd3fa;
    /* The line under the title bar of the window in front. */
    --active-titlebar-edge: #c6dafa;
    /* The line beside an app's extra side panel. */
    --side-panel-edge: #cfe0fb;
    /* A faint blue fill: tiles, and the progress of a notification. */
    --accent-wash: #4b7ed71c;
    /* The edge of the progress of a notification. */
    --accent-wash-edge: #4b7ed740;
    /* The text of a selected menu item, a sorted column head, the chosen view button, and a pressed title bar button. */
    --selected-ink: #3979ee;
    /* ---- Surfaces ---- */
    /* Cards, boxes, dialogs, menus, and lists. */
    --surface: #ffffff;
    /* Side menus, the dialog button bar, a file picker, and quieter panels. */
    --surface-sunken: #f8faff;
    /* The address box of the File Browser. */
    --path-box: #f7f9fc;
    /* An option card or a picker item under the pointer. */
    --option-hover: #f6f9ff;
    /* The title bar of the window in front. */
    --active-titlebar: #e6f1ff;
    /* The widget area when it is opened over the desktop. */
    --widget-overlay: #f7faff;
    /* A box that cannot be used. */
    --disabled-field: #f1f4f8;
    /* The sign-in page, and the background of the Password Manager extension's items. */
    --page: #f3f5f8;
    /* The foot of the start menu. */
    --start-footer: #edf3fc;
    /* A blue notice. */
    --notice: #eef4ff;
    /* The round icon on the sign-in page. */
    --sign-in-icon: #eaf2ff;
    /* Plain buttons and the title bar buttons under the pointer. */
    --button: #eef3fa;
    /* The close button of a notification with the focus. */
    --close-focus: #dde8f7;
    /* Behind a person's initial. */
    --avatar: #e5edff;
    /* Behind a blue check or activity icon. */
    --info-soft: #e7efff;
    /* A selected row under the pointer. */
    --row-selected-hover: #d5e3f7;
    /* A row or folder a drag can be dropped on, and the people and link badges. */
    --drop-target: #dbe9ff;
    /* A whole list or box a drag can be dropped on, and the Links status bar. */
    --drop-area: #f1f7ff;
    /* The flash on a Storage row that was just shown. */
    --reveal-flash: #dce9ff;
    /* The light end of the title bar of the window in front. */
    --active-titlebar-light: #f4f8ff;
    /* The title bar of a window that is not in front, and a grey pill. */
    --inactive-titlebar: #edf1f6;
    /* The widget tray and its overlay, and a permission kind. */
    --panel-tint: #e8eff8;
    /* The empty part of a meter. */
    --meter-track: #e7edf6;
    /* The free part of the storage donut. */
    --donut-free: #e8eef7;
    /* The free swatch in the donut's legend. */
    --legend-free: #dbe3ef;
    /* The line between groups of a menu. */
    --menu-separator: #e5ebf3;
    /* A switch that is off. */
    --toggle-off: #cbd4e1;
    /* Behind everything, before the wallpaper. */
    --desktop-background: #dbe9f8;
    /* A row, menu item, app, path part, side menu item, suggestion, or icon button under the pointer or the keyboard's highlight. */
    --hover: #eaf3ff;
    /* Behind a small icon (file properties, the System overview symbols). */
    --icon-tile: #e9f1ff;
    /* A chosen option card, and a drop-down button that is open. */
    --option-selected: #eef4ff;
    /* A selected row, menu item, picker item, filter, or view button. */
    --selected: #dce7f6;
    /* The head of a table. */
    --table-head: #f8faff;
    /* A tag. */
    --tag: #e9f1ff;
    /* ---- Lines ---- */
    /* The edge of a box, a drop-down, a toast, or a tooltip. */
    --field-edge: #dfe7f1;
    /* The edge of a menu. */
    --menu-edge: #dce4ee;
    /* The edge of a widget in the tray or its overlay. */
    --widget-edge: #dce5f0;
    /* The edge of the start menu search box. */
    --search-edge: #dce6f3;
    /* The line under a side menu group, and the Console exit bar. */
    --group-edge: #dbe4f0;
    /* The edge of a file picker. */
    --picker-edge: #c9d6e8;
    /* The edge of a settings group, a table, a tree, or a list, and the lines between their parts. */
    --card-edge: #e3eaf3;
    /* The line between rows and cards. */
    --row-divider: #edf1f6;
    /* The line under a window's title bar. */
    --titlebar-divider: #edf1f7;
    /* The line between checks and between System log facts. */
    --check-divider: #eef2f7;
    /* The line between rows of the File Browser and Links. */
    --file-row-divider: #f0f3f7;
    /* The lines of the Storage tree and between picker items. */
    --tree-divider: #f0f3f8;
    /* The edge of the File Browser address box. */
    --path-box-edge: #e7edf4;
    /* The edge of a box under the pointer. */
    --field-edge-hover: #bdcbdc;
    /* The line between the tray and the clock. */
    --tray-divider: #bdcbdc;
    /* The edge of the colour swatch of a source that cannot be reached. */
    --offline-swatch-edge: #b3bfcf;
    /* ---- Status ---- */
    /* The dot of a toast that went well. */
    --success: #1eae82;
    /* A live or up dot (the top bar, a routed site, a widget). */
    --live: #46dfae;
    /* Good text and icons: online, healthy, good answers and checks, live. */
    --success-ink: #15946f;
    /* Behind a good check, activity icon, or the Online pill. */
    --success-soft: #e0f8ee;
    /* A Keystore row in use under the pointer. */
    --used-row-hover: #e3f6ec;
    /* A selected Keystore row in use under the pointer. */
    --used-row-selected-hover: #d3f0e1;
    /* Amber dots and icons: a warning toast, a check, a lost connection. */
    --warning: #d68a28;
    /* The text of an amber notice, a file flag, and a favourite. */
    --warning-ink: #8a5b12;
    /* Waiting people and a Storage note. */
    --waiting-ink: #8a6d1a;
    /* The text of an amber pill. */
    --pill-warning-ink: #b97318;
    /* Behind an amber notice, pill, check, activity icon, file flag, or Keystore row. */
    --warning-soft: #fff6e6;
    /* The edge of an amber notice. */
    --warning-edge: #f1cf9b;
    /* Dangerous permissions and boxes with a wrong value. */
    --danger: #e0605f;
    /* The dot of a failed toast, a site that is down, and the close button under the pointer. */
    --error-dot: #d94d4d;
    /* Count badges. */
    --badge: #e5484d;
    /* Errors, Delete, Stop, and a red notice. */
    --danger-ink: #a12a2a;
    /* A problem check, a bad pill, and a field's problem. */
    --problem-ink: #c0392b;
    /* A dangerous menu item and a bad answer. */
    --danger-menu-ink: #c23b3b;
    /* Behind a red notice, a problem check, a bad pill, a bad file flag, or a Keystore row with a problem. */
    --danger-soft: #fff1f0;
    /* Behind the close button under the pointer. */
    --close-hover: #ffebeb;
    /* Behind a box with a wrong value. */
    --invalid-field: #fff6f6;
    /* The edge of a red notice. */
    --danger-edge: #efb4b3;
    /* A pressed File Browser toolbar toggle. */
    --toolbar-toggle-on: #e0a21a;
    /* ---- Over the wallpaper ---- */
    /* A widget. */
    --widget-glass: #ffffffdc;
    /* The start button. */
    --start-button: #ffffff9c;
    /* A tray button or icon under the pointer. */
    --tray-hover: #ffffff8c;
    /* A selected desktop icon, the selection band, and a top bar button under the pointer. */
    --icon-selected: #ffffff25;
    /* A desktop icon under the pointer. */
    --icon-hover: #ffffff24;
    /* A top bar button and a window switcher item. */
    --bar-button: #ffffff12;
    /* The light over the default wallpaper. */
    --wallpaper-sheen: #ffffff10;
    /* The start menu, the notification panel, and folder panels. */
    --popover-glass: #f7faffed;
    /* The taskbar. */
    --taskbar-glass: #eff6ffb8;
    /* The line under the top bar. */
    --topbar-edge: #ffffff35;
    /* The edge of a window switcher item. */
    --switcher-item-edge: #ffffff25;
    /* The edge of a top bar button. */
    --bar-button-edge: #ffffff2e;
    /* The edge of the window switcher. */
    --switcher-edge: #ffffff45;
    /* The edge of the start menu, the notification panel, and folder panels. */
    --popover-edge: #ffffffd9;
    /* The line over the taskbar. */
    --taskbar-edge: #ffffffad;
    /* The outline of a selected desktop icon, the selection band, and drop places. */
    --icon-selected-edge: #ffffffb0;
    /* The edge of a widget and the widget overlay. */
    --widget-glass-edge: #ffffffc9;
    /* The focus outline of a desktop icon, and the ring around badges. */
    --icon-focus-edge: #ffffffd0;
    /* The edge of a window. */
    --window-edge: #ffffffde;
    /* The shadow under badges, and the top bar. */
    --shade: #10274432;
    /* Behind a dialog, and around a folder panel. */
    --scrim: #0c203a65;
    /* Behind a side menu opened over the page. */
    --nav-scrim: #0c203a33;
    /* Over everything while i00 NAS cannot be reached. */
    --offline-veil: #0a141f8c;
    /* The window switcher (Alt+Tab). */
    --switcher: #17263be8;
    /* The chosen window in the window switcher. */
    --switcher-selected: #4a83e9aa;
    /* Where a window being dragged will snap. */
    --snap-preview: #4a83e933;
    /* ---- The same in both themes ---- */
    /* The blue app icon, dark end. */
    --icon-blue: #3674e8;
    /* The cyan app icon, light end. */
    --icon-cyan-light: #54d6e5;
    /* The cyan app icon, dark end. */
    --icon-cyan: #1996c1;
    /* The green app icon, light end. */
    --icon-green-light: #54d9b0;
    /* The green app icon, dark end. */
    --icon-green: #199d7c;
    /* The violet app icon, light end. */
    --icon-violet-light: #b19aff;
    /* The violet app icon, dark end, and Cinema's deep violet. */
    --icon-violet: #7d61d9;
    /* The slate app icon, light end. */
    --icon-slate-light: #9aaac0;
    /* The slate app icon, dark end. */
    --icon-slate: #596d88;
    /* The amber app icon, light end. */
    --icon-amber-light: #ffc66f;
    /* The amber app icon, dark end. */
    --icon-amber: #e88b36;
    /* Cinema's accent and a purple meter. */
    --violet: #8e72e9;
    /* Cinema's heart for a favourite. */
    --favourite-heart: #e5484d;
    /* Cinema's stars for a rating. */
    --rating-star: #e3a008;
    /* The i00 mark, light end. */
    --brand-light: #74d8f0;
    /* The i00 mark, dark end. */
    --brand: #3c82ee;
    /* The default wallpaper, darkest stop. */
    --wallpaper-1: #284f82;
    /* The default wallpaper, second stop. */
    --wallpaper-2: #537db4;
    /* The default wallpaper, third stop. */
    --wallpaper-3: #8fb9df;
    /* The default wallpaper, lightest stop. */
    --wallpaper-4: #c4d9f1;
    /* The default wallpaper's cyan glow. */
    --wallpaper-glow: #7bc7e9a0;
    /* The default wallpaper's white haze. */
    --wallpaper-haze: #f8fcff88;
    /* The default wallpaper's shade. */
    --wallpaper-shadow: #132d5555;
    /* The sign-in panel, dark end. */
    --hero: #12233d;
    /* The sign-in panel, light end. */
    --hero-light: #1e4c7d;
    /* The words on the sign-in panel. */
    --hero-ink: #c0d2e8;
    /* The Console screen. */
    --terminal: #0d1117;
    /* A code snippet in Settings. */
    --snippet: #17253b;
    /* The text of a code snippet. */
    --snippet-ink: #d8e4f6;
    /* The words on the top bar while i00 NAS cannot be reached. */
    --offline-message-ink: #f1f8ff;
    /* The blue app icon, light end. */
    --icon-blue-light: #6aa6ff;
    /* What an app's own icon colour is mixed with to make its gradient: the same in both themes, since the colour itself does not follow the theme (desktop.css .app-icon.custom). */
    --icon-mix-light: #ffffff;
    --icon-mix-dark: #000000;
    /* The media player (app-kit.css .media-*): a picture is dark in both themes, so its surface, its text and the shades over the picture are the same in both. */
    --media-picture: #000000;
    --media-ink: #ffffff;
    --media-shade: #000000aa;
    --media-shade-strong: #000000cc;
    --media-hud: #000000bb;
    --media-hover: #ffffff30;
    --media-track: #ffffff55;
    /* A widget whose body is a picture to its edges (widgets.css .widget-art): its heading lies on the picture, so its text and the shade under it are the same in both themes. */
    --art-ink: #ffffff;
    --art-shade: #000000b8;
    --art-shade-soft: #00000059;
    /* What a search matched (base.css .filter-highlight): dark text on yellow. */
    --highlight-bg: #ffe58a;
    --highlight-ink: #43320b;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --knob: #ffffff;
    --pie-free: #2a3441;
    --pie-other: #6b7a90;
    --ink: #e4ebf5;
    --muted: #92a2b8;
    --line: #2a3443;
    --panel: rgba(23, 29, 40, .96);
    --shadow: 0 22px 70px #00000080, 0 2px 8px #00000040;
    /* ---- Text ---- */
    --popup-ink: #e0e5eb;
    --form-heading-ink: #e0e4eb;
    --field-ink: #a4aebb;
    --list-ink: #a4aebb;
    --breadcrumb-ink: #a4aebb;
    --label-ink: #98a1ad;
    --heading-ink: #959faf;
    --button-ink: #939eac;
    --toolbar-button-ink: #8f98a3;
    --quiet-button-ink: #8f97a3;
    --window-button-ink: #8f97a3;
    --note-ink: #939eac;
    --nav-ink: #8f98a3;
    --caption-ink: #8f98a3;
    --empty-ink: #9298a0;
    --pill-muted-ink: #8f98a3;
    --menu-title-ink: #8f97a3;
    --inactive-title-ink: #9198a1;
    --hint-ink: #8f98a3;
    --section-label-ink: #8d97a5;
    --search-ink: #8d97a5;
    --path-box-ink: #8e98a4;
    --disabled-ink: #8e98a4;
    --dim-ink: #8e97a4;
    --offline-ink: #8f97a3;
    --offline-nav-ink: #9f9393;
    --taskbar-ink: #aeb8c6;
    --tray-caret-ink: #8e97a4;
    --on-accent-ink: #ffffff;
    --nav-empty-ink: #8e98a4;
    /* ---- Blue accent ---- */
    --accent: #3979ee;
    --accent-hover: #2f6cdb;
    --accent-strong: #3674e8;
    --info-dot: #3979ee;
    --selection-bar: #4d91ff;
    --active-window-mark: #4c9bff;
    --toggle-on: #4b86ef;
    --meter-fill: #4c88ef;
    --donut-used: #4b83ed;
    --link-ink: #7ca3e9;
    --picker-selected-ink: #638eda;
    --symbol-ink: #7ca3e7;
    --info-icon-ink: #84a9ec;
    --notice-ink: #849abd;
    --avatar-ink: #8599bc;
    --focus-ring: #76a6ff;
    --active-window-edge: #72a8ff;
    --selected-edge: #9fc0fb;
    --switcher-selected-edge: #b8d0ff;
    --notice-edge: #32415c;
    --active-titlebar-edge: #303f58;
    --side-panel-edge: #2e3d55;
    --accent-wash: #4b7ed71c;
    --accent-wash-edge: #4b7ed740;
    --selected-ink: #7ba6f4;
    /* ---- Surfaces ---- */
    --surface: #181a1e;
    --surface-sunken: #151b28;
    --path-box: #191f28;
    --option-hover: #161c29;
    --active-titlebar: #1c2634;
    --widget-overlay: #161d28;
    --disabled-field: #20252c;
    --page: #20242a;
    --start-footer: #1a2431;
    --notice: #19212e;
    --sign-in-icon: #1a2331;
    --button: #1c2531;
    --close-focus: #222f3f;
    --avatar: #1c2435;
    --info-soft: #1c2333;
    --row-selected-hover: #253245;
    --drop-target: #202b3b;
    --drop-area: #18212c;
    --reveal-flash: #202a3b;
    --active-titlebar-light: #171e2a;
    --inactive-titlebar: #222830;
    --panel-tint: #1f2936;
    --meter-track: #222a36;
    --donut-free: #212935;
    --legend-free: #2c3440;
    --menu-separator: #262d37;
    --toggle-off: #3c444f;
    --desktop-background: #233140;
    --hover: #1a2431;
    --icon-tile: #1b2332;
    --option-selected: #19212e;
    --selected: #233041;
    --table-head: #151b28;
    --tag: #1b2332;
    /* ---- Lines ---- */
    --field-edge: #333e4c;
    --menu-edge: #36404d;
    --widget-edge: #343f4e;
    --search-edge: #303e50;
    --group-edge: #343f4e;
    --picker-edge: #3a4657;
    --card-edge: #323c4a;
    --row-divider: #313944;
    --titlebar-divider: #2f3845;
    --check-divider: #2f3944;
    --file-row-divider: #313842;
    --tree-divider: #2f3643;
    --path-box-edge: #313c48;
    --field-edge-hover: #434e5b;
    --tray-divider: #434e5b;
    --offline-swatch-edge: #4b545f;
    /* ---- Status ---- */
    --success: #37ddaa;
    --live: #46dfae;
    --success-ink: #1ed39e;
    --success-soft: #213d31;
    --used-row-hover: #223a2e;
    --used-row-selected-hover: #2c4839;
    --warning: #e2ab63;
    --warning-ink: #c9851a;
    --waiting-ink: #c69c25;
    --pill-warning-ink: #e59834;
    --warning-soft: #342b1c;
    --warning-edge: #6b583a;
    --danger: #e8706f;
    --error-dot: #e68888;
    --badge: #e5484d;
    --danger-ink: #ce4444;
    --problem-ink: #da6559;
    --danger-menu-ink: #d47171;
    --danger-soft: #2d1a18;
    --close-hover: #301a1a;
    --invalid-field: #291616;
    --danger-edge: #633635;
    --toolbar-toggle-on: #ebbd56;
    /* ---- Over the wallpaper ---- */
    --widget-glass: #181a1edc;
    --start-button: #181a1e9c;
    --tray-hover: #181a1e8c;
    --icon-selected: #181a1e25;
    --icon-hover: #181a1e24;
    --bar-button: #181a1e12;
    --wallpaper-sheen: #181a1e10;
    --popover-glass: #161d28ed;
    --taskbar-glass: #19222eb8;
    --topbar-edge: #2f323735;
    --switcher-item-edge: #2f323725;
    --bar-button-edge: #2f32372e;
    --switcher-edge: #2f323745;
    --popover-edge: #2f3237d9;
    --taskbar-edge: #2f3237ad;
    --icon-selected-edge: #2f3237b0;
    --widget-glass-edge: #2f3237c9;
    --icon-focus-edge: #2f3237d0;
    --window-edge: #2f3237de;
    --shade: #10274432;
    --scrim: #0c203a65;
    --nav-scrim: #0c203a33;
    --offline-veil: #0a141f8c;
    --switcher: #17263be8;
    --switcher-selected: #4a83e9aa;
    --snap-preview: #4a83e933;
    /* ---- The same in both themes ---- */
    --icon-blue: #3674e8;
    --icon-cyan-light: #54d6e5;
    --icon-cyan: #1996c1;
    --icon-green-light: #54d9b0;
    --icon-green: #199d7c;
    --icon-violet-light: #b19aff;
    --icon-violet: #7d61d9;
    --icon-slate-light: #515a66;
    --icon-slate: #596d88;
    --icon-amber-light: #ffc66f;
    --icon-amber: #e88b36;
    --violet: #8e72e9;
    --favourite-heart: #f2555a;
    --rating-star: #f5c040;
    --brand-light: #74d8f0;
    --brand: #3c82ee;
    --wallpaper-1: #284f82;
    --wallpaper-2: #537db4;
    --wallpaper-3: #8fb9df;
    --wallpaper-4: #2e4055;
    --wallpaper-glow: #7bc7e9a0;
    --wallpaper-haze: #15202888;
    --wallpaper-shadow: #132d5555;
    --hero: #12233d;
    --hero-light: #1e4c7d;
    --hero-ink: #c0d2e8;
    --terminal: #0d1117;
    --snippet: #17253b;
    --snippet-ink: #7391bf;
    --offline-message-ink: #f1f8ff;
    --icon-blue-light: #6aa6ff;
    --error-bg: #3b1d22;
    --error-ink: #ff9d9d;
    /* What an app's own icon colour is mixed with to make its gradient: the same in both themes, since the colour itself does not follow the theme (desktop.css .app-icon.custom). */
    --icon-mix-light: #ffffff;
    --icon-mix-dark: #000000;
    /* The media player (app-kit.css .media-*): a picture is dark in both themes, so its surface, its text and the shades over the picture are the same in both. */
    --media-picture: #000000;
    --media-ink: #ffffff;
    --media-shade: #000000aa;
    --media-shade-strong: #000000cc;
    --media-hud: #000000bb;
    --media-hover: #ffffff30;
    --media-track: #ffffff55;
    /* A widget whose body is a picture to its edges (widgets.css .widget-art): its heading lies on the picture, so its text and the shade under it are the same in both themes. */
    --art-ink: #ffffff;
    --art-shade: #000000b8;
    --art-shade-soft: #00000059;
    /* What a search matched: a deep amber that sits in the dark theme, with light amber text (light text on the light theme's yellow could hardly be read). */
    --highlight-bg: #7a5a10;
    --highlight-ink: #ffefb8;
}

/* ---- The built-in wallpaper in the dark theme: made for it, not worked out from the light one ---- */

:root[data-theme="dark"]:not(.has-wallpaper) .wallpaper {
    background:
        radial-gradient(ellipse at 75% 22%, #3a64a53a 0, transparent 42%),
        radial-gradient(ellipse at 22% 82%, #1d6c8a40 0, transparent 44%),
        linear-gradient(130deg, #0c1420 0%, #111e32 38%, #152a49 74%, #0d1a2e 100%);
}

/* ---- The person's own wallpaper (wallpaper.js), and the change of theme ---- */

html.has-wallpaper .wallpaper {
    background: var(--wallpaper) center / cover no-repeat;
}

html.has-wallpaper .wallpaper::after {
    background: none;
    backdrop-filter: none;
}

/* A picture of their own is darkened in the dark theme when they asked for that. The built-in wallpaper is already made for each theme (its colours are in the lists above). */
html[data-theme="dark"].has-wallpaper.wallpaper-dim .wallpaper::after {
    background: rgba(6, 10, 18, .5);
}

/* A wallpaper that is fading in (or the old one fading away): wallpaper.js puts one picture over the desktop for the length of the fade. */
.wallpaper-fade {
    position: fixed;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
}

.wallpaper-fade.shown {
    opacity: 1;
}

html[data-theme="dark"].wallpaper-dim .wallpaper-fade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 18, .5);
}

/* The change from one theme to the other is a cross-fade of the whole page (theme.js), a little slower than the browser's own. */
::view-transition-group(root) {
    animation-duration: .4s;
}

.no-animations ::view-transition-group(root) {
    animation-duration: 0s;
}

/* User settings */
/* Wider than the other text boxes: an address is long. The box takes up to 280px of the row and gives way when the window is narrow, so the words of the setting keep at least 45% of the row
   (as the theme's do), instead of being squeezed beside a box that is wider than it needs to be. */
.setting-card.email-card > :first-child {
    min-width: 45%;
}

.setting-card.email-card .field-stack {
    flex: 0 1 280px;
    min-width: 0;
    align-items: stretch;
}

.setting-card.email-card input.user-email:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    max-width: none;
}

.field-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.setting-card.wide .field-stack {
    align-items: flex-start;
    min-width: 0;
}

/* A chosen picture's name can be longer than the row: the picker takes the row's width, so its name is cut with an ellipsis instead of running out of the group. */
.setting-card.wide .field-stack > .file-picker {
    align-self: stretch;
    min-width: 0;
}

.wallpaper-state {
    color: var(--muted);
    font-size: 10px;
}

.theme-detected {
    color: var(--muted);
    font-size: 10px;
}
