/* pragma_aurora - Pragma Webmail child skin of Elastic (generated by build.mjs - edit src/, not this file) */
@import url("../../elastic/styles/styles.min.css?v=1.7.7");
/* ---------------------------------------------------------------------------
 * Shared rules for the Pragma child skins (pragma_aurora, pragma_linea) on Elastic.
 * Every colour/radius/font comes from the skin's token block (light on :root,
 * dark on html.dark-mode). "$P" is expanded by build.mjs to  html:root  which has the
 * same weight as Elastic's  html.dark-mode  prefix, so these rules win in both modes
 * (this file is loaded after Elastic's CSS). State rules (:hover/.selected) must be
 * declared here too, because the prefix makes our base rules heavier than Elastic's states.
 * ------------------------------------------------------------------------- */

/* ---------- base ---------- */
html:root body { color: var(--tx); background: var(--app); background-attachment: fixed; font-family: var(--fu); }
html.iframe:root body { background: var(--surf); }
html:root body, html:root .form-control, html:root .custom-select, html:root .btn, html:root button, html:root input, html:root select, html:root textarea,
html:root .popover, html:root .ui-dialog, html:root .ui-widget, html:root .tooltip, html:root .tox, html:root .tox :not(svg):not(rect) { font-family: var(--fu); }
html:root h1, html:root h2, html:root h3, html:root legend, html:root .header-title, html:root .ui-dialog-title, html:root #layout-sidebar > .header .header-title,
html:root .formcontent > fieldset > legend, html:root #message-header h2.subject { font-family: var(--fd); }
html:root #layout { background: transparent; }
html:root a, html:root .btn-link { color: var(--ac); }
html:root a:hover, html:root .btn-link:hover { color: var(--ac-h); }
html:root ::selection { background: var(--sel); color: var(--tx); }

/* visible keyboard focus everywhere (WCAG 2.4.7) */
html:root a:focus-visible, html:root button:focus-visible, html:root .btn:focus-visible, html:root [tabindex]:not(tr):not(td):not(li):not(table):not(ul):not(input):not(textarea):not(select):focus-visible,
html:root input[type=checkbox]:focus-visible, html:root input[type=radio]:focus-visible {
    outline: 2px solid var(--focus) !important; outline-offset: 2px;
}
/* list keyboard focus = Elastic's 2px left indicator, recoloured */
html:root .listing tbody tr.focused > td { border-left-color: var(--focus) !important; outline: 0; }

/* ---------- panels ---------- */
html:root #layout-sidebar { background: var(--pane); border-right-color: var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
html:root #layout-list, html:root #layout-content { background: var(--surf); border-color: var(--line); }
html:root #layout > div > .header { background: var(--hdr); color: var(--tx); border-bottom-color: var(--line); }
html:root #layout-sidebar > .header { background: transparent; }
html:root #layout > div > .footer { background: var(--hdr); border-top-color: var(--line); color: var(--tx2); }
html:root #layout-sidebar > .footer { background: transparent; }
html:root .header a.button, html:root .menu.toolbar a, html:root .toolbar a.button { color: var(--tx2); }
html:root .header a.button.icon:not(.disabled):hover, html:root .header a.button.icon:not(.disabled):focus,
html:root .menu.toolbar a:not(.disabled):hover, html:root .menu.toolbar a:not(.disabled):focus { background: var(--hover); color: var(--tx); }
html:root .menu.toolbar a.selected { background: var(--on); color: var(--on-fg); }
html:root .menu.toolbar .dropbutton a.dropdown:hover { background: var(--hover); }
html:root .searchbar, html:root .searchbar input { background: var(--hdr); color: var(--tx); }
html:root .searchbar input::placeholder, html:root .form-control::placeholder { color: var(--tx2); opacity: 1; }

