:root {
  color-scheme: dark;
  font:
    400 16px/1.5 Manrope,
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* A status label for newly added items. */
.new-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.new-tag::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
}

a {
  color: var(--interactive);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

:is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--interactive);
  outline-offset: 3px;
}
/* Disclosure summaries, media and focused headings get the same emerald
   ring instead of the browser's default; rules that hide a heading's ring
   still win. */
:where(summary, video, audio, [tabindex]):focus-visible {
  outline: 2px solid var(--interactive);
  outline-offset: 3px;
}

.app-header {
  position: relative;
  z-index: 12;
  min-height: 112px;
  padding: 28px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.app-header > .wordmark {
  margin: auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  left: 24px;
}

body.page-hidden .screen-light:after {
  animation-play-state: paused;
}

/* The one footer: shell and public pages (scripts/legal-pages.mjs). */
.site-footer {
  margin: 40px auto 0;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
}
.site-footer nav > * {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer p {
  margin: 0;
  font-size: 12px;
}
@media (max-width: 640px) {
  .site-footer nav {
    column-gap: 16px;
  }
}

.wordmark {
  width: 224px;
  height: 44px;
  display: block;
  background: url("/assets/wordmark-4cf698a976cc.webp") center/128% auto
    no-repeat;
  flex-shrink: 0;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 0;
  background: transparent;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: #ffffff0a;
}

.menu-bars {
  display: grid;
  gap: 7px;
  width: 26px;
}

.menu-bars i {
  display: block;
  height: 2px;
  width: 26px;
  border-radius: 2px;
  background: var(--text);
}

.menu-cross {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.menu-open .menu-toggle {
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.menu-open .menu-cross {
  display: flex;
}

.menu-open .menu-bars {
  display: none;
}

#navigation {
  position: fixed;
  z-index: 11;
  inset: 0 auto 0 0;
  width: 340px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 136px 24px 40px;
  overflow-y: auto;
}

#navigation :is(a, button) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
}

#navigation :is(a, button):not(.menu-brand):hover {
  background: #ffffff0a;
}

#navigation a[aria-current] {
  color: var(--interactive);
}

#navigation .menu-group {
  margin-bottom: 22px;
}

#navigation .menu-section-label {
  margin: 0;
  padding: 0 10px 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.04em;
}

#navigation .menu-subnav {
  margin: 0;
  padding-left: 10px;
}

#navigation .menu-subnav :is(a, button) {
  min-height: 44px;
  padding: 11px 10px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
}

#navigation .menu-subnav a[aria-current] {
  color: var(--interactive);
}

#navigation #fixture {
  font-size: 16px;
  min-height: 48px;
  color: var(--muted);
}

#menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #020b1638;
}

.menu-open {
  overflow: hidden;
}

.home {
  max-width: 760px;
  margin: 0 auto;
  padding: 65px 32px 104px;
  text-align: center;
  min-height: calc(100dvh - 112px);
}

.welcome {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 32px 64px;
  text-align: center;
}

.welcome h1 {
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 0;
}

.welcome h1 span {
  color: var(--mint);
}

.welcome .ambient-light {
  margin: 24px auto 20px;
}

.development-entry {
  margin-top: 24px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .welcome {
    padding: 40px 24px 48px;
  }

}
.home h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 0;
}

.ambient-light {
  height: 64px;
  max-width: 300px;
  margin: 28px auto 31px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 25%,
    #000 75%,
    transparent
  );
}

.ambient-light:before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1px;
  top: 31px;
  background: linear-gradient(
    90deg,
    transparent,
    #38bdf832,
    #10b98132,
    transparent
  );
}

.ambient-light:after {
  content: "";
  position: absolute;
  left: -20%;
  top: 28px;
  width: 48px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 17px 3px currentColor;
  color: #38bdf8;
  filter: blur(3px);
  animation: light-pass 10s ease-in-out infinite;
}

@keyframes light-pass {
  0% {
    left: -20%;
    color: #38bdf8;
    opacity: 0;
  }
  20% {
    opacity: 0.2;
    color: #38bdf8;
  }
  45%,
  55% {
    color: #2dd4bf;
    opacity: 0.8;
  }
  80% {
    color: var(--interactive);
    opacity: 0.2;
  }
  100% {
    left: 110%;
    color: var(--interactive);
    opacity: 0;
  }
}

