@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --gd-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gd-display: var(--gd-text);
  --gd-sky: #9085ff;
  --gd-brand: #7367f0;
  --gd-action: #685bdd;
  --gd-action-hover: #5a4dcc;
  --gd-blue: #6356d6;
  --gd-blue-strong: #5549ba;
  --gd-navy: #2f3349;
  --gd-navy-raised: #3a3f57;
  --gd-nav-ink: #cfcde4;
  --gd-nav-muted: #a39fb8;
  --gd-page: #f8f7fa;
  --gd-surface: #fff;
  --gd-row: #f5f4f7;
  --gd-tint: #eeecff;
  --gd-tint-line: #dad5fa;
  --gd-ink: #444050;
  --gd-ink-soft: #696675;
  --gd-muted: #706b7e;
  --gd-line: #e5e3eb;
  --gd-line-strong: #d4d0df;
  --gd-success: #1d7948;
  --gd-success-soft: #e1f6e9;
  --gd-warning: #88500e;
  --gd-warning-soft: #fff0dc;
  --gd-danger: #a8303e;
  --gd-danger-soft: #fce9ec;
  --gd-info: #087087;
  --gd-info-soft: #dff6fa;
  --gd-shadow: 0 3px 12px rgba(47, 43, 61, .12);
  --gd-nav-shadow: 0 2px 8px rgba(47, 43, 61, .12);
  --gd-layer-shadow: 0 12px 32px rgba(38, 31, 59, .19);
}

:root[data-crm-theme="dark"] {
  color-scheme: dark;
  --gd-page: #25293c;
  --gd-surface: #2f3349;
  --gd-row: #2a2e43;
  --gd-ink: #cfcde4;
  --gd-ink-soft: #acabc1;
  --gd-muted: #a19db6;
  --gd-line: #41455b;
  --gd-line-strong: #53576f;
  --gd-tint: #3b3b63;
  --gd-tint-line: #53517e;
  --gd-blue: #afa6ff;
  --gd-blue-strong: #beb5ff;
  --gd-success: #6dd799;
  --gd-success-soft: #304742;
  --gd-warning: #ffbf77;
  --gd-warning-soft: #524137;
  --gd-danger: #ff9aa4;
  --gd-danger-soft: #502f40;
  --gd-info: #72dbe9;
  --gd-info-soft: #244655;
  --gd-shadow: 0 3px 12px rgba(19, 17, 32, .2);
  --gd-nav-shadow: 0 2px 8px rgba(19, 17, 32, .18);
  --gd-layer-shadow: 0 12px 32px rgba(19, 17, 32, .42);
}

.crm-theme-toggle {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--gd-ink);
  background: transparent;
  cursor: pointer;
}
.crm-theme-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.65' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4m0-14.2-1.4 1.4M6.3 17.7l-1.4 1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-crm-theme="dark"] .crm-theme-toggle::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.9 13.4A9 9 0 1 1 10.6 3.1a7 7 0 0 0 10.3 10.3Z'/%3E%3Cpath d='M17 3v5m-2.5-2.5h5M21 8v3'/%3E%3C/svg%3E");
}
.crm-theme-toggle:hover { background: var(--gd-row); }
.crm-theme-toggle:focus-visible { outline: 2px solid var(--gd-brand); outline-offset: 2px; }
