/* KOVRA THEME TOKENS — solid palettes only.
   Components consume these variables directly from their own CSS.
   No visual overlay, filter, opacity layer or translucent theme surface. */

:root{
  --theme-bg:#020604;
  --theme-bg-alt:#050a07;
  --theme-surface:#101D15;
  --theme-surface-2:#1A2A20;
  --theme-surface-3:#263A2C;
  --theme-input:#06100c;
  --theme-border:#334a3b;
  --theme-border-strong:#506858;
  --theme-text:#f4f7f5;
  --theme-text-2:#c8d2cc;
  --theme-muted:#a1ada5;
  --theme-accent:#35e86a;
  --theme-accent-strong:#22c957;
  --theme-accent-soft:#11311b;
  --theme-on-accent:#031007;
  --theme-success:#35e86a;
  --theme-success-soft:#11311b;
  --theme-warning:#d9a23b;
  --theme-warning-soft:#332613;
  --theme-danger:#ef625f;
  --theme-danger-soft:#35191a;
  --theme-info:#73b6ff;
  --theme-info-soft:#122a3f;
  --theme-purple:#a58cff;
  --theme-purple-soft:#251f43;
  --theme-orange:#e68a43;
  --theme-orange-soft:#352318;
  --theme-nav:#08100c;
  --theme-on-nav:#f4f7f5;
}

:root[data-kovra-theme="light"]{
  --theme-bg:#e7ecef;
  --theme-bg-alt:#dde4e8;
  --theme-surface:#ffffff;
  --theme-surface-2:#ECF1F4;
  --theme-surface-3:#DAE3E8;
  --theme-input:#fbfcfd;
  --theme-border:#acb9c1;
  --theme-border-strong:#8798a3;
  --theme-text:#111820;
  --theme-text-2:#34414b;
  --theme-muted:#53626d;
  --theme-accent:#126f3d;
  --theme-accent-strong:#0e6336;
  --theme-accent-soft:#d9eee2;
  --theme-on-accent:#ffffff;
  --theme-success:#176f3d;
  --theme-success-soft:#dcefe4;
  --theme-warning:#8c5700;
  --theme-warning-soft:#f7e7c7;
  --theme-danger:#b83434;
  --theme-danger-soft:#f8dddd;
  --theme-info:#1f63a8;
  --theme-info-soft:#dce9f6;
  --theme-purple:#6948a8;
  --theme-purple-soft:#e8e0f5;
  --theme-orange:#8f3f19;
  --theme-orange-soft:#f3dfd2;
  --theme-nav:#ffffff;
  --theme-on-nav:#1d2a32;
  color-scheme:light;
}

:root[data-kovra-theme="dark"]{
  --theme-bg:#070809;
  --theme-bg-alt:#0c0e10;
  --theme-surface:#1A1D21;
  --theme-surface-2:#272C32;
  --theme-surface-3:#353B43;
  --theme-input:#0e1012;
  --theme-border:#3c4249;
  --theme-border-strong:#59616b;
  --theme-text:#f4f6f8;
  --theme-text-2:#d3d8de;
  --theme-muted:#9fa7b0;
  --theme-accent:#c7ced6;
  --theme-accent-strong:#e2e7ec;
  --theme-accent-soft:#2a2f35;
  --theme-on-accent:#121417;
  --theme-success:#46cf7f;
  --theme-success-soft:#183323;
  --theme-warning:#e4ad53;
  --theme-warning-soft:#362a19;
  --theme-danger:#ed7070;
  --theme-danger-soft:#392020;
  --theme-info:#6daaf0;
  --theme-info-soft:#182b40;
  --theme-purple:#a88cf1;
  --theme-purple-soft:#2b2442;
  --theme-orange:#dc8a58;
  --theme-orange-soft:#35251c;
  --theme-nav:#0d0f11;
  --theme-on-nav:#f4f6f8;
  color-scheme:dark;
}

:root[data-kovra-theme="sand"]{
  --theme-bg:#e7dccb;
  --theme-bg-alt:#d9cbb6;
  --theme-surface:#fff8ec;
  --theme-surface-2:#f3e7d4;
  --theme-surface-3:#e8d7bd;
  --theme-input:#fffdf8;
  --theme-border:#bca681;
  --theme-border-strong:#927956;
  --theme-text:#2b1f14;
  --theme-text-2:#584531;
  --theme-muted:#66533f;
  --theme-accent:#9B4318;
  --theme-accent-strong:#8f3f17;
  --theme-accent-soft:#f1d7c6;
  --theme-on-accent:#ffffff;
  --theme-success:#36713d;
  --theme-success-soft:#dcebdc;
  --theme-warning:#895706;
  --theme-warning-soft:#f6e3bd;
  --theme-danger:#a93232;
  --theme-danger-soft:#f3d7d4;
  --theme-info:#2c6593;
  --theme-info-soft:#dce8f0;
  --theme-purple:#71529a;
  --theme-purple-soft:#e7dcf1;
  --theme-orange:#873b12;
  --theme-orange-soft:#f4dac7;
  --theme-nav:#fff8ec;
  --theme-on-nav:#2b1f14;
  color-scheme:light;
}