.page-hidden .ambient-light:after {
  animation-play-state: paused;
}

.profit-label {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0;
}

.profit-value {
  font:
    500 88px/1.05 "Space Grotesk",
    Manrope,
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -4px;
  margin: 20px 0 0;
  color: var(--text);
}

#app,
#coming-soon {
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 32px 64px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 16px;
  font-weight: 500;
}

h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 500;
}

h3 {
  font-size: 17px;
  margin: 0 0 12px;
  font-weight: 600;
}

p {
  line-height: 1.6;
  color: var(--muted);
}

body:not([data-view="aim"]) [data-section="aim"],
body:not([data-view="pacing"]) [data-section="pacing"],
body:not([data-view="historical-metrics"]) [data-section="historical-metrics"],
body:not([data-view="compete"]) [data-section="compete"],
body:not([data-view="brand"]) [data-section="brand"],
body:not([data-view="grow"]) [data-section="grow"] {
  display: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 20px 0;
  padding: 24px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.row.end {
  justify-content: space-between;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

.muted {
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  min-height: 44px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--interactive);
  flex-shrink: 0;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

label input,
label select,
label textarea {
  margin-top: 7px;
}

.products {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.product {
  display: grid;
  grid-template-columns: 28px 1fr 170px;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.product label {
  font-weight: 400;
}

.product strong {
  display: block;
  font-size: 14px;
}

.product span {
  font-size: 13px;
  color: var(--muted);
}

.banner {
  background: #0b443c;
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--mint);
  margin: 20px 0;
  font-size: 14px;
}

.notice {
  min-height: 24px;
  color: var(--mint);
  font-size: 14px;
}

.notice:empty {
  display: none;
}

/* Shared field/form validation: soft coral and a decorative warning triangle. */
:is(
  .validation-message,
  .field-error,
  .flow-error,
  .auth-error:not(.auth-notice),
  .notice.error
),
#invite-error {
  position: relative;
  padding-inline-start: 24px;
  color: var(--validation-color);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

:is(
    .validation-message,
    .field-error,
    .flow-error,
    .auth-error:not(.auth-notice),
    .notice.error
  ):not(:empty)::before,
#invite-error:not(:empty)::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("/assets/validation-warning.svg") center / contain no-repeat;
  mask: url("/assets/validation-warning.svg") center / contain no-repeat;
  pointer-events: none;
}

[aria-invalid="true"] {
  border-color: var(--validation-color) !important;
}

.actions {
  position: sticky;
  bottom: 0;
  background: #08192bf2;
  backdrop-filter: blur(8px);
  padding: 16px 0;
}

.details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}

details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
  align-content: center;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  max-height: 400px;
  overflow: auto;
}

.empty {
  padding: 36px;
  text-align: center;
}

.off {
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-light:after {
    animation: none;
    left: 46%;
    color: var(--green);
    opacity: 0.75;
  }

}
@media (max-width: 640px) {
  .app-header {
    min-height: 96px;
    padding: 24px 20px;
    gap: 8px;
  }

  .wordmark {
    width: 177px;
  }

  .header-left {
    gap: 8px;
  }

  #navigation {
    width: 100%;
    padding: 136px 24px 40px;
    border: 0;
    background: var(--bg);
  }

  #navigation :is(a, button) {
    min-height: 76px;
    padding: 17.1px 8px;
    border-bottom: 0;
    border-radius: 0;
    font-size: 28px;
  }

  #navigation .menu-group {
    margin-bottom: 17.9px;
  }
  #navigation .menu-section-label {
    padding-bottom: 4.75px;
  }
  #navigation .menu-subnav :is(a, button) {
    padding-block: 9.8px;
  }
  .menu-open .app-header {
    background: var(--bg);
  }

  .home {
    padding: 66px 20px 80px;
    min-height: calc(100dvh - 96px);
  }

  .home h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
    max-width: 300px;
    margin: auto;
  }

  .ambient-light {
    max-width: 240px;
    margin: 21px auto 28px;
  }

  .profit-label {
    font-size: 18px;
    line-height: 1.4;
    max-width: 280px;
    margin: auto;
  }

  .profit-value {
    font-size: clamp(45px, 14vw, 56px);
    letter-spacing: -2.5px;
    margin-top: 19px;
  }

  #app {
    padding: 0 20px 40px;
    margin-top: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .card {
    padding: 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 24px minmax(0, 1fr) 100px;
    gap: 8px;
  }

  .product input[type="number"] {
    padding: 8px;
  }

  .product strong,
  .product span {
    overflow-wrap: anywhere;
  }

  .row button {
    flex: 1;
  }

  .actions button {
    width: 100%;
  }
}
/* Settings: compact catalog and one focused configuration at a time. */