/* ---------- task menu (rail) ---------- */
@media screen and (min-width: 481px) {
    html:root #layout-menu { background: var(--rail); border-right: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
    html:root #layout-menu .popover-header, html:root #taskmenu .special-buttons { background: transparent !important; }
    html:root #layout-menu .special-buttons a:not(:focus) { background: transparent; }
    html:root #taskmenu a { color: var(--rail-fg); border-radius: var(--r2); }
    html:root #taskmenu a:hover, html:root #taskmenu a:focus { color: var(--rail-fg-h); background: var(--rail-hover); }
    html:root #taskmenu a.selected, html:root #taskmenu a.selected:hover { color: var(--rail-on-fg); background: var(--rail-on); box-shadow: var(--rail-glow); }
    html:root #taskmenu .action-buttons a, html:root #taskmenu .action-buttons a:hover { color: var(--ac); background: transparent; }
    html:root #taskmenu .action-buttons a:hover { background: var(--rail-hover); }
    html:root #taskmenu .action-buttons a.selected { color: var(--rail-on-fg); background: var(--rail-on); box-shadow: var(--rail-glow); }
    html:root #taskmenu a.logout, html:root #taskmenu a.logout:hover { color: var(--bad) !important; }
}
@media screen and (min-width: 1025px) {
    html:root #taskmenu a { width: calc(100% - 16px); margin: 0 8px 4px; font-size: .85rem; }
    html:root #layout-menu { position: relative; }
    html:root #taskmenu .special-buttons { left: 0; right: 0; width: auto; padding-bottom: 6px; }
    html:root #taskmenu .special-buttons a { width: calc(100% - 16px); }
}
/* phone: the task menu is a slide-in list */
html.layout-phone:root #layout-menu, html.layout-phone:root .popover-header, html.layout-small:root .popover-header { background: var(--menu-bg); }
html.layout-phone:root #layout-menu .popover-header img { max-height: 40px; }
@media screen and (max-width: 480px) {
    html:root #taskmenu a { color: var(--tx); border-bottom-color: var(--line) !important; }
    html:root #taskmenu a.selected { color: var(--on-fg); background: var(--sel); box-shadow: var(--sel-sh); }
    html:root #taskmenu .action-buttons a { color: var(--ac); }
    html:root #taskmenu a.logout { color: var(--bad); }
}

/* ---------- lists (folders, messages, contacts, settings sections) ---------- */
html:root .listing li, html:root .listing tr td { border-color: var(--line-soft); }
html:root .listing li a, html:root .listing tr td, html:root .listing li { color: var(--tx); }
html:root .listing li.selected, html:root .listing li.selected > a, html:root .listing li.selected > div > a, html:root .listing tr.selected td,
html:root ul.treelist li.selected > a, html:root ul.treelist li.selected > div > a,
html:root .table-widget table.options-table tr.selected td { background-color: var(--sel); color: var(--tx); }
html:root table.messagelist tr.selected td:first-child, html:root #contacts-table tr.selected td:first-child { box-shadow: var(--sel-sh); }
html:root .listing li.selected ul { background-color: transparent; }
html:root table.messagelist tr.unread td, html:root table.messagelist tr.unread td a { color: var(--tx); }
html:root table.messagelist td span.msgicon.status.unread:before, html:root table.messagelist td span.msgicon.unread:before { color: var(--dot); }
html:root table.messagelist tr.flagged td, html:root table.messagelist tr.flagged td a, html:root table.messagelist tr.flagged td span { color: var(--bad); }
html:root table.messagelist td span.date, html:root table.messagelist td span.size, html:root table.messagelist td .fromto,
html:root table.messagelist td span.fromto, html:root .listing .secondary { color: var(--tx2); }
html:root table.messagelist tr.unread td span.fromto, html:root table.messagelist tr.unread td .fromto { color: var(--tx); }
html:root .listing tr.droptarget > td, html:root .listing li.droptarget > a { background-color: var(--on); }
html:root .listing-info, html:root .listing .listing-info { color: var(--tx2); }

/* folder list in the (glass) sidebar */
html:root #layout-sidebar .listing li { background: transparent; border: 0; }
html:root #layout-sidebar .listing li > a, html:root #layout-sidebar .listing li > div > a { border-radius: var(--r2); margin: var(--fold-m); }
html:root #layout-sidebar .listing li:not(.selected) > a:hover, html:root #layout-sidebar .listing li:not(.selected) > div > a:hover { background: var(--hover); }
html:root #layout-sidebar .listing li.selected, html:root #layout-sidebar ul.treelist li.selected { background: transparent; }
html:root #layout-sidebar .listing li.selected > a, html:root #layout-sidebar .listing li.selected > div > a,
html:root #layout-sidebar ul.treelist li.selected > a { background: var(--on); color: var(--on-fg); box-shadow: var(--on-sh); font-weight: 600; }
html:root .folderlist li.mailbox .unreadcount, html:root .folderlist li.mailbox.recent > a > .unreadcount {
    background: transparent; color: var(--ac); font-weight: 700; font-family: var(--fc); font-size: .8rem;
}
html:root .folderlist li.mailbox.selected .unreadcount { color: var(--on-fg); }
html:root .folderlist li.mailbox.unread > a { font-weight: 600; }
html:root .folderlist li a .unreadcount { min-width: 0; }

