@import url("/fonts.css");
:root {
  font:
    18px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202735;
  background: #f6f7f9;
  font-synthesis: none;
  --accent: #f77557;
  --muted: #687180;
  --line: #e3e6eb;
  --ink: #171e2b;
  --green: #19765c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.15s,
    transform 0.15s;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
}
button,
input,
select {
  min-height: 46px;
  border-radius: 10px;
}
button {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 600;
}
button:hover {
  background: #f1f3f7;
}
button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
button.primary:hover {
  background: #323d50;
}
button.accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
button.ghost {
  background: transparent;
}
input,
select {
  width: 100%;
  border: 1px solid #cbd0d8;
  background: white;
  padding: 11px 13px;
  color: var(--ink);
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f9b09f;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -0.06rem;
}
h2 {
  font-size: 1.22rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.05rem;
}
small,
.small {
  font-size: 0.89rem;
}
.muted {
  color: var(--muted);
}
.secret-field {
  position: relative;
  display: block;
  min-width: 0;
}
.secret-field input { padding-right: 56px; }
.secret-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #596474;
}
.secret-toggle svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.secret-toggle .secret-slash { display: none; }
.secret-toggle[aria-pressed="true"] .secret-slash { display: initial; }
.link-tracking { margin-top: 8px; white-space: nowrap; }
.tracking-connections { display: grid; gap: 18px; margin-bottom: 28px; }
.tracking-connection, .tracking-editor, .tracking-intro { padding: 24px; }
.tracking-connection-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tracking-eyebrow { display: block; font-size: 0.89rem; color: var(--muted); margin-bottom: 5px; }
.tracking-link-label { margin-top: 14px; overflow-wrap: anywhere; }
.tracking-goal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tracking-goal-tags > span { background: #f0f3f7; border-radius: 8px; font-size: 0.89rem; padding: 6px 10px; }
.tracking-connection-foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tracking-connection-foot > span { max-width: 480px; }
.tracking-actions, .tracking-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tracking-intro { display: flex; align-items: flex-start; gap: 20px; }
.tracking-intro-symbol { flex: none; font-size: 2rem; line-height: 1; color: #9d462e; background: #fbe6de; border-radius: 14px; padding: 15px; }
.tracking-intro p { margin-top: 12px; max-width: 700px; }
.tracking-editor { margin-bottom: 26px; scroll-margin-top: 110px; border-color: #c9cfd9; }
.tracking-editor form { margin-top: 24px; gap: 0; }
.tracking-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.tracking-token { grid-column: 1 / -1; }
#tracking-link-preview { overflow-wrap: anywhere; }
#platform-note:not(:empty) { margin-top: 16px; }
.tracking-goals { padding: 0; border: 0; margin: 28px 0 24px; min-width: 0; }
.tracking-goals legend { font-size: 1.22rem; font-weight: 650; margin-bottom: 8px; }
#goal-options { display: grid; gap: 12px; margin-top: 20px; }
.tracking-goal { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tracking-goal:has(input:checked:not(:disabled)) { border-color: #e7a18c; background: #fffaf7; }
.tracking-goal.unavailable { background: #f6f7f9; }
.tracking-unavailable summary { min-height: 44px; padding: 8px 0; cursor: pointer; color: var(--muted); font-weight: 550; }
.tracking-unavailable > div { display: grid; gap: 12px; margin-top: 10px; }
.tracking-checkbox { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.tracking-checkbox input { flex: none; width: 24px; height: 24px; min-height: 24px; margin: 3px 0; accent-color: #b14d32; }
.tracking-checkbox > span { flex: 1; min-width: 0; }
.tracking-checkbox .field-hint { display: block; margin-top: 4px; }
.tracking-goal-reason { display: block; color: #8b4c39; font-size: 0.89rem; font-weight: 400; margin-top: 7px; }
.tracking-goal-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 16px 0 0 36px; }
.tracking-goal-settings[hidden] { display: none; }
.tracking-purpose { grid-column: 1 / -1; color: var(--muted); grid-row: 2; }
.tracking-enable { padding: 16px; background: #f4f6f9; border-radius: 12px; }
.tracking-form-actions { justify-content: flex-end; margin-top: 22px; }
.tracking-validation { border: 1px solid #cad9d0; padding: 22px; background: #f4f9f6; border-radius: 14px; margin-bottom: 22px; }
.tracking-validation ul { padding-left: 24px; margin: 14px 0; }
.tracking-history-controls { display: flex; align-items: flex-end; gap: 14px; padding: 20px 24px; }
.tracking-history-controls label { flex: 1; max-width: 440px; }
.tracking-empty { padding: 24px; color: var(--muted); }
.tracking-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.tracking-history td { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .tracking-connection, .tracking-editor, .tracking-intro { padding: 18px; }
  .tracking-intro { gap: 14px; }
  .tracking-intro-symbol { font-size: 1.4rem; padding: 11px; }
  .tracking-form-grid, .tracking-goal-settings { grid-template-columns: minmax(0, 1fr); }
  .tracking-goal-settings { margin-left: 0; }
  .tracking-purpose { grid-row: auto; }
  .tracking-connection-head { align-items: flex-start; }
  .tracking-actions { width: 100%; }
  .tracking-actions button { flex: 1; }
  .tracking-form-actions > button { flex: 1; }
  .tracking-history-controls, .tracking-pagination { padding: 18px; }
  .tracking-pagination > span { order: -1; width: 100%; text-align: center; }
}
.initial {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--ink);
  color: #c2c9d4;
  text-align: center;
}
.initial > img {
  width: 192px;
  height: 72px;
  margin-bottom: 30px;
}
.initial p,
.initial noscript {
  font-size: 1rem;
}
.initial-progress {
  width: 192px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #374357;
  margin-bottom: 20px;
}
.initial-progress span {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: #ffad96;
  animation: loading-sweep 1.5s ease-in-out infinite alternate;
}
.initial-retry {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: #ffad96;
  visibility: hidden;
  animation: loading-retry 0s 8s forwards;
}
@keyframes loading-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(220%); }
}
@keyframes loading-retry {
  to { visibility: visible; }
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.brand,
.brand:hover,
.brand:active,
.brand:focus {
  background: transparent;
  box-shadow: none;
}
.brand:focus:not(:focus-visible) {
  outline: none;
}
.brand img {
  height: 72px;
  width: 192px;
  flex: none;
}
.auth {
  min-height: 100svh;
  background: #f4f5f7;
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 16;
  min-height: 97px;
  padding: 12px clamp(24px, 3vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  border-bottom: 1px solid #354155;
}
.public-signin {
  height: 64px;
  padding: 10px 14px;
  background: #283449;
  color: #eef2f7;
  border-color: #46546b;
  border-radius: 14px;
}
.public-signin:hover { background: #35445d; }
.auth-body {
  min-height: calc(100svh - 97px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-story {
  color: var(--ink);
  padding: 24px clamp(28px, 3vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}
.auth-story h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.08rem;
}
.auth-story h1 em {
  color: #ae442c;
  font-style: normal;
}
.audience-copy {
  color: #586272;
  margin-top: 12px;
  max-width: 510px;
  font-size: 1rem;
}
.story-body { min-width: 0; }
.offer-preview {
  margin-top: 22px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 20px;
  border: 1px solid #2e3b50;
  border-radius: 20px;
  background: var(--ink);
  color: #eef2f7;
}
.offer-rate {
  display: flex;
  align-items: baseline;
  gap: 8px;
  grid-column: 1;
  grid-row: 1;
}
.offer-preview strong {
  display: block;
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.15rem;
  color: #ff9c83;
  white-space: nowrap;
}
.offer-upto {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04rem;
  white-space: nowrap;
}
.offer-copy {
  grid-column: 1;
  grid-row: 2;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.5;
  color: #c2c9d4;
  white-space: nowrap;
}
.join-cta {
  grid-column: 2;
  grid-row: 1;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffad96;
  border-color: #ffad96;
  color: #171e2b;
  white-space: nowrap;
}
.join-cta:hover { background: #ffbda9; }
.join-cta .icon { width: 20px; height: 20px; }
.offer-note {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
  font-size: 0.89rem;
  text-align: center;
  color: #c2c9d4;
}
.products-section > h2 {
  margin-bottom: 12px;
  font-size: 0.89rem;
  font-weight: 600;
  color: #586272;
}
.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 336px;
  color: var(--ink);
}
.product-brand {
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: white;
  border: 1px solid #d5dbe3;
  border-radius: 18px;
}
.product-brand img { object-fit: contain; }
.spy-brand svg {
  display: block;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}
.spy-top { width: 80%; aspect-ratio: 350 / 159; }
.spy-bottom { width: 100%; aspect-ratio: 650 / 159; }
.auth-right {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-left: 1px solid var(--line);
  scroll-margin-top: 115px;
}
.auth-form { width: 100%; max-width: 450px; }
.eyebrow {
  font-size: 0.89rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 14px;
}
.auth-form h2 {
  font-size: 1.8rem;
}
.auth-form > p {
  margin-top: 12px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 1rem;
  font-weight: 550;
}
.field-hint {
  font-size: 0.89rem;
  color: var(--muted);
  font-weight: 400;
}
.form-foot {
  margin-top: 25px;
  text-align: center;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px;
  color: #754130;
  text-decoration: underline;
  font-weight: 500;
}
.error {
  padding: 13px 16px;
  border: 1px solid #f1c4bc;
  background: #fff3ef;
  border-radius: 10px;
  color: #903820;
  margin-top: 18px;
}
.notice {
  background: #eef6f2;
  border: 1px solid #c9ded3;
  color: #285845;
  padding: 15px 18px;
  border-radius: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.mobile-account {
  display: none;
}
.nav-label {
  margin: 45px 14px 12px;
  color: #a1adbf;
  text-transform: uppercase;
  font-size: 0.89rem;
  letter-spacing: 0.08em;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #bcc7d8;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-weight: 500;
  padding: 13px 15px;
}
.nav button:hover {
  background: #252f41;
  color: #fff;
}
.nav button.active {
  background: #303b4e;
  color: white;
}
.icon {
  width: 23px;
  height: 23px;
  flex: none;
  display: inline-flex;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 12px 0;
  color: #adb8ca;
  font-size: 0.89rem;
}
.sidebar-foot .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff967a;
  border-radius: 50%;
  margin-right: 8px;
}
.main {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  min-height: 87px;
}
.topbar .crumb {
  color: var(--muted);
  font-size: 0.89rem;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #f8e4db;
  color: #793c28;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-weight: 700;
}
.account-name {
  max-width: 240px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.logout {
  font-size: 0.89rem;
  padding: 7px 12px;
  min-height: 44px;
  font-weight: 500;
}
.content {
  max-width: 1550px;
  padding: 36px 38px 60px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 10px;
  color: var(--muted);
}
.welcome-strip {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  background: #fce7de;
  border: 1px solid #f0d6cb;
  padding: 23px 25px;
  border-radius: 15px;
  margin-bottom: 26px;
}
.welcome-strip p {
  color: #754c3d;
  margin-top: 2px;
  line-height: 1.35;
}
.welcome-strip h3 {
  line-height: 1.3;
}
.rate {
  font-size: 3.4rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.filters label {
  font-size: 0.89rem;
  font-weight: 500;
  min-width: 140px;
  max-width: 210px;
  flex: 1;
}
.filters input,
.filters select {
  min-width: 0;
  font-size: 0.89rem;
  min-height: 46px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.metric-label {
  color: var(--muted);
  font-size: 0.89rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.metric strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.07rem;
  margin: 13px 0 7px;
}
.metric small {
  color: var(--muted);
}
.metric.highlight {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.metric.highlight .metric-label,
.metric.highlight small {
  color: #bec9d7;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-head p {
  color: var(--muted);
  font-size: 0.89rem;
  margin-top: 5px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 0.89rem;
  color: var(--muted);
  font-weight: 550;
  background: #fafbfc;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #eef0f3;
  font-size: 1rem;
}
tr:last-child td {
  border: 0;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th.geo,
td.geo {
  width: 1%;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  background: #eaf5ee;
  color: #236749;
  font-size: 0.89rem;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.badge.gray {
  background: #eef0f4;
  color: #596474;
}
.badge.peach {
  background: #fff0e8;
  color: #974b2b;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  max-width: 620px;
  margin: auto;
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #f2f4f7;
  color: #798597;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.offer-card {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.offer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.offer-mark {
  height: 52px;
  width: 68px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
}
.offer-mark img {
  object-fit: contain;
}
.offer-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.offer-scope {
  display: block;
  margin-top: 3px;
  font-size: 0.89rem;
  color: var(--muted);
}
.offer-spy {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.offer-spy svg:first-child {
  width: 38px;
  height: 17px;
}
.offer-spy svg:last-child {
  width: 58px;
  height: 14px;
}
.offer-card > .badge {
  align-self: flex-start;
}
.offer-card p {
  color: var(--muted);
  font-size: 0.89rem;
}
.offer-card .offer-details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.offer-card strong {
  font-size: 1.6rem;
}
.link-url {
  display: block;
  color: #6c503e;
  max-width: 390px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.89rem;
}
.copy {
  min-height: 44px;
  padding: 7px 12px;
  font-size: 0.89rem;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #10172580;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 100px #0003;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.close {
  min-width: 44px;
  padding: 5px;
  font-size: 1.5rem;
}
.dialog p {
  color: var(--muted);
  margin-top: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.chart {
  padding: 25px;
  min-height: 210px;
}
.chart svg {
  width: 100%;
  height: 170px;
}
.legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.89rem;
  color: var(--muted);
}
.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #f77557;
  margin-right: 8px;
}
.legend span:nth-child(2)::before {
  background: #537eaf;
}
.legend span:nth-child(3)::before {
  background: #238967;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.89rem;
  margin-top: 5px;
}
.profile {
  padding: 25px;
  display: grid;
  gap: 20px;
  max-width: 650px;
}
.profile dt {
  color: var(--muted);
  font-size: 0.89rem;
}
.profile dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 13px 22px;
  box-shadow: 0 8px 25px #0002;
  z-index: 40;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
.loading {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.pager {
  display: flex;
  justify-content: flex-end;
  padding: 18px 24px;
}
.auth-footer {
  font-size: 0.89rem;
  color: var(--muted);
  margin-top: 28px;
}
.auth-form form {
  gap: 12px;
  margin-top: 20px;
}
.auth-form .form-foot {
  margin-top: 16px;
}
.auth-form > .auth-footer {
  margin-top: 18px;
}
@media (min-width: 761px) and (max-height: 720px) {
  .auth-right {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .auth-story {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .auth-form .eyebrow {
    margin-bottom: 8px;
  }
  .auth-form h2 {
    font-size: 1.6rem;
  }
  .auth-form form {
    gap: 10px;
    margin-top: 14px;
  }
  .auth-form .form-foot {
    margin-top: 10px;
  }
}
.auth-success {
  font-size: 2rem;
  margin-bottom: 20px;
}
.menu-toggle {
  display: none;
}
.mobile-brand {
  display: none;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1650px) {
  .content {
    padding-top: 45px;
  }
  .metrics {
    gap: 22px;
  }
  .metric {
    padding: 28px;
  }
}
@media (max-width: 1150px) {
  .offer-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .join-cta {
    grid-column: 1;
    grid-row: 3;
    margin-top: 16px;
    width: 100%;
  }
  .offer-note {
    grid-column: 1;
    grid-row: 4;
    margin-top: 10px;
  }
  .layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 18px 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-name {
    max-width: 160px;
  }
}
@media (max-width: 760px) {
  .public-header { padding: 12px 18px; }
  .public-signin { padding: 10px 12px; }
  .auth-body { display: block; min-height: 0; }
  .auth-story { padding: 26px 20px 28px; gap: 24px; }
  .auth-story h1 { font-size: 2rem; }
  .offer-preview { grid-template-columns: minmax(0, 1fr); padding: 22px; margin-top: 22px; }
  .offer-rate { gap: 8px; }
  .offer-preview strong { font-size: clamp(2.7rem, 16vw, 3.4rem); }
  .offer-upto { font-size: clamp(2.1rem, 12vw, 2.7rem); }
  .join-cta { grid-column: 1; grid-row: 3; margin-top: 18px; width: 100%; }
  .offer-note { grid-column: 1; grid-row: 4; margin-top: 10px; }
  .product-list { max-width: 408px; }
  .auth-right { padding: 30px 20px 38px; border-left: 0; border-top: 1px solid var(--line); }
  .layout {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 16;
    height: auto;
    padding: 15px 18px;
  }
  .sidebar .brand {
    padding: 0 5px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: grid;
    margin-top: 0;
    gap: 5px;
    padding-bottom: 3px;
  }
  .nav button {
    white-space: normal;
    padding: 10px 12px;
    font-size: 0.89rem;
  }
  .nav .icon {
    display: inline-flex;
  }
  .topbar {
    display: none;
  }
  .topbar .crumb {
    display: none;
  }
  .account {
    width: 100%;
    justify-content: space-between;
  }
  .account-name {
    max-width: 230px;
    font-size: 0.89rem;
    margin-right: auto;
  }
  .content {
    padding: 25px 18px 40px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 1.7rem;
  }
  .page-head > button {
    width: 100%;
  }
  .welcome-strip {
    padding: 19px;
    align-items: flex-start;
    gap: 12px;
  }
  .welcome-strip p {
    font-size: 0.89rem;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px 14px;
  }
  .metric strong {
    font-size: 1.8rem;
  }
  .metric-label .icon {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .filters label {
    min-width: calc(50% - 12px);
    max-width: none;
  }
  .filters > button {
    width: 100%;
  }
  .panel-head {
    padding: 20px;
  }
  .dialog-backdrop {
    padding: 14px;
  }
  .dialog {
    padding: 22px;
  }
  .profile {
    padding: 20px;
  }
  .chart {
    padding: 18px;
  }
  .legend {
    gap: 12px;
  }
  th,
  td {
    padding: 15px 18px;
  }
}

.public-header::after,
.topbar::after {
  content: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: none;
}
.public-header::after {
  background: linear-gradient(to bottom, #171e2b38, #171e2b00);
}
.topbar::after {
  background: linear-gradient(to bottom, #20273520, #20273500);
}
.auth.is-scrolled .public-header::after,
.layout.is-scrolled .topbar::after {
  content: "";
}
@media (max-width: 760px) {
  .sidebar::after {
    content: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, #171e2b38, #171e2b00);
    pointer-events: none;
  }
  .layout.is-scrolled .sidebar::after {
    content: "";
  }
  .welcome-strip {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .welcome-strip .rate {
    display: block;
    margin-top: 0;
    text-align: right;
    font-size: clamp(2.65rem, 14vw, 3.4rem);
  }
  .welcome-strip p {
    font-size: 1rem;
  }
}
@media (max-width: 360px) {
  .welcome-strip { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .product-list { gap: 8px; }
  .product-brand { padding: 6px; gap: 4px; }
  .product-brand > img { height: 32px; width: auto; max-width: 56px; }
  .product-brand > span { font-size: 0.89rem; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .initial-progress span {
    animation: none;
  }
  .initial-retry {
    animation: none;
    visibility: visible;
  }
}

/* Owner readability minimum for ordinary form controls, including mobile. */
button,
input,
select,
.copy,
.logout,
.filters label,
.filters input,
.filters select,
.nav button {
  font-size: 1rem;
}
.auth-story .eyebrow {
  color: #bdc6d4;
}
.metric strong {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .nav {
    overflow: visible;
  }
  .nav button {
    justify-content: flex-start;
  }
  .metric strong {
    font-size: 1.65rem;
  }
  .metric.highlight {
    grid-column: 1 / -1;
  }
  .metric.highlight strong {
    font-size: 1.8rem;
  }
}

@media (max-width: 760px) {
  .sidebar-head {
    gap: 10px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 56px;
    /* Match the main dot grid in brand.svg; the offset dot is excluded. */
    height: 49.125px;
    padding: 10px;
    align-self: flex-start;
    margin-top: 21px;
    margin-bottom: 0;
    background: #283449;
    border-color: #46546b;
    color: #ffad96;
    border-radius: 14px;
    flex: none;
  }
  .menu-toggle:hover {
    background: #35445d;
  }
  .menu-toggle[aria-expanded="true"] {
    background: #ffad96;
    border-color: #ffad96;
    color: #171e2b;
  }
  .menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .menu-close,
  .menu-toggle[aria-expanded="true"] .menu-lines {
    display: none;
  }
  .menu-toggle[aria-expanded="true"] .menu-close {
    display: initial;
  }
  .sidebar-menu {
    display: none;
    position: absolute;
    z-index: 15;
    top: calc(100% - 2px);
    left: 18px;
    right: 18px;
    padding: 12px;
    background: #202b3d;
    border: 1px solid #46546b;
    border-radius: 18px;
    box-shadow: 0 18px 40px #10172540;
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
  .sidebar-menu.open {
    display: flex;
  }
  .sidebar-menu .nav button.active {
    background: #ffad96;
    color: #171e2b;
  }
  .mobile-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 3px 2px;
    border-top: 1px solid #46546b;
  }
  .mobile-account > span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.89rem;
    color: #c2c9d4;
  }
  .mobile-account .logout {
    flex: none;
    color: #eef2f7;
    background: #303e55;
    border-color: #4e607d;
  }
}