.is-recommended,
.aim-choice:has(.aim-choice-recommended) {
  border-color: #6ee7b7;
  box-shadow: 0 0 16px #6ee7b71a;
}

.is-recommended:not([aria-pressed="true"]),
.aim-choice:has(.aim-choice-recommended):not([aria-pressed="true"]) {
  background: #102e2d;
  color: #d1fae5;
}

/* WP-06: real listing states, prepared plans and adapter labels. */

@keyframes aim-live-glow {
  0%,
  100% {
    box-shadow: 0 0 10px #10b98144;
  }
  50% {
    box-shadow: 0 0 18px #10b98199;
  }
}

/* The listing editor uses one card and the same four decisions as the overview. */

@keyframes aim-pending-pulse {
  50% {
    opacity: 0.65;
    box-shadow:
      0 0 0 4px #84d0fa12,
      0 0 14px #84d0fa70;
  }
}

.muted {
  color: var(--muted);
}

#activity-value.caught-up {
  text-shadow: 0 0 18px #a7f3d055;
}

#pr-grow .basis,
#verify-dashboard .pr-basis {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

#pr-grow .comparison.unavailable {
  opacity: 0.75;
}

#pr-grow .expand {
  margin-top: 8px;
  min-height: 36px;
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

#pr-grow .target small,
#pr-grow .reading small {
  color: var(--muted);
  font-size: 11px;
}

/* Notifications bell (WP-08) */

.header-right {
  display: flex;
  align-items: center;
  position: absolute;
  right: 24px;
}

.bell {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  background: #ffffff0a;
  color: inherit;
  cursor: pointer;
}

/* Unread notifications use a moving light, without an expanding ring. */

.bell[data-unread="true"] {
  isolation: isolate;
  background: #143631;
  border-color: #86e8ca80;
  color: #d8fff1;
  box-shadow: 0 0 12px #7edbb626;
}

.bell[data-unread="true"]::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(transparent 60%, var(--mint) 85%, transparent);
  filter: blur(3px);
  animation: notification-moving-light 4s linear infinite;
}

@keyframes notification-moving-light {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bell[data-unread="true"]::before {
    animation: none;
  }
}
.bell-icon {
  display: block;
  width: 16px;
  height: 18px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 8px 8px 2px 2px;
  box-sizing: border-box;
}

.bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #34d399;
  color: #052e22;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.notifications-panel {
  position: absolute;
  top: 54px;
  right: 0;
  z-index: 14;
  width: min(420px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  padding: 20px 24px;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: var(--bg, #0b1512);
  box-shadow: 0 16px 40px #00000066;
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification {
  padding: 21px 0 23px;
  border-bottom: 1px solid var(--line);
  position: relative;
  touch-action: pan-y;
}

.notification:last-child {
  border-bottom: 0;
}

.notification strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.notification p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.notification time,
.notifications-empty {
  font-size: 12px;
  opacity: 0.7;
}

.notification time {
  display: block;
  margin-top: 8px;
}

.notifications-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  background: #ffffff0a;
  color: inherit;
  cursor: pointer;
}

/* Catalog changes (WP-08 C) */

/* Exit (WP-08 D2) */

.exit-card .row {
  flex-wrap: wrap;
}

.exit-steps {
  margin: 6px 0 10px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.exit-receipt strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

#exit-delete {
  margin-top: 12px;
}

#exit-delete input {
  display: block;
  margin: 8px 0;
  max-width: 240px;
}