:root[data-kovra-theme="indigo"]{
  --theme-bg:#120e24;
  --theme-bg-alt:#19132f;
  --theme-surface:#211a3a;
  --theme-surface-2:#2c244a;
  --theme-surface-3:#382e5a;
  --theme-input:#181329;
  --theme-border:#645581;
  --theme-border-strong:#806da4;
  --theme-text:#f9f7ff;
  --theme-text-2:#ddd7ee;
  --theme-muted:#c2b9d6;
  --theme-accent:#AD8AF5;
  --theme-accent-strong:#8058d5;
  --theme-accent-soft:#352657;
  --theme-on-accent:#160d28;
  --theme-success:#43d082;
  --theme-success-soft:#183c2a;
  --theme-warning:#f0b84f;
  --theme-warning-soft:#3b2c19;
  --theme-danger:#f16d7b;
  --theme-danger-soft:#402129;
  --theme-info:#65aaf5;
  --theme-info-soft:#1b3150;
  --theme-purple:#b295ff;
  --theme-purple-soft:#3a2d61;
  --theme-orange:#ed8a57;
  --theme-orange-soft:#41271d;
  --theme-nav:#19132f;
  --theme-on-nav:#f9f7ff;
  color-scheme:dark;
}

:root[data-kovra-theme="steel"]{
  --theme-bg:#07111A;--theme-bg-alt:#0B1722;--theme-surface:#102231;--theme-surface-2:#153044;--theme-surface-3:#1B3D55;--theme-input:#0D1B27;
  --theme-border:#35556C;--theme-border-strong:#4F7792;--theme-text:#F3F7FA;--theme-text-2:#D1DEE7;--theme-muted:#9EB0BD;
  --theme-accent:#70B6D9;--theme-accent-strong:#9CCFE6;--theme-accent-soft:#18384B;--theme-on-accent:#07131B;
  --theme-success:#4BCB8A;--theme-success-soft:#14392A;--theme-warning:#E5B45B;--theme-warning-soft:#3B2D16;
  --theme-danger:#EF707A;--theme-danger-soft:#3C1F27;--theme-info:#78BFFF;--theme-info-soft:#163554;
  --theme-purple:#A18CEB;--theme-purple-soft:#2E2749;--theme-orange:#E1935D;--theme-orange-soft:#3D281E;
  --theme-nav:#0B1823;--theme-on-nav:#F3F7FA;color-scheme:dark;
}
:root[data-kovra-theme="gold"]{
  --theme-bg:#D7BF66;--theme-bg-alt:#C9AB4E;--theme-surface:#F8EDB8;--theme-surface-2:#EBD784;--theme-surface-3:#DBC461;--theme-input:#FFF7D4;
  --theme-border:#A68A32;--theme-border-strong:#7F661A;--theme-text:#2B2208;--theme-text-2:#4B3D14;--theme-muted:#5B4A16;
  --theme-accent:#6F4700;--theme-accent-strong:#6F4700;--theme-accent-soft:#E7CE72;--theme-on-accent:#FFF8DD;
  --theme-success:#26613C;--theme-success-soft:#D7E9D4;--theme-warning:#8A4F00;--theme-warning-soft:#F4D58F;
  --theme-danger:#982727;--theme-danger-soft:#F2D0C7;--theme-info:#275F9B;--theme-info-soft:#D4E3ED;
  --theme-purple:#6644A1;--theme-purple-soft:#DDD2ED;--theme-orange:#88400C;--theme-orange-soft:#EBC99B;
  --theme-nav:#F0DF98;--theme-on-nav:#2B2208;color-scheme:light;
}
:root[data-kovra-theme="amber"]{
  --theme-bg:#E2D0A4;--theme-bg-alt:#D5C08D;--theme-surface:#F7EBCB;--theme-surface-2:#EAD9AD;--theme-surface-3:#DCC896;--theme-input:#FFF5D9;
  --theme-border:#B39A64;--theme-border-strong:#8C743F;--theme-text:#2B2418;--theme-text-2:#514632;--theme-muted:#59482F;
  --theme-accent:#864A0C;--theme-accent-strong:#9A5915;--theme-accent-soft:#F0D5A6;--theme-on-accent:#FFF5E0;
  --theme-success:#28683E;--theme-success-soft:#D9E8D5;--theme-warning:#764700;--theme-warning-soft:#F2D693;
  --theme-danger:#982B28;--theme-danger-soft:#F1D4C8;--theme-info:#2C6094;--theme-info-soft:#D4E2EC;
  --theme-purple:#6A4D9D;--theme-purple-soft:#DDD4EB;--theme-orange:#823D0D;--theme-orange-soft:#EBC79F;
  --theme-nav:#F1E0B9;--theme-on-nav:#2B2418;color-scheme:light;
}
:root[data-kovra-theme="crimson"]{
  --theme-bg:#1A090D;--theme-bg-alt:#230D13;--theme-surface:#30131B;--theme-surface-2:#3A1721;--theme-surface-3:#49202B;--theme-input:#240F16;
  --theme-border:#6A3542;--theme-border-strong:#8B485A;--theme-text:#FFF7F8;--theme-text-2:#E7D1D6;--theme-muted:#C19DA6;
  --theme-accent:#EE6578;--theme-accent-strong:#F27A89;--theme-accent-soft:#4A1D28;--theme-on-accent:#21080E;
  --theme-success:#49CA84;--theme-success-soft:#18382A;--theme-warning:#F0B44E;--theme-warning-soft:#3D2D17;
  --theme-danger:#FF8065;--theme-danger-soft:#47231D;--theme-info:#69AFFF;--theme-info-soft:#182E4A;
  --theme-purple:#B28DF2;--theme-purple-soft:#33274C;--theme-orange:#EF9255;--theme-orange-soft:#43271E;
  --theme-nav:#230D13;--theme-on-nav:#FFF7F8;color-scheme:dark;
}
:root[data-kovra-theme="emerald"]{
  --theme-bg:#061713;--theme-bg-alt:#0A211B;--theme-surface:#0F2B23;--theme-surface-2:#15382E;--theme-surface-3:#1E493C;--theme-input:#0B241D;
  --theme-border:#346B59;--theme-border-strong:#4A8B74;--theme-text:#F3FAF7;--theme-text-2:#D0E4DC;--theme-muted:#9AB9AD;
  --theme-accent:#45B98E;--theme-accent-strong:#69D3A9;--theme-accent-soft:#173F33;--theme-on-accent:#061712;
  --theme-success:#57D99A;--theme-success-soft:#16432F;--theme-warning:#E7B550;--theme-warning-soft:#3C2E18;
  --theme-danger:#EF6F73;--theme-danger-soft:#3D2023;--theme-info:#6AB9E9;--theme-info-soft:#17364A;
  --theme-purple:#A388E7;--theme-purple-soft:#2E2948;--theme-orange:#E58D53;--theme-orange-soft:#3D281D;
  --theme-nav:#0A211B;--theme-on-nav:#F3FAF7;color-scheme:dark;
}
:root[data-kovra-theme="cobalt"]{
  --theme-bg:#0A1024;--theme-bg-alt:#0F1633;--theme-surface:#162044;--theme-surface-2:#1D2A57;--theme-surface-3:#293870;--theme-input:#101934;
  --theme-border:#445B93;--theme-border-strong:#6078B8;--theme-text:#F7F8FF;--theme-text-2:#D8DDF1;--theme-muted:#AAB4D5;
  --theme-accent:#8EA4FF;--theme-accent-strong:#8A78F2;--theme-accent-soft:#263763;--theme-on-accent:#0A1024;
  --theme-success:#4DD18A;--theme-success-soft:#173A2A;--theme-warning:#EAB04D;--theme-warning-soft:#3B2D16;
  --theme-danger:#F06E79;--theme-danger-soft:#3E2028;--theme-info:#6BB8FF;--theme-info-soft:#183552;
  --theme-purple:#A689FF;--theme-purple-soft:#30285B;--theme-orange:#E58B55;--theme-orange-soft:#3D281F;
  --theme-nav:#0F1633;--theme-on-nav:#F7F8FF;color-scheme:dark;
}