/* ---------- buttons ---------- */
html:root .btn-primary, html:root .btn-primary.disabled, html:root .btn-primary:disabled,
html:root .floating-action-buttons a.button,
html:root div.tox .tox-dialog__footer .tox-button:not(.tox-button--secondary) {
    color: var(--btn-fg); background: var(--btn); border-color: transparent; box-shadow: var(--btn-sh); border-radius: var(--r3);
}
html:root .btn-primary:not(:disabled):not(.disabled):hover, html:root .btn-primary:not(:disabled):not(.disabled):focus,
html:root .btn-primary:not(:disabled):not(.disabled):active, html:root .btn-primary:not(:disabled):not(.disabled).active,
html:root div.tox .tox-dialog__footer .tox-button:not(.tox-button--secondary):not(:disabled):hover {
    color: var(--btn-fg); background: var(--btn-h); border-color: transparent;
}
html:root .btn-primary:not(:disabled):not(.disabled):focus-visible { box-shadow: 0 0 0 2px var(--surf), 0 0 0 4px var(--focus); }
html:root .btn-primary.disabled, html:root .btn-primary:disabled { opacity: .5; box-shadow: none; }
html:root .btn-secondary, html:root .btn-secondary.disabled, html:root .btn-secondary:disabled,
html:root div.tox .tox-dialog__footer .tox-button.tox-button--secondary {
    color: var(--tx); background: var(--surf); border: 1px solid var(--inb); border-radius: var(--r3);
}
html:root .btn-secondary:not(:disabled):not(.disabled):hover, html:root .btn-secondary:not(:disabled):not(.disabled):focus,
html:root .btn-secondary:not(:disabled):not(.disabled):active { color: var(--tx); background: var(--surf2); border-color: var(--inb); }
html:root .btn-danger { border-radius: var(--r3); }
html:root .formbuttons .btn, html:root .ui-dialog-buttonpane .btn { border-radius: var(--r3); }

/* ---------- forms ---------- */
html:root .form-control, html:root .custom-select, html:root .custom-file-label, html:root .recipient-input, html:root .input-group > .form-control,
html:root .multi-input > .content, html:root textarea.form-control, html:root .tagedit-list {
    color: var(--tx); background-color: var(--surf); border-color: var(--inb); border-radius: var(--r2);
}
html:root .input-group > .form-control:not(:first-child), html:root .input-group > .custom-select:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html:root .input-group > .form-control:not(:last-child), html:root .input-group > .custom-select:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html:root .input-group-text, html:root .input-group-prepend .input-group-text, html:root .input-group-append .input-group-text {
    color: var(--tx2); background: var(--surf2); border-color: var(--inb);
}
html:root .form-control:focus, html:root .custom-select:focus, html:root .recipient-input.focus, html:root .multi-input > .content.focused,
html:root .custom-file-input:focus ~ .custom-file-label, html:root .input-group-text input:focus, html:root div.tox.focused, html:root .tagedit-list[tabindex="-1"] {
    color: var(--tx); background-color: var(--surf); border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); outline: 0;
}
html:root .form-control:disabled, html:root .form-control[readonly] { background-color: var(--surf2); }
html:root .recipient-input .recipient { background: var(--on); color: var(--on-fg); border-radius: var(--r3); }
html:root .custom-switch .custom-control-label::before { background-color: var(--surf2); border-color: var(--inb); }
html:root .custom-switch .custom-control-label::after { background-color: var(--inb); }
html:root .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--btn-solid); border-color: var(--btn-solid); }
html:root .custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff; }
html:root .custom-switch .custom-control-input:focus ~ .custom-control-label::before,
html:root .custom-switch .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { box-shadow: 0 0 0 2px var(--focus); border-color: var(--focus); }
html:root input[type=checkbox], html:root input[type=radio] { accent-color: var(--btn-solid); }
html:root label, html:root .propform td.title, html:root .propform .col-form-label { color: var(--tx); }
html:root .form-text, html:root .hint, html:root .propform .form-text { color: var(--tx2); }
html:root legend, html:root .formcontent fieldset legend { color: var(--tx); }