/* Approved Settings goal choices and compact, status-accented mobile panels. */

/* Variation choices: unset plus, green On, red Off. */

.flow-alert {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 1px solid var(--warn);
  border-radius: 50%;
  color: var(--warn);
  display: grid;
  place-items: center;
  font-size: 28px;
  animation: flow-attention-pop 1s ease both;
}

@keyframes flow-attention-pop {
  0% {
    transform: scale(0.7);
  }
  45% {
    transform: scale(1.12) rotate(8deg);
  }
  65% {
    transform: rotate(-8deg);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-alert {
    animation: none;
  }
}
/* Shared read failure: one responsive message/action group. */
.load-error {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 20px 0;
  color: var(--text);
}
.load-error:not(.load-error-initial) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.load-error:not(.load-error-initial) .load-error-icon {
  align-self: start;
  margin-top: 3px;
}
.load-error .load-error-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--warn);
  border-radius: 50%;
  color: var(--warn);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.load-error .load-error-copy {
  flex: 1;
  min-width: 0;
}
.load-error .load-error-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
}
.load-error .load-error-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.load-error .load-error-retry {
  flex-shrink: 0;
  width: auto;
  margin: 0;
  border-color: var(--interactive);
  color: var(--interactive);
}
.report-failure-title {
  margin: 0 0 20px;
  text-align: left;
  font: 500 32px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: -1px;
}
@media (max-width: 640px) {
  .report-failure-title {
    font-size: 28px;
  }
}
.load-error-initial {
  flex-direction: column;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.load-error-initial .flow-alert {
  align-self: center;
  flex: 0 0 auto;
  margin-bottom: 0;
}
.load-error-initial .load-error-copy h2 {
  font-size: 20px;
  font-weight: 500;
}
.load-error-initial .load-error-retry {
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .load-error:not(.load-error-initial) {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .load-error:not(.load-error-initial) .load-error-icon {
    display: none;
  }
  .load-error:not(.load-error-initial) .load-error-retry {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
}

/* Consistent chart slider geometry across browsers; JS aligns thumb travel
   with the chart's plotted first and last points. */
input.chart-axis-slider {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  padding: 0;
  border: 0;
}
input.chart-axis-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--chart-slider-color) 0 var(--chart-slider-progress),
    var(--chart-slider-track) var(--chart-slider-progress) 100%
  );
}
input.chart-axis-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: var(--chart-slider-color);
}
input.chart-axis-slider::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--chart-slider-color) 0 var(--chart-slider-progress),
    var(--chart-slider-track) var(--chart-slider-progress) 100%
  );
}
input.chart-axis-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--chart-slider-color);
}

/* Header, menu, forms, notifications and sign-in. */
#mode {
  display: none;
}
.interface-page {
  max-width: 760px;
  margin: auto;
  padding: 26px 24px;
}
.interface-page > .responsive-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.interface-page h1 {
  margin: 0 0 24px;
}
.interface-page h2 {
  font-weight: 500;
}
.interface-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.interface-card p,
.interface-page > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.button {
  margin-top: 18px;
}
.support-address {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 16px;
  user-select: all;
}
.welcome-video {
  aspect-ratio: 16/9;
  max-width: 650px;
  margin: 30px auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(140deg, var(--surface), var(--bg));
  display: grid;
  place-items: center;
  color: var(--muted);
}
.welcome-video span {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.invite-availability {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
#invite-request {
  display: grid;
  gap: 20px;
}
#invite-request > label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
#invite-request input:not([type="radio"]) {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  font:
    16px Manrope,
    sans-serif;
}
.invite-ranges legend {
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.invite-ranges input {
  position: absolute;
  opacity: 0;
}
.invite-ranges span {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.invite-ranges input:checked + span {
  border-color: var(--interactive);
  color: var(--interactive);
  background: color-mix(in srgb, var(--interactive) 7%, transparent);
}
.invite-ranges input:focus-visible + span {
  outline: 2px solid var(--interactive);
}
.menu-heading {
  display: none;
}
.aim-save[hidden] {
  display: none !important;
}
.menu-brand {
  display: block;
  width: 174px;
  height: 36px;
  background: url("/assets/wordmark-4cf698a976cc.webp") center/128% auto
    no-repeat;
}
.notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.notifications-head h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
}
.notifications-head button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 25px;
  min-width: 44px;
  min-height: 44px;
}
.notifications-history-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 0 4px;
  margin-top: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.notification-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}