:root[data-kovra-theme="rosemary1"]{
  --theme-bg:#2B1B16;--theme-bg-alt:#38241D;--theme-surface:#493126;--theme-surface-2:#5A3D30;--theme-surface-3:#6D4B3B;--theme-input:#35231C;
  --theme-border:#805C49;--theme-border-strong:#A66A4F;--theme-text:#FFF9F5;--theme-text-2:#E8D7CD;--theme-muted:#E4CABD;
  --theme-accent:#E7B39A;--theme-accent-strong:#C88969;--theme-accent-soft:#654435;--theme-on-accent:#0D0604;
  --theme-success:#52C98A;--theme-success-soft:#173B2A;--theme-warning:#E7B75A;--theme-warning-soft:#3B2D18;
  --theme-danger:#EF7378;--theme-danger-soft:#422126;--theme-info:#72B7EE;--theme-info-soft:#19344A;
  --theme-purple:#AA8AE4;--theme-purple-soft:#302747;--theme-orange:#E28D58;--theme-orange-soft:#43291F;
  --theme-nav:#38241D;--theme-on-nav:#FFF9F5;color-scheme:dark;
}
:root[data-kovra-theme="rosemary2"]{
  --theme-bg:#8FD3F4;--theme-bg-alt:#79C4E9;--theme-surface:#EFFAFF;--theme-surface-2:#D8F0FB;--theme-surface-3:#BCE4F6;--theme-input:#F8FDFF;
  --theme-border:#71AFCB;--theme-border-strong:#4F92B0;--theme-text:#102932;--theme-text-2:#294B58;--theme-muted:#405F6A;
  --theme-accent:#17678B;--theme-accent-strong:#1E6483;--theme-accent-soft:#BDE6F6;--theme-on-accent:#FFFFFF;
  --theme-success:#24623E;--theme-success-soft:#D6ECDD;--theme-warning:#8C5A00;--theme-warning-soft:#F5E2B4;
  --theme-danger:#982730;--theme-danger-soft:#F4D8D8;--theme-info:#1F669A;--theme-info-soft:#D2EAF6;
  --theme-purple:#654D9E;--theme-purple-soft:#E1D9F0;--theme-orange:#783713;--theme-orange-soft:#F0D5C1;
  --theme-nav:#CBEAF8;--theme-on-nav:#102932;color-scheme:light;
}
:root[data-kovra-theme="rosemary3"]{
  --theme-bg:#34340D;--theme-bg-alt:#444412;--theme-surface:#555518;--theme-surface-2:#66661E;--theme-surface-3:#777727;--theme-input:#414112;
  --theme-border:#777742;--theme-border-strong:#9A9A5C;--theme-text:#FBFBEF;--theme-text-2:#E4E4C9;--theme-muted:#FFFFEF;
  --theme-accent:#E4E48C;--theme-accent-strong:#F0F0AA;--theme-accent-soft:#5A5A18;--theme-on-accent:#0D0D02;
  --theme-success:#5BCB86;--theme-success-soft:#183B28;--theme-warning:#E8B94E;--theme-warning-soft:#3C2E16;
  --theme-danger:#EF7474;--theme-danger-soft:#402021;--theme-info:#72B7EA;--theme-info-soft:#193448;
  --theme-purple:#A68BE5;--theme-purple-soft:#302748;--theme-orange:#E09155;--theme-orange-soft:#422A1E;
  --theme-nav:#444412;--theme-on-nav:#FBFBEF;color-scheme:dark;
}
:root[data-kovra-theme="rosemary4"]{
  --theme-bg:#F5F5DC;--theme-bg-alt:#E9E4CA;--theme-surface:#FFFDF0;--theme-surface-2:#EFE9D2;--theme-surface-3:#DDD5B8;--theme-input:#FFFDF6;
  --theme-border:#BFB596;--theme-border-strong:#95896A;--theme-text:#2D2A21;--theme-text-2:#4F493A;--theme-muted:#58513F;
  --theme-accent:#6A5534;--theme-accent-strong:#6A573A;--theme-accent-soft:#DED4B8;--theme-on-accent:#FFFDF3;
  --theme-success:#2B6840;--theme-success-soft:#DCEBDA;--theme-warning:#8B5900;--theme-warning-soft:#F3DFAE;
  --theme-danger:#952C2C;--theme-danger-soft:#F2D7CE;--theme-info:#2A6294;--theme-info-soft:#D6E5EE;
  --theme-purple:#6C5198;--theme-purple-soft:#E1D8EC;--theme-orange:#7F3A13;--theme-orange-soft:#EDD0B6;
  --theme-nav:#ECE6CF;--theme-on-nav:#2D2A21;color-scheme:light;
}