/* settings/preferences content */
html:root .formcontent, html:root .propform, html:root #preferences-wrapper { color: var(--tx); }
html:root .nav-tabs { border-bottom-color: var(--line); }
html:root .nav-tabs .nav-link { color: var(--tx2); }
html:root .nav-tabs .nav-link:hover { color: var(--tx); background: var(--hover); border-color: transparent; }
html:root .nav-tabs .nav-link.active { color: var(--on-fg); background: var(--surf); border-color: var(--line) var(--line) var(--surf); }
html:root .skinselection .skinthumbnail { border-color: var(--line); border-radius: var(--r2); }

/* ---------- popovers, menus, dialogs, toasts ---------- */
html:root .popover, html:root .ui-menu, html:root .listing-hover-menu, html:root .tox .tox-menu {
    color: var(--tx); background: var(--menu-bg); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--pop-sh);
}
html:root .popover .arrow::after { border-bottom-color: var(--menu-bg); }
html:root .popover .menu li a:not(.disabled), html:root .popupmenu .listing li > a:not(.disabled) { color: var(--tx); }
html:root .popover .menu li a:not(.disabled):hover, html:root .popover .menu li a:not(.disabled):focus,
html:root .popupmenu .listing li > a:not(.disabled):hover, html:root .popupmenu .listing li.selected,
html:root .popover .menu .dropbutton a.dropdown:hover, html:root .ui-menu .ui-state-active, html:root .googie_list li.googie_list_onhover {
    color: var(--on-fg) !important; background-color: var(--on) !important;
}
html:root .popover .menu li.separator { color: var(--tx2); }
html:root .popover-header { color: var(--tx); }
html:root .ui-dialog { background: var(--surf); color: var(--tx); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--csh); overflow: hidden; }
html:root .ui-dialog .ui-dialog-titlebar, html:root .ui-dialog .ui-dialog-buttonpane { background: var(--surf2); color: var(--tx); border-color: var(--line); }
html:root .ui-widget-content, html:root .ui-widget-header { background: var(--surf); color: var(--tx); }
html:root .ui-widget-overlay { background: rgba(10, 12, 28, .45); }
html:root #messagestack div { border-radius: var(--r2); }
html:root #messagestack .alert-info, html:root #messagestack .alert-info.information, html:root #messagestack div.information { color: #fff; background-color: var(--btn-solid); border-color: transparent; }
html:root .quota-widget .bar { background: var(--surf2); border-color: var(--line); }
html:root .quota-widget .value { background: var(--btn); }
html:root .quota-widget, html:root .quota-info { color: var(--tx2); }

/* ---------- message view / compose ---------- */
html:root #message-header, html:root #message-header .header-headers, html:root .message-partheaders { color: var(--tx); }
html:root #message-header .header-title, html:root #message-header h2.subject { color: var(--tx); font-weight: 600; letter-spacing: -.01em; }
html:root #message-header .header-headers, html:root #message-header .header-headers a, html:root #message-header .date { color: var(--tx2); }
html:root .message-partheaders { background: var(--surf2); border-radius: var(--r2); }
html:root .attachmentslist { background: var(--surf2); border-color: var(--line); border-radius: var(--r2); }
html:root .attachmentslist li a, html:root .attachmentslist li { color: var(--tx); }
html:root .file-upload .attachmentslist { background: transparent; }
html:root #compose-content .formcontent, html:root #compose-headers { color: var(--tx); }
html:root div.tox { border-color: var(--inb); border-radius: var(--r2); }
html:root div.tox .tox-toolbar, html:root div.tox .tox-toolbar__primary, html:root div.tox .tox-toolbar-overlord, html:root div.tox .tox-editor-header { background: var(--surf2); }
html:root .html-editor .editor-toolbar { background: var(--surf2); border-color: var(--inb); }
html:root .image-upload, html:root #contactpic, html:root img.contactphoto { background-color: var(--surf2); }

/* ---------- 2FA plugin (twofactor_gauthenticator) ---------- */
html:root #twofactor_gauthenticator-form input[type=text], html:root #twofactor_gauthenticator-form input[type=password] {
    height: 36px; max-width: 100%; padding: 0 10px; margin: 3px 0; color: var(--tx); background: var(--surf);
    border: 1px solid var(--inb); border-radius: var(--r2); font-family: var(--fc); letter-spacing: .08em;
}
html:root #twofactor_gauthenticator-form input[type=text]:focus, html:root #twofactor_gauthenticator-form input[type=password]:focus {
    border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); outline: 0;
}
html:root #twofactor_gauthenticator-form .btn { margin: 3px 6px 3px 0; }
html:root #twofactor_gauthenticator-form .table td { color: var(--tx); border-color: var(--line); vertical-align: middle; }
html:root #twofactor_gauthenticator-form input[type=checkbox] { width: 18px; height: 18px; }
html:root input[name="_code_2FA"], html:root #\32 FA_code, html:root input[name="_code"] { font-family: var(--fc); letter-spacing: .2em; }
html:root div#\32 FA_qr_code { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--inb); border-radius: var(--r2); }