.notification-undo button {
  color: var(--interactive);
  background: none;
  border: 0;
}
.notification-history {
  max-width: 760px;
  margin: auto;
}
.notifications-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.notifications-title h1 {
  margin: 0;
}
.notifications-subtitle {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.notifications-caught-up {
  padding: 64px 0 86px;
  text-align: center;
}
.notifications-panel .notifications-caught-up {
  padding: 32px 0 40px;
}
.notifications-caught-up > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mint);
  font-size: 24px;
}
.notifications-caught-up h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.notifications-caught-up p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.notification-history .notification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  align-items: center;
  gap: 28px;
  padding: 25px 0;
  border-bottom-color: var(--line);
}
.notification-history .notification-copy {
  min-width: 0;
}
.notification-history .notification-copy:only-child {
  grid-column: 1 / -1;
}
.notification-history .notification-controls .notification-action {
  width: 100%;
  margin: 0;
  text-align: center;
}
@media (max-width: 640px) {
  .notification-history .notification {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 23px 0;
  }
}
/* Where to act (B7): a link to the screen that fixes it, or a quiet note
   when there is nothing for the member to do. */
.notification-action {
  display: flex;
  width: fit-content;
  margin: 15px 0 0;
}
.notifications-panel .notification-action {
  width: 100%;
}
.notification-background {
  display: block;
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.notifications-feedback {
  position: sticky;
  bottom: -12px;
  z-index: 1;
  padding-bottom: 4px;
  background: var(--bg, #0b1512);
}
.notifications-feedback .notice {
  margin: 12px 0 0;
}
.notification-history > .notice {
  margin-top: 12px;
}
/* When recommendations were last checked, under the page heading. */
.notifications-checked {
  display: block;
  font-size: 13px;
}
/* The member's own response, confirmed once with Undo (R6). */
.notifications-response {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.notifications-response > span {
  color: var(--mint);
}
.notifications-response p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.notifications-response button,
.notifications-changes button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--interactive);
}
/* Recent changes, with Undo where it can be undone (R8). */
.notifications-changes {
  margin-top: 40px;
}
.notifications-changes h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.notifications-changes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.notifications-changes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notifications-changes li:last-child {
  border-bottom: 0;
}
.notifications-changes strong {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.notifications-changes p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.notifications-changes time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
/* A visible Dismiss on every bell row (NTF-06); phones keep the swipe. */
.notification-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.notification-dismiss {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  min-width: 0;
  min-height: 0;
  margin: -3px -6px -3px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}
.notification-dismiss:hover {
  color: var(--text);
  background: var(--surface);
}
.cost-unlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  text-align: center;
}
.cost-unlock h2 {
  font-size: 20px;
  margin: 0;
}
.cost-unlock a {
  color: var(--interactive);
}
@media (max-width: 640px) {
  .header-left {
    left: 12px;
  }
  .header-right {
    right: 12px;
  }
  .wordmark {
    width: 174px;
  }
  .interface-page {
    padding: 22px 18px;
  }
  .interface-card {
    padding: 24px 20px;
  }
  .menu-heading {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 4px;
    padding-bottom: 24px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .menu-heading .menu-brand {
    grid-column: 2;
  }
  #navigation #menu-close {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
  }
  .menu-heading span {
    grid-column: 1;
  }
  .menu-open #navigation {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    padding: 24px;
    overflow-y: auto;
    z-index: 100;
    background: var(--bg);
  }
  #navigation > a {
    padding: 14px 0;
    font-size: 19px;
  }
  .notifications-panel {
    position: fixed;
    inset: 0;
    z-index: 120;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 18px 22px;
    box-sizing: border-box;
    background: var(--bg);
    overflow: auto;
  }
  .notifications-open {
    overflow: hidden;
  }
  .button {
    width: 100%;
    box-sizing: border-box;
  }
}