:root[data-kovra-theme="rosemary5"]{
  /* Rosmeri 5: exactly three colors, distributed semantically — brown, olive, beige. */
  --theme-bg:#4B3621;--theme-bg-alt:#57462A;--theme-surface:#564527;--theme-surface-2:#5F522A;--theme-surface-3:#4D4025;--theme-input:#493A22;
  --theme-border:#918357;--theme-border-strong:#D8CBA6;--theme-text:#F5F0DC;--theme-text-2:#F5F0DC;--theme-muted:#F5F0DC;
  --theme-accent:#F5F0DC;--theme-accent-strong:#F5F0DC;--theme-accent-soft:#655C33;--theme-on-accent:#4B3621;
  --theme-success:#F5F0DC;--theme-success-soft:#524E27;--theme-warning:#F5F0DC;--theme-warning-soft:#574829;
  --theme-danger:#F5F0DC;--theme-danger-soft:#583B29;--theme-info:#F5F0DC;--theme-info-soft:#4C4E29;
  --theme-purple:#F5F0DC;--theme-purple-soft:#564527;--theme-orange:#F5F0DC;--theme-orange-soft:#584629;
  --theme-nav:#4B3621;--theme-on-nav:#F5F0DC;color-scheme:light;
}

:root[data-kovra-theme="agua"]{
  /* Agua: tonos profundos para separar superficies y mantener lectura clara. */
  --theme-bg:#071820;
  --theme-bg-alt:#0B2029;
  --theme-surface:#102A35;
  --theme-surface-2:#173945;
  --theme-surface-3:#214957;
  --theme-input:#0B222B;
  --theme-border:#315D68;
  --theme-border-strong:#4B7F8B;
  --theme-text:#F2FAFC;
  --theme-text-2:#C4DCE1;
  --theme-muted:#A1C0C7;
  --theme-accent:#48D6D0;
  --theme-accent-strong:#24AFAF;
  --theme-accent-soft:#123B43;
  --theme-on-accent:#052128;
  --theme-success:#4BCB8A;
  --theme-success-soft:#14392A;
  --theme-warning:#E5B45B;
  --theme-warning-soft:#3B2D16;
  --theme-danger:#EF707A;
  --theme-danger-soft:#3C1F27;
  --theme-info:#78BFFF;
  --theme-info-soft:#163554;
  --theme-purple:#A18CEB;
  --theme-purple-soft:#2E2749;
  --theme-orange:#E1935D;
  --theme-orange-soft:#3D281E;
  --theme-nav:#0A2029;
  --theme-on-nav:#F3FAFC;
  color-scheme:dark;
}

