:root[data-theme="dark"] { color-scheme: dark; background: #101725; }
.theme-toggle {
  position: relative; flex: none;
  width: 43px; height: 43px; padding: 0;
  display: grid; place-items: center;
  background: #fffefa; color: #233972;
  border: 1px solid #d5ddf0; border-radius: 12px;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.theme-toggle:active { transform: scale(.93); }
.theme-toggle:hover { background: #edf1ff; }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .36s cubic-bezier(.2,.8,.2,1), opacity .24s; }
.theme-toggle .theme-sun { opacity: 0; transform: rotate(65deg) scale(.5); }
[data-theme="dark"] .theme-toggle .theme-moon { opacity: 0; transform: rotate(-65deg) scale(.5); }
[data-theme="dark"] .theme-toggle .theme-sun { opacity: 1; transform: rotate(0) scale(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 430px) {
  .public-site .brand { gap: 6px; }
  .public-site .brand svg { width: 32px; height: 32px; }
  .public-site .brand strong { font-size: 1.06rem; }
  .public-site .brand small { font-size: .64rem; }
  .public-site .header-inner { gap: 6px; }
  .header-actions { gap: 5px; }
  .theme-toggle { width: 38px; height: 38px; }
  .public-site .menu-toggle { padding-inline: 8px; }
}
@media (min-width: 1010px) and (max-width: 1120px) {
  .public-site .header nav { gap: 10px; }
  .public-site .header nav a { font-size: .84rem; }
}

[data-theme="dark"] .public-site {
  --bg: #101725;
  --ink: #edf2ff;
  --muted: #bac6db;
  --blue: #a4baff;
  --soft: #263657;
  --line: #334361;
  --amber: #ffca54;
  color: var(--ink);
  color-scheme: dark;
}
[data-theme="dark"] .public-site .disclaimer { background: #1c2943; }
[data-theme="dark"] .public-site .disclaimer p { color: #c5d0e7; }
[data-theme="dark"] .demo-label { color: #d7e3ff; background: #304474; }
[data-theme="dark"] .public-site .header { background: #151f32; }
[data-theme="dark"] .public-site .header nav.open { background: #151f32; }
[data-theme="dark"] .public-site nav a[aria-current="page"],
[data-theme="dark"] .public-site .header nav a:hover,
[data-theme="dark"] .kicker,
[data-theme="dark"] .home-copy h1 em { color: #a9bcff; }
[data-theme="dark"] :is(.theme-toggle, .menu-toggle, .icon-button, .public-site .button-outline) {
  background: #202e49; color: #d5e0ff; border-color: #3a4c73;
}
[data-theme="dark"] :is(.theme-toggle, .public-site .button-outline):hover { background: #2a3e62; }
[data-theme="dark"] .theme-toggle { color: #ffd578; }
[data-theme="dark"] .home-visual {
  border-color: #344b7d;
  background: radial-gradient(circle at 35% 20%, #354977 0, #26385f 55%, #202e50 100%);
}
[data-theme="dark"] .public-site :is(.card, .feature-grid article, .process-grid li, .side-card, .faq-content, dialog) {
  background: #18243a; color: var(--ink); border-color: #334361;
}
[data-theme="dark"] .public-site :is(.tint-blue, .lead-rail, .stats-band) { background: #213356; border-color: #394e77; }
[data-theme="dark"] .public-site :is(.tint-yellow, .rail-yellow) { background: #372d22; border-color: #564531; }
[data-theme="dark"] .public-site :is(.tint-mint, .rail-mint) { background: #213732; border-color: #35524b; }
[data-theme="dark"] .public-site :is(.feature-icon, .tile-icon, .form-icon),
[data-theme="dark"] .public-site .process-grid li::before {
  background: #304570; color: #d5e2ff;
}
[data-theme="dark"] .public-site :is(.tint-yellow, .rail-yellow) .feature-icon { background: #58472c; color: #ffdc8c; }
[data-theme="dark"] .public-site :is(.tint-mint, .rail-mint) .feature-icon { background: #325244; color: #b7e5cd; }
[data-theme="dark"] .public-site .site-link { color: #b5c8ff; }
[data-theme="dark"] .public-site .site-link:hover { color: #dce5ff; }
[data-theme="dark"] .next-band { background: #23395f; }
[data-theme="dark"] .public-site .section-image { background: #253658; border-color: #394e77; }
[data-theme="dark"] .public-site .editorial-card { background: #18243a; }
[data-theme="dark"] .public-site .review-list .location { color: #bdcbe7; }
[data-theme="dark"] .public-site .review-list small.location { background: #263655; }
[data-theme="dark"] .review-phone-screen { background: linear-gradient(160deg, #25395f, #15223a); color: #edf2ff; }
[data-theme="dark"] .review-phone .review-phone-message { background: #202f4c; border-color: #506082; color: #f0f3ff; }
[data-theme="dark"] .review-phone.is-typing [data-review-typed]::after { background: #b7c8ff; }
[data-theme="dark"] .acceptance-choices li:first-child svg { color: #86d6b1; }
[data-theme="dark"] .stars { color: #ffd270; }
[data-theme="dark"] .rating { background: #4a3a22; color: #ffe2a3; }
[data-theme="dark"] .stats div + div { border-color: #465e90; }
[data-theme="dark"] .public-site :is(.faq-content details, .form-group + .form-group, .invoice-payment) { border-color: #334361; }
[data-theme="dark"] .public-site .faq-content summary::after { color: #c3d3ff; }
[data-theme="dark"] .public-site :is(input:not([type="checkbox"],[type="radio"]), select, textarea) {
  background-color: #121d30; color: #edf2ff; border-color: #425477;
}
[data-theme="dark"] .public-site :is(input, textarea)::placeholder { color: #aab8d2; }
[data-theme="dark"] .public-site select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23b5c8ff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
[data-theme="dark"] .public-site input[type="file"]::file-selector-button,
[data-theme="dark"] .public-site .choices :is(label, button) { background: #26395d; color: #d6e2ff; border-color: #425477; }
[data-theme="dark"] .public-site .choices label:has(input:checked) { background: #345081; }
[data-theme="dark"] .public-site :is(.attachment-list, .copy-feedback) { color: #d1dcf4; }
[data-theme="dark"] .public-site .form-result { color: #e0e9ff; background: #27395c; }
[data-theme="dark"] .public-site .form-result.error { color: #ffd9d1; background: #472936; }
[data-theme="dark"] .cancel-text { color: #ffbfb9; }
[data-theme="dark"] .invoice-steps li { background: #24334d; color: #c1cde3; }
[data-theme="dark"] .invoice-steps li.complete { background: #294438; color: #bfe9d0; }
[data-theme="dark"] .invoice-steps li[aria-current="step"] { background: #334c7d; color: #edf2ff; }
[data-theme="dark"] .public-site footer { background: #131e35; }
[data-theme="dark"] .chat-fab { background: #365ab4; }
[data-theme="dark"] .skip-to-main { background: #203251; color: #fff; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-toggle svg { transition: none; }
}
