@font-face {
  font-family: "Manrope";
  src: url("/brand/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

:root[data-bg="midnight"] {
  color: #eaf4ff;
  --bg: #050d19;
  --bg-2: #091525;
  --panel: #0d1a2bd9;
  --panel-strong: #091526f5;
  --panel-soft: #ffffff0a;
  --line: #a5c7e729;
  --line-strong: #a5c7e747;
  --text: #f2f8ff;
  --muted: #9aadc1;
  --muted-2: #6f849a;
  background: #050d19;
}

:root[data-bg="ocean"] {
  color: #e9faff;
  --bg: #041722;
  --bg-2: #082535;
  --panel: #0a2937d9;
  --panel-strong: #06212ff5;
  --panel-soft: #a8efff0a;
  --line: #88e6f42b;
  --line-strong: #88e6f44d;
  --text: #effcff;
  --muted: #96bcc5;
  --muted-2: #658d99;
  background: #041722;
}

:root[data-bg="graphite"] {
  color: #f1f3f6;
  --bg: #101216;
  --bg-2: #181b21;
  --panel: #1a1d23dc;
  --panel-strong: #15181ef5;
  --panel-soft: #ffffff0a;
  --line: #d8e1ee24;
  --line-strong: #d8e1ee42;
  --text: #f5f7fa;
  --muted: #a9b0bb;
  --muted-2: #777f8b;
  background: #101216;
}

:root[data-bg="violet"] {
  color: #f3efff;
  --bg: #120d20;
  --bg-2: #1c1530;
  --panel: #211938d9;
  --panel-strong: #19122df5;
  --panel-soft: #d9caff0b;
  --line: #c9b8f52a;
  --line-strong: #c9b8f54b;
  --text: #f7f2ff;
  --muted: #b1a4c6;
  --muted-2: #807392;
  background: #120d20;
}

:root[data-bg="ice"] {
  color: #173047;
  --bg: #e8f1f7;
  --bg-2: #f5f9fc;
  --panel: #ffffffd9;
  --panel-strong: #fffffff7;
  --panel-soft: #12355308;
  --line: #173d5b24;
  --line-strong: #173d5b3d;
  --text: #102a41;
  --muted: #61778b;
  --muted-2: #8294a4;
  --shadow: 0 24px 70px #23435a1f;
  background: #e8f1f7;
}

:root[data-bg="sand"] {
  color: #2e2925;
  --bg: #f1ece5;
  --bg-2: #faf7f2;
  --panel: #fffdf9dc;
  --panel-strong: #fffdfaf7;
  --panel-soft: #493c3109;
  --line: #4d403223;
  --line-strong: #4d40323d;
  --text: #2a2521;
  --muted: #746a61;
  --muted-2: #92887e;
  --shadow: 0 24px 70px #493c311c;
  background: #f1ece5;
}

body,
button,
input,
textarea,
select {
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 18% -10%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 34rem),
    radial-gradient(circle at 92% 105%, color-mix(in srgb, #8b6cff 8%, transparent), transparent 35rem),
    var(--bg);
}

.entry-page,
.onboarding-page,
.app-shell {
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    radial-gradient(circle at 95% 100%, color-mix(in srgb, #8b6cff 7%, transparent), transparent 38rem),
    var(--bg);
}

.entry-glow {
  display: none;
}

.brand-symbol {
  color: transparent !important;
  background-color: #07162b !important;
  background-image: url("/brand/project-dash-mark.webp") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 14px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  overflow: hidden;
}

.entry-header .brand-symbol,
.onboarding-head .brand-symbol {
  width: 54px;
  height: 54px;
}

.brand-mark strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .105em;
}

.brand-mark small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .025em;
}

.entry-copy h1 {
  max-width: 780px;
  font-weight: 750;
  letter-spacing: -.038em;
  line-height: 1.055;
}

.entry-copy > p {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-weight: 450;
}

.lead-card,
.panel,
.settings-card,
.project-card,
.goal-card {
  border-color: color-mix(in srgb, var(--line) 82%, var(--accent) 18%);
}

.lead-card h2,
.section-head h2,
.settings-card h2 {
  font-weight: 750;
}

.field > span,
.label {
  font-size: 11.5px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.toolbar select {
  border-radius: 12px;
  font-size: 12px;
}

.btn {
  border-radius: 11px;
  font-weight: 750;
}

.sidebar.open {
  width: 252px;
}

.sidebar.closed {
  width: 76px;
}

.sidebar-brand {
  height: 88px;
  padding: 16px 15px;
}

.sidebar-brand .brand-symbol {
  width: 46px;
  height: 46px;
}

.sidebar nav button {
  border-radius: 12px;
  min-height: 46px;
}

.sidebar nav b {
  font-size: 12.5px;
  font-weight: 700;
}

.sidebar.closed nav button {
  padding-inline: 12px;
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  right: -14px;
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px #00000035;
}

.dual-powered {
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dual-powered .powered-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.dual-powered .powered-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dual-powered img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 8px 18px #00000020;
}

.dual-powered-view {
  width: min(100%, 1500px);
  margin: 34px auto 0;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}

.dual-powered-entry {
  position: relative;
  z-index: 3;
  margin: 42px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 1220px;
}

.dual-powered-menu {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.sidebar.closed .dual-powered-menu {
  gap: 5px;
}

.sidebar.closed .dual-powered-menu .powered-label {
  font-size: 5.5px;
  letter-spacing: .08em;
}

.sidebar.closed .dual-powered-menu .powered-logos {
  gap: 4px;
}

.sidebar.closed .dual-powered-menu img {
  width: 23px;
  height: 23px;
  border-radius: 6px;
}

.powered {
  display: none !important;
}

.background-settings {
  grid-column: span 12;
}

.background-settings > header {
  align-items: center;
}

.background-settings .background-icon {
  background:
    linear-gradient(135deg, var(--accent), #8b6cff);
  color: #07111f;
  font-size: 15px;
  font-weight: 900;
}

.background-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.background-option {
  min-height: 82px;
  padding: 9px;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  transition: transform .18s, border-color .18s, background .18s;
}

.background-option:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.background-option.selected {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--panel-soft));
}

.background-swatch {
  width: 100%;
  height: 30px;
  border: 1px solid #ffffff25;
  border-radius: 8px;
  box-shadow: inset 0 1px #ffffff1a;
}

.background-option[data-value="auto"] .background-swatch {
  background: linear-gradient(135deg, #07111f 0 50%, #edf3f8 50% 100%);
}

.background-option[data-value="midnight"] .background-swatch { background: #050d19; }
.background-option[data-value="ocean"] .background-swatch { background: #041722; }
.background-option[data-value="graphite"] .background-swatch { background: #101216; }
.background-option[data-value="violet"] .background-swatch { background: #120d20; }
.background-option[data-value="ice"] .background-swatch { background: #e8f1f7; }
.background-option[data-value="sand"] .background-swatch { background: #f1ece5; }

@media (max-width: 900px) {
  .background-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dual-powered-menu img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 680px) {
  .entry-header .brand-symbol,
  .onboarding-head .brand-symbol {
    width: 46px;
    height: 46px;
  }

  .brand-mark strong {
    font-size: 12px;
  }

  .entry-copy h1 {
    font-size: 35px;
    letter-spacing: -.033em;
  }

  .background-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dual-powered-view {
    margin-top: 24px;
    padding-bottom: 64px;
  }

  .dual-powered-entry {
    margin-top: 30px;
  }

  .dual-powered img {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-option,
  .sidebar {
    transition: none;
  }
}
