/* Shared palette. Dark mode retains the original design. */
:root[data-theme='light'] {
  color-scheme: light;
  --theme-white: #181818;
  --c-080808: #f5f5f5;
  --c-f6f6f4: #191919;
  --c-f8f8f4: #202020;
  --c-1d1d1d: #dedede;
  --c-191919: #f0f0f0;
  --c-181818: #f8f8f8;
  --c-111: #fff;
  --c-1a1a1a: #dedede;
  --c-999: #626262;
  --c-888: #666;
  --c-939393: #626262;
  --c-727272: #777;
  --c-a2a2a2: #606060;
  --c-b3b3b3: #575757;
  --c-ddd: #333;
  --c-fff: #181818;
  --c-646464: #999;
  --c-777: #6b6b6b;
  --c-aaa: #5e5e5e;
  --c-d9c6a5: #76551d;
  --c-f4f4f0: #202020;
  --c-282828: #ddd;
  --c-444: #bbb;
  --c-171717: #fff;
  --c-eee: #252525;
  --c-bcbcbc: #555;
  --c-343434: #ccc;
  --c-242424: #e8e8e8;
  --c-454545: #c5c5c5;
  --c-202020: #efefef;
  --c-303030: #e0e0e0;
  --c-373737: #ddd;
  --c-131313: #fff;
  --c-f3f3ef: #202020;
  --c-262626: #ddd;
  --c-ccc: #444;
  --c-333: #d4d4d4;
  --c-141414: #fff;
  --c-484848: #b9b9b9;
  --c-1c1c1c: #f6f6f6;
  --c-f1f1ed: #202020;
  --c-f0b3a9: #a42b21;
  --c-151515: #fff;
  --c-363636: #ccc;
  --c-6d6043: #c5a667;
  --c-e4ce9f: #725116;
  --c-bbb: #555;
  --c-252525: #e9e9e9;
  --c-383838: #ccc;
  --c-555: #999;
  --c-cfc2a6: #76551d;
  --c-dda39b: #a42b21;
  --c-3d3d3d: #ccc;
  --c-101010: #eee;
  --c-666: #999;
  --c-292929: #e7e7e7;
  --c-3b3b3b: #d8d8d8;
  --c-494949: #ccc;
  --c-272727: #e7e7e7;
  --c-f1f1f1: #202020;
  --c-f3a7ac: #a32630;
}
.theme-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-484848, #484848);
  border-radius: 50%;
  background: var(--c-191919, #191919);
  color: var(--c-eee, #eee);
  cursor: pointer;
}
.theme-toggle svg {
  width: 21px;
  height: 21px;
}
.theme-toggle:hover {
  border-color: var(--c-aaa, #aaa);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--c-eee, #eee);
  outline-offset: 4px;
}
.panel-top .theme-toggle {
  margin-left: auto;
}
.portal-header .theme-toggle {
  margin-left: 0;
}
.success-panel > .theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
}
.success-panel {
  position: relative;
}
:root[data-theme='light'] .brand-logo,
:root[data-theme='light'] .wordmark img {
  filter: none;
  mix-blend-mode: multiply;
}
:root[data-theme='light'] .notification-badge,
:root[data-theme='light'] .danger-button {
  color: #fff;
}
:root[data-theme='light'] .notification-panel {
  box-shadow: 0 16px 48px #0002;
}
:root[data-theme='light'] dialog {
  box-shadow: 0 20px 70px #0003;
}
:root[data-theme='light'] .confirmation-local {
  color: #626262 !important;
}
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-eee, #eee);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .portal-header {
    column-gap: 12px;
  }
  .portal-header > .theme-toggle {
    width: 40px;
    height: 40px;
  }
  .portal-header .identity {
    gap: 10px;
  }
  .portal-header > .wordmark {
    margin-right: auto;
  }
  .portal-header .identity {
    margin-left: 0;
  }
  .portal-header .identity #advisor-name {
    max-width: 90px;
  }
}
@media (max-width: 380px) {
  .portal-header .identity #advisor-name {
    max-width: 68px;
  }
  .portal-header {
    column-gap: 8px;
  }
  .portal-header > .wordmark {
    width: 85px;
  }
  .portal-header > .wordmark img {
    width: 128px;
    height: 128px;
    left: -21px;
    top: -78px;
  }
  .portal-header .identity {
    gap: 8px;
  }
}