/* Compatibility aliases used by the existing application CSS. */
:root{
  --background:var(--theme-bg);--background-soft:var(--theme-bg-alt);--bg:var(--theme-bg);--bg2:var(--theme-bg-alt);
  --card:var(--theme-surface);--card-light:var(--theme-surface-2);--card-2:var(--theme-surface-2);--card2:var(--theme-surface-2);--card-3:var(--theme-surface-3);
  --panel:var(--theme-surface);--panel2:var(--theme-surface-2);--panel3:var(--theme-surface-3);
  --border:var(--theme-border);--border2:var(--theme-border-strong);--line:var(--theme-border);--line2:var(--theme-border-strong);
  --text:var(--theme-text);--text-soft:var(--theme-muted);--soft:var(--theme-muted);--muted:var(--theme-muted);--muted2:var(--theme-text-2);
  --green:var(--theme-accent);--green-2:var(--theme-accent-strong);--green2:var(--theme-accent-strong);--green-dark:var(--theme-accent-strong);
  --green-bright:var(--theme-accent);--green-soft:var(--theme-accent-soft);--green-line:var(--theme-border-strong);
  --danger:var(--theme-danger);--danger-soft:var(--theme-danger-soft);--red:var(--theme-danger);
  --orange:var(--theme-orange);--orange-soft:var(--theme-orange-soft);--yellow:var(--theme-warning);--warn:var(--theme-warning);--gold:var(--theme-warning);
  --blue:var(--theme-info);--purple:var(--theme-purple);--amber:var(--theme-warning);
  --paper:var(--theme-surface);--sheet:var(--theme-surface);--theme-text-muted:var(--theme-muted);

  --kh-bg:var(--theme-bg);--kh-panel:var(--theme-surface);--kh-panel-2:var(--theme-surface-2);--kh-line:var(--theme-border);
  --kh-text:var(--theme-text);--kh-muted:var(--theme-muted);--kh-green:var(--theme-accent);--kh-danger:var(--theme-danger);--kh-warning:var(--theme-warning);

  --kc-bg:var(--theme-bg);--kc-panel:var(--theme-surface);--kc-line:var(--theme-border);--kc-text:var(--theme-text);--kc-muted:var(--theme-muted);
  --kc-green:var(--theme-accent);--kc-danger:var(--theme-danger);

  --kl-bg:var(--theme-bg);--kl-panel:var(--theme-surface);--kl-line:var(--theme-border);--kl-text:var(--theme-text);--kl-muted:var(--theme-muted);
  --kl-green:var(--theme-accent);--kl-danger:var(--theme-danger);--kl-warning:var(--theme-warning);--kl-orange:var(--theme-orange);

  --kcol-bg:var(--theme-bg);--kcol-panel:var(--theme-surface);--kcol-line:var(--theme-border);--kcol-text:var(--theme-text);--kcol-muted:var(--theme-muted);
  --kcol-green:var(--theme-accent);--kcol-danger:var(--theme-danger);--kcol-warning:var(--theme-warning);--kcol-orange:var(--theme-orange);

  --kri-bg:var(--theme-bg);--kri-panel:var(--theme-surface);--kri-panel2:var(--theme-surface-2);--kri-line:var(--theme-border);--kri-softline:var(--theme-border);
  --kri-text:var(--theme-text);--kri-soft:var(--theme-text-2);--kri-muted:var(--theme-muted);--kri-green:var(--theme-accent);
  --kri-danger:var(--theme-danger);--kri-warn:var(--theme-warning);--kri-blue:var(--theme-info);

  --km-bg:var(--theme-bg);--km-panel:var(--theme-surface);--km-panel2:var(--theme-surface-2);--km-border:var(--theme-border-strong);--km-border-soft:var(--theme-border);
  --km-green:var(--theme-accent);--km-green2:var(--theme-accent-strong);--km-text:var(--theme-text);--km-muted:var(--theme-muted);--km-soft:var(--theme-text-2);

  --kbpc-bg:var(--theme-bg);--kbpc-panel:var(--theme-surface);--kbpc-panel-2:var(--theme-surface-2);--kbpc-panel-3:var(--theme-surface-3);
  --kbpc-line:var(--theme-border);--kbpc-line-soft:var(--theme-border);--kbpc-green:var(--theme-accent);--kbpc-green-2:var(--theme-accent-strong);
  --kbpc-text:var(--theme-text);--kbpc-soft:var(--theme-text-2);--kbpc-muted:var(--theme-muted);--kbpc-muted-2:var(--theme-muted);
  --kbpc-danger:var(--theme-danger);--kbpc-warn:var(--theme-warning);

  --pcp-bg:var(--theme-bg);--pcp-panel:var(--theme-surface);--pcp-panel2:var(--theme-surface-2);--pcp-line:var(--theme-border);--pcp-softline:var(--theme-border);
  --pcp-green:var(--theme-accent);--pcp-text:var(--theme-text);--pcp-soft:var(--theme-text-2);--pcp-muted:var(--theme-muted);--pcp-danger:var(--theme-danger);--pcp-warn:var(--theme-warning);

  --ksc-bg:var(--theme-bg);--ksc-panel:var(--theme-surface);--ksc-panel-2:var(--theme-surface-2);--ksc-panel-3:var(--theme-surface-3);
  --ksc-line:var(--theme-border);--ksc-line-soft:var(--theme-border);--ksc-green:var(--theme-accent);--ksc-green-2:var(--theme-accent-strong);
  --ksc-text:var(--theme-text);--ksc-soft:var(--theme-text-2);--ksc-muted:var(--theme-muted);--ksc-danger:var(--theme-danger);--ksc-warning:var(--theme-warning);--ksc-blue:var(--theme-info);

  --business-green:var(--theme-accent);--business-bg:var(--theme-bg);--business-card:var(--theme-surface);--business-card-2:var(--theme-surface-2);
  --business-border:var(--theme-border);--business-soft:var(--theme-muted);--business-danger:var(--theme-danger);

  --auth-bg:var(--theme-bg);--auth-panel:var(--theme-surface);--auth-panel-2:var(--theme-surface-2);--auth-line:var(--theme-border-strong);
  --auth-line-soft:var(--theme-border);--auth-green:var(--theme-accent);--auth-green-2:var(--theme-accent-strong);--auth-text:var(--theme-text);--auth-soft:var(--theme-muted);
}

html{background:var(--theme-bg);color:var(--theme-text)}
html[data-kovra-theme-switching] *,
html[data-kovra-theme-switching] *::before,
html[data-kovra-theme-switching] *::after{transition-duration:0s!important;animation-duration:0s!important}

/* Only fundamental element semantics live here. Components keep their own CSS. */
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) body{background:var(--theme-bg);color:var(--theme-text)}
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) input,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) select,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) textarea{background:var(--theme-input);border-color:var(--theme-border);color:var(--theme-text)}
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) input::placeholder,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) textarea::placeholder{color:var(--theme-muted)}
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .positive,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .success{color:var(--theme-success)}
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .warning,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .pending{color:var(--theme-warning)}
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .danger,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .late,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .overdue,
:root[data-kovra-theme]:not([data-kovra-theme="classic"]) .error{color:var(--theme-danger)}