body:not([data-view="settings"]) [data-section="settings"],
body:not([data-view="connections"]) [data-section="connections"],
body:not([data-view="notifications"]) [data-section="notifications"],
body:not([data-view="launch"]) [data-section="launch"] {
  display: none !important;
}
@media (max-width: 640px) {
  .onboarding-actions {
    display: flex;
    flex-direction: column;
  }
  .onboarding-actions > * {
    width: 100%;
  }
}

/* A locked profit metric replaces the headline and chart, never the metric
   choices; the page's own #verify-dashboard rules would otherwise keep the
   headline (and a locked figure) showing. */
#verify-dashboard .pr-pace-panel.is-cost-locked > :not(.cost-unlock, .pr-filters) {
  display: none;
}
/* A locked tile's lock keeps its own size: the tile label rule
   (#verify-dashboard .pr-metric span) would stretch it. */
#verify-dashboard .pr-row-value .interface-lock,
#verify-dashboard .pr-metric strong .interface-lock {
  display: inline-block;
  min-height: 0;
  height: 12px;
  margin: 10px 0 0 2px;
}
.cost-unlock .primary {
  margin-top: 2px;
}
.cost-unlock p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.interface-lock {
  display: inline-block;
  width: 14px;
  height: 12px;
  border: 1.5px solid var(--mint);
  border-radius: 3px;
  margin: 6px 9px 0 0;
  position: relative;
}
.interface-lock:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--mint);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  left: 1.5px;
  top: -8px;
}

#navigation .menu-brand {
  height: 36px;
  min-height: 36px;
  width: 174px;
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 0;
  background: transparent url("/assets/wordmark-4cf698a976cc.webp") center/128%
    auto no-repeat;
}
body[data-view="settings"] #brand-settings-title,
body:is(
    [data-view="connections"],
    [data-view="notifications"],
    [data-view="launch"]
  )
  #workspace-title {
  display: none;
}

/* Branded sign-in (backend packet B2). */
.auth-page {
  max-width: 488px;
  padding: 54px 24px 28px;
}
.auth-card > p,
.auth-done > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .auth-page {
    padding: 30px 20px 24px;
  }
}
.auth-page h1:focus {
  outline: none;
}

.auth-page .auth-card {
  max-width: 480px;
  margin: auto;
}

.auth-page .auth-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.auth-page > h1 {
  text-align: center;
  margin: 0 0 28px;
}

#app:has(.auth-confirmation) {
  padding-bottom: 24px;
}
.auth-page.auth-confirmation {
  padding-top: 24px;
}
.auth-confirmation > .auth-back {
  margin-bottom: 12px;
}
.auth-confirmation > h1 {
  text-align: left;
  margin-bottom: 16px;
}
.auth-confirmation .auth-card {
  max-width: none;
}
.auth-confirmation .auth-card > p {
  margin: 0;
  font-size: var(--text-body);
  line-height: 24px;
}
.auth-confirmation .auth-card > .auth-inbox-hint {
  margin-top: 12px;
  font-size: var(--text-secondary);
  line-height: 21px;
}
.auth-confirmation-actions {
  margin-top: 24px;
}
.auth-confirmation-actions .primary {
  width: 100%;
}
@media (max-width: 640px) {
  .auth-page.auth-confirmation {
    padding-top: 60px;
  }
}

.auth-page .password-requirements {
  list-style: none;
  padding: 0;
  margin: -8px 0 18px;
  color: #a6b5c5;
  font-size: 12px;
}

.auth-page .password-requirements li {
  margin: 5px 0;
}

.auth-page .password-requirements li:before {
  content: "\25cb";
  display: inline-block;
  width: 20px;
}

.auth-page .password-requirements li.met {
  color: #a7f3d0;
}

.auth-page .password-requirements li.met:before {
  content: "\2713";
}

.auth-page h2 {
  font-size: 15px;
  margin: 20px 0 12px;
}

.auth-page .auth-done {
  text-align: center;
}

.auth-page .auth-form > button.primary {
  min-height: 48px;
}