/* ---------- login / logout / error pages ---------- */
html:root body.task-login #layout-content, html:root body.task-error #layout-content { background: transparent; border: 0; box-shadow: none; }
html:root #login-form {
    background: var(--card); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--csh);
    padding: 36px 32px 28px; margin-top: 18px; color: var(--tx);
}
html:root body.task-login #logo { margin-bottom: 4px; }
html:root #login-form .input-group-text, html:root #login-form .input-group-prepend .input-group-text { background: var(--surf); color: var(--tx2); border-right: 0; }
html:root #login-form .input-group > .form-control, html:root #login-form .form-control { height: 46px; }
html:root #login-form .input-group-text { height: 46px; }
html:root #login-form .btn.submit, html:root #login-form #rcmloginsubmit { height: 46px; text-transform: none !important; letter-spacing: 0; font-weight: 600; font-size: 1.05rem; border-radius: var(--r3); }
html:root #login-footer, html:root #login-footer a, html:root body.task-login #layout-content .footer { color: var(--tx2); }
html:root #login-footer { font-family: var(--fu); font-size: .86rem; }
html:root #login-form td.title, html:root #login-form label { color: var(--tx2); }

/* ---------- scrollbars, misc ---------- */
html:root :not(.touch) ::-webkit-scrollbar-thumb { background-color: var(--inb); }
html:root :not(.touch) ::-webkit-scrollbar-track { background-color: transparent; }
html:root * { scrollbar-color: var(--inb) transparent; }
html:root .iframe-loader { background: var(--surf); }
html:root #rcmdraglayer { background: var(--btn-solid); color: #fff; }
html:root .ui.alert.boxinformation, html:root #messagestack .alert-info { border-radius: var(--r2); }
html:root .table-widget table, html:root table.records-table, html:root .listing { color: var(--tx); }
html:root .boxtitle, html:root .header-title { color: var(--tx); }

