:root[data-crm-theme="blue"] {
 --crm-text:#f5f6f8;
 --crm-muted:#c4cdd7;
 --crm-line:#dbeaff2e;
 --crm-focus:#b7d6ff;
 --crm-background:radial-gradient(ellipse at 100% 0%,#465362 0%,transparent 52%),
  radial-gradient(ellipse at 0% 82%,#303841 0%,transparent 66%),#202328;
 --crm-glass:linear-gradient(145deg,#ffffff12,#ffffff05),#202a341f;
 --crm-chrome:linear-gradient(145deg,#303a47d6,#202730e8);
 --crm-mobile-header:linear-gradient(110deg,#252e39,#3f5061);
 --crm-mobile-menu:radial-gradient(ellipse at 100% 0%,#46596d,transparent 74%),#27313c;
 --crm-dialog:linear-gradient(145deg,#394553,#272e38 76%);
 --crm-raised:#36414e;
 --crm-control:#a3bed719;
 --crm-inset:#151c256e;
 --crm-field:#242e39;
 --crm-solid:#28323e;
 --crm-hover:#a4c6ec22;
 --crm-primary:linear-gradient(145deg,#f3f8ff,#bdcfe6);
 --crm-primary-hover:#f1f7ff;
 --crm-primary-border:#d8e9ffaa;
 --crm-on-primary:#1d2936;
 --crm-backdrop:#111820bd;
 --crm-link:#d1e5ff;
 --crm-message-mine:#3a506a;
 --crm-blue-active:linear-gradient(145deg,#829ab740,#ffffff12);
 --crm-blue-progress:linear-gradient(90deg,#6b8bae,#cee4fb);
}
[data-crm-theme="blue"] .page-heading {
 background:linear-gradient(108deg,#242c37 3%,#2d3845bb 53%,#788fa238),
  radial-gradient(ellipse at 100% 0%,#6b7e93,#374455 63%,#2b3440);
 border-color:var(--crm-line);
}
[data-crm-theme="blue"] .page-heading::after {opacity:.55}
[data-crm-theme="blue"] .topbar {background:#1b242e70}
[data-crm-theme="blue"] .sidebar nav button.active {
 background:var(--crm-blue-active);
 border-color:#b6cbe176;
}
[data-crm-theme="blue"] .overview-stage progress::-webkit-progress-value {background:var(--crm-blue-progress)}
[data-crm-theme="blue"] .overview-stage progress::-moz-progress-bar {background:var(--crm-blue-progress)}
[data-crm-theme="blue"] .drive-menu {background:var(--crm-dialog)}
[data-crm-theme="blue"] #task-image-viewer {background:var(--crm-solid)}
[data-crm-theme="blue"] ::selection {background:#c5ddf6;color:#1d2936}
.interface-themes {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 max-width:490px;margin:0;padding:0;border:0;min-inline-size:0;
}
.interface-theme-option {position:relative;min-width:0;cursor:pointer}
.interface-theme-option input {
 position:absolute;width:1px;height:1px;min-height:0;padding:0;opacity:0;
}
.interface-theme-option-body {
 display:grid;gap:9px;padding:7px;border:1px solid var(--crm-line);
 border-radius:13px;background:var(--crm-control);color:var(--crm-text);
}
.interface-theme-option:hover .interface-theme-option-body {background:var(--crm-hover)}
.interface-theme-option input:checked + .interface-theme-option-body {
 border-color:var(--crm-focus);box-shadow:inset 0 0 0 1px var(--crm-focus);
}
.interface-theme-option input:focus-visible + .interface-theme-option-body {
 outline:2px solid var(--crm-focus);outline-offset:3px;
}
.interface-theme-label {
 display:flex;align-items:center;gap:7px;padding:1px 3px 4px;font-size:var(--crm-text-footnote);font-weight:600;
}
.interface-theme-label::before {
 content:"";width:12px;height:12px;flex:none;border:1px solid var(--crm-muted);border-radius:50%;
}
.interface-theme-option input:checked + .interface-theme-option-body .interface-theme-label::before {
 background:var(--crm-focus);box-shadow:inset 0 0 0 2px var(--crm-field);
}
.interface-theme-swatch {
 display:grid;grid-template-columns:22% minmax(0,1fr);gap:7px;height:70px;padding:8px;
 border:1px solid #ffffff26;border-radius:8px;overflow:hidden;
}
.interface-theme-swatch--graphite {background:radial-gradient(ellipse at 100% 0%,#56565d,transparent 70%),#252529}
.interface-theme-swatch--blue {background:radial-gradient(ellipse at 100% 0%,#566c83,transparent 74%),#28333e}
.interface-theme-swatch > span {border-radius:4px;background:#ffffff13;border:1px solid #ffffff16}
.interface-theme-swatch > span + span {
 background:linear-gradient(#ffffff25 0 40%,transparent 40% 54%,#ffffff12 54%);border-color:transparent;
}

.app-install {
 margin-top:15px;padding-top:14px;border-top:1px solid var(--crm-line);
}
.app-install h3 {margin:0 0 8px}
.app-install-options {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:490px;
}
.app-install-options a {
 display:grid;justify-items:center;gap:7px;padding:8px 3px 7px;border:1px solid var(--crm-line);
 border-radius:12px;background:var(--crm-control);font-size:var(--crm-text-footnote);font-weight:600;text-decoration:none;
}
.app-install-options a:hover {background:var(--crm-hover)}
.app-install-options a[aria-current="true"] {border-color:var(--crm-focus)}
.app-install-options img {display:block;border-radius:12px;max-width:100%;height:auto}

.interface-column-width {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px;
 max-width:490px;margin:0;padding:0;border:0;min-inline-size:0;
}
.interface-column-width .interface-theme-label {padding:3px 2px}

@media(min-width:681px) {
 :root {--crm-column-min:224px;--crm-column-max:282px}
 [data-crm-column-width="compact"] {--crm-column-min:184px;--crm-column-max:220px}
 [data-crm-column-width="wide"] {--crm-column-min:288px;--crm-column-max:352px}
 .kanban-board[data-mobile-all="true"] {
  grid-template-columns:repeat(5,minmax(var(--crm-column-min),var(--crm-column-max)));
 }
 .task-board {
  grid-template-columns:repeat(3,minmax(var(--crm-column-min),var(--crm-column-max)));
  overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:12px;
 }
}

/* Clear glass surfaces use the shared CRM palette and keep text above the blur. */
:root:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) {
 --crm-text:#f7f8fc;
 --crm-muted:#d4dae5;
 --crm-line:#eff6ff45;
 --crm-focus:#f2f7ff;
 --crm-background:radial-gradient(ellipse 96% 65% at 118% 25%,transparent 63%,#ffffff16 65%,transparent 70%),
  radial-gradient(ellipse 110% 100% at -22% 105%,transparent 51%,#ffffff0f 54%,transparent 61%),
  radial-gradient(ellipse at 87% 12%,#686868 0%,#414141 20%,transparent 48%),
  radial-gradient(ellipse at 4% 72%,#606060 0%,#393939 26%,transparent 53%),
  linear-gradient(145deg,#1a1a1a,#2a2a2a 64%,#202020);
 --crm-glass:linear-gradient(125deg,#ffffff10,transparent 30%,#ffffff05 52%,transparent 72%),#18181808;
 --crm-chrome:linear-gradient(135deg,#ffffff0c,#ffffff02),#18181812;
 --crm-mobile-header:linear-gradient(110deg,#ffffff12,#ffffff03),#18181819;
 --crm-mobile-menu:linear-gradient(145deg,#282828db,#202020e8);
 --crm-dialog:linear-gradient(135deg,#ffffff0f,#ffffff02),#19191973;
 --crm-raised:#e8f0ff0f;
 --crm-control:#edf2ff0c;
 --crm-inset:#0a12211a;
 --crm-field:#14141433;
 --crm-solid:#292929;
 --crm-hover:#eef5ff21;
 --crm-primary:linear-gradient(135deg,#f7faff,#d4d4d9);
 --crm-primary-hover:#f6faff;
 --crm-primary-border:#f4f8ffbf;
 --crm-on-primary:#252525;
 --crm-backdrop:#080f1c42;
 --crm-link:#e0efff;
 --crm-message-mine:#d7eaff12;
}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) {background-attachment:fixed}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) :is(.sidebar,.topbar,.overview-panel,.overview-metric,.board-card,.counterparty-card,.page-heading) {
 background:var(--crm-glass);
 -webkit-backdrop-filter:blur(12px) saturate(140%);
 backdrop-filter:blur(12px) saturate(140%);
 border-color:var(--crm-line);
 box-shadow:inset 0 1px 0 #ffffff66,inset 1px 0 0 #ffffff1a,inset 0 -1px 0 #ffffff1f,0 8px 28px #080e191a;
}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .page-heading {background:linear-gradient(120deg,#ffffff18,transparent 46%,#ffffff09)}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .page-heading::after {opacity:.12}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) :is(dialog,.drive-menu,.card-context-menu,.task-card-menu) {
 background:var(--crm-dialog);
 -webkit-backdrop-filter:blur(24px) saturate(145%);
 backdrop-filter:blur(24px) saturate(145%);
 border-color:#f0f6ff66;
 box-shadow:inset 0 1px 0 #ffffff80,inset 1px 0 0 #ffffff26,inset 0 -1px 0 #ffffff29,0 18px 65px #030a1955;
}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) dialog::backdrop {
 background:var(--crm-backdrop);
 -webkit-backdrop-filter:blur(3px);
 backdrop-filter:blur(3px);
}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) :is(.sidebar nav button.active,.owner-filter button[aria-pressed=true],.deal-layout-switch button[aria-pressed=true],.tabs button[aria-selected=true]) {
 background:linear-gradient(135deg,#ffffff30,#ffffff05);
 color:var(--crm-text);
 border-color:#eff6ff80;
 box-shadow:inset 0 1px 0 #ffffff80,inset 0 -1px 0 #ffffff26,0 3px 12px #07101b1a;
}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .sidebar nav button.active {border-radius:14px}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .sidebar nav button:hover {background:var(--crm-hover)}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .mobile-menu-toggle {background:linear-gradient(135deg,#ffffff24,#ffffff03);border-color:#f1f7ff66;box-shadow:inset 0 1px 0 #ffffff70}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .topbar {background:var(--crm-chrome)}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .kanban-column {background:#0b12201a}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .board-card {border-radius:15px}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
 background-color:var(--crm-field);
 border-color:#dbe8ff4d;
 box-shadow:inset 0 1px 4px #00000017,0 1px 0 #ffffff1a;
}
:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) ::placeholder {color:#c5cedd}

.interface-themes {grid-template-columns:repeat(2,minmax(0,1fr));max-width:740px}
.interface-theme-swatch--liquid-glass {
 position:relative;background:radial-gradient(ellipse at 90% 8%,#b7b7bdab,transparent 60%),linear-gradient(145deg,#27272b,#515158);
}
.interface-theme-swatch--liquid-glass > span {background:#f1f1f527;border-color:#f4f4f848;box-shadow:inset 0 1px 0 #ffffff20}
.interface-theme-swatch--liquid-glass::after {
 content:"";position:absolute;left:30%;right:11%;bottom:11px;height:12px;border-radius:9px;
 background:linear-gradient(110deg,#f0f0f566,#ededf518);border:1px solid #f4f4f855;
}
.liquid-glass-navigation {display:none}
:root[data-crm-native="ios"]:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) {
 --crm-dialog-bottom-space:calc(104px + env(safe-area-inset-bottom,0px));
}
:root[data-crm-native="ios"]:is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) dialog[open] {
 top:12px;
 bottom:var(--crm-dialog-bottom-space);
 margin-block:auto;
 max-height:calc(100vh - var(--crm-dialog-bottom-space) - 24px);
 max-height:calc(100dvh - var(--crm-dialog-bottom-space) - 24px);
}
@media(max-width:480px){.interface-themes{grid-template-columns:1fr}.interface-theme-swatch{height:65px}}
@media(max-width:680px) {
 :is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .sidebar {
  top:8px;
  margin:8px 12px 0;
  padding:6px 10px;
  min-height:62px;
  border:1px solid var(--crm-line);
  border-radius:34px;
  background:var(--crm-mobile-header);
  -webkit-backdrop-filter:blur(16px) saturate(155%);
  backdrop-filter:blur(16px) saturate(155%);
  box-shadow:inset 0 1px 0 #ffffffa6,inset 1px 0 0 #ffffff33,inset 0 -1px 0 #ffffff40,0 8px 24px #050c1b20;
 }
 :is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .mobile-menu-toggle {border-radius:24px}
 .liquid-glass-web-navigation .workspace {padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 :root.liquid-glass-web-navigation {
  --crm-dialog-bottom-space:calc(110px + env(safe-area-inset-bottom,0px));
 }
 :root.liquid-glass-web-navigation dialog[open] {
  top:12px;
  bottom:var(--crm-dialog-bottom-space);
  margin-block:auto;
  max-height:calc(100vh - var(--crm-dialog-bottom-space) - 24px);
  max-height:calc(100dvh - var(--crm-dialog-bottom-space) - 24px);
 }
 :is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .liquid-glass-navigation:not([hidden]) {
  position:fixed;z-index:25;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:12px;right:12px;
  max-width:520px;margin-inline:auto;display:flex;gap:4px;padding:6px;border-radius:29px;
  border:1px solid #f0f6ff66;background:linear-gradient(135deg,#ffffff12,#ffffff03),#18181819;
  -webkit-backdrop-filter:blur(16px) saturate(155%);backdrop-filter:blur(16px) saturate(155%);
  box-shadow:inset 0 1px 0 #ffffffa6,inset 1px 0 0 #ffffff33,inset 0 -1px 0 #ffffff40,0 10px 30px #050c1b40;
 }
 .liquid-glass-navigation button {
  flex:1;min-width:0;min-height:58px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;border:1px solid transparent;border-radius:23px;background:transparent;color:#d6e0ed;font-size:max(12px,calc(var(--crm-text-body) - 1px));font-weight:600;
  transition:background .18s ease,box-shadow .18s ease;
 }
 .liquid-glass-navigation button[aria-current="page"] {
  color:#fafcff;background:linear-gradient(140deg,#ffffff3d,#d5e6ff08);border-color:#f3f8ff8c;
  box-shadow:inset 0 1px 0 #ffffffb3,inset 0 -1px 0 #ffffff40,0 3px 12px #050b1d30;
 }
 .liquid-glass-navigation button:hover {background:#e1ecff1d}
 .liquid-glass-navigation button svg {width:20px;height:20px;flex:none}
 .liquid-glass-navigation button[hidden] {display:none}
 body:has(.mobile-menu-toggle[aria-expanded="true"]) .liquid-glass-navigation {visibility:hidden}
}
@media(prefers-reduced-motion:reduce){.liquid-glass-navigation button{transition:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 :is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) :is(.sidebar,.topbar,.overview-panel,.overview-metric,.board-card) {background:#2d3541}
 :is([data-crm-theme="liquid-glass"],[data-crm-theme="light"]) .liquid-glass-navigation:not([hidden]) {background:#303b4b}
}

:root[data-crm-theme="light"] {
 color-scheme:light;
 --crm-text:#34332f;
 --crm-muted:#67635b;
 --crm-line:#756c5838;
 --crm-focus:#876d53;
 --crm-background:radial-gradient(ellipse 80% 66% at 95% 5%,#fffcf6 0%,transparent 70%),
  radial-gradient(ellipse 90% 78% at 0% 95%,#e8e5ed 0%,transparent 68%),
  radial-gradient(ellipse 74% 60% at 100% 75%,#e8e0d2 0%,transparent 74%),
  linear-gradient(145deg,#f6f3ed,#eee9df 66%,#f4f1eb);
 --crm-glass:linear-gradient(130deg,#ffffff18,#fffdf508 45%,#eee9e50a),#fffdf508;
 --crm-chrome:linear-gradient(135deg,#ffffff14,#f1ece407);
 --crm-mobile-header:linear-gradient(110deg,#fffdf61f,#eee8df0a);
 --crm-mobile-menu:linear-gradient(145deg,#fffdf7f5,#ece7dff5);
 --crm-dialog:linear-gradient(135deg,#ffffff30,#f3eee414),#f8f3e91a;
 --crm-raised:#fffdf6;
 --crm-control:#fffdf71a;
 --crm-inset:#c8bda91c;
 --crm-field:#fffefa42;
 --crm-solid:#f4f0e8;
 --crm-hover:#c2b29730;
 --crm-primary:linear-gradient(135deg,#5c5144,#756654);
 --crm-primary-hover:#625445;
 --crm-primary-border:#5c5144;
 --crm-on-primary:#fffdf8;
 --crm-backdrop:#4b443d45;
 --crm-error:#93382f;
 --crm-error-line:#b26961;
 --crm-error-surface:#f6e8e4;
 --crm-warning:#785c20;
 --crm-warning-line:#b29a64;
 --crm-warning-surface:#f6eedb;
 --crm-link:#67583f;
 --crm-message-mine:#e4ddcf;
}
[data-crm-theme="light"] :is(.brand img,.login>img) {filter:brightness(0);opacity:.82}
[data-crm-theme="light"] :is(.sidebar,.topbar,.overview-panel,.overview-metric,.board-card,.counterparty-card,.page-heading,.login) {
 box-shadow:inset 0 1px 0 #ffffffed,inset 1px 0 0 #ffffff7a,0 8px 26px #76654c12;
}
[data-crm-theme="light"] .page-heading {background:linear-gradient(120deg,#ffffff24,#f5efe308 60%,#e9e4ee12)}
[data-crm-theme="light"] :is(dialog,.drive-menu,.card-context-menu,.task-card-menu) {
 border-color:#a89d8752;
 box-shadow:inset 0 1px 0 #ffffffed,0 18px 65px #6f5c3f2e;
}
[data-crm-theme="light"] :is(.sidebar nav button.active,.owner-filter button[aria-pressed=true],.deal-layout-switch button[aria-pressed=true],.tabs button[aria-selected=true]) {
 background:linear-gradient(135deg,#ffffff38,#e4dbcb14);
 color:var(--crm-text);border-color:#a89d876b;
 box-shadow:inset 0 1px 0 #ffffff,0 3px 12px #76654c14;
}
[data-crm-theme="light"] .mobile-menu-toggle {background:#fffdf61a;border-color:var(--crm-line);box-shadow:inset 0 1px 0 #ffffff}
[data-crm-theme="light"] .kanban-column {background:#c8bda915}
[data-crm-theme="light"] .kanban-column.drop-target {background:#d7cbb74d}
[data-crm-theme="light"] :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
 border-color:#a89d8770;box-shadow:inset 0 1px 3px #76654c0c,0 1px 0 #ffffff8c;
}
[data-crm-theme="light"] ::placeholder {color:#6f685f}
[data-crm-theme="light"] ::selection {background:#ded4c4;color:#34332f}
[data-crm-theme="light"] :is(#task-image-viewer,.emoji-panel,.calendar) {background:var(--crm-solid)}
[data-crm-theme="light"] :is(.calendar,.emoji-panel,.card-context-menu) {box-shadow:0 12px 32px #76654c26}
[data-crm-theme="light"] .overview-stage progress {background:#d6cebf;color:#8c7c66}
[data-crm-theme="light"] .overview-stage progress::-webkit-progress-bar {background:#ded8cc}
[data-crm-theme="light"] .overview-stage progress::-webkit-progress-value {background:linear-gradient(90deg,#b5a58d,#88775e)}
[data-crm-theme="light"] .overview-stage progress::-moz-progress-bar {background:linear-gradient(90deg,#b5a58d,#88775e)}
.interface-theme-swatch--pearl {
 background:radial-gradient(ellipse at 100% 0%,#fffdf9,transparent 65%),linear-gradient(145deg,#e9e2d6,#f7f4ee 55%,#e6e2ec);
 border-color:#a89d8752;
}
.interface-theme-swatch--pearl > span {background:#ffffff99;border-color:#a89d8752;box-shadow:inset 0 1px 0 #ffffff}
.interface-theme-swatch--pearl > span + span {background:linear-gradient(#ffffffc7 0 40%,transparent 40% 54%,#ffffff80 54%)}
@media(max-width:680px) {
 [data-crm-theme="light"] .liquid-glass-navigation:not([hidden]) {
  color:var(--crm-text);border-color:#ffffffa6;
  background:linear-gradient(135deg,#ffffff21,#efe9de0a),#fffaf008;
  -webkit-backdrop-filter:blur(16px) saturate(155%);backdrop-filter:blur(16px) saturate(155%);
  box-shadow:inset 0 1px 0 #ffffffd9,inset 0 -1px 0 #ffffff40,0 10px 30px #76654c1a;
 }
 [data-crm-theme="light"] .liquid-glass-navigation button {color:var(--crm-muted)}
 [data-crm-theme="light"] .liquid-glass-navigation button[aria-current="page"] {
  color:var(--crm-text);background:linear-gradient(140deg,#ffffff42,#e7decd14);border-color:#c3b69d70;
  box-shadow:inset 0 1px 0 #ffffff,0 3px 10px #76654c17;
 }
 [data-crm-theme="light"] .liquid-glass-navigation button:hover {background:var(--crm-hover)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 [data-crm-theme="light"] :is(.sidebar,.topbar,.overview-panel,.overview-metric,.board-card) {background:#f6f2eb}
 [data-crm-theme="light"] .liquid-glass-navigation:not([hidden]) {background:#f3eee4}
}

/* Two supported interfaces. Modern direction: Unslop by Damir Sokolovsky, CC BY 4.0. */
.interface-theme-description{display:block;padding:0 3px 4px;color:var(--crm-muted);font-size:var(--crm-text-footnote);line-height:1.4;font-weight:400}
.interface-theme-swatch--modern{background:#242426;border-color:#ffffff1a;border-radius:8px}
.interface-theme-swatch--modern>span{background:#202022;border-color:#ffffff1a;border-radius:4px;box-shadow:none}
.interface-theme-swatch--modern>span+span{background:linear-gradient(#343438 0 36%,transparent 36% 50%,#2a2a2d 50%);border:0}