.auth-page .auth-qr svg {
  max-width: 200px;
}
.auth-form {
  display: grid;
  gap: 22px;
}
.auth-form > p {
  margin: 0;
}
.auth-form > label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.auth-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  font:
    16px Manrope,
    sans-serif;
}
.auth-form input[name="code"] {
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.auth-hint {
  font-size: 12px !important;
}
.auth-form .auth-error {
  margin: 0;
}
.auth-form .auth-notice {
  color: var(--mint);
  font-size: 13px;
}
.auth-link {
  display: block;
  margin: 0 auto;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: 0;
  color: var(--interactive);
  font:
    500 14px Manrope,
    sans-serif;
  cursor: pointer;
}
.auth-qr {
  justify-self: center;
  width: 208px;
  max-width: 100%;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qr-code {
  display: block;
  width: 100%;
  height: auto;
}
.auth-manual summary {
  cursor: pointer;
  color: var(--interactive);
  font-size: 14px;
  text-align: center;
}
.auth-key {
  display: block;
  margin: 14px 0 6px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font:
    500 15px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.06em;
  text-align: center;
  word-break: break-word;
  user-select: all;
}
.auth-manual small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.auth-done h2 {
  margin-top: 0;
}
.auth-done h2 span {
  color: var(--mint);
}
.auth-done .primary {
  display: flex;
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .auth-qr {
    width: 184px;
  }
}

.cost-unlock h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: clamp(14px, 3.8vw, 20px);
}
.cost-unlock .interface-lock {
  flex-shrink: 0;
}

.support-action {
  display: block;
  max-width: 480px;
  margin: 24px auto;
  text-align: center;
  padding: 14px;
}
.invite-intro {
  color: #a6b5c5;
}
.interface-page:has(#invite-request) #invite-request {
  background: none;
  border: 0;
  padding: 0;
}
.invite-ranges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}
.invite-ranges label {
  display: flex;
  position: relative;
  min-width: 0;
}
.invite-ranges label input {
  position: absolute;
  opacity: 0;
}
.invite-ranges label span {
  border: 1px solid #2b4054;
  border-radius: 10px;
  padding: 12px 8px;
  min-height: 48px;
  width: 100%;
  text-align: center;
}
.invite-ranges label:has(input:checked) span {
  border-color: var(--interactive);
  background: color-mix(in srgb, var(--interactive) 8%, transparent);
}
.invite-ranges label:has(input:focus-visible) span {
  outline: 2px solid var(--interactive);
  outline-offset: 2px;
}
#invite-received {
  text-align: center;
  background: none;
  border: 0;
}
#invite-received > .button {
  display: block;
  margin-top: 24px;
}

/* Shared public authentication and invitation presentation. */
@media (max-width: 640px) {
  .invite-ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.success-celebration {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.success-artwork {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.666666667);
}

.success-seal {
  width: 96px;
  height: 96px;
  overflow: visible;
  animation: success-pop 650ms cubic-bezier(0.2, 0.9, 0.25, 1.3) both;
}

.success-disc {
  fill: #a7f3d00d;
}

.success-ring {
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 48px 48px;
  animation: success-draw 520ms ease-out both;
}

.success-check {
  stroke: var(--mint);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: success-draw 320ms 300ms ease-out both;
}

.success-halo {
  position: absolute;
  inset: 21px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  opacity: 0;
  animation: success-halo 1s 350ms ease-out both;
}

.success-spark {
  position: absolute;
  left: calc(50% - 2px);
  top: calc(50% - 2px);
  width: 4px;
  height: 7px;
  border-radius: 3px;
  background: var(--mint);
  opacity: 0;
  animation: success-spark 650ms var(--spark-delay) ease-out both;
}

.success-spark:nth-of-type(even) {
  height: 4px;
  background: var(--green);
}

@keyframes success-draw {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes success-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes success-halo {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes success-spark {
  0% {
    transform: translate(
        calc(var(--spark-x) * 0.55),
        calc(var(--spark-y) * 0.55)
      )
      rotate(var(--spark-angle)) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  100% {
    transform: translate(var(--spark-x), var(--spark-y))
      rotate(var(--spark-angle)) scale(0.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-seal,
  .success-ring,
  .success-check,
  .success-halo,
  .success-spark {
    animation: none;
  }

  .success-halo,
  .success-spark {
    display: none;
  }
}