/* Theme selector */
.theme-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.theme-choice{position:relative;min-height:92px;padding:12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-2);color:var(--theme-text);text-align:left;cursor:pointer}
.theme-choice.active{border-color:var(--theme-accent);outline:2px solid var(--theme-accent)}
.theme-choice strong,.theme-choice small{display:block}.theme-choice strong{font-size:14px;line-height:1.2}.theme-choice small{margin-top:5px;color:var(--theme-muted);font-size:12.5px;line-height:1.35}.theme-choice[data-premium="true"]{border-color:var(--theme-border-strong)}.theme-choice[data-premium="true"]:not([data-special="true"])::after{content:"PREMIUM";position:absolute;top:9px;right:9px;padding:3px 6px;border:1px solid var(--theme-border-strong);border-radius:5px;background:var(--theme-surface-3);color:var(--theme-text-2);font-size:9px;font-weight:850;letter-spacing:.08em}.theme-choice[data-special="true"]{border-width:2px;border-color:var(--theme-accent)}.theme-choice[data-special="true"]::after{content:"EDICIÓN ESPECIAL";position:absolute;top:8px;right:8px;padding:3px 6px;border:1px solid var(--theme-border-strong);border-radius:5px;background:var(--theme-surface-3);color:var(--theme-text-2);font-size:8.5px;font-weight:900;letter-spacing:.055em}
.theme-choice-swatch{display:flex;gap:4px;margin-bottom:9px}.theme-choice-swatch i{width:18px;height:12px;border-radius:3px;border:1px solid var(--theme-border)}
.theme-choice[data-theme="classic"] i:nth-child(1){background:#020604}.theme-choice[data-theme="classic"] i:nth-child(2){background:#08100c}.theme-choice[data-theme="classic"] i:nth-child(3){background:#35e86a}
.theme-choice[data-theme="light"] i:nth-child(1){background:#e7ecef}.theme-choice[data-theme="light"] i:nth-child(2){background:#ffffff}.theme-choice[data-theme="light"] i:nth-child(3){background:#137a43}
.theme-choice[data-theme="dark"] i:nth-child(1){background:#070809}.theme-choice[data-theme="dark"] i:nth-child(2){background:#191c20}.theme-choice[data-theme="dark"] i:nth-child(3){background:#c7ced6}
.theme-choice[data-theme="sand"] i:nth-child(1){background:#e7dccb}.theme-choice[data-theme="sand"] i:nth-child(2){background:#fff8ec}.theme-choice[data-theme="sand"] i:nth-child(3){background:#ad4f1e}
.theme-choice[data-theme="indigo"] i:nth-child(1){background:#120e24}.theme-choice[data-theme="indigo"] i:nth-child(2){background:#2c244a}.theme-choice[data-theme="indigo"] i:nth-child(3){background:#9a73f0}
.theme-choice[data-theme="steel"] i:nth-child(1){background:#07111A}.theme-choice[data-theme="steel"] i:nth-child(2){background:#153044}.theme-choice[data-theme="steel"] i:nth-child(3){background:#70B6D9}
.theme-choice[data-theme="gold"] i:nth-child(1){background:#D7BF66}.theme-choice[data-theme="gold"] i:nth-child(2){background:#F8EDB8}.theme-choice[data-theme="gold"] i:nth-child(3){background:#8E5D00}
.theme-choice[data-theme="amber"] i:nth-child(1){background:#E2D0A4}.theme-choice[data-theme="amber"] i:nth-child(2){background:#F7EBCB}.theme-choice[data-theme="amber"] i:nth-child(3){background:#C47723}
.theme-choice[data-theme="crimson"] i:nth-child(1){background:#1A090D}.theme-choice[data-theme="crimson"] i:nth-child(2){background:#3A1721}.theme-choice[data-theme="crimson"] i:nth-child(3){background:#E45568}
.theme-choice[data-theme="emerald"] i:nth-child(1){background:#061713}.theme-choice[data-theme="emerald"] i:nth-child(2){background:#15382E}.theme-choice[data-theme="emerald"] i:nth-child(3){background:#45B98E}
.theme-choice[data-theme="cobalt"] i:nth-child(1){background:#0A1024}.theme-choice[data-theme="cobalt"] i:nth-child(2){background:#1D2A57}.theme-choice[data-theme="cobalt"] i:nth-child(3){background:#5C7CFA}
.theme-choice[data-theme="rosemary1"] i:nth-child(1){background:#2B1B16}.theme-choice[data-theme="rosemary1"] i:nth-child(2){background:#5A3D30}.theme-choice[data-theme="rosemary1"] i:nth-child(3){background:#A66A4F}
.theme-choice[data-theme="rosemary2"] i:nth-child(1){background:#8FD3F4}.theme-choice[data-theme="rosemary2"] i:nth-child(2){background:#D8F0FB}.theme-choice[data-theme="rosemary2"] i:nth-child(3){background:#2A7D9F}
.theme-choice[data-theme="rosemary3"] i:nth-child(1){background:#34340D}.theme-choice[data-theme="rosemary3"] i:nth-child(2){background:#66661E}.theme-choice[data-theme="rosemary3"] i:nth-child(3){background:#808000}
.theme-choice[data-theme="rosemary4"] i:nth-child(1){background:#F5F5DC}.theme-choice[data-theme="rosemary4"] i:nth-child(2){background:#EFE9D2}.theme-choice[data-theme="rosemary4"] i:nth-child(3){background:#806A47}
.theme-choice[data-theme="rosemary5"] i:nth-child(1){background:#4B3621}.theme-choice[data-theme="rosemary5"] i:nth-child(2){background:#6B6B2D}.theme-choice[data-theme="rosemary5"] i:nth-child(3){background:#F5F0DC}
@media(max-width:1250px){.theme-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.theme-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.theme-choice-grid{grid-template-columns:1fr}}
@media print{html{color-scheme:light!important}body{background:#fff!important;color:#000!important}}


/* Phone/tablet theme completion. Scoped below PC breakpoint; Classic is intentionally excluded. */
@media screen and (max-width:1024px){
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) body,
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .app,
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .page,
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .business-shell{background:var(--theme-bg);color:var(--theme-text)}
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) :is(.card,.summary-card,.dashboard-card,.business-card,.business-setup-card,.business-hero,.business-metrics article,.business-profile-metrics article,.quick-menu,.quick-menu-standard,.kovra-more-drawer){
    background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;
  }
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) :is(.business-capacity-line,.business-product-chip,.business-order-row,.business-order-total,.business-balance-preview,.business-profile-line,.business-modal-head>button,.business-status){
    background:var(--theme-surface-2)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;
  }
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) :is(.muted,.subtitle,.helper,.business-card-head small,.business-metrics span,.business-profile-metrics span,.business-field>span,.business-capacity-line,.business-note,.business-plan-rule,.business-line-total,.business-modal-head small){
    color:var(--theme-muted)!important;
  }
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) :is(.business-chip,.business-product-chip.favorite,.business-order-total strong,.business-balance-preview strong){
    color:var(--theme-accent)!important;
  }
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .business-modal{background:rgba(0,0,0,.52)!important}
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .business-modal-card{background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .nav-button{color:var(--theme-muted)!important}
  :root[data-kovra-theme]:not([data-kovra-theme="classic"]) .nav-button.active{color:var(--theme-accent)!important}
}

/* Agua — gotas sólidas para señalar la selección sin cubrir contenido. */
html[data-kovra-theme="agua"] .theme-choice.active{
  border-color:var(--theme-accent)!important;
  outline-color:var(--theme-accent)!important;
}
html[data-kovra-theme="agua"] .theme-choice.active::before{
  content:""!important;
  position:absolute!important;
  right:10px!important;
  bottom:10px!important;
  width:9px!important;
  height:12px!important;
  border:1px solid #A6F0E8!important;
  background:var(--theme-accent)!important;
  clip-path:polygon(50% 0,100% 67%,96% 82%,85% 94%,68% 99%,50% 100%,32% 99%,15% 94%,4% 82%,0 67%)!important;
  pointer-events:none!important;
}
.business-shared-theme[data-shared-theme="agua"]{
  --preview-bg:#071820;
  --preview-surface:#102A35;
  --preview-accent:#48D6D0;
  --preview-text:#F2FAFC;
  --preview-muted:#A1C0C7;
  --preview-border:#4B7F8B;
}
html[data-kovra-theme="agua"] .kovra-shared-sidebar .km2-nav-item.active{
  position:relative!important;
}
html[data-kovra-theme="agua"] .kovra-shared-sidebar .km2-nav-item.active::before{
  width:5px!important;
  border-radius:999px!important;
}
html[data-kovra-theme="agua"] .kovra-shared-sidebar .km2-nav-item.active::after{
  content:""!important;
  position:absolute!important;
  left:-9px!important;
  bottom:6px!important;
  width:8px!important;
  height:10px!important;
  background:var(--theme-accent)!important;
  clip-path:polygon(50% 0,100% 67%,96% 82%,85% 94%,68% 99%,50% 100%,32% 99%,15% 94%,4% 82%,0 67%)!important;
  pointer-events:none!important;
}
html[data-kovra-theme="agua"] body>nav.bottom-nav.kovra-loans-nav-root :is(.nav-button,.plans-nav-button).active,
html.kovra-business-phone[data-kovra-theme="agua"] .kovra-business-nav :is(#homeButton,#clientsButton,#creditsButton,#pedidosButton,#businessMoreButton).active{
  position:relative!important;
}
html[data-kovra-theme="agua"] body>nav.bottom-nav.kovra-loans-nav-root :is(.nav-button,.plans-nav-button).active::after,
html.kovra-business-phone[data-kovra-theme="agua"] .kovra-business-nav :is(#homeButton,#clientsButton,#creditsButton,#pedidosButton,#businessMoreButton).active::after{
  content:""!important;
  position:absolute!important;
  right:6px!important;
  bottom:5px!important;
  width:8px!important;
  height:10px!important;
  border:1px solid #A6F0E8!important;
  background:var(--theme-accent)!important;
  clip-path:polygon(50% 0,100% 67%,96% 82%,85% 94%,68% 99%,50% 100%,32% 99%,15% 94%,4% 82%,0 67%)!important;
  pointer-events:none!important;
}


@media screen{
/* Agua 2 — agua clara con superficies tipo vidrio y lectura de alto contraste. */
:root[data-kovra-theme="agua2"]{
  --theme-bg:#EAF7F9;
  --theme-bg-alt:#DCEFF2;
  --theme-surface:rgba(255,255,255,.86);
  --theme-surface-2:rgba(246,252,253,.88);
  --theme-surface-3:rgba(224,244,247,.90);
  --theme-input:rgba(255,255,255,.96);
  --theme-border:#A7CAD1;
  --theme-border-strong:#6D9FA9;
  --theme-text:#153944;
  --theme-text-2:#315762;
  --theme-muted:#496C76;
  --theme-accent:#066F84;
  --theme-accent-strong:#055D70;
  --theme-accent-soft:rgba(122,207,219,.28);
  --theme-on-accent:#FFFFFF;
  --theme-success:#176F3D;--theme-success-soft:#DCEFE4;
  --theme-warning:#8C5700;--theme-warning-soft:#F7E7C7;
  --theme-danger:#B83434;--theme-danger-soft:#F8DDDD;
  --theme-info:#1F63A8;--theme-info-soft:#DCE9F6;
  --theme-purple:#6948A8;--theme-purple-soft:#E8E0F5;
  --theme-orange:#8F3F19;--theme-orange-soft:#F3DFD2;
  --theme-nav:rgba(248,253,254,.92);--theme-on-nav:#153944;
  color-scheme:light;
}
html[data-kovra-theme="agua2"] body{
  background-color:var(--theme-bg)!important;
  background-image:radial-gradient(ellipse at 12% 0%,rgba(255,255,255,.78),transparent 42%),linear-gradient(150deg,#EAF7F9 0%,#DCEFF2 54%,#F5FBFC 100%)!important;
  background-attachment:fixed!important;
}
html[data-kovra-theme="agua2"] :is(.app,.page,.business-shell){background:transparent!important}
html[data-kovra-theme="agua2"] :is(.card,.summary-card,.dashboard-card,.business-card,.business-setup-card,.business-hero,.business-metrics article,.business-profile-metrics article,.quick-menu,.quick-menu-standard,.kovra-more-drawer,.business-modal-card){
  background-color:var(--theme-surface)!important;
  border-color:var(--theme-border)!important;
  color:var(--theme-text)!important;
  box-shadow:0 10px 28px rgba(31,105,121,.08),inset 0 1px 0 rgba(255,255,255,.75);
}
html[data-kovra-theme="agua2"] :is(input,select,textarea){background-color:var(--theme-input)}
html[data-kovra-theme="agua2"] .theme-choice.active{border-color:var(--theme-accent)!important;outline:2px solid var(--theme-accent)!important}
html[data-kovra-theme="agua2"] .theme-choice.active::before{
  content:""!important;position:absolute!important;top:9px!important;right:10px!important;
  width:16px!important;height:21px!important;border:1px solid #FFFFFF!important;
  border-radius:52% 48% 55% 55% / 32% 34% 66% 68%!important;
  background:radial-gradient(ellipse at 34% 25%,#FFFFFF 0 9%,#C8F6F8 11%,#28AEC0 54%,#066F84 100%)!important;
  box-shadow:0 2px 7px rgba(8,122,145,.38),inset 1px 1px 2px rgba(255,255,255,.85)!important;
  clip-path:polygon(50% 0,100% 66%,98% 80%,88% 92%,72% 98%,50% 100%,28% 98%,12% 92%,2% 80%,0 66%)!important;
  pointer-events:none!important;
}
.business-shared-theme[data-shared-theme="agua2"]{
  --preview-bg:#EAF7F9;--preview-surface:rgba(255,255,255,.9);--preview-accent:#066F84;
  --preview-text:#153944;--preview-muted:#496C76;--preview-border:#6D9FA9;
}
html[data-kovra-theme="agua2"] .business-shared-theme.active em:empty{
  display:block!important;width:16px!important;height:20px!important;margin:2px 0 0!important;padding:0!important;
  border:1px solid #FFFFFF!important;border-radius:52% 48% 55% 55% / 32% 34% 66% 68%!important;
  background:radial-gradient(ellipse at 34% 25%,#FFFFFF 0 9%,#C8F6F8 11%,#28AEC0 54%,#066F84 100%)!important;
  color:transparent!important;font-size:0!important;
  clip-path:polygon(50% 0,100% 66%,98% 80%,88% 92%,72% 98%,50% 100%,28% 98%,12% 92%,2% 80%,0 66%)!important;
}
/* Barra activa larga: canal brillante con una gota visible en la punta. */
html[data-kovra-theme="agua2"] .kovra-shared-sidebar .km2-nav-item.active{position:relative!important}
html[data-kovra-theme="agua2"] .kovra-shared-sidebar .km2-nav-item.active::before{
  left:-7px!important;top:8px!important;bottom:8px!important;width:6px!important;height:auto!important;
  border:1px solid rgba(255,255,255,.9)!important;border-radius:999px!important;
  background:linear-gradient(180deg,#BFF3F6 0%,#39B8C7 50%,#066F84 100%)!important;
  box-shadow:0 1px 8px rgba(8,122,145,.34)!important;
}
html[data-kovra-theme="agua2"] .kovra-shared-sidebar .km2-nav-item.active::after{
  content:""!important;position:absolute!important;left:-12px!important;bottom:3px!important;width:15px!important;height:18px!important;
  border:1px solid #FFFFFF!important;border-radius:52% 48% 55% 55% / 32% 34% 66% 68%!important;
  background:radial-gradient(ellipse at 34% 25%,#FFFFFF 0 9%,#C8F6F8 11%,#28AEC0 54%,#066F84 100%)!important;
  box-shadow:0 2px 7px rgba(8,122,145,.35)!important;
  clip-path:polygon(50% 0,100% 66%,98% 80%,88% 92%,72% 98%,50% 100%,28% 98%,12% 92%,2% 80%,0 66%)!important;
  pointer-events:none!important;
}
html[data-kovra-theme="agua2"] body>nav.bottom-nav.kovra-loans-nav-root :is(.nav-button,.plans-nav-button).active,
html.kovra-business-phone[data-kovra-theme="agua2"] .kovra-business-nav :is(#homeButton,#clientsButton,#creditsButton,#pedidosButton,#businessMoreButton).active{position:relative!important}
html[data-kovra-theme="agua2"] body>nav.bottom-nav.kovra-loans-nav-root :is(.nav-button,.plans-nav-button).active::after,
html.kovra-business-phone[data-kovra-theme="agua2"] .kovra-business-nav :is(#homeButton,#clientsButton,#creditsButton,#pedidosButton,#businessMoreButton).active::after{
  content:""!important;position:absolute!important;right:5px!important;top:4px!important;width:11px!important;height:14px!important;
  border:1px solid #FFFFFF!important;border-radius:52% 48% 55% 55% / 32% 34% 66% 68%!important;
  background:radial-gradient(ellipse at 34% 25%,#FFFFFF 0 9%,#C8F6F8 11%,#28AEC0 54%,#066F84 100%)!important;
  box-shadow:0 1px 5px rgba(8,122,145,.32)!important;
  clip-path:polygon(50% 0,100% 66%,98% 80%,88% 92%,72% 98%,50% 100%,28% 98%,12% 92%,2% 80%,0 66%)!important;
  pointer-events:none!important;
}

}
