/* One palette for login, supervisors, agents and global administration. */
:root, html[data-siptelia-theme="pearl"] {
  color-scheme: light;
  --st-canvas: #f3f7fc; --st-surface: #fff; --st-raised: #eef5fc; --st-input: #fcfefe;
  --st-ink: #183a5a; --st-muted: #506c88; --st-line: #c1d9ed; --st-blue: #155fa8;
  --st-soft: #e6f2ff; --st-cyan: #087d89; --st-green: #10785e; --st-green-soft: #def5eb;
  --st-aqua: #087d89; --st-aqua-soft: #dcf5f2; --st-sky-soft: #e2f1ff; --st-smoke: #f4f6f6;
  --st-selected: linear-gradient(110deg, #dcecff, #e7f5ff 72%, #e1f7ef);
  --st-spectrum: linear-gradient(90deg, #3675c5, #66bcf3 40%, #61d1c2 78%, #e9fcf4);
  --st-button: linear-gradient(112deg, #1554a0, #126fae 62%, #087c86);
  --st-button-hover: linear-gradient(112deg, #124987, #0c619c 62%, #086b77);
  --st-ring: #2686db2b;
  --st-purple: #7657ab; --st-purple-soft: #f0ecfa; --st-red: #b53c4d; --st-red-soft: #fff0f1;
  --st-amber: #896416; --st-amber-soft: #fff5df; --st-edge: #fff; --st-shade: #1b50851a;
  --st-page: radial-gradient(ellipse at 96% 4%, #caeee766, transparent 36%), radial-gradient(ellipse at 18% 0, #c5e0ffa6, transparent 45%), linear-gradient(135deg, #f6f8f9, #f3f7f7 60%, #f8fcfc);
  --st-facet: linear-gradient(118deg, transparent 56%, #ffffffa6 56.15%, #ffffff24 69%, transparent 69.15%), linear-gradient(28deg, transparent 79%, #b9d9fb38 79.15%, #ffffff80);
  --st-card: var(--st-facet), radial-gradient(ellipse at 100% 0, #c5e6ff73, transparent 52%), linear-gradient(125deg, #ffffffed 44%, #f3faffeb 78%, #f0fbf7f2);
  --st-header: var(--st-facet), radial-gradient(ellipse at 15% 0, #a8d8ff9e, transparent 42%), linear-gradient(110deg, #edfaffeb, #fffffff2 43%, #dfedfff2 75%, #e5f7f3f2);
  --st-shadow: 0 10px 28px var(--st-shade), 0 2px 5px #3564780d, inset 0 1px 0 #fff, inset 0 -1px 0 #d7efea9c;
}
html[data-siptelia-theme="dark"] {
  color-scheme: dark;
  --st-canvas: #0c1422; --st-surface: #142236; --st-raised: #1a2b42; --st-input: #101d30;
  --st-ink: #e1ebf7; --st-muted: #a0b5cc; --st-line: #304762; --st-blue: #80c6ff;
  --st-soft: #1c3a58; --st-cyan: #79d9ee; --st-green: #79dcc0; --st-green-soft: #173d36;
  --st-aqua: #79d9dc; --st-aqua-soft: #183b42; --st-sky-soft: #1c3553; --st-smoke: #192c3c;
  --st-selected: linear-gradient(105deg, #193c42, #1c3553);
  --st-spectrum: linear-gradient(90deg, #4c9ed1, #48afa9 45%, #379678 78%, #264e43);
  --st-button: linear-gradient(112deg, #145da0, #116f92 55%, #087661);
  --st-button-hover: linear-gradient(112deg, #14588e, #09677d 55%, #076a54);
  --st-ring: #73d4d62b;
  --st-facet: linear-gradient(118deg, transparent 56%, #ffffff06 56.15%, transparent 69%);
  --st-purple: #c0acfa; --st-purple-soft: #302747; --st-red: #ffa7b5; --st-red-soft: #482836;
  --st-amber: #f3cf86; --st-amber-soft: #403524; --st-edge: #ffffff0d; --st-shade: #00000030;
  --st-page: radial-gradient(ellipse at 94% 5%, #163f632e, transparent 42%), linear-gradient(120deg, #0c1422, #101d30 56%, #0c1726);
  --st-card: radial-gradient(ellipse at 100% 0, #21466533, transparent 50%), linear-gradient(125deg, #142236 55%, #17293e);
  --st-header: radial-gradient(ellipse at 8% 0, #174e7180, transparent 38%), linear-gradient(112deg, #112337, #142035 42%, #1a2842 75%, #142236);
}
/* Aurora: luminous lavender, rose reflections and deep violet actions. */
html[data-siptelia-theme="aurora"] {
  color-scheme: light;
  --st-canvas:#f6f1fc; --st-surface:#fffcff; --st-raised:#f0e8f9; --st-input:#fffdff;
  --st-ink:#362746; --st-muted:#6d5b7d; --st-line:#dbcbe8; --st-blue:#69419e;
  --st-soft:#efe3ff; --st-cyan:#276e85; --st-green:#226d59; --st-green-soft:#e0f3e9;
  --st-aqua:#72509f; --st-aqua-soft:#efe5fa; --st-sky-soft:#e8edff; --st-smoke:#f5f0f7;
  --st-selected:linear-gradient(110deg,#eadcff,#f7e9f6 75%,#fff4eb);
  --st-spectrum:linear-gradient(90deg,#8256be,#c48be0 38%,#ecadba 72%,#eecfba);
  --st-button:linear-gradient(112deg,#654196,#8050a4 62%,#96466d);
  --st-button-hover:linear-gradient(112deg,#54317f,#6b3b8c 62%,#803859);
  --st-ring:#915bc82e; --st-purple:#7843a5; --st-purple-soft:#eee1fa;
  --st-red:#a3324d; --st-red-soft:#ffebf0; --st-amber:#81551a; --st-amber-soft:#fff2dc;
  --st-edge:#fff; --st-shade:#67418b18;
  --st-page:radial-gradient(ellipse at 94% 3%,#f8dbeb99,transparent 40%),radial-gradient(ellipse at 20% 0,#dfd2fa99,transparent 45%),linear-gradient(135deg,#f8f5fc,#f9f2f5 65%,#faf8f1);
  --st-facet:linear-gradient(125deg,transparent 65%,#ffffff9c 65.15%,#ffffff30 78%,transparent 78.15%);
  --st-card:var(--st-facet),radial-gradient(ellipse at 100% 0,#efdff75c,transparent 60%),linear-gradient(125deg,#fffcff 42%,#f9f1f8);
  --st-header:var(--st-facet),linear-gradient(110deg,#eadcf8,#fffaff 46%,#f9dfe7);
  --st-shadow:0 8px 24px var(--st-shade),inset 0 1px 0 var(--st-edge);
}
/* Tecnológico: layered ink surfaces, cyan light and restrained violet accents. */
html[data-siptelia-theme="tech"] {
  color-scheme:dark;
  --st-canvas:#0b1223; --st-surface:#111d31; --st-raised:#192843; --st-input:#0e192d;
  --st-ink:#e4efff; --st-muted:#a4b6d0; --st-line:#334d70; --st-blue:#70d6f4;
  --st-soft:#17344c; --st-cyan:#70ddec; --st-green:#79debf; --st-green-soft:#143e36;
  --st-aqua:#79dcec; --st-aqua-soft:#163b4b; --st-sky-soft:#213256; --st-smoke:#16243a;
  --st-selected:linear-gradient(110deg,#173c51,#243653 70%,#302c52);
  --st-spectrum:linear-gradient(90deg,#35b5d6,#74dcf2 42%,#8c7cec 76%,#bb93ed);
  --st-button:linear-gradient(112deg,#17618f,#245aa0 57%,#62449a);
  --st-button-hover:linear-gradient(112deg,#12547e,#204f8e 57%,#553885);
  --st-ring:#60d9f22b; --st-purple:#c4afff; --st-purple-soft:#302849;
  --st-red:#ffabba; --st-red-soft:#442636; --st-amber:#f2ce8b; --st-amber-soft:#3c3225;
  --st-edge:#83ccff18; --st-shade:#00000040;
  --st-page:radial-gradient(ellipse at 94% 0,#42366945,transparent 42%),radial-gradient(ellipse at 10% 0,#15557338,transparent 38%),linear-gradient(125deg,#0b1223,#101b30);
  --st-facet:linear-gradient(122deg,transparent 72%,#79bfff07 72.15%,transparent 88%);
  --st-card:var(--st-facet),radial-gradient(ellipse at 100% 0,#38587528,transparent 56%),linear-gradient(125deg,#111d31,#17243b);
  --st-header:var(--st-facet),linear-gradient(110deg,#133448,#132038 46%,#292440);
  --st-shadow:0 9px 28px var(--st-shade),inset 0 1px 0 var(--st-edge);
}
/* Paz: warm ivory, sage and quiet solid surfaces. No continuous animation. */
html[data-siptelia-theme="peace"] {
  color-scheme:light;
  --st-canvas:#f5f6ee; --st-surface:#fffef9; --st-raised:#edf0e6; --st-input:#fffffc;
  --st-ink:#30473e; --st-muted:#5b7063; --st-line:#c9d6c7; --st-blue:#3e6b58;
  --st-soft:#e4eee2; --st-cyan:#396c68; --st-green:#376952; --st-green-soft:#e2f0de;
  --st-aqua:#426e5a; --st-aqua-soft:#e5eee0; --st-sky-soft:#e8efe9; --st-smoke:#f2f2e9;
  --st-selected:linear-gradient(110deg,#e1edde,#f0f0e1);
  --st-spectrum:linear-gradient(90deg,#678970,#9ebba0 46%,#c8cba9 78%,#e4dec4);
  --st-button:linear-gradient(112deg,#3d6454,#4c7055 65%,#586e4b);
  --st-button-hover:linear-gradient(112deg,#315344,#3f6047 65%,#495e3d);
  --st-ring:#678b632b; --st-purple:#705584; --st-purple-soft:#f0eaf5;
  --st-red:#a63c45; --st-red-soft:#fcedeb; --st-amber:#805c22; --st-amber-soft:#faf0d9;
  --st-edge:#ffffffbf; --st-shade:#354b3612;
  --st-page:radial-gradient(ellipse at 92% 0,#dfe8d766,transparent 45%),linear-gradient(135deg,#f7f8f1,#f4f4eb 70%,#f8f6ee);
  --st-facet:linear-gradient(125deg,transparent 78%,#ffffff50 78.15%,transparent 94%);
  --st-card:linear-gradient(125deg,#fffefbf5,#f5f7eef5);
  --st-header:linear-gradient(110deg,#e8efe1,#fffef8 52%,#f0edda);
  --st-shadow:0 6px 20px var(--st-shade),inset 0 1px 0 var(--st-edge);
}
html[data-siptelia-theme] {
  --siptelia-navy: var(--st-ink); --siptelia-ink: var(--st-ink); --siptelia-blue: var(--st-blue);
  --siptelia-muted: var(--st-muted); --siptelia-canvas: var(--st-canvas); --siptelia-panel: var(--st-surface);
  --siptelia-line: var(--st-line); --siptelia-shadow: var(--st-shadow);
}
html .siptelia-theme-picker { display: inline-flex; align-items: center; position: relative; flex-shrink: 0; color: var(--st-blue); }
html .siptelia-theme-picker > svg { position: absolute; left: 10px; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; z-index: 1; }
html .siptelia-theme-picker::after { content: ''; position: absolute; right: 12px; top: calc(50% - 4px); width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
html .siptelia-theme-picker > select {
  appearance: none; -webkit-appearance: none;
  display: block; width: 160px; max-width: 100%; height: 34px; min-height: 34px; margin: 0;
  padding: 6px 21px 6px 32px; border: 1px solid var(--st-line); border-radius: 9px;
  color: var(--st-ink); background-color: var(--st-surface); background-image: none;
  font: 500 11px/1.4 system-ui, sans-serif; cursor: pointer; box-shadow: var(--st-shadow);
}
html .siptelia-theme-picker > select:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
html .siptelia-theme-picker > select option { background: var(--st-surface); color: var(--st-ink); }
.main-header .navbar-nav > .theme-menu-item { padding: 8px 10px; }
.siptelia-login-appearance { position: absolute; top: 18px; right: 22px; z-index: 3; }
@media (max-width: 1100px) { html .siptelia-theme-picker > select { width: 125px; } }
@media (max-width: 580px) {
  html .siptelia-theme-picker > select { width: 120px; font-size: 10px; padding-left: 25px; }
  html .siptelia-theme-picker > svg { left: 7px; width: 13px; height: 13px; }
  .main-header .navbar-nav > .theme-menu-item { padding: 8px 4px; }
  .siptelia-login-appearance { top: 10px; right: 12px; }
}
@media (pointer: coarse) { html .siptelia-theme-picker > select { min-height: 42px; } .main-header .navbar-nav > .theme-menu-item { padding-top: 4px; padding-bottom: 4px; } }
@media (prefers-reduced-motion: reduce) { .siptelia-theme-picker * { transition: none !important; } }

/* Visible feedback without continuously animated backgrounds. */
:where(.siptelia-portal, .siptelia-login, .platform-page) :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--st-blue); outline-offset: 3px;
}
:where(.siptelia-portal, .siptelia-login, .platform-page) :is(input, textarea)::placeholder { color: var(--st-muted); opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  :where(.siptelia-portal, .siptelia-login, .platform-page) * { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