/* glass fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html:root #layout-menu, html:root #layout-sidebar, html:root #login-form { background: var(--pane-solid); }
}
@media (prefers-reduced-motion: reduce) {
    html:root * { transition: none !important; }
}

/* ---------------------------------------------------------------------------
 * Aurora Glass – tokens and skin-specific rules (D-055/D-056, canvas direction 1)
 * Frosted chrome (task menu, folder pane, login card) over a violet-to-cyan aurora;
 * message list and reading pane stay solid. Light = default, dark = user toggle.
 * ------------------------------------------------------------------------- */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
    src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
    src: url('../fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
    --app: radial-gradient(1100px 700px at 0% 0%, #DCD6FF 0%, rgba(220,214,255,0) 62%), radial-gradient(900px 700px at 100% 100%, #C9F1F8 0%, rgba(201,241,248,0) 60%), #EEF1FB;
    --rail: rgba(255,255,255,.5); --rail-fg: #4B5072; --rail-fg-h: #14172E; --rail-hover: rgba(90,63,224,.09);
    --rail-on: linear-gradient(135deg, #5A3FE0, #7A4BF0); --rail-on-fg: #FFFFFF; --rail-glow: 0 8px 22px -8px rgba(90,63,224,.7);
    --pane: rgba(255,255,255,.58); --pane-solid: #F6F7FD; --blur: blur(22px) saturate(1.5); --card: rgba(255,255,255,.66);
    --surf: #FFFFFF; --surf2: #F5F6FD; --hdr: #FFFFFF; --menu-bg: #FFFFFF;
    --line: rgba(40,44,90,.12); --line-soft: rgba(40,44,90,.07); --inb: #7C82A6;
    --tx: #14172E; --tx2: #4B5072; --ac: #5A3FE0; --ac-h: #4128C0; --ac2: #0B7C93; --dot: #0B7C93;
    --btn: linear-gradient(135deg, #5A3FE0, #7A4BF0); --btn-h: linear-gradient(135deg, #4A31CC, #6A3BDE); --btn-solid: #5A3FE0; --btn-fg: #FFFFFF;
    --btn-sh: 0 8px 24px -8px rgba(90,63,224,.65);
    --on: rgba(90,63,224,.12); --on-fg: #4A31C8; --on-sh: inset 0 0 0 1px rgba(90,63,224,.28), 0 6px 18px -8px rgba(90,63,224,.55);
    --sel: #EFECFC; --sel-sh: inset 3px 0 0 #5A3FE0; --hover: rgba(90,63,224,.06);
    --ok: #0E7A4E; --warn: #96590A; --bad: #BE2340; --focus: #5A3FE0;
    --r: 18px; --r2: 10px; --r3: 12px; --rc: 22px; --gap: 12px; --fold-m: 1px 8px;
    --sh: inset 0 1px 0 rgba(255,255,255,.7), 0 18px 40px -24px rgba(40,44,90,.35);
    --csh: inset 0 1px 0 rgba(255,255,255,.8), 0 30px 60px -30px rgba(40,44,90,.45);
    --pop-sh: 0 18px 40px -18px rgba(40,44,90,.45);
    --fu: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --fd: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --fc: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
html.dark-mode {
    --app: radial-gradient(1100px 700px at 0% 0%, #2A1F6B 0%, rgba(42,31,107,0) 62%), radial-gradient(900px 700px at 100% 100%, #0B3A4A 0%, rgba(11,58,74,0) 60%), #0A0C1C;
    --rail: rgba(22,25,52,.5); --rail-fg: #A8AED6; --rail-fg-h: #ECEEFF; --rail-hover: rgba(165,148,255,.12);
    --rail-on: linear-gradient(135deg, #5B3DE6, #7448EE); --rail-on-fg: #FFFFFF; --rail-glow: 0 0 24px -4px rgba(140,110,255,.8);
    --pane: rgba(22,25,52,.55); --pane-solid: #14172F; --card: rgba(22,25,52,.6);
    --surf: #12152B; --surf2: #181C38; --hdr: #12152B; --menu-bg: #181C38;
    --line: rgba(160,170,255,.14); --line-soft: rgba(160,170,255,.08); --inb: #6A72A6;
    --tx: #ECEEFF; --tx2: #A8AED6; --ac: #A594FF; --ac-h: #C3B8FF; --ac2: #56D6EE; --dot: #56D6EE;
    --btn: linear-gradient(135deg, #5B3DE6, #7448EE); --btn-h: linear-gradient(135deg, #4D30D4, #6538E0); --btn-solid: #5B3DE6; --btn-fg: #FFFFFF;
    --btn-sh: 0 0 26px -6px rgba(140,110,255,.8);
    --on: rgba(165,148,255,.16); --on-fg: #C9BFFF; --on-sh: inset 0 0 0 1px rgba(165,148,255,.35), 0 0 22px -6px rgba(140,110,255,.7);
    --sel: #2A294D; --sel-sh: inset 3px 0 0 #A594FF; --hover: rgba(165,148,255,.08);
    --ok: #4ADE9A; --warn: #F5B94A; --bad: #FF7A8F; --focus: #A594FF;
    --sh: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 48px -24px rgba(0,0,0,.7);
    --csh: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -30px rgba(0,0,0,.8);
    --pop-sh: 0 18px 44px -16px rgba(0,0,0,.8);
}

/* Floating glass panels – desktop only (Elastic's "large" layout, not inside iframes) */
html.layout-large:not(.iframe):root body:not(.task-login):not(.task-error) #layout { padding: var(--gap); gap: var(--gap); }
html.layout-large:not(.iframe):root body:not(.task-login):not(.task-error) #layout > div {
    border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden;
}
html.layout-large:not(.iframe):root #layout-menu { padding-top: 6px; }
html.layout-large:not(.iframe):root #layout-sidebar, html.layout-large:not(.iframe):root #layout-list { border-right: 1px solid var(--line); }
html.layout-large:not(.iframe):root #layout > div > .header { border-radius: var(--r) var(--r) 0 0; }
html.layout-large:not(.iframe):root #layout-sidebar > .header { background: transparent; }
html.layout-large:not(.iframe):root .column-resizer { opacity: 0; }

/* headings in Space Grotesk */
html:root #layout > div > .header .header-title { font-weight: 600; letter-spacing: -.01em; }
html:root body.task-login #login-form { max-width: 400px; }
