:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-strong: #74c8f4;
  --surface: #ffffff;
  --surface-soft: #f1f7fb;
  --surface-raised: #ffffff;
  --ink: #1d1d28;
  --ink-soft: #31313d;
  --muted: #6e7480;
  --muted-strong: #3e4550;
  --line: #1d1d28;
  --line-soft: rgba(29, 29, 40, 0.12);
  --accent: #168ff0;
  --accent-strong: #096fc4;
  --accent-soft: #e8f6ff;
  --amber: #ffbf66;
  --amber-soft: #fff0d3;
  --blue: #168ff0;
  --blue-soft: #e8f6ff;
  --red: #f25f58;
  --red-soft: #fff0ed;
  --kirin-gold: #ffbf66;
  --stamp-red: #f25f58;
  --hermes-orange: #ff8b55;
  --brand-sky: #74c8f4;
  --brand-peach: #ffd29b;
  --brand-cream: #fffaf0;
  --brand-mint: #b7ead9;
  --brand-black: #1d1d28;
  --shadow: 0 22px 0 rgba(29, 29, 40, 0.06), 0 24px 52px rgba(29, 29, 40, 0.14);
  --shadow-soft: 0 10px 0 rgba(29, 29, 40, 0.035), 0 14px 30px rgba(29, 29, 40, 0.1);
  --radius: 22px;
  --radius-sm: 16px;
  --focus: 0 0 0 4px rgba(22, 143, 240, 0.22);
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes item-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes soft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 107, 76, 0.18);
  }
  65% {
    box-shadow: 0 0 0 9px rgba(220, 107, 76, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 107, 76, 0);
  }
}

@keyframes rate-pop {
  from {
    opacity: 0.72;
    transform: translate3d(0, 5px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease-smooth);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background: #f7fbff;
  color: var(--ink);
  font-family: inherit;
  font-feature-settings: "tnum";
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  width: 100%;
  height: 172px;
  border-left: 0;
  border-bottom: 1px solid rgba(29, 29, 40, 0.08);
  background: rgba(116, 200, 244, 0.18);
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden],
.recommend-view[hidden],
#galleryPage[hidden] {
  display: none !important;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar,
.topbar > *,
.app-nav,
.market-toolbar,
.market-toolbar > *,
.market-filter-chips,
.payment-filter-chips,
.market-view-options,
.opportunity-section,
.panel,
.gallery-page,
.market-card-view,
.market-offer-card,
.cashback-decision-panel,
.cashback-pick,
.benefit-focus-body,
.card-picker-shell {
  max-width: 100%;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(180px, 0.7fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 229, 241, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px) saturate(180%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-home {
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s var(--ease-smooth), background 0.16s ease, box-shadow 0.16s ease;
}

.brand-home:hover {
  transform: translateY(-1px);
}

.brand-home:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #ff9867, var(--accent) 52%, #ff4f7b);
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.2);
}

h1 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: 0;
}

.sub,
.source,
.meta,
.muted,
.summary-hint {
  color: var(--muted);
}

.sub {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 560;
}

.source {
  justify-self: end;
  max-width: 340px;
  font-size: 12px;
  font-weight: 620;
  text-align: right;
}

.source a {
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration: none;
}

.app-nav {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab,
.row-action,
.copy-btn,
.alias-chip,
.market-filter-chips button,
.market-view-options button,
.mode-option,
.network-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-strong);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s var(--ease-smooth);
}

.nav-tab[aria-current="page"],
.mode-option[aria-pressed="true"],
.market-view-options button[aria-pressed="true"],
.network-segment[aria-pressed="true"] {
  border-color: rgba(255, 107, 53, 0.55);
  background:
    linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.18);
}

.nav-tab:hover,
.row-action:hover,
.copy-btn:hover,
.alias-chip:hover,
.market-filter-chips button:hover,
.market-view-options button:hover,
.mode-option:hover,
.network-segment:hover {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

.nav-tab:active,
.row-action:active,
.copy-btn:active,
.alias-chip:active,
.market-filter-chips button:active,
.market-view-options button:active,
.mode-option:active,
.network-segment:active,
.market-table-row:not(.market-table-header):active,
.market-offer-card:active,
.lower-usage-item:active,
.gallery-card:active {
  transform: translate3d(0, 1px, 0) scale(0.99);
}

#copyResult[data-copied="true"] {
  border-color: rgba(184, 121, 19, 0.32);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-tab:focus-visible,
.row-action:focus-visible,
.copy-btn:focus-visible,
.alias-chip:focus-visible,
.market-filter-chips button:focus-visible,
.market-view-options button:focus-visible,
.mode-option:focus-visible,
.network-segment:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

main {
  display: grid;
  gap: 16px;
}

.panel,
.opportunity-section,
.gallery-page {
  border: 1px solid rgba(216, 229, 241, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
}

.panel,
.opportunity-section,
.gallery-page,
.activity-hero,
.market-card {
  contain: layout paint style;
}

.opportunity-section {
  padding: 16px;
}

.panel {
  overflow: hidden;
}

.section-heading,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2,
.panel-head h2,
.panel-head h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-heading span,
.panel-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(246, 251, 255, 0.78);
}

.market-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mode-options,
.market-view-options,
.network-segments {
  display: inline-flex;
  min-width: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.market-mode {
  flex: 0 1 auto;
}

.mode-option {
  min-height: 40px;
  padding: 0 14px;
}

.mode-option strong {
  display: block;
  font-size: 13px;
  font-weight: 760;
}

.mode-option span {
  display: none;
}

.market-view-options {
  flex: 0 0 auto;
}

.cashback-view-options {
  margin: 0 0 14px;
}

.market-view-options button,
.network-segment {
  min-height: 36px;
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(280px, 1.3fr) max-content;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.market-search,
.field {
  display: grid;
  gap: 6px;
}

.market-search label,
.field label,
.gallery-search > span,
.filter-label,
.card-search-head,
.bar-label,
.bar-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.market-search input,
.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 640;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.market-search input::placeholder,
.field input::placeholder {
  color: #8b929b;
}

.market-search input:focus,
.field input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.market-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-block {
  position: relative;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
}

.filter-block::before {
  content: attr(data-filter-title);
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.market-view-options.filter-block {
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
}

.market-view-options.filter-block button {
  flex: 0 0 auto;
}

#marketFilterChips {
  grid-column: 2;
  grid-row: 1;
}

.payment-filter-chips {
  grid-column: 1 / -1;
}

.benefit-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  align-self: end;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
  width: max-content;
  min-width: 176px;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted-strong);
  padding: 5px 8px 5px 12px;
  position: relative;
  text-align: left;
  white-space: normal;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s var(--ease-smooth);
}

.benefit-switch-track {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  position: relative;
  display: block;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.16s ease;
}

.benefit-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 28, 24, 0.16);
  transition: transform 0.16s var(--ease-smooth);
}

.benefit-switch-label {
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.benefit-switch strong {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-width: 38px;
  min-height: 20px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.benefit-switch:hover,
.benefit-switch:focus-visible {
  border-color: rgba(233, 97, 37, 0.32);
  box-shadow: var(--focus);
  outline: none;
}

.benefit-switch[aria-pressed="true"] {
  border-color: rgba(7, 154, 154, 0.32);
  background: rgba(231, 248, 246, 0.88);
}

.benefit-switch[aria-pressed="true"] .benefit-switch-track {
  background: var(--blue);
}

.benefit-switch[aria-pressed="true"] .benefit-switch-track::after {
  transform: translateX(14px);
}

.benefit-switch[aria-pressed="true"] strong {
  background: #ffffff;
  color: var(--blue);
}

.market-filter-chips button {
  min-height: 40px;
  border-color: var(--line);
  background: var(--surface-raised);
}

.market-filter-chips button[aria-pressed="true"] {
  border-color: rgba(255, 107, 53, 0.34);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.payment-filter-chips button[aria-pressed="true"] {
  border-color: rgba(7, 154, 154, 0.32);
  background: var(--blue-soft);
  color: var(--blue);
}

.market-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.market-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.market-card,
.market-table-row:not(.market-table-header),
.market-item,
.market-offer-card,
.gallery-card,
.lower-usage-item {
  animation: item-enter 240ms var(--ease-snap) both;
  will-change: transform;
}

.market-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.market-card h2 {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
}

.market-list {
  display: grid;
  gap: 8px;
}

.market-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.market-item:hover,
.market-item:focus-visible {
  border-color: rgba(233, 97, 37, 0.28);
  background: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.market-item.inert {
  cursor: default;
}

.market-item.inert:hover {
  transform: none;
}

.market-item strong,
.market-item span,
.market-card-title,
.market-offer-title,
.card-name,
.card-copy,
.lower-usage-main {
  min-width: 0;
}

.market-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-item span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-yield,
.market-main-rate,
.rate,
.rate-value {
  color: var(--accent);
  font-weight: 820;
  line-height: 1;
}

.market-yield {
  font-size: 21px;
}

.market-explorer {
  overflow: hidden;
}

.market-table {
  display: grid;
}

.market-table-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.48fr) minmax(138px, 0.48fr) 104px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}

.market-table-header {
  min-height: 46px;
  border-top: 0;
  background: rgba(241, 242, 240, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.market-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  padding: 5px 7px;
  text-align: left;
}

.market-sort-button span {
  font-size: 12px;
  font-weight: 820;
}

.market-sort-button small {
  color: #92887d;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.market-sort-button:hover,
.market-sort-button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

.market-sort-button[aria-pressed="true"] small {
  color: var(--accent-strong);
}

.market-table-row:not(.market-table-header) {
  background: rgba(251, 252, 248, 0.94);
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.market-table-row:not(.market-table-header):hover,
.market-table-row:not(.market-table-header):focus-visible,
.market-table-row.active {
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--accent);
}

.market-table-row:not(.market-table-header):hover,
.market-table-row:not(.market-table-header):focus-visible {
  transform: translate3d(2px, 0, 0);
}

.market-row-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.market-row-cta::after {
  content: ">";
  margin-left: 6px;
}

.market-card-cell {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.market-card-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-offer-title {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-main-rate {
  font-size: 27px;
  animation: rate-pop 220ms var(--ease-snap) both;
}

.market-reward {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.3;
}

.market-card-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.market-offer-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: inherit;
  padding: 14px;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.market-offer-card:hover,
.market-offer-card:focus-visible {
  border-color: rgba(233, 97, 37, 0.32);
  box-shadow: var(--shadow-soft);
  outline: none;
  transform: translate3d(0, -2px, 0);
}

.market-offer-card .card-art-row {
  width: 124px;
  height: 78px;
}

.market-offer-top,
.market-offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-offer-top strong {
  color: var(--accent);
  font-size: 32px;
  font-weight: 820;
  line-height: 1;
}

.market-offer-top small,
.market-offer-foot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.market-offer-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.row-action,
.copy-btn {
  border-color: rgba(233, 97, 37, 0.28);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.row-action:hover,
.copy-btn:hover {
  border-color: rgba(233, 97, 37, 0.42);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tag.green {
  border-color: rgba(233, 97, 37, 0.2);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag.gold {
  border-color: rgba(183, 121, 69, 0.22);
  background: var(--amber-soft);
  color: #8a562a;
}

.tag.blue {
  border-color: rgba(63, 102, 128, 0.18);
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.red {
  border-color: rgba(166, 75, 58, 0.2);
  background: var(--red-soft);
  color: var(--red);
}

.card-art {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  width: 80px;
  height: 50px;
  aspect-ratio: 19 / 12;
  border: 1px solid rgba(27, 33, 30, 0.1);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 42%),
    #e9eef0;
  box-shadow: 0 9px 18px rgba(27, 33, 30, 0.1);
  transform: translateZ(0);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transform: translateZ(0);
}

.card-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card-art.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 820;
}

.card-art-row {
  width: 96px;
  height: 61px;
}

.card-art-gallery {
  width: 100%;
  height: auto;
  aspect-ratio: 19 / 12;
}

.card-art-detail {
  width: min(330px, 100%);
  height: auto;
  aspect-ratio: 19 / 12;
}

.card-art-hero {
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 19 / 12;
}

.card-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.28;
}

.card-name.official {
  display: block;
}

.meta,
.muted {
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.money {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(241, 242, 240, 0.72);
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.card-entry {
  padding: 0;
}

.onboarding-page {
  overflow: visible;
  padding: 0;
}

.onboarding-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  max-width: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 246, 0.88) 52%, rgba(255, 243, 236, 0.94)),
    var(--surface);
  padding: 30px;
}

.onboarding-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 620px;
}

.onboarding-hero-copy h2 {
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.03;
}

.onboarding-hero-copy p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.landing-hero-side {
  display: grid;
  align-content: end;
  gap: 12px;
  min-width: min(360px, 100%);
}

.landing-preview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--brand-black);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  box-shadow: 6px 6px 0 rgba(29, 29, 40, 0.12);
}

.landing-preview-card .card-art-row {
  width: 86px;
}

.landing-preview-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: var(--brand-sky);
  color: var(--brand-black);
  font-size: 24px;
  font-weight: 900;
}

.landing-preview-card span,
.landing-preview-card small,
.landing-proof-strip small {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.landing-preview-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 880;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-proof-strip span {
  display: grid;
  gap: 2px;
  border: 1.5px solid var(--brand-black);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.landing-proof-strip strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.onboarding-primary,
.onboarding-secondary,
.card-picker-card,
.payment-route-chip,
.focus-toggle {
  -webkit-tap-highlight-color: transparent;
}

.onboarding-primary,
.onboarding-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-smooth), box-shadow 0.18s ease, background 0.18s ease;
}

.onboarding-primary {
  background:
    linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.2);
}

.onboarding-primary:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.onboarding-secondary {
  border-color: rgba(216, 229, 241, 0.96);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
}

.onboarding-primary:not(:disabled):hover,
.onboarding-secondary:hover {
  transform: translateY(-1px);
}

.guide-selection-summary,
.hot-rate-preview {
  display: grid;
  gap: 12px;
}

.onboarding-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.onboarding-section-head h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.18;
}

.onboarding-section-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.guide-selection-state {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.guide-selected-pill,
.guide-more-pill,
.guide-empty-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid rgba(216, 229, 241, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
}

.guide-selected-pill {
  max-width: 300px;
}

.guide-selected-pill .card-art-row {
  width: 60px;
  height: 38px;
  flex: 0 0 auto;
}

.guide-selected-pill span {
  display: grid;
  min-width: 0;
}

.guide-selected-pill strong,
.guide-selected-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-selected-pill strong,
.guide-empty-state strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.guide-selected-pill small,
.guide-empty-state span,
.guide-more-pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.guide-empty-state {
  display: grid;
  align-items: start;
  width: 100%;
  padding: 14px;
}

.modal-open {
  overflow: hidden;
}

.card-picker-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(67, 87, 111, 0.24);
  backdrop-filter: blur(20px) saturate(140%);
  color: var(--ink);
  padding: 16px;
}

.card-picker-dialog[hidden] {
  display: none;
}

.card-picker-dialog:focus {
  outline: none;
}

.card-picker-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(960px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 32px));
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 229, 241, 0.92);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 255, 0.99));
  box-shadow: 0 42px 120px rgba(54, 79, 107, 0.22);
}

.card-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 22px 22px 14px;
}

.card-picker-head > div {
  min-width: 0;
}

.card-picker-head h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: 0;
}

.card-picker-head p {
  margin-top: 8px;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
}

.card-picker-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-picker-guide span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(216, 229, 241, 0.88);
  border-radius: 999px;
  background: rgba(246, 251, 255, 0.88);
  color: var(--muted);
  padding: 5px 10px 5px 6px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.card-picker-guide strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.13);
  color: var(--accent);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.icon-close {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 229, 241, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.18s var(--ease-smooth), background 0.18s ease;
}

.icon-close::before,
.icon-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 11px;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.icon-close::before {
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

.icon-close:hover {
  background: var(--surface);
  transform: scale(1.04);
}

.card-picker-text-close {
  display: none;
}

.card-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 22px 14px;
}

.card-picker-search,
.card-picker-count {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid rgba(216, 229, 241, 0.9);
  border-radius: var(--radius);
  background: rgba(246, 251, 255, 0.82);
  padding: 10px 12px;
}

.card-picker-search span,
.card-picker-count span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.card-picker-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 660;
}

.card-picker-count {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.card-picker-count strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.card-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 0 22px 18px;
}

.card-picker-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "art copy"
    "art state";
  align-items: start;
  gap: 8px 12px;
  min-width: 0;
  min-height: 118px;
  border: 1px solid rgba(216, 229, 241, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  padding: 11px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-smooth), background 0.18s ease;
}

.card-picker-card:hover,
.card-picker-card:focus-visible,
.card-picker-card[aria-pressed="true"] {
  border-color: rgba(255, 107, 53, 0.48);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(54, 79, 107, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.card-picker-card[aria-pressed="true"] {
  box-shadow: 0 22px 50px rgba(255, 107, 53, 0.16);
}

.card-picker-card .card-art-row {
  grid-area: art;
  align-self: center;
  width: 92px;
  height: 58px;
}

.card-picker-card-copy {
  grid-area: copy;
  display: grid;
  align-self: center;
  min-width: 0;
  gap: 4px;
}

.card-picker-card-copy strong,
.card-picker-card-copy small,
.card-picker-card-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-picker-card-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

.card-picker-card-copy small,
.card-picker-card-copy em {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
  white-space: nowrap;
}

.card-picker-card-copy small span,
.card-picker-card-copy em span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 760;
}

.card-picker-card-state {
  grid-area: state;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.card-picker-card[aria-pressed="true"] .card-picker-card-state {
  background:
    linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
}

.card-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid rgba(216, 229, 241, 0.86);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 22px 18px;
}

.hot-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hot-rate-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  border: 1px solid rgba(216, 229, 241, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-smooth);
}

.hot-rate-card:hover,
.hot-rate-card:focus-visible {
  border-color: rgba(255, 107, 53, 0.38);
  box-shadow: 0 18px 42px rgba(54, 79, 107, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.hot-rate-card span,
.hot-rate-card small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-rate-card span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.hot-rate-card strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 780;
  line-height: 1;
}

.hot-rate-card small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portfolio-head {
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 79, 123, 0.88) 56%, rgba(7, 154, 154, 0.68)),
    var(--accent);
}

.portfolio-head h2,
.portfolio-head span {
  color: #ffffff;
}

.portfolio-head .row-action {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.owned-card-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 0;
  background: var(--surface);
}

.owned-card-summary.empty-state {
  grid-template-columns: minmax(0, 1fr);
}

.wallet-empty-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--brand-black);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, rgba(242, 249, 255, 0.84));
  padding: 18px;
  box-shadow:
    inset 6px 0 0 rgba(128, 201, 239, 0.58),
    0 12px 26px rgba(29, 29, 40, 0.06);
}

.wallet-empty-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wallet-empty-copy span {
  width: fit-content;
  border: 1px solid var(--brand-black);
  border-radius: 999px;
  background: rgba(183, 234, 217, 0.72);
  color: var(--brand-black);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 820;
}

.wallet-empty-copy strong {
  color: var(--brand-black);
  font-size: 22px;
  font-weight: 940;
  line-height: 1.12;
}

.wallet-empty-copy small {
  max-width: 560px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.wallet-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.owned-summary-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 12px;
}

.owned-summary-card.primary {
  border-color: rgba(233, 97, 37, 0.26);
  background: var(--accent-soft);
}

.owned-summary-card span,
.owned-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
}

.owned-summary-card span {
  font-weight: 800;
}

.owned-summary-card strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 860;
  line-height: 1;
}

.benefit-focus-board {
  padding: 0;
  overflow: visible;
}

.benefit-focus-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.benefit-focus-primary {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 12px;
  border: 1px solid rgba(233, 97, 37, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(234, 240, 255, 0.94), rgba(255, 255, 255, 0.96)),
    var(--surface-raised);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.focus-primary-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  border-right: 1px solid rgba(233, 97, 37, 0.14);
  padding-right: 12px;
}

.focus-primary-copy span,
.focus-primary-copy p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.focus-primary-copy h3 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 880;
  line-height: 1.05;
}

.focus-primary-copy p {
  max-width: 420px;
  color: var(--muted-strong);
  line-height: 1.45;
}

.decision-basis-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.decision-basis-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  position: relative;
}

.decision-basis-strip span::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.decision-basis-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 860;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-basis-strip small {
  display: -webkit-box;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.payment-route-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.payment-route-chip {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 86px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  padding: 10px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s var(--ease-smooth);
}

.payment-route-chip:hover,
.payment-route-chip:focus-visible,
.payment-route-chip[aria-pressed="true"] {
  border-color: rgba(233, 97, 37, 0.32);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(34, 39, 48, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.payment-route-chip span,
.payment-route-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-route-chip span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.payment-route-chip strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 880;
  line-height: 1;
}

.payment-route-chip small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.benefit-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.focus-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.focus-lane.register {
  border-top-color: var(--amber);
}

.focus-lane.direct {
  border-top-color: var(--blue);
}

.focus-lane.specific {
  border-top-color: var(--red);
}

.focus-lane-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.focus-lane-head span,
.focus-lane-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-lane-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.focus-lane-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.focus-lane-head strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 880;
  line-height: 1;
}

.focus-lane-list {
  display: grid;
  gap: 7px;
}

.focus-benefit-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(252, 251, 247, 0.86);
  color: inherit;
  padding: 10px;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s var(--ease-smooth);
}

.focus-benefit-item.compact {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.focus-benefit-item:hover,
.focus-benefit-item:focus-visible {
  border-color: rgba(233, 97, 37, 0.3);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(34, 39, 48, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.focus-benefit-rate {
  color: var(--accent);
  font-size: 22px;
  font-weight: 880;
  line-height: 1;
  white-space: nowrap;
}

.focus-benefit-item.register .focus-benefit-rate {
  color: var(--amber);
}

.focus-benefit-item.specific .focus-benefit-rate {
  color: var(--red);
}

.focus-benefit-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.focus-benefit-copy strong,
.focus-benefit-copy small,
.focus-benefit-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-benefit-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.focus-benefit-copy small,
.focus-benefit-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.focus-benefit-cta,
.focus-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(255, 107, 53, 0.34);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.focus-benefit-item.compact .focus-benefit-cta {
  display: none;
}

.focus-empty {
  display: grid;
  gap: 8px;
  min-height: 86px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 680;
}

.focus-toggle {
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
}

.add-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.add-card button[type="submit"] {
  align-self: end;
  min-height: 44px;
  border: 1px solid rgba(255, 107, 53, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 760;
}

.recognition,
.alias-cloud {
  grid-column: 1 / -1;
}

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

.alias-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alias-chip {
  min-height: 32px;
  border-color: var(--line);
  background: var(--surface-soft);
}

.cards-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.card-search-section {
  display: grid;
  gap: 10px;
}

.card-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owned-card-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owned-card-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 168px;
  max-width: 260px;
  border: 1px solid rgba(233, 97, 37, 0.2);
  border-radius: var(--radius);
  background: rgba(234, 240, 255, 0.62);
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s var(--ease-smooth);
}

.owned-card-chip:hover,
.owned-card-chip:focus-visible {
  border-color: rgba(233, 97, 37, 0.36);
  background: var(--surface-raised);
  outline: none;
  transform: translateY(-1px);
}

.owned-card-chip span,
.owned-card-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-card-chip span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.owned-card-chip small {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.owned-card-chip em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.card-toggle {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  padding: 10px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.card-toggle:hover,
.card-toggle[aria-pressed="true"] {
  border-color: rgba(233, 97, 37, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.card-toggle[aria-pressed="true"] {
  background: #ffffff;
}

.card-copy {
  display: grid;
  gap: 3px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(241, 242, 240, 0.72);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 16px;
  border-right: 1px solid var(--line-soft);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.flow-step:last-child {
  border-right: 0;
}

.card-benefit-board {
  padding: 0;
}

.card-benefit-board-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.benefit-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  animation: item-enter 240ms var(--ease-snap) both;
}

.benefit-card-top {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.benefit-card-top h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-card-top span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.benefit-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.benefit-card-stats span {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
}

.benefit-card-stats strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 860;
}

.benefit-action-list {
  display: grid;
  gap: 7px;
}

.benefit-action-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  padding: 9px;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s var(--ease-smooth);
}

.benefit-action-row:hover,
.benefit-action-row:focus-visible {
  border-color: rgba(233, 97, 37, 0.3);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(34, 39, 48, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.benefit-action-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 840;
  white-space: nowrap;
}

.benefit-action-row.register .benefit-action-label {
  background: var(--amber-soft);
  color: #8f5b1d;
}

.benefit-action-row.specific .benefit-action-label {
  background: var(--blue-soft);
  color: var(--blue);
}

.benefit-action-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.benefit-action-main strong,
.benefit-action-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-action-main strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.benefit-action-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.benefit-action-rate {
  color: var(--accent);
  font-size: 16px;
  font-weight: 860;
  white-space: nowrap;
}

.cashback-decision-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cashback-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(233, 97, 37, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(234, 240, 255, 0.9), rgba(255, 255, 255, 0.92)),
    var(--surface-raised);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.cashback-pick span,
.cashback-pick p,
.cashback-pick-rate small,
.cashback-runner small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.cashback-pick h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 860;
  line-height: 1.1;
}

.cashback-pick p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 13px;
}

.cashback-pick-rate {
  display: grid;
  gap: 4px;
  min-width: 118px;
  text-align: right;
}

.cashback-pick-rate strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 880;
  line-height: 1;
}

.cashback-runner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cashback-runner,
.cashback-decision-empty {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: inherit;
  padding: 10px;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cashback-runner span,
.cashback-runner small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cashback-runner span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 760;
}

.cashback-runner strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 860;
  line-height: 1;
}

.cashback-decision-empty strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  font-size: 12px;
}

details.panel {
  background: rgba(255, 255, 255, 0.95);
}

details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.comparison {
  display: grid;
}

.compare-row {
  display: grid;
  grid-template-columns: 110px minmax(220px, 1fr) minmax(160px, 0.72fr) minmax(160px, 0.72fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
}

.compare-row:first-child {
  border-top: 0;
}

.compare-row.header {
  background: rgba(241, 242, 240, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.compare-row:not(.header):hover,
.compare-row.active {
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--accent);
}

.rate {
  font-size: 26px;
}

.breakdown {
  padding: 16px;
}

.detail-steps {
  display: grid;
  gap: 10px;
}

.detail-step,
.calculator,
.guide-item,
.gallery-activity,
.lower-usage-item,
.suggestion,
.metric,
.condition {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 12px;
}

.detail-step strong,
.guide-item strong,
.gallery-activity strong,
.lower-usage-main strong,
.suggestion strong,
.metric strong,
.condition strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
}

.guide-item strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-item strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.detail-step span,
.guide-item span,
.suggestion span,
.metric span,
.condition span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.calculator {
  display: grid;
  gap: 8px;
  background: var(--surface-soft);
}

.payment-guide {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(63, 102, 128, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(234, 241, 245, 0.66), rgba(255, 253, 248, 0.92));
  padding: 12px;
}

.payment-guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.payment-guide-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.payment-guide-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-align: right;
}

.payment-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-guide-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 10px;
}

.payment-guide-card.supported {
  border-color: rgba(233, 97, 37, 0.28);
}

.payment-guide-card.check {
  border-color: rgba(183, 121, 69, 0.28);
}

.payment-guide-card.blocked {
  border-color: rgba(166, 75, 58, 0.26);
  background: rgba(248, 233, 228, 0.56);
}

.payment-guide-card strong,
.payment-guide-card span,
.payment-guide-card small {
  display: block;
}

.payment-guide-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.payment-guide-card span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.payment-guide-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
}

.payment-guide-excluded {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(166, 75, 58, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(248, 233, 228, 0.48);
  padding: 10px;
}

.payment-guide-excluded strong,
.payment-guide-excluded span,
.payment-guide-excluded small {
  display: block;
}

.payment-guide-excluded strong {
  color: var(--red);
  font-size: 12px;
  font-weight: 820;
}

.payment-guide-excluded span,
.payment-guide-excluded small {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.45;
}

.campaign-panel {
  overflow: clip;
}

.campaign-panel.compact {
  margin-top: 2px;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.campaign-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  transition: transform 0.18s var(--ease-smooth), box-shadow 0.18s ease, border-color 0.18s ease;
}

.campaign-card:hover {
  border-color: rgba(233, 97, 37, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translate3d(0, -2px, 0);
}

.campaign-card.conditional {
  border-color: rgba(183, 121, 69, 0.26);
  background: linear-gradient(180deg, #ffffff, rgba(255, 247, 232, 0.72));
}

.campaign-card.expired {
  border-style: dashed;
  background: rgba(241, 242, 240, 0.66);
}

.campaign-card-top,
.campaign-title-row,
.campaign-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.campaign-card-top span,
.campaign-card-top strong,
.campaign-title-row span,
.campaign-tags span,
.campaign-entry span,
.campaign-card small,
.campaign-card-foot span,
.campaign-card-foot a {
  font-size: 12px;
  line-height: 1.38;
}

.campaign-card-top span {
  color: var(--muted);
  font-weight: 720;
}

.campaign-card-top strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(232, 241, 236, 0.9);
  color: var(--accent);
  padding: 4px 8px;
  font-weight: 780;
}

.campaign-card.conditional .campaign-card-top strong {
  background: rgba(255, 242, 224, 0.92);
  color: #8f5b1d;
}

.campaign-card.expired .campaign-card-top strong {
  background: rgba(238, 232, 220, 0.82);
  color: var(--muted-strong);
}

.campaign-title-row h4 {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.campaign-title-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 720;
}

.campaign-card p {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.52;
}

.campaign-tags,
.campaign-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-tags span,
.campaign-routes span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 0 8px;
  font-weight: 720;
}

.campaign-routes span {
  background: rgba(234, 241, 245, 0.7);
}

.campaign-entry {
  display: grid;
  gap: 5px;
  border-left: 3px solid rgba(233, 97, 37, 0.24);
  background: rgba(232, 241, 236, 0.45);
  padding: 9px 10px;
}

.campaign-entry strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.campaign-entry span,
.campaign-card small {
  color: var(--muted);
  font-weight: 580;
}

.campaign-card-foot {
  align-items: flex-end;
}

.campaign-card-foot span {
  color: var(--muted);
  text-align: right;
}

.campaign-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 107, 53, 0.34);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease-smooth), box-shadow 0.16s ease;
}

.campaign-action:hover {
  box-shadow: var(--shadow-soft);
  transform: translate3d(0, -1px, 0);
}

.usage-table-panel {
  overflow: clip;
}

.usage-rate-table {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.usage-rate-table.compact {
  padding: 10px 0 0;
  border-top: 0;
}

.usage-toggle-row {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-smooth), background 0.18s ease;
}

.usage-toggle-row[open],
.usage-toggle-row:hover,
.usage-toggle-row:focus-within {
  border-color: rgba(233, 97, 37, 0.28);
  box-shadow: var(--shadow-soft);
}

.usage-toggle-row.current {
  border-color: rgba(233, 97, 37, 0.34);
  background: linear-gradient(180deg, rgba(248, 253, 250, 0.98), #ffffff);
}

.usage-toggle-row.recommended {
  border-color: rgba(220, 107, 76, 0.34);
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.98), #ffffff);
}

.usage-toggle-row.campaign-only.conditional {
  background: linear-gradient(180deg, #ffffff, rgba(255, 247, 232, 0.72));
}

.usage-toggle-row.campaign-only.expired {
  border-style: dashed;
  background: rgba(241, 242, 240, 0.66);
}

.usage-toggle-summary {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(92px, auto) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.usage-toggle-summary::-webkit-details-marker {
  display: none;
}

.usage-row-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 68px;
  min-height: 42px;
  border: 1px solid rgba(29, 29, 40, 0.16);
  border-radius: 18px;
  background: #ffffff;
  color: var(--accent);
  font-size: 22px;
  font-weight: 840;
  line-height: 1;
  white-space: nowrap;
}

.usage-row-rate.entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(233, 97, 37, 0.2);
  border-radius: 999px;
  background: rgba(232, 241, 236, 0.75);
  font-size: 13px;
}

.usage-row-main {
  min-width: 0;
}

.usage-row-main strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.usage-row-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.usage-row-main strong .usage-badge {
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.usage-row-main small,
.usage-row-reward {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.usage-row-main small {
  display: block;
  margin-top: 4px;
  max-width: 76ch;
  overflow-wrap: anywhere;
}

.usage-row-reward {
  border: 1px solid rgba(29, 29, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  padding: 6px 9px;
  justify-self: end;
  text-align: right;
}

.usage-row-cue {
  justify-self: end;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 760;
}

.usage-toggle-row[open] .usage-row-cue {
  background: rgba(232, 241, 236, 0.88);
  color: var(--accent);
}

.usage-toggle-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  animation: panel-slide 180ms var(--ease-snap) both;
}

.usage-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.usage-step-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 9px;
  align-items: start;
  border: 1px solid rgba(29, 29, 40, 0.16);
  border-radius: 18px;
  background: #ffffff;
  padding: 11px;
}

.usage-step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--brand-black);
  border-radius: 999px;
  background: var(--brand-peach);
  color: var(--brand-black);
  font-size: 12px;
  font-weight: 880;
}

.usage-step-card strong {
  align-self: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.2;
}

.usage-step-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.usage-howto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.usage-howto-block {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px;
}

.usage-howto-block.wide {
  grid-column: 1 / -1;
}

.usage-howto-block strong,
.usage-route strong,
.usage-entry-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.usage-howto-block span,
.usage-route span,
.usage-route small,
.usage-entry-card small,
.usage-entry-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 610;
  line-height: 1.45;
}

.usage-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.usage-route {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(250, 251, 248, 0.72);
  padding: 10px;
}

.usage-route.supported {
  border-color: rgba(233, 97, 37, 0.22);
  background: rgba(232, 241, 236, 0.58);
}

.usage-route.check {
  border-color: rgba(183, 121, 69, 0.26);
  background: rgba(255, 247, 232, 0.58);
}

.usage-route.blocked {
  border-color: rgba(190, 75, 65, 0.2);
  background: rgba(255, 242, 240, 0.58);
}

.usage-route.excluded {
  margin-top: 8px;
  border-color: rgba(190, 75, 65, 0.26);
  background: rgba(255, 242, 240, 0.68);
}

.usage-route.excluded strong {
  color: var(--red);
}

.activity-scope-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(63, 102, 128, 0.18);
  border-radius: var(--radius);
  background: rgba(234, 241, 245, 0.62);
  padding: 10px;
}

.activity-scope-card strong,
.activity-scope-card span {
  display: block;
}

.activity-scope-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.activity-scope-card > div > span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 610;
  line-height: 1.5;
}

.activity-scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-scope-list span {
  border: 1px solid rgba(63, 102, 128, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  padding: 5px 8px;
}

.usage-entry-list {
  display: grid;
  gap: 8px;
}

.usage-entry-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.usage-entry-card.conditional {
  background: rgba(255, 247, 232, 0.56);
}

.usage-entry-card.expired {
  border-style: dashed;
  background: rgba(241, 242, 240, 0.68);
}

.usage-entry-head,
.usage-entry-foot,
.usage-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.usage-entry-head span,
.usage-entry-head strong {
  font-size: 12px;
  font-weight: 760;
}

.usage-entry-head span {
  color: var(--muted);
}

.usage-entry-head strong {
  color: var(--accent);
}

.usage-entry-foot a,
.usage-row-actions a {
  font-size: 12px;
  font-weight: 720;
}

.usage-entry-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px;
}

.campaign-routes.merged {
  margin-top: 0;
}

.calc-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.calc-line strong {
  color: var(--ink);
}

.bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-soft);
}

.bar-fill {
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bar-fill.cashlike {
  background: var(--blue);
}

.bar-fill.cost {
  background: var(--red);
}

.lower-usage-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.lower-usage-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.lower-usage-item.recommended {
  border-color: rgba(220, 107, 76, 0.38);
  background: rgba(255, 248, 244, 0.94);
}

.lower-usage-main strong {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lower-usage-rate {
  color: var(--accent);
  font-size: 20px;
  font-weight: 820;
}

.lower-usage-reward {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.gallery-page {
  padding: 0;
}

.gallery-controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(360px, 1.12fr) minmax(220px, 0.58fr);
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.gallery-search {
  min-width: 0;
}

.gallery-search input {
  border-radius: 999px;
  background: #ffffff;
}

.network-field {
  align-items: start;
}

.issue-region-field {
  align-items: start;
}

.issue-region-segments {
  width: 100%;
}

.gallery-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
}

.gallery-switcher {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.gallery-switcher-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.gallery-switcher-summary::-webkit-details-marker {
  display: none;
}

.gallery-switcher-action,
.gallery-switcher-panel-head strong {
  display: inline-flex;
  border-radius: 999px;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 760;
  font-style: normal;
  white-space: nowrap;
}

.gallery-switcher-panel-head strong {
  border: 1px solid var(--line-soft);
  background: #f8fbff;
  color: var(--muted-strong);
}

.gallery-switcher-action {
  border-color: rgba(233, 97, 37, 0.22);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.gallery-switcher-action {
  border: 1px solid rgba(233, 97, 37, 0.22);
}

.gallery-switcher-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  background: rgba(248, 251, 255, 0.74);
  padding: 12px;
}

.gallery-switcher:not([open]) .gallery-switcher-panel {
  display: none;
}

.gallery-switcher-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.gallery-pagination {
  min-height: 0;
}

.gallery-pagination:empty {
  display: none;
}

.gallery-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 10px 12px;
}

.gallery-pagination-bar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.gallery-page-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.gallery-page-button,
.gallery-page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.gallery-page-button {
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.gallery-page-button:hover,
.gallery-page-button[aria-current="page"] {
  background: var(--brand-sky);
}

.gallery-page-button:active {
  transform: translateY(1px);
}

.gallery-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.gallery-page-gap {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
}

.gallery-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gallery-card:hover,
.gallery-card.active {
  border-color: rgba(233, 97, 37, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.gallery-card-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.gallery-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.gallery-card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-card-sub {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-meta,
.gallery-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.gallery-card-meta span,
.gallery-profile-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gallery-best {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-best.ready {
  color: var(--accent-strong);
}

.gallery-best.pending {
  color: var(--amber);
}

.gallery-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  position: static;
  max-height: none;
  overflow: visible;
  scroll-margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(236, 247, 255, 0.72), rgba(255, 255, 255, 0.95)),
    var(--surface-soft);
  padding: 16px;
}

.gallery-detail h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.gallery-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.gallery-profile {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 12px;
}

.gallery-profile-art {
  display: grid;
  min-height: 0;
  place-items: center;
}

.gallery-profile-art .card-art-detail {
  width: min(100%, 320px);
}

.gallery-profile-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.gallery-profile-action {
  justify-self: start;
}

.gallery-profile-tags span {
  min-height: 26px;
  font-size: 12px;
}

.usage-guide {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.usage-guide summary {
  min-height: 44px;
  padding: 0 12px;
}

.guide-list,
.gallery-activity-list {
  display: grid;
  gap: 10px;
}

.guide-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 12px;
}

.gallery-activity-head {
  display: grid;
  gap: 4px;
  min-width: 0;
  writing-mode: horizontal-tb;
}

.gallery-activity-head h4,
.gallery-activity-head p {
  max-width: 100%;
  margin: 0;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.gallery-activity-head h4 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.28;
}

.gallery-activity-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.gallery-activity-list .usage-rate-table.compact {
  gap: 8px;
  padding-top: 0;
}

.gallery-activity-list .usage-toggle-summary {
  grid-template-columns: 82px minmax(0, 1fr) minmax(96px, auto) 54px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px;
}

.gallery-activity-list .usage-row-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(233, 97, 37, 0.18);
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 18px;
  line-height: 1;
}

.gallery-activity-list .usage-row-main {
  grid-column: auto;
  min-width: 0;
}

.gallery-activity-list .usage-row-main strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.gallery-activity-list .usage-row-main small,
.gallery-activity-list .usage-row-reward {
  font-size: 11px;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

.gallery-activity-list .usage-row-reward {
  grid-column: auto;
  justify-self: end;
  text-align: right;
}

.gallery-activity-list .usage-row-cue {
  grid-column: auto;
  justify-self: end;
  padding: 5px 8px;
  font-size: 11px;
}

.gallery-activity-list .usage-toggle-body {
  gap: 10px;
  padding: 0 10px 10px;
}

.gallery-activity-list .usage-howto-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gallery-metric {
  padding: 10px;
}

.gallery-metric span,
.gallery-metric strong {
  display: block;
}

.gallery-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.gallery-metric strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.gallery-activity {
  display: grid;
  gap: 10px;
}

.activity-page {
  padding: 16px;
}

.activity-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.activity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(229, 242, 236, 0.72), rgba(251, 252, 248, 0.82) 48%),
    var(--surface-raised);
  min-width: 0;
}

.activity-hero-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.activity-hero-copy h2 {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-hero-copy .decision-copy {
  max-width: 72ch;
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.activity-hero-copy .row-action {
  justify-self: start;
}

.activity-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.activity-hero-facts span,
.usage-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.usage-badge {
  border-color: rgba(220, 107, 76, 0.34);
  background: rgba(255, 239, 232, 0.92);
  color: var(--red);
}

.activity-hero-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.home-recommend-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 250px);
  border: 1px solid rgba(233, 97, 37, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  text-align: center;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s ease;
}

.home-recommend-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translate3d(0, -2px, 0);
}

.home-recommend-card span,
.home-recommend-card small {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.home-recommend-card strong {
  color: var(--accent);
  font-size: 30px;
  font-weight: 840;
  line-height: 1;
}

.activity-playbook {
  scroll-margin-top: 18px;
}

.playbook-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 12px;
  padding: 16px;
}

.playbook-current {
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid rgba(233, 97, 37, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232, 241, 236, 0.78), rgba(255, 253, 248, 0.96));
  padding: 14px;
}

.playbook-current span,
.playbook-current small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.playbook-current strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 840;
  line-height: 1;
}

.playbook-steps,
.playbook-guide {
  align-content: start;
}

.lower-usage-item.spotlight,
.activity-playbook.spotlight,
.usage-toggle-row.spotlight {
  border-color: rgba(220, 107, 76, 0.55);
  box-shadow: 0 0 0 4px rgba(220, 107, 76, 0.14);
  animation: soft-pulse 1.1s var(--ease-smooth) both;
}

.activity-rate-lockup {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.activity-rate-lockup span,
.activity-rate-lockup small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activity-rate-lockup strong {
  color: var(--accent);
  font-size: 42px;
  font-weight: 820;
  line-height: 1;
}

.activity-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.activity-metrics .gallery-metric {
  background: var(--surface-raised);
}

.activity-metrics small,
.activity-card-facts small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 14px;
  align-items: start;
}

.activity-card-facts {
  margin-bottom: 14px;
}

.activity-guide-list {
  margin-top: 12px;
}

.activity-reward-list {
  margin-top: 14px;
}

.activity-alternates {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.activity-empty {
  display: grid;
  gap: 12px;
}

.level-pill,
.answer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.answer-pill.soft {
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.eyebrow,
.name-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.best-card {
  margin-top: 6px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 820;
  line-height: 1.08;
}

.decision-copy {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.answer-line,
.hero-metrics,
.recommendation-process,
.rate-compare-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rate-compare-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 10px;
  text-align: left;
}

.rate-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff4f7b);
  color: #ffffff;
  font-size: 12px;
  font-weight: 780;
}

.rate-card-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rate-card-name strong,
.rate-card-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-card-name strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.rate-card-name small {
  color: var(--muted);
  font-size: 12px;
}

.rate-value {
  font-size: 22px;
}

.workspace-page,
.billing-page {
  padding: 16px;
}

.workspace-shell,
.billing-shell {
  display: grid;
  gap: 14px;
}

.saas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  align-items: stretch;
  gap: 14px;
  min-height: 204px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(234, 240, 255, 0.82), rgba(251, 252, 248, 0.94) 58%),
    var(--surface);
  padding: 18px;
}

.saas-hero h2 {
  max-width: 760px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: 0;
}

.saas-hero p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 620;
}

.saas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.saas-plan-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(233, 97, 37, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.saas-plan-card span,
.saas-metric span,
.api-box span,
.usage-grid span,
.plan-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.saas-plan-card strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 840;
  line-height: 1;
}

.saas-plan-card small,
.saas-metric small,
.plan-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.35;
}

.saas-metrics,
.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.saas-metric,
.usage-grid > div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 12px;
}

.saas-metric strong,
.usage-grid strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 820;
  line-height: 1;
}

.free-feature-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(233, 97, 37, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 246, 0.82)),
    var(--surface-raised);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.free-feature-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.free-feature-head h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  line-height: 1.2;
}

.free-feature-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.free-feature-head strong {
  flex: 0 0 auto;
  border: 1px solid rgba(233, 97, 37, 0.2);
  border-radius: 999px;
  background: rgba(234, 240, 255, 0.78);
  color: var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.free-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.free-feature-card {
  display: grid;
  min-height: 134px;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  padding: 12px;
  text-decoration: none;
  transition: transform 180ms var(--ease-smooth), border-color 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth);
}

.free-feature-card:hover,
.free-feature-card:focus-visible {
  border-color: rgba(233, 97, 37, 0.28);
  box-shadow: 0 16px 38px rgba(34, 39, 48, 0.1);
  transform: translateY(-2px);
}

.free-feature-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.free-feature-card strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 840;
  line-height: 1;
}

.free-feature-card small {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.free-feature-card em {
  align-self: end;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.saas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.saas-section,
.plan-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.saas-section.wide,
.billing-usage {
  grid-column: 1 / -1;
}

.compact-head {
  padding: 12px;
}

.saas-form,
.saas-inline-form,
.saas-alert-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.saas-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.saas-form label:first-child {
  grid-column: 1 / -1;
}

.saas-form button {
  justify-self: start;
}

.saas-inline-form,
.saas-alert-form {
  grid-template-columns: minmax(0, 1fr) 140px auto;
  align-items: end;
}

.auth-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0;
}

.saas-alert-form {
  grid-template-columns: minmax(180px, 1fr) 130px 150px 100px auto;
}

.saas-form input,
.saas-form select,
.saas-inline-form input,
.saas-inline-form select,
.saas-alert-form input,
.saas-alert-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.saas-form input:focus,
.saas-form select:focus,
.saas-inline-form input:focus,
.saas-inline-form select:focus,
.saas-alert-form input:focus,
.saas-alert-form select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.saas-table {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.saas-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 94px 96px 82px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid var(--line-soft);
}

.saas-table-row:first-child {
  border-top: 0;
}

.saas-table-row strong,
.saas-rule strong,
.audit-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-table-row span,
.saas-table-row div,
.saas-rule span,
.audit-row span,
.audit-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.saas-rule .alert-insight {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(233, 97, 37, 0.18);
  border-radius: 999px;
  background: rgba(234, 240, 255, 0.7);
  color: var(--accent);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
}

.saas-rule .alert-insight.empty,
.saas-rule .alert-insight.paused {
  border-color: var(--line-soft);
  background: var(--surface-soft);
  color: var(--muted);
}

.alert-match-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.alert-match-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.78);
  color: inherit;
  padding: 8px;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s var(--ease-smooth);
}

.alert-match-item:hover,
.alert-match-item:focus-visible {
  border-color: rgba(233, 97, 37, 0.28);
  background: var(--surface-raised);
  box-shadow: 0 10px 24px rgba(34, 39, 48, 0.08);
  transform: translateY(-1px);
}

.alert-match-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 840;
  line-height: 1;
}

.alert-match-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.alert-match-item .alert-match-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.alert-match-item .alert-match-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-match-item em {
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--line);
}

.status-dot.active {
  background: var(--accent);
}

.saas-rule-list,
.audit-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
}

.saas-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.saas-rule.enabled {
  border-color: rgba(233, 97, 37, 0.2);
  background: rgba(234, 240, 255, 0.5);
}

.saas-rule-actions {
  display: flex;
  gap: 8px;
}

.api-box {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.compact-api-box {
  border-top: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.compact-api-box strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.api-box code {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #f7fbff;
  color: var(--ink);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 8px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.audit-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.audit-row small {
  grid-column: 2;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
}

.plan-card.active {
  border-color: rgba(233, 97, 37, 0.34);
  box-shadow: inset 0 0 0 1px rgba(233, 97, 37, 0.16), var(--shadow-soft);
}

.copy-btn:disabled {
  cursor: default;
  opacity: 0.62;
}

.plan-card strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 840;
  line-height: 1;
}

.plan-features {
  display: grid;
  gap: 8px;
}

.plan-features span {
  min-height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}

.checkout-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(63, 102, 128, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(234, 241, 245, 0.72), rgba(255, 253, 248, 0.94));
  padding: 12px 14px;
}

.checkout-status div {
  display: grid;
  gap: 4px;
}

.checkout-status span,
.checkout-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checkout-status strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.row-action.subtle {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted-strong);
}

.row-action.subtle:hover {
  color: var(--ink);
  background: var(--surface-raised);
}

.row-action.danger {
  border-color: rgba(190, 75, 65, 0.22);
  color: var(--red);
}

.copy-btn.full {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

/* liinks-brand-upgrade-v1: crisp white canvas, sky-blue brand block, peach utility bands, black ink outlines. */
.topbar {
  top: 10px;
  border: 1.5px solid var(--brand-black);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: var(--brand-sky);
  color: var(--brand-black);
  box-shadow: 4px 4px 0 var(--brand-black);
}

.topbar h1,
.brand h1 {
  font-weight: 900;
}

.sub {
  color: var(--muted-strong);
  font-weight: 680;
}

.app-nav {
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
}

.nav-tab,
.row-action,
.copy-btn,
.alias-chip,
.market-filter-chips button,
.market-view-options button,
.mode-option,
.network-segment,
.market-row-cta,
.campaign-action,
.onboarding-primary,
.onboarding-secondary,
.focus-benefit-cta,
.focus-toggle,
.add-card button[type="submit"],
.card-picker-card-state,
.benefit-action-label,
.level-pill,
.answer-pill,
.usage-row-cue,
.gallery-switcher-action {
  border-radius: 999px;
}

.nav-tab[aria-current="page"],
.mode-option[aria-pressed="true"],
.market-view-options button[aria-pressed="true"],
.network-segment[aria-pressed="true"],
.onboarding-primary,
.add-card button[type="submit"],
.focus-benefit-cta,
.focus-toggle,
.campaign-action,
.card-picker-card[aria-pressed="true"] .card-picker-card-state,
.rate-rank {
  border-color: var(--brand-black);
  background: var(--brand-black);
  color: #ffffff;
  box-shadow: none;
}

.row-action,
.copy-btn,
.market-row-cta,
.onboarding-secondary {
  border-color: var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.row-action:hover,
.copy-btn:hover,
.market-row-cta:hover,
.onboarding-secondary:hover {
  border-color: var(--brand-black);
  background: var(--brand-peach);
  color: var(--brand-black);
}

.panel,
.opportunity-section,
.gallery-page,
.market-card,
.market-offer-card,
.gallery-card,
.benefit-card,
.campaign-card,
.usage-toggle-row,
.saas-section,
.plan-card,
.free-feature-panel,
.card-picker-shell,
.gallery-switcher,
.gallery-detail {
  border: 1.5px solid var(--brand-black);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.panel-head,
.section-heading {
  background: var(--brand-peach);
  border-bottom: 1.5px solid var(--brand-black);
}

.section-heading {
  border: 1.5px solid var(--brand-black);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.section-heading h2,
.panel-head h2,
.panel-head h3 {
  font-weight: 900;
}

.market-toolbar,
.market-view-options,
.mode-options,
.network-segments,
.filter-block,
.market-search input,
.field input,
.card-picker-search,
.card-picker-count,
.benefit-switch,
.gallery-controls,
.gallery-switcher-panel,
.usage-howto-block,
.usage-route,
.activity-scope-card,
.payment-guide,
.free-feature-card,
.saas-metric,
.usage-grid > div,
.api-box code {
  border-color: var(--brand-black);
}

.market-toolbar {
  border: 1.5px solid var(--brand-black);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  box-shadow: 6px 6px 0 rgba(29, 29, 40, 0.08);
}

.market-filter-chips button,
.market-view-options button,
.network-segment,
.alias-chip {
  border-color: var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.market-filter-chips button[aria-pressed="true"],
.payment-filter-chips button[aria-pressed="true"],
.benefit-switch[aria-pressed="true"],
.alias-chip:hover,
.network-segment:hover {
  border-color: var(--brand-black);
  background: var(--brand-sky);
  color: var(--brand-black);
}

.benefit-switch {
  border-width: 1.5px;
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.08);
}

.benefit-switch-track {
  border: 1px solid var(--brand-black);
  background: #ffffff;
}

.benefit-switch-track::after {
  background: var(--brand-black);
  box-shadow: none;
}

.benefit-switch[aria-pressed="true"] .benefit-switch-track {
  background: var(--brand-peach);
}

.benefit-switch strong {
  border: 1px solid var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.market-table-header,
.compare-row.header,
.flow-steps {
  border-color: var(--brand-black);
  background: var(--brand-peach);
}

.market-table-row,
.compare-row,
.usage-rate-table,
.campaign-grid {
  border-top-color: var(--line-soft);
}

.market-table-row:not(.market-table-header) {
  background: #ffffff;
}

.market-table-row:not(.market-table-header):hover,
.market-table-row:not(.market-table-header):focus-visible,
.market-table-row.active,
.compare-row:not(.header):hover,
.compare-row.active {
  box-shadow: inset 6px 0 0 var(--brand-sky);
}

.market-yield,
.market-main-rate,
.rate,
.rate-value,
.hot-rate-card strong,
.focus-benefit-rate,
.market-offer-top strong,
.usage-row-rate,
.lower-usage-rate,
.activity-rate-lockup strong,
.playbook-current strong,
.home-recommend-card strong,
.cashback-pick-rate strong,
.cashback-runner strong {
  color: var(--brand-black);
}

.tag,
.campaign-tags span,
.campaign-routes span,
.gallery-card-meta span,
.gallery-profile-tags span,
.activity-hero-facts span,
.usage-badge,
.activity-scope-list span {
  border-color: var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.tag.green,
.tag.blue,
.tag.gold,
.owned-summary-card.primary,
.usage-row-rate.entry,
.gallery-activity-list .usage-row-rate,
.alert-match-rate {
  border-color: var(--brand-black);
  background: var(--brand-sky);
  color: var(--brand-black);
}

.tag.red {
  border-color: var(--brand-black);
  background: var(--red-soft);
  color: var(--brand-black);
}

.card-art {
  border: 1.5px solid var(--brand-black);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.12);
}

.onboarding-hero {
  position: relative;
  border: 1.5px solid var(--brand-black);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.onboarding-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  border-left: 1.5px solid var(--brand-black);
  background: var(--brand-sky);
}

.onboarding-hero > * {
  position: relative;
  z-index: 1;
}

.onboarding-hero-copy h2 {
  width: fit-content;
  max-width: 100%;
  color: var(--brand-black);
  font-size: 58px;
  font-weight: 950;
  line-height: 0.98;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: inset 0 -0.18em 0 var(--brand-sky);
}

.onboarding-hero-copy p {
  color: var(--brand-black);
  font-weight: 650;
}

.guide-selected-pill,
.guide-more-pill,
.guide-empty-state,
.hot-rate-card,
.owned-summary-card,
.benefit-focus-primary,
.decision-basis-strip,
.payment-route-chip,
.focus-lane,
.focus-benefit-item,
.card-toggle,
.benefit-action-row,
.cashback-pick,
.cashback-runner,
.cashback-decision-empty,
.detail-step,
.calculator,
.guide-item,
.gallery-activity,
.lower-usage-item,
.suggestion,
.metric,
.condition,
.payment-guide-card,
.payment-guide-excluded,
.usage-entry-card,
.gallery-profile,
.activity-hero,
.activity-hero-card,
.home-recommend-card,
.playbook-current,
.rate-compare-row,
.saas-hero,
.saas-plan-card,
.saas-rule,
.alert-match-item {
  border: 1.5px solid var(--brand-black);
  background: #ffffff;
}

.benefit-focus-primary,
.cashback-pick,
.activity-hero,
.saas-hero,
.free-feature-panel,
.payment-guide,
.playbook-current {
  background: #ffffff;
  box-shadow: inset 6px 0 0 rgba(116, 200, 244, 0.55);
}

.portfolio-head {
  background: var(--brand-black);
}

.portfolio-head h2,
.portfolio-head span {
  color: #ffffff;
}

.portfolio-head .row-action {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

.card-picker-dialog {
  background:
    linear-gradient(180deg, rgba(116, 200, 244, 0.22), rgba(247, 251, 255, 0.96));
  backdrop-filter: blur(18px) saturate(120%);
}

.card-picker-shell {
  border-width: 1.5px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(29, 29, 40, 0.16);
}

.card-picker-head {
  border-bottom: 1.5px solid var(--brand-black);
  background: var(--brand-peach);
}

.card-picker-head h2 {
  font-size: 40px;
  font-weight: 950;
}

.card-picker-guide span {
  border-color: var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.card-picker-guide strong {
  background: var(--brand-sky);
  color: var(--brand-black);
}

.icon-close {
  border-color: var(--brand-black);
  background: #ffffff;
}

.card-picker-card,
.gallery-card,
.market-offer-card {
  border-width: 1.5px;
}

.card-picker-card:hover,
.card-picker-card:focus-visible,
.card-picker-card[aria-pressed="true"],
.gallery-card:hover,
.gallery-card.active,
.market-offer-card:hover,
.market-offer-card:focus-visible,
.campaign-card:hover {
  border-color: var(--brand-black);
  box-shadow: 6px 6px 0 rgba(29, 29, 40, 0.12);
}

.card-picker-card[aria-pressed="true"] {
  background: var(--accent-soft);
}

.card-picker-actions {
  border-top-color: var(--brand-black);
  background: #ffffff;
}

.gallery-detail {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 72%, var(--brand-sky) 72%, var(--brand-sky) 100%);
}

.usage-toggle-row[open],
.usage-toggle-row:hover,
.usage-toggle-row:focus-within {
  border-color: var(--brand-black);
  box-shadow: 6px 6px 0 rgba(29, 29, 40, 0.1);
}

.usage-toggle-row.current,
.usage-toggle-row.recommended {
  border-color: var(--brand-black);
  background: var(--brand-cream);
}

.campaign-card.conditional,
.usage-entry-card.conditional,
.usage-toggle-row.campaign-only.conditional {
  border-color: var(--brand-black);
  background: var(--brand-cream);
}

.campaign-card.expired,
.usage-entry-card.expired,
.usage-toggle-row.campaign-only.expired {
  border-color: rgba(29, 29, 40, 0.5);
  background: #f4f4f2;
}

.flow-step {
  border-color: var(--brand-black);
  color: var(--brand-black);
}

.flow-step span {
  border: 1px solid var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.saas-plan-card strong,
.free-feature-card em,
.alert-match-item em,
.campaign-card-top strong,
.usage-entry-head strong,
.owned-card-chip em {
  color: var(--brand-black);
}

@media (max-width: 1120px) {
  body::before {
    height: 156px;
  }
}

@media (max-width: 760px) {
  body::before {
    height: 132px;
    opacity: 1;
  }

  .topbar {
    border-radius: 24px;
  }

  .onboarding-hero::before,
  .benefit-focus-primary,
  .cashback-pick,
  .activity-hero,
  .saas-hero,
  .free-feature-panel,
  .payment-guide,
  .playbook-current,
  .gallery-detail {
    background: #ffffff;
  }

  .onboarding-hero-copy h2 {
    font-size: 38px;
  }

  .card-picker-head h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .source {
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }

  .app-nav {
    justify-self: stretch;
    width: 100%;
    display: flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .nav-tab {
    flex: 1 1 0;
    width: 100%;
    padding: 0 8px;
  }

  .market-toolbar,
  .details-grid,
  .gallery-body,
  .activity-hero,
  .activity-detail-grid,
  .onboarding-hero,
  .playbook-grid,
  .saas-hero,
  .saas-grid {
    grid-template-columns: 1fr;
  }

  #marketFilterChips,
  .benefit-switch {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
  }

  .market-viewbar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-mode,
  .market-view-options {
    width: 100%;
  }

  .market-view-options button,
  .mode-option {
    flex: 1 1 0;
  }

  .market-table-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) 96px;
  }

  .market-card-view,
  .market-highlights,
  .owned-card-summary,
  .card-picker-grid,
  .benefit-focus-grid,
  .card-benefit-board-body,
  .cashback-runner-list,
  .card-result-grid,
  .gallery-grid,
  .campaign-grid,
  .plan-grid,
  .free-feature-grid,
  .saas-metrics,
  .usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-route-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .gallery-detail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .app {
    width: calc(100% - 32px);
    max-width: 1240px;
    padding-top: 12px;
  }

  main {
    gap: 18px;
  }

  .topbar,
  .panel,
  .gallery-page {
    border-radius: 20px;
  }

  #marketPage.opportunity-section,
  #activityPage.panel,
  #galleryPage.gallery-page {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  #marketPage .section-heading,
  #marketPage .cashback-decision-panel,
  #marketPage .market-toolbar,
  #marketPage .market-view-options,
  #marketPage .market-explorer,
  #activityPage .activity-hero,
  #activityPage .usage-table-panel,
  #activityPage > .panel,
  #galleryPage .gallery-switcher,
  #galleryPage .gallery-detail {
    border-radius: 18px;
  }

  .gallery-controls {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .gallery-pagination-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-page-buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .brand {
    align-items: flex-start;
  }

  .app-nav {
    justify-self: start;
    width: 100%;
    display: flex;
    min-width: 0;
    max-width: 100%;
    padding: 3px;
    overflow-x: auto;
  }

  .nav-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 64px;
    padding: 0 10px;
    font-size: 12px;
  }

  .source {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .onboarding-shell {
    padding: 14px;
  }

  .onboarding-hero {
    min-height: 0;
    padding: 22px;
  }

  .onboarding-hero-copy {
    max-width: 100%;
  }

  .onboarding-hero-copy p {
    font-size: 15px;
    word-break: break-all;
  }

  .onboarding-actions,
  .onboarding-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-primary,
  .onboarding-secondary {
    width: 100%;
  }

  .card-picker-grid,
  .hot-rate-grid {
    grid-template-columns: 1fr;
  }

  .card-picker-dialog {
    align-items: start;
    place-items: start center;
    overflow-x: hidden;
    padding: 12px 0;
  }

  .card-picker-shell {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    max-height: calc(100svh - 24px);
    border-radius: 18px;
  }

  .card-picker-head,
  .card-picker-toolbar,
  .card-picker-grid,
  .card-picker-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card-picker-head,
  .card-picker-actions {
    align-items: stretch;
  }

  .card-picker-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-picker-head {
    position: relative;
    display: block;
    padding-right: 14px;
  }

  .card-picker-count {
    display: none;
  }

  .card-picker-head p {
    font-size: 13px;
    line-height: 1.45;
  }

  .card-picker-guide {
    gap: 6px;
    margin-top: 10px;
  }

  .card-picker-guide span {
    flex: 1 1 100%;
    min-height: 30px;
  }

  .icon-close {
    display: none;
  }

  .card-picker-text-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    border: 1px solid rgba(233, 97, 37, 0.36);
    border-radius: 999px;
    background: rgba(255, 240, 226, 0.82);
    color: var(--accent);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 760;
  }

  .card-picker-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card-picker-actions .onboarding-primary {
    grid-column: 1 / -1;
  }

  .card-picker-actions .onboarding-primary,
  .card-picker-actions .onboarding-secondary {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .card-picker-actions [data-onboarding-skip] {
    grid-column: 1 / -1;
  }

  .card-picker-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "art copy"
      "art state";
    align-items: start;
    min-height: auto;
  }

  .card-picker-card .card-art-row {
    width: 96px;
    height: 60px;
  }

  .card-picker-card-state {
    grid-area: state;
    justify-self: start;
    margin-top: 2px;
  }

  .guide-selected-pill {
    max-width: 100%;
  }

  .benefit-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .section-heading,
  .panel-head,
  details > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-options,
  .market-view-options,
  .network-segments,
  .market-filter-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .market-filter-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .market-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .payment-filter-chips {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .market-filter-chips button {
    flex: 0 0 auto;
    max-width: min(78vw, 280px);
    overflow: hidden;
    min-height: 38px;
    padding: 0 13px;
    text-overflow: ellipsis;
  }

  .payment-filter-chips button {
    justify-self: stretch;
    flex: initial;
    min-width: 0 !important;
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 6px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .payment-filter-chips [data-payment-filter="mobile-wallet"] {
    grid-column: 1 / -1;
  }

  .market-view-options {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .market-view-options button {
    min-width: 0 !important;
    width: 100%;
    padding: 0 8px;
    white-space: normal;
  }

  .market-view-options button:last-child {
    grid-column: 1 / -1;
  }

  #marketFilterChips.filter-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 10px;
  }

  #marketFilterChips.filter-block::before {
    grid-column: 1 / -1;
  }

  #marketFilterChips.filter-block button {
    min-width: 0 !important;
    width: 100%;
    max-width: none;
    padding: 0 8px;
  }

  .payment-filter-chips.filter-block {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-filter-chips.filter-block::before,
  .market-view-options.filter-block::before {
    grid-column: 1 / -1;
  }

  .market-view-options.filter-block {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 10px;
  }

  .market-table-row,
  .market-table-row.market-table-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .owned-card-summary,
  .benefit-focus-primary,
  .decision-basis-strip,
  .benefit-focus-grid,
  .card-benefit-board-body,
  .cashback-runner-list,
  .benefit-card-stats,
  .cashback-pick {
    grid-template-columns: 1fr;
  }

  .owned-card-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owned-card-summary.empty-state,
  .wallet-empty-start {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-empty-actions {
    justify-content: stretch;
  }

  .wallet-empty-actions .row-action {
    flex: 1 1 160px;
  }

  .payment-route-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-primary-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(233, 97, 37, 0.14);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .owned-summary-card {
    min-height: 96px;
  }

  .cashback-pick-rate {
    text-align: left;
  }

  .benefit-action-row {
    grid-template-columns: 1fr;
  }

  .focus-benefit-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .focus-benefit-cta {
    display: none;
  }

  .benefit-action-label {
    width: fit-content;
    padding: 0 10px;
  }

  .owned-card-chip {
    min-width: min(100%, 168px);
    flex: 1 1 150px;
  }

  .market-table-header {
    display: none;
  }

  .market-table-row > div:nth-child(n+3) {
    display: block;
  }

  .market-card-cell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .card-art-row {
    width: 72px;
    height: 46px;
  }

  .market-table-header .market-sort-button {
    gap: 4px;
    padding-inline: 4px;
  }

  .market-table-header .market-sort-button small {
    font-size: 9px;
  }

  .market-main-rate {
    font-size: 24px;
  }

  .market-table-row > div:nth-child(2) {
    text-align: left;
  }

  .activity-page {
    padding: 12px;
  }

  .activity-hero {
    padding: 14px;
  }

  .activity-hero-card {
    padding: 12px;
  }

  .activity-hero-copy,
  .activity-hero-copy h2,
  .activity-hero-copy .decision-copy,
  .activity-hero-facts {
    max-width: 100%;
  }

  .activity-hero-copy h2 {
    font-size: 20px;
    line-height: 1.2;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .activity-hero-copy .decision-copy {
    font-size: 14px;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .card-art-detail {
    width: min(100%, calc(100vw - 104px), 280px);
  }

  .home-recommend-card {
    width: 100%;
  }

  .market-card-title {
    white-space: normal;
  }

  .market-offer-title {
    white-space: normal;
  }

  .market-card-view,
  .market-highlights,
  .card-result-grid,
  .gallery-grid,
  .campaign-grid,
  .gallery-metrics,
  .flow-steps,
  .activity-metrics,
  .payment-guide-grid,
  .usage-howto-grid,
  .usage-route-grid,
  .plan-grid,
  .free-feature-grid,
  .saas-metrics,
  .usage-grid,
  .saas-form,
  .saas-inline-form,
  .saas-alert-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-page,
  .billing-page {
    padding: 10px;
  }

  .saas-hero {
    min-height: auto;
    padding: 14px;
  }

  .saas-hero h2 {
    font-size: 24px;
    line-height: 1.14;
  }

  .saas-form label:first-child,
  .saas-section.wide,
  .billing-usage {
    grid-column: auto;
  }

  .saas-table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .saas-rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .alert-match-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .alert-match-item em {
    grid-column: 2;
    justify-self: start;
  }

  .saas-rule-actions {
    flex-wrap: wrap;
  }

  .usage-rate-table {
    padding: 12px;
  }

  .usage-toggle-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    min-height: 0;
    padding: 12px;
  }

  .usage-row-rate {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    font-size: 23px;
  }

  .usage-row-main,
  .usage-row-reward {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

  .usage-row-cue {
    grid-column: 2;
    grid-row: 1;
  }

  .usage-row-main strong {
    display: grid;
    gap: 6px;
    font-size: 14px;
  }

  .usage-row-reward {
    justify-self: start;
    text-align: left;
  }

  .usage-step-strip,
  .usage-evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-step-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .gallery-detail {
    padding: 12px;
  }

  .gallery-switcher-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-switcher-action {
    justify-self: start;
  }

  .gallery-detail-hero,
  .gallery-profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-profile-art .card-art-detail {
    width: min(100%, 300px);
  }

  .guide-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-activity-list .usage-toggle-summary {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
    min-height: 0;
    padding: 10px;
  }

  .gallery-activity-list .usage-row-main {
    grid-column: 2;
  }

  .gallery-activity-list .usage-row-reward {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

  .gallery-activity-list .usage-row-cue {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }

  .gallery-activity-list .usage-howto-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-entry-head,
  .usage-entry-foot,
  .usage-row-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .campaign-card-top,
  .campaign-title-row,
  .campaign-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .campaign-card-foot span {
    text-align: left;
  }

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

  .flow-step {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .card-toggle {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .card-toggle .tag-list {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .compare-row,
  .compare-row.header {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-row.header {
    display: none;
  }

  .gallery-card-main {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .lower-usage-item {
    grid-template-columns: 1fr;
  }

  .market-offer-top,
  .market-offer-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-offer-top small,
  .market-offer-foot span {
    max-width: 100%;
    text-align: left;
    white-space: normal;
  }

  .market-offer-card {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .app {
    width: calc(100% - 36px);
  }

  .payment-filter-chips,
  .market-view-options {
    grid-template-columns: 1fr;
  }

  .market-view-options.filter-block {
    grid-template-columns: 1fr;
  }

  .payment-filter-chips [data-payment-filter="mobile-wallet"],
  .market-view-options button:last-child {
    grid-column: auto;
  }
}

@media (max-width: 340px) {
  .mode-options,
  .market-view-options,
  .network-segments,
  .market-filter-chips {
    grid-template-columns: 1fr;
  }

  .market-table-row,
  .market-table-row.market-table-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-table-row > div:nth-child(2) {
    text-align: left;
  }

  .activity-page {
    padding: 10px;
  }

  .activity-hero {
    padding: 12px;
  }

  .activity-hero-card {
    padding: 12px;
  }

  .activity-hero-copy h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .card-art-detail {
    width: min(100%, 300px);
  }

  .home-recommend-card {
    width: 100%;
  }

  .market-card-cell,
  .card-toggle,
  .gallery-card-main {
    grid-template-columns: 1fr;
  }

  .card-art,
  .card-art-row,
  .gallery-card-main .card-art {
    width: 112px;
    height: 70px;
  }
}

/* unified-underline-theme-v2: light canvas, consistent white surfaces, headings identified by type + colored underline. */
body {
  background:
    linear-gradient(180deg, #f2f9ff 0, #f8fbfe 170px, #ffffff 520px, #f7fafc 100%);
}

body::before {
  height: 128px;
  border-bottom-color: rgba(29, 29, 40, 0.06);
  background:
    linear-gradient(90deg, rgba(128, 201, 239, 0.32), rgba(255, 220, 168, 0.22) 44%, rgba(183, 234, 217, 0.28));
}

.panel,
.opportunity-section,
.gallery-page,
.activity-page,
.card-entry,
.card-benefit-board,
.market-explorer,
.gallery-detail {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(29, 29, 40, 0.08);
}

.panel-head,
.section-heading,
.card-picker-head,
.market-table-header,
.compare-row.header,
.flow-steps {
  background: #ffffff;
}

.panel-head,
.section-heading {
  align-items: flex-start;
  gap: 8px;
  border-bottom-color: rgba(29, 29, 40, 0.16);
}

.section-heading {
  border-color: var(--brand-black);
}

.panel-head h2,
.panel-head h3,
.section-heading h2,
.activity-hero-copy h2,
.gallery-profile-copy h2,
.onboarding-hero-copy h2 {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  color: var(--brand-black);
  font-weight: 950;
  line-height: 1.08;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(transparent 58%, rgba(116, 200, 244, 0.72) 58%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

.panel-head h2,
.section-heading h2 {
  font-size: 22px;
}

.panel-head h3 {
  font-size: 20px;
}

#marketPage .section-heading h2,
#marketExplorer .panel-head h3 {
  background-image: linear-gradient(transparent 58%, rgba(255, 210, 155, 0.86) 58%);
}

#cardEntry .panel-head h2,
#cardBenefitBoard .panel-head h2,
.gallery-page .panel-head h2,
.gallery-page .panel-head h3 {
  background-image: linear-gradient(transparent 58%, rgba(183, 234, 217, 0.88) 58%);
}

#activityPage .activity-hero-copy h2,
#activityPage .panel-head h2,
#activityPage .panel-head h3 {
  background-image: linear-gradient(transparent 58%, rgba(116, 200, 244, 0.72) 58%);
}

.panel-head span,
.section-heading span {
  color: #5f6874;
}

.portfolio-head {
  background: #ffffff;
}

.portfolio-head h2,
.portfolio-head span {
  color: var(--brand-black);
}

.portfolio-head .row-action {
  border-color: var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.portfolio-head .row-action:hover {
  background: rgba(183, 234, 217, 0.5);
}

.section-heading,
.market-toolbar,
.market-view-options,
.filter-block,
.owned-summary-card,
.benefit-card,
.card-toggle,
.activity-hero,
.activity-hero-card,
.detail-step,
.calculator,
.gallery-profile,
.usage-toggle-row,
.campaign-card,
.usage-entry-card,
.payment-guide,
.payment-guide-card,
.market-offer-card,
.cashback-pick,
.cashback-runner,
.benefit-focus-primary,
.playbook-current {
  background: #ffffff;
}

.gallery-detail {
  background: #ffffff;
}

.activity-page {
  padding: 16px;
}

.activity-hero,
.benefit-focus-primary,
.cashback-pick,
.payment-guide,
.playbook-current,
.saas-hero,
.free-feature-panel {
  background: #ffffff;
  box-shadow: none;
}

.activity-hero {
  border-color: var(--brand-black);
  box-shadow:
    inset 0 5px 0 rgba(128, 201, 239, 0.45),
    0 14px 28px rgba(29, 29, 40, 0.06);
}

.activity-hero-card {
  background:
    linear-gradient(180deg, rgba(242, 249, 255, 0.95), #ffffff);
}

.activity-rate-lockup strong,
.home-recommend-card strong,
.playbook-current strong,
.market-offer-top strong,
.cashback-pick-rate strong,
.cashback-runner strong {
  color: var(--brand-black);
}

.owned-card-summary,
.card-benefit-board-body {
  background: transparent;
}

.owned-summary-card.primary,
.tag.green,
.tag.blue,
.tag.gold,
.usage-row-rate.entry,
.gallery-activity-list .usage-row-rate,
.alert-match-rate {
  background: rgba(128, 201, 239, 0.38);
}

.owned-summary-card {
  background:
    linear-gradient(180deg, #ffffff, rgba(242, 249, 255, 0.72));
}

.flow-steps {
  border-color: var(--brand-black);
}

.flow-step {
  background: #ffffff;
}

.market-filter-chips button[aria-pressed="true"],
.payment-filter-chips button[aria-pressed="true"],
.benefit-switch[aria-pressed="true"],
.alias-chip:hover,
.network-segment:hover {
  background: rgba(128, 201, 239, 0.62);
}

.market-view-options button[aria-pressed="true"],
.nav-tab[aria-current="page"],
.mode-option[aria-pressed="true"],
.network-segment[aria-pressed="true"] {
  background: var(--brand-black);
  color: #ffffff;
}

.row-action:hover,
.copy-btn:hover,
.market-row-cta:hover,
.onboarding-secondary:hover,
.campaign-action:hover {
  background: rgba(255, 220, 168, 0.62);
}

.card-picker-head {
  background: #ffffff;
}

.card-picker-head h2 {
  display: inline-block;
  background-image: linear-gradient(transparent 58%, rgba(255, 210, 155, 0.86) 58%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

.onboarding-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: auto;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(29, 29, 40, 0.06);
}

.onboarding-hero::before {
  content: none;
}

.onboarding-actions {
  justify-content: flex-start;
}

.onboarding-hero-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

@media (max-width: 760px) {
  body::before {
    height: 116px;
  }

  .activity-page {
    padding: 0;
  }

  .activity-hero {
    box-shadow: inset 0 5px 0 rgba(128, 201, 239, 0.45);
  }

  .panel-head h2,
  .panel-head h3,
  .section-heading h2,
  .activity-hero-copy h2,
  .gallery-profile-copy h2 {
    line-height: 1.16;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .market-card,
  .market-table-row:not(.market-table-header),
  .market-item,
  .market-offer-card,
  .gallery-card,
  .lower-usage-item {
    will-change: auto;
  }
}

/* premium-brand-upgrade-v3: refined credit-card landing with a focused card hub. */
.onboarding-page {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.onboarding-shell {
  gap: 18px;
  padding: 0;
}

.onboarding-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  min-height: min(620px, calc(100vh - 140px));
  border: 1.5px solid var(--brand-black);
  border-radius: 30px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 63%, rgba(116, 200, 244, 0.72) 63%, rgba(116, 200, 244, 0.72) 100%);
  padding: clamp(24px, 5vw, 62px);
  box-shadow: 0 26px 58px rgba(29, 29, 40, 0.09);
}

.onboarding-hero::before {
  content: "";
  position: absolute;
  inset: 28px 28px auto auto;
  width: 104px;
  height: 104px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--brand-peach), #ffffff 72%);
  box-shadow: 8px 8px 0 rgba(29, 29, 40, 0.16);
}

.onboarding-hero-copy {
  gap: 20px;
  max-width: 660px;
}

.landing-brand-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.landing-brand-line span {
  width: fit-content;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.onboarding-hero-copy h2 {
  width: min(100%, 660px);
  color: var(--brand-black);
  font-size: clamp(52px, 7.6vw, 96px);
  font-weight: 950;
  line-height: 0.96;
  background-image: linear-gradient(transparent 66%, rgba(116, 200, 244, 0.58) 66%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

.onboarding-hero-copy p {
  max-width: 560px;
  color: var(--brand-black);
  font-size: clamp(16px, 1.22vw, 20px);
  font-weight: 650;
  line-height: 1.62;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.onboarding-primary,
.onboarding-secondary {
  min-height: 52px;
  border: 1.5px solid var(--brand-black);
  padding: 0 22px;
  font-size: 15px;
  font-weight: 860;
}

.onboarding-primary {
  background: var(--brand-black);
  color: #ffffff;
}

.landing-proof-strip {
  grid-template-columns: repeat(3, minmax(0, 116px));
  justify-content: start;
  gap: 10px;
  margin-top: 2px;
}

.landing-proof-strip span {
  background: #ffffff;
  box-shadow: 3px 3px 0 rgba(29, 29, 40, 0.1);
}

.landing-proof-strip strong {
  font-size: 23px;
}

.landing-hero-side {
  position: relative;
  align-content: center;
  justify-items: center;
  min-width: 0;
}

.landing-phone {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  border: 2px solid var(--brand-black);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ffffff, rgba(242, 249, 255, 0.96));
  padding: 16px;
  box-shadow:
    10px 10px 0 rgba(29, 29, 40, 0.13),
    0 24px 42px rgba(29, 29, 40, 0.1);
  transform: rotate(1deg);
}

.landing-start-card {
  display: grid;
  gap: 18px;
  width: min(100%, 370px);
  border: 2px solid var(--brand-black);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ffffff, rgba(242, 249, 255, 0.96));
  padding: 22px;
  box-shadow:
    10px 10px 0 rgba(29, 29, 40, 0.13),
    0 24px 42px rgba(29, 29, 40, 0.1);
}

.landing-start-card-head {
  display: grid;
  gap: 7px;
}

.landing-start-card-head span {
  width: fit-content;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: rgba(183, 234, 217, 0.7);
  color: var(--brand-black);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 880;
}

.landing-start-card-head strong {
  color: var(--brand-black);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.08;
}

.landing-start-card p {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.landing-start-steps {
  display: grid;
  gap: 10px;
}

.landing-start-steps span {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 860;
}

.landing-phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-black);
}

.landing-phone-head span,
.landing-phone-head strong {
  font-size: 12px;
  font-weight: 900;
}

.landing-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--brand-black);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
}

.landing-feature-card .card-art-row {
  width: 94px;
}

.landing-feature-card span,
.landing-feature-card small {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.landing-feature-card strong {
  display: block;
  overflow: hidden;
  color: var(--brand-black);
  font-size: 16px;
  font-weight: 920;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-link-stack {
  display: grid;
  gap: 10px;
}

.landing-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 0 16px 0 18px;
  text-align: left;
  transition: transform 0.18s var(--ease-smooth), background 0.18s ease;
}

.landing-link-card.primary {
  background: var(--brand-black);
  color: #ffffff;
}

.landing-link-card:hover {
  transform: translateY(-2px);
  background: var(--brand-peach);
}

.landing-link-card.primary:hover {
  background: var(--brand-black);
}

.landing-link-card span,
.landing-link-card strong {
  font-size: 14px;
  font-weight: 900;
}

.landing-mini-home,
.landing-card-pages,
.guide-selection-summary,
.hot-rate-preview {
  border: 1.5px solid var(--brand-black);
  border-radius: 28px;
  background: #ffffff;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 16px 36px rgba(29, 29, 40, 0.06);
}

.landing-philosophy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  border: 1.5px solid var(--brand-black);
  border-radius: 28px;
  background: #ffffff;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 36px rgba(29, 29, 40, 0.06);
}

.landing-philosophy-panel h3 {
  max-width: 520px;
  color: var(--brand-black);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 950;
  line-height: 1.04;
  background-image: linear-gradient(transparent 64%, rgba(255, 210, 155, 0.88) 64%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.landing-philosophy-panel p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.62;
}

.landing-principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-principle-list span {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  border: 1.5px solid var(--brand-black);
  border-radius: 22px;
  background: #ffffff;
  padding: 16px;
}

.landing-principle-list span:nth-child(2) {
  background: rgba(183, 234, 217, 0.62);
}

.landing-principle-list span:nth-child(3) {
  background: rgba(116, 200, 244, 0.38);
}

.landing-principle-list strong {
  color: var(--brand-black);
  font-size: 18px;
  font-weight: 920;
}

.landing-principle-list small {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.landing-mini-home {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 18px;
  align-items: stretch;
}

.landing-mini-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.landing-mini-copy h3,
.onboarding-section-head h3 {
  color: var(--brand-black);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 940;
  line-height: 1.04;
  background-image: linear-gradient(transparent 62%, rgba(255, 210, 155, 0.9) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.landing-mini-copy span,
.onboarding-section-head span {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.52;
}

.landing-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-block-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 160px;
  border: 1.5px solid var(--brand-black);
  border-radius: 22px;
  background: #ffffff;
  padding: 16px;
}

.landing-block-grid article:nth-child(2) {
  background: rgba(183, 234, 217, 0.62);
}

.landing-block-grid article:nth-child(3) {
  background: rgba(116, 200, 244, 0.38);
}

.landing-block-grid article span {
  width: fit-content;
  border-bottom: 2px solid var(--brand-black);
  color: var(--brand-black);
  font-size: 12px;
  font-weight: 920;
}

.landing-block-grid article strong {
  color: var(--brand-black);
  font-size: 18px;
  font-weight: 920;
}

.landing-block-grid article small {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.landing-card-pages {
  display: grid;
  gap: 16px;
}

.landing-showcase-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-showcase-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border: 1.5px solid var(--brand-black);
  border-radius: 24px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 12px;
  text-decoration: none;
  transition: transform 0.18s var(--ease-smooth), box-shadow 0.18s ease;
}

.landing-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(29, 29, 40, 0.12);
}

.landing-showcase-card .card-art-row {
  width: 90px;
}

.landing-showcase-card span {
  overflow: hidden;
  color: var(--brand-black);
  font-size: 15px;
  font-weight: 920;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-showcase-card strong {
  color: var(--brand-black);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.landing-showcase-card small {
  grid-column: 2 / -1;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 720;
}

@media (max-width: 900px) {
  .onboarding-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 58%, rgba(116, 200, 244, 0.72) 58%, rgba(116, 200, 244, 0.72) 100%);
  }

  .onboarding-hero::before {
    width: 72px;
    height: 72px;
  }

  .landing-phone {
    transform: none;
  }

  .landing-mini-home,
  .landing-philosophy-panel,
  .landing-showcase-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-block-grid,
  .landing-principle-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .onboarding-shell {
    gap: 14px;
  }

  .onboarding-hero,
  .landing-mini-home,
  .landing-philosophy-panel,
  .landing-card-pages,
  .guide-selection-summary,
  .hot-rate-preview {
    border-radius: 24px;
  }

  .onboarding-hero {
    padding: 20px;
  }

  .onboarding-hero::before {
    content: none;
  }

  .onboarding-hero-copy h2 {
    font-size: clamp(42px, 13vw, 62px);
    line-height: 0.98;
  }

  .landing-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-hero-actions .onboarding-primary,
  .landing-hero-actions .onboarding-secondary {
    width: 100%;
  }

  .landing-proof-strip {
    display: grid;
  }

  .landing-phone {
    width: 100%;
    border-radius: 28px;
    padding: 12px;
  }

  .landing-start-card {
    width: 100%;
    border-radius: 26px;
    padding: 18px;
  }

  .landing-feature-card,
  .landing-showcase-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-feature-card .card-art-row,
  .landing-showcase-card .card-art-row {
    width: 112px;
  }

  .landing-showcase-card small {
    grid-column: auto;
  }
}

/* magic-card-refinement-v4: search-first card library, lighter nesting, small brand motifs. */
.brand .mark {
  position: relative;
  border-radius: 14px;
  transform: rotate(-4deg);
}

.brand .mark::before,
.brand .mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand .mark::before {
  right: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  background: var(--brand-peach);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.brand .mark::after {
  right: -16px;
  bottom: 2px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-black);
  transform: rotate(-34deg);
  box-shadow: 0 7px 0 var(--brand-peach);
}

.onboarding-hero::after,
.landing-start-card::after,
.gallery-page .panel-head::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--brand-peach);
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
}

.onboarding-hero::after {
  right: clamp(18px, 5vw, 64px);
  bottom: clamp(18px, 4vw, 48px);
  width: 34px;
  height: 34px;
  opacity: 0.92;
}

.onboarding-hero::before {
  inset: 26px 30px auto auto;
  width: 88px;
  height: 56px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 210, 155, 0.92), #ffffff 74%);
  transform: rotate(6deg);
}

.landing-start-card,
.gallery-page .panel-head {
  position: relative;
}

.landing-start-card::after {
  right: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.gallery-page .panel-head::after {
  right: 18px;
  top: 18px;
  width: 18px;
  height: 18px;
  background: rgba(183, 234, 217, 0.95);
}

.gallery-switcher {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

details.gallery-switcher:not([open]) .gallery-switcher-panel {
  display: none;
}

.gallery-switcher.gallery-results .gallery-switcher-panel {
  display: grid;
  border-top: 0;
  background: transparent;
  padding: 0;
}

.gallery-switcher-panel-head {
  border-bottom: 1px solid rgba(29, 29, 40, 0.14);
  padding: 0 2px 10px;
}

.gallery-card {
  border-width: 1px;
  border-radius: 18px;
  box-shadow: none;
}

.gallery-card:hover,
.gallery-card.active {
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.1);
}

.gallery-card.active {
  background: linear-gradient(180deg, rgba(242, 249, 255, 0.98), #ffffff);
}

.gallery-detail[hidden] {
  display: none !important;
}

.gallery-detail {
  border-width: 1.5px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0 0;
}

.gallery-profile,
.usage-guide,
.guide-item,
.gallery-activity-list .usage-toggle-row,
.gallery-pagination-bar {
  box-shadow: none;
}

.gallery-profile,
.usage-guide {
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 18px;
}

.gallery-metric,
.guide-item,
.gallery-activity-list .usage-toggle-row,
.gallery-activity-list .usage-howto-block,
.usage-step-card {
  border-radius: 14px;
}

.owned-summary-card,
.benefit-card,
.card-toggle,
.market-offer-card,
.usage-toggle-row,
.payment-guide-card,
.guide-item,
.activity-hero-card,
.home-recommend-card {
  border-width: 1px;
  border-color: rgba(29, 29, 40, 0.26);
  box-shadow: none;
}

.owned-summary-card.primary,
.usage-toggle-row.current,
.usage-toggle-row.recommended {
  border-color: var(--brand-black);
}

.flow-steps {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.gallery-card-meta span,
.gallery-profile-tags span {
  border-color: rgba(29, 29, 40, 0.18);
  background: #ffffff;
}

.gallery-pagination-bar {
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 18px;
}

@media (max-width: 760px) {
  .onboarding-hero::before,
  .onboarding-hero::after,
  .landing-start-card::after,
  .gallery-page .panel-head::after {
    content: none;
  }

  .gallery-detail {
    border-top: 1.5px solid var(--brand-black);
    padding-top: 14px;
  }
}

/* open-layout-refinement-v5: replace repeated nested rounded cards with rails, lists and open sections. */
#benefitFocusBoard,
#cardEntry,
#cardBenefitBoard,
#marketPage,
#galleryPage,
#activityPage,
#marketExplorer,
#activityPage > .panel,
.usage-table-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#benefitFocusBoard .panel-head,
#cardEntry .panel-head,
#cardBenefitBoard .panel-head,
#marketExplorer .panel-head,
#galleryPage > .panel-head,
#activityPage .panel-head,
#activityPage > .panel > .panel-head,
.usage-table-panel > .panel-head {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 12px;
}

.section-heading {
  margin-bottom: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 12px;
}

#marketPage .section-heading,
#activityPage .activity-hero,
#activityPage .usage-table-panel,
#activityPage > .panel,
#galleryPage .gallery-switcher,
#galleryPage .gallery-detail {
  border-radius: 0;
}

.market-toolbar,
.gallery-controls {
  border-width: 0 0 1.5px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 0 14px;
}

.filter-block,
.mode-options,
.market-view-options,
.network-segments {
  box-shadow: none;
}

.owned-card-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-top: 1.5px solid var(--brand-black);
  border-bottom: 1.5px solid var(--brand-black);
  background: #ffffff;
  padding: 0;
}

.owned-summary-card {
  min-height: 0;
  border: 0;
  border-right: 1px solid rgba(29, 29, 40, 0.22);
  border-radius: 0;
  background: transparent;
  padding: 16px;
}

.owned-summary-card:last-child {
  border-right: 0;
}

.owned-summary-card.primary {
  border-color: rgba(29, 29, 40, 0.22);
  background: linear-gradient(180deg, rgba(183, 234, 217, 0.58), rgba(255, 255, 255, 0.92));
}

.cards-panel {
  gap: 18px;
  padding: 16px 0 0;
}

.card-search-section,
.owned-card-strip {
  padding-inline: 0;
}

.card-result-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--brand-black);
}

.card-toggle {
  min-height: 0;
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
}

.card-toggle:hover,
.card-toggle[aria-pressed="true"] {
  border-color: var(--brand-black);
  box-shadow: inset 6px 0 0 rgba(116, 200, 244, 0.64);
  transform: none;
}

.flow-steps {
  border-top: 1.5px solid var(--brand-black);
  border-bottom: 1.5px solid var(--brand-black);
  background: #ffffff;
}

.flow-step {
  min-height: 48px;
}

.card-benefit-board-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--brand-black);
  padding: 0;
}

.benefit-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
}

.benefit-card-top {
  grid-template-columns: 108px minmax(0, 1fr);
}

.benefit-card-stats {
  align-self: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(29, 29, 40, 0.18);
  border-bottom: 1px solid rgba(29, 29, 40, 0.18);
}

.benefit-card-stats span {
  border: 0;
  border-right: 1px solid rgba(29, 29, 40, 0.14);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.benefit-card-stats span:last-child {
  border-right: 0;
}

.benefit-action-list {
  grid-column: 1 / -1;
  gap: 0;
  border-top: 1px solid rgba(29, 29, 40, 0.12);
}

.benefit-action-row {
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
}

.benefit-action-row:hover,
.benefit-action-row:focus-visible {
  background: rgba(242, 249, 255, 0.82);
  box-shadow: inset 4px 0 0 rgba(116, 200, 244, 0.76);
  transform: none;
}

.cashback-decision-panel {
  gap: 0;
  margin-bottom: 18px;
}

.cashback-pick {
  grid-template-columns: minmax(0, 1fr) minmax(126px, auto) auto;
  border-width: 1.5px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
}

.cashback-pick-rate {
  align-self: center;
}

.cashback-pick .row-action {
  align-self: center;
}

.cashback-runner-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1.5px solid var(--brand-black);
}

.cashback-runner,
.cashback-decision-empty {
  border-width: 0 1px 0 0;
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 13px 14px;
}

.cashback-runner:last-child {
  border-right: 0;
}

.cashback-runner:hover,
.cashback-runner:focus-visible {
  background: rgba(255, 250, 240, 0.8);
  box-shadow: inset 0 -4px 0 rgba(255, 210, 155, 0.9);
  outline: none;
}

.market-card-view {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--brand-black);
  padding: 0;
}

.market-offer-card {
  grid-template-columns: 134px minmax(0, 1fr) minmax(116px, auto);
  align-items: center;
  gap: 8px 16px;
  min-height: 0;
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
}

.market-offer-card:hover,
.market-offer-card:focus-visible {
  border-color: var(--brand-black);
  box-shadow: inset 6px 0 0 rgba(255, 210, 155, 0.9);
  transform: none;
}

.market-offer-card > .card-art-row {
  grid-row: 1 / span 5;
  width: 118px;
  height: 74px;
}

.market-offer-card .market-offer-top {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.market-offer-card .market-offer-title,
.market-offer-card > .meta,
.market-offer-card .market-reward {
  grid-column: 2;
}

.market-offer-card .market-offer-foot {
  grid-column: 2 / 4;
  justify-content: flex-start;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.gallery-body {
  gap: 16px;
  padding: 14px 0 0;
}

.gallery-switcher-panel-head {
  border-bottom: 0;
  padding: 0 0 10px;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  border-top: 1.5px solid var(--brand-black);
}

.gallery-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  align-items: center;
  gap: 12px;
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 16px 0 16px 16px;
}

.gallery-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: #f7df95;
  opacity: 0;
  pointer-events: none;
  transform: scaleY(0.72);
  transform-origin: center;
  transition: opacity 0.16s ease, transform 0.18s var(--ease-smooth);
}

.gallery-card:hover,
.gallery-card.active {
  border-color: var(--brand-black);
  box-shadow: none;
  transform: none;
}

.gallery-card:hover::before,
.gallery-card.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.gallery-card.active {
  background: linear-gradient(90deg, rgba(255, 245, 205, 0.78), rgba(255, 255, 255, 0));
}

.gallery-card-main {
  grid-template-columns: 116px minmax(0, 1fr);
  min-width: 0;
}

.gallery-card-foot {
  align-content: center;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.gallery-card-meta span,
.gallery-profile-tags span {
  border: 0;
  border-bottom: 2px solid rgba(183, 234, 217, 0.88);
  border-radius: 0;
  background: transparent;
  padding: 0 0 2px;
}

.gallery-pagination-bar {
  border-width: 1.5px 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.gallery-detail {
  gap: 18px;
  border-width: 1.5px 0 0;
  border-radius: 0;
  background: transparent;
  padding: 22px 0 0;
}

.gallery-detail-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.gallery-profile {
  grid-template-columns: minmax(190px, 300px) minmax(0, 1fr);
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.gallery-profile-art {
  align-content: center;
  min-height: 100%;
  border-right: 1.5px solid var(--brand-black);
  padding-right: 18px;
}

.gallery-metrics {
  align-content: center;
  gap: 0;
  border-left: 1.5px solid var(--brand-black);
  padding-left: 18px;
}

.gallery-metric {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 13px 0;
}

.gallery-metric:last-child {
  border-bottom: 0;
}

.usage-guide {
  overflow: visible;
  border-width: 1.5px 0 0;
  border-radius: 0;
  background: transparent;
}

.usage-guide summary {
  border-bottom: 1px solid rgba(29, 29, 40, 0.16);
  padding: 12px 0;
}

.guide-list {
  gap: 0 18px;
  padding: 0;
}

.guide-item {
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.16);
  border-radius: 0;
  background: transparent;
  padding: 13px 0;
}

.usage-rate-table {
  gap: 0;
  border-top: 1.5px solid var(--brand-black);
  padding: 0;
}

.usage-rate-table.compact {
  border-top: 1.5px solid var(--brand-black);
  padding: 0;
}

.usage-toggle-row {
  overflow: visible;
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
}

.usage-toggle-row[open],
.usage-toggle-row:hover,
.usage-toggle-row:focus-within {
  border-color: var(--brand-black);
  box-shadow: inset 6px 0 0 rgba(116, 200, 244, 0.62);
}

.usage-toggle-row.current,
.usage-toggle-row.recommended {
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0));
}

.usage-toggle-summary {
  padding: 14px 0;
}

.usage-row-rate,
.gallery-activity-list .usage-row-rate {
  border-radius: 0;
  background: transparent;
  border-width: 0 0 3px;
  border-color: var(--brand-sky);
}

.usage-row-reward,
.usage-row-cue {
  border-radius: 0;
  background: transparent;
}

.usage-toggle-body {
  padding: 0 0 16px 0;
}

.usage-step-strip {
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(29, 29, 40, 0.16);
  border-bottom: 1px solid rgba(29, 29, 40, 0.16);
}

.usage-step-card {
  border: 0;
  border-right: 1px solid rgba(29, 29, 40, 0.14);
  border-radius: 0;
  background: rgba(242, 249, 255, 0.5);
}

.usage-step-card:last-child {
  border-right: 0;
}

.usage-howto-grid,
.usage-route-grid,
.payment-guide-grid {
  gap: 0;
}

.usage-howto-block,
.usage-route,
.activity-scope-card,
.payment-guide-card,
.payment-guide-excluded,
.usage-entry-card,
.usage-entry-empty,
.campaign-entry {
  border-width: 0 0 0 3px;
  border-color: rgba(29, 29, 40, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.64);
}

.usage-route.supported,
.payment-guide-card.supported {
  border-color: var(--brand-sky);
}

.usage-route.check,
.payment-guide-card.check {
  border-color: var(--brand-peach);
}

.usage-route.blocked,
.usage-route.excluded,
.payment-guide-card.blocked,
.payment-guide-excluded {
  border-color: var(--red);
}

.activity-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  border-width: 1.5px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 22px 0;
}

.activity-hero-card {
  align-content: start;
  border-width: 0 0 0 1.5px;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0 22px;
}

.home-recommend-card {
  width: 100%;
  border-width: 1.5px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-recommend-card:hover {
  box-shadow: none;
  transform: none;
}

.breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1.5px solid var(--brand-black);
  padding: 0;
}

.detail-step {
  border-width: 0 0 1px;
  border-color: rgba(29, 29, 40, 0.16);
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
}

.detail-step.wide {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .gallery-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-search {
    grid-column: 1 / -1;
  }

  .benefit-card,
  .gallery-detail-hero,
  .activity-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-profile-art,
  .gallery-metrics,
  .activity-hero-card {
    border-left: 0;
    border-right: 0;
    border-top: 1.5px solid var(--brand-black);
    padding: 16px 0 0;
  }

  .market-offer-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .market-offer-card .market-offer-top,
  .market-offer-card .market-offer-title,
  .market-offer-card > .meta,
  .market-offer-card .market-reward,
  .market-offer-card .market-offer-foot {
    grid-column: 2;
  }

  .market-offer-card .market-offer-top {
    grid-row: auto;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .gallery-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-search {
    grid-column: auto;
  }

  .owned-card-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owned-summary-card:nth-child(2n) {
    border-right: 0;
  }

  .benefit-card,
  .market-offer-card,
  .benefit-card,
  .market-offer-card {
    padding: 13px 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .gallery-card {
    grid-template-columns: minmax(0, 1fr) minmax(62px, auto);
    gap: 10px;
    padding: 13px 0 13px 14px;
  }

  .gallery-card::before {
    top: 13px;
    bottom: 13px;
    width: 4px;
  }

  .market-offer-card > .card-art-row {
    grid-row: auto;
    width: 112px;
    height: 70px;
  }

  .market-offer-card .market-offer-top,
  .market-offer-card .market-offer-title,
  .market-offer-card > .meta,
  .market-offer-card .market-reward,
  .market-offer-card .market-offer-foot {
    grid-column: auto;
  }

  .gallery-profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-card-main {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }

  .gallery-card-main .card-art-gallery {
    width: 88px;
    height: 56px;
  }

  .gallery-card-foot {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    align-self: center;
  }

  .gallery-best {
    max-width: 76px;
    text-align: right;
    white-space: normal;
  }

  .gallery-card-meta span,
  .gallery-profile-tags span {
    white-space: normal;
  }

  .gallery-metric {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .guide-list,
  .breakdown {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-step-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-step-card {
    border-right: 0;
    border-bottom: 1px solid rgba(29, 29, 40, 0.14);
  }

  .usage-step-card:last-child {
    border-bottom: 0;
  }

  .cashback-pick {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .cashback-pick-rate {
    min-width: 0;
    text-align: left;
  }

  .cashback-pick .row-action {
    width: 100%;
  }

  .cashback-runner-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cashback-runner {
    border-right: 0;
    border-bottom: 1px solid rgba(29, 29, 40, 0.16);
  }

  .cashback-runner:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .gallery-card-main {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .gallery-card-main .card-art-gallery {
    width: 76px;
    height: 48px;
  }

  .gallery-best {
    max-width: 68px;
  }
}

/* decision-primary-path-v1: homepage becomes the first spending decision tool. */
.decision-home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  min-height: min(560px, calc(100vh - 132px));
}

.decision-home-copy {
  gap: 15px;
}

.decision-search-form {
  display: grid;
  gap: 8px;
  width: min(100%, 680px);
}

.decision-search-form label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 860;
}

.decision-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.decision-search-box input {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 760;
  outline: none;
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.08);
}

.decision-search-box input::placeholder {
  color: #8b929b;
}

.decision-search-box input:focus-visible {
  box-shadow: var(--focus), 4px 4px 0 rgba(29, 29, 40, 0.08);
}

.decision-quick-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, 680px);
}

.decision-quick-scenes button {
  min-height: 34px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 0.16s var(--ease-smooth), background 0.16s ease;
}

.decision-quick-scenes button[aria-pressed="true"],
.decision-quick-scenes button:hover {
  background: var(--brand-mint);
  transform: translateY(-1px);
}

.home-action-card {
  display: grid;
  gap: 14px;
  border: 1.5px solid var(--brand-black);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
  box-shadow: 8px 8px 0 rgba(29, 29, 40, 0.1);
}

.home-action-card.empty {
  align-content: center;
  min-height: 320px;
}

.home-action-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-action-status,
.focus-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-black);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.focus-status {
  margin-right: 7px;
  border-width: 1px;
  padding: 3px 7px;
  font-size: 10px;
}

.home-action-card-head strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.home-action-card h3 {
  color: var(--brand-black);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 950;
  line-height: 1.06;
}

.home-action-card p {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.home-action-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(29, 29, 40, 0.18);
}

.home-action-facts div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(29, 29, 40, 0.14);
}

.home-action-facts dt,
.home-action-facts dd {
  margin: 0;
}

.home-action-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
}

.home-action-facts dd {
  color: var(--brand-black);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.4;
}

.home-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-action-buttons .row-action.active {
  background: var(--brand-mint);
  color: var(--brand-black);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 40, 0.14);
}

/* decision-primary-path-v2: keep the first decision tool compact and non-overlapping. */
.decision-home-hero {
  align-items: stretch;
  overflow: visible;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 64%, rgba(247, 223, 149, 0.5) 64%, rgba(247, 223, 149, 0.5) 100%);
}

.decision-home-hero::after {
  right: 24px;
  bottom: 24px;
  opacity: 0.72;
}

.decision-home-hero .onboarding-hero-copy,
.decision-home-hero .landing-hero-side {
  position: relative;
  z-index: 1;
}

.decision-home-hero .onboarding-hero-copy h2 {
  max-width: 560px;
  font-size: 68px;
  line-height: 1;
}

.decision-home-hero .onboarding-hero-copy p {
  max-width: 620px;
  font-size: 16px;
}

.decision-home-hero .landing-hero-side {
  width: 100%;
  min-width: 0;
  align-content: center;
  justify-items: stretch;
}

.decision-home-hero .home-action-card {
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.decision-home-hero .home-action-card.empty {
  min-height: 260px;
}

@media (max-width: 900px) {
  .decision-home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 70%, rgba(247, 223, 149, 0.42) 70%, rgba(247, 223, 149, 0.42) 100%);
  }

  .decision-home-hero .home-action-card {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .decision-home-hero {
    gap: 14px;
    padding: 18px;
  }

  .decision-home-hero .landing-brand-line {
    gap: 6px;
  }

  .decision-home-hero .landing-brand-line span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .decision-home-hero .onboarding-hero-copy h2 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.05;
  }

  .decision-home-hero .onboarding-hero-copy p {
    font-size: 14px;
    line-height: 1.5;
  }

  .decision-home-copy {
    gap: 12px;
  }

  .decision-search-form {
    gap: 6px;
  }

  .decision-search-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .decision-search-box .onboarding-primary {
    width: 100%;
  }

  .decision-quick-scenes {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .decision-quick-scenes::-webkit-scrollbar {
    display: none;
  }

  .decision-quick-scenes button {
    flex: 0 0 auto;
  }

  .decision-home-hero .home-action-card {
    border-radius: 14px;
    padding: 16px;
    box-shadow: 5px 5px 0 rgba(29, 29, 40, 0.1);
  }

  .decision-home-hero .home-action-card.empty {
    min-height: 0;
  }

  .home-action-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .home-action-buttons .row-action {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .gallery-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .gallery-card-main {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-card-foot {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 98px;
  }

  .gallery-best {
    max-width: none;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .gallery-card-foot {
    padding-left: 86px;
  }
}

/* gallery-detail-readability-v2: keep metadata labels from colliding on narrower desktop panels. */
.gallery-detail-hero .gallery-metrics {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.gallery-detail-hero .gallery-metric {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.gallery-detail-hero .gallery-metric strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* qa-detail-refinement-v6: remove modal flash and tighten the mobile decision path. */
.card-picker-dialog {
  background: rgba(247, 251, 255, 0.86);
}

.card-picker-shell {
  isolation: isolate;
}

.card-picker-grid {
  background: #ffffff;
}

@media (max-width: 760px) {
  body::before {
    height: 108px;
  }

  .app {
    width: calc(100% - 24px);
    padding-top: 8px;
  }

  main {
    gap: 14px;
  }

  .topbar {
    top: 8px;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .brand {
    align-items: center;
    gap: 9px;
  }

  .mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  h1 {
    font-size: 19px;
  }

  .sub {
    max-width: 260px;
    overflow: hidden;
    margin-top: 1px;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .source {
    display: none;
  }

  .app-nav {
    min-height: 42px;
    border-radius: 999px;
  }

  .nav-tab {
    min-height: 36px;
    min-width: 0;
    font-size: 12px;
  }

  .decision-home-hero {
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .decision-home-copy {
    gap: 10px;
  }

  .decision-home-hero .landing-brand-line span {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .decision-home-hero .onboarding-hero-copy h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .decision-home-hero .onboarding-hero-copy p {
    font-size: 13px;
    line-height: 1.42;
  }

  .decision-search-box input {
    min-height: 48px;
    padding: 0 15px;
    font-size: 14px;
  }

  .decision-search-box .onboarding-primary {
    min-height: 48px;
  }

  .decision-quick-scenes {
    gap: 6px;
    margin-right: -10px;
    padding-right: 18px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .decision-quick-scenes button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .landing-hero-actions .onboarding-secondary {
    min-height: 46px;
  }

  .decision-home-hero .home-action-card {
    gap: 10px;
    padding: 14px;
  }

  .home-action-card.empty h3 {
    font-size: 28px;
  }

  .home-action-card.empty p {
    font-size: 13px;
  }
}

/* card-playbook-v1: card-level short playbooks backed by staged public-source review. */
.card-playbook-panel {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--brand-black);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 48%, rgba(255, 247, 232, 0.96) 100%);
  box-shadow: 6px 6px 0 rgba(29, 29, 40, 0.08);
  padding: 18px;
}

.card-playbook-panel.review {
  border-color: rgba(233, 97, 37, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 237, 0.98) 52%, rgba(239, 250, 246, 0.96) 100%);
}

.card-playbook-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.playbook-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(29, 29, 40, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted-strong);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 820;
}

.card-playbook-head h4 {
  margin: 8px 0 6px;
  color: var(--brand-black);
  font-size: 24px;
  font-weight: 940;
  letter-spacing: 0;
  line-height: 1.08;
}

.card-playbook-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}

.playbook-source-pill {
  display: grid;
  min-width: 108px;
  gap: 2px;
  border: 1px solid rgba(29, 29, 40, 0.18);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px 12px;
  text-align: center;
}

.playbook-source-pill strong {
  color: var(--brand-black);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.playbook-source-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.playbook-scene-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.playbook-scene-row span {
  border: 1px solid rgba(29, 29, 40, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 820;
}

.playbook-steps {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1.5px solid rgba(29, 29, 40, 0.72);
  padding: 0;
  counter-reset: playbook-step;
  list-style: none;
}

.playbook-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid rgba(29, 29, 40, 0.16);
  padding: 12px 0;
  counter-increment: playbook-step;
}

.playbook-steps li::before {
  content: counter(playbook-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: var(--brand-mint);
  color: var(--brand-black);
  font-size: 12px;
  font-weight: 920;
}

.playbook-steps span {
  color: var(--brand-black);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.48;
}

.playbook-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.playbook-foot span {
  border: 1px solid rgba(29, 29, 40, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 8px;
}

.playbook-risks {
  display: grid;
  gap: 6px;
}

.playbook-risks span {
  position: relative;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
  padding-left: 14px;
}

.playbook-risks span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-peach);
}

#activityPage .card-playbook-panel {
  margin: 8px 0 2px;
}

/* background-polish-v7: keep decorative canvas behind every surface, with no fixed blue band. */
html {
  background: #f8fbfc;
}

body {
  background-color: #f8fbfc;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 252, 0.98) 42%, rgba(255, 252, 246, 0.92) 100%),
    linear-gradient(90deg, rgba(29, 29, 40, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 29, 40, 0.026) 1px, transparent 1px);
  background-position: 0 0, center top, center top;
  background-size: auto, 72px 72px, 72px 72px;
}

body::before {
  content: none !important;
  display: none !important;
}

.app {
  isolation: isolate;
}

.app > *,
.app-view-section,
.topbar,
.card-picker-dialog {
  position: relative;
}

.topbar {
  z-index: 20;
}

.card-picker-dialog {
  z-index: 80;
}

@media (max-width: 760px) {
  .card-playbook-panel {
    gap: 12px;
    border-radius: 18px;
    box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.07);
    padding: 14px;
  }

  .card-playbook-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-playbook-head h4 {
    font-size: 21px;
  }

  .playbook-source-pill {
    grid-template-columns: auto auto;
    justify-content: start;
    width: fit-content;
    min-width: 0;
    text-align: left;
  }

  .playbook-steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
  }

  .playbook-steps li::before {
    width: 24px;
    height: 24px;
  }

  .playbook-steps span {
    font-size: 13px;
  }
}

/* wallet-market-ui-refinement-v1: align controls and make list/group views use the same recommendation system. */
#marketPage .market-toolbar {
  grid-template-columns: minmax(240px, 0.95fr) minmax(320px, 1.25fr) minmax(190px, 0.62fr);
  align-items: stretch;
  gap: 12px;
}

#marketPage .market-search,
#marketPage .filter-block,
#marketPage .benefit-switch {
  min-height: 76px;
  border: 1.5px solid var(--brand-black);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.06);
}

#marketPage .market-search {
  align-content: start;
  padding: 10px 12px;
}

#marketPage .market-search input {
  min-height: 38px;
  border-color: rgba(29, 29, 40, 0.24);
  border-radius: 12px;
  background: rgba(248, 251, 252, 0.92);
}

#marketPage .filter-block {
  align-content: start;
  padding: 10px 12px;
}

#marketPage #marketFilterChips {
  grid-column: auto;
  grid-row: auto;
}

#marketPage .payment-filter-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
}

#marketPage .payment-filter-chips [data-payment-filter="mobile-wallet"] {
  grid-column: span 2;
}

#marketPage .market-filter-chips button {
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
}

#marketPage .payment-filter-chips button {
  min-height: 38px;
  padding: 6px 10px;
  line-height: 1.18;
  white-space: normal;
}

#marketPage .benefit-switch {
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  padding: 10px 12px;
  white-space: nowrap;
}

#marketPage .benefit-switch-label {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 860;
  text-overflow: ellipsis;
}

#marketPage .benefit-switch strong {
  min-width: 38px;
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
}

#marketPage .benefit-switch-track {
  justify-self: end;
}

#marketPage .cashback-view-options {
  margin: 2px 0 14px;
}

.market-list-view {
  display: grid;
  gap: 0;
  border-top: 1.5px solid var(--brand-black);
}

.market-list-sortbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(29, 29, 40, 0.18);
}

.market-list-sortbar .market-sort-button {
  min-height: 38px;
  border: 1.5px solid rgba(29, 29, 40, 0.28);
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 12px;
}

.market-list-sortbar .market-sort-button[aria-pressed="true"],
.market-list-sortbar .market-sort-button:hover {
  border-color: var(--brand-black);
  background: rgba(128, 201, 239, 0.52);
}

.market-recommendation-list {
  display: grid;
  gap: 0;
}

.market-recommendation-row.market-table-row {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(250px, 0.86fr) minmax(300px, 1.18fr) minmax(118px, auto);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  border-top: 0;
  border-bottom: 1px solid rgba(29, 29, 40, 0.16);
  background: transparent;
  color: inherit;
  padding: 15px 0;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s var(--ease-smooth), box-shadow 0.16s ease;
}

.market-recommendation-row.market-table-row:hover,
.market-recommendation-row.market-table-row:focus-visible,
.market-recommendation-row.market-table-row.active {
  background: linear-gradient(90deg, rgba(255, 252, 246, 0.92), rgba(255, 255, 255, 0.2));
  box-shadow: none;
  outline: none;
}

.market-recommendation-row.market-table-row:hover,
.market-recommendation-row.market-table-row:focus-visible {
  transform: translate3d(0, -1px, 0);
}

.market-recommendation-accent {
  width: 5px;
  height: 58px;
  border: 1px solid rgba(29, 29, 40, 0.22);
  border-radius: 999px;
  background: rgba(255, 210, 155, 0.9);
}

.market-recommendation-row.active .market-recommendation-accent,
.market-recommendation-row:hover .market-recommendation-accent,
.market-recommendation-row:focus-visible .market-recommendation-accent {
  background: rgba(128, 201, 239, 0.9);
}

.market-recommendation-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.market-recommendation-card .card-art-row {
  width: 98px;
  height: 62px;
}

.market-recommendation-card-copy,
.market-recommendation-use {
  min-width: 0;
}

.market-recommendation-card-copy strong,
.market-recommendation-use strong {
  display: block;
  overflow: hidden;
  color: var(--brand-black);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-recommendation-card-copy small,
.market-recommendation-use small,
.market-recommendation-rate small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-recommendation-use > span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 860;
}

.market-recommendation-use strong {
  font-size: 14px;
}

.market-recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.market-recommendation-tags .tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.market-recommendation-rate {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

.market-recommendation-rate strong {
  color: var(--brand-black);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.market-highlights {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 14px;
  border-top: 1.5px solid var(--brand-black);
}

.market-group-card.market-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  border: 0;
  border-bottom: 1px solid rgba(29, 29, 40, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
}

.market-group-card .market-card-head {
  display: block;
  margin: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(29, 29, 40, 0.18);
}

.market-group-card .market-card-head h2 {
  color: var(--brand-black);
  font-size: 17px;
  font-weight: 950;
}

.market-group-card .market-card-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.market-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 12px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: rgba(255, 210, 155, 0.68);
  color: var(--brand-black);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 860;
}

.market-recommendation-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-recommendation-row.compact.market-table-row {
  grid-template-columns: 4px minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  gap: 9px 10px;
  min-height: 0;
  border: 1px solid rgba(29, 29, 40, 0.18);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
}

.market-recommendation-row.compact .market-recommendation-accent {
  grid-row: 1 / span 3;
  height: 100%;
  min-height: 72px;
}

.market-recommendation-row.compact .market-recommendation-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.market-recommendation-row.compact .card-art-row {
  display: none;
}

.market-recommendation-row.compact .market-recommendation-use {
  grid-column: 2 / 4;
}

.market-recommendation-row.compact .market-recommendation-rate {
  grid-column: 3;
  grid-row: 1;
}

.market-recommendation-row.compact .market-recommendation-card-copy strong,
.market-recommendation-row.compact .market-recommendation-use strong {
  white-space: normal;
}

.market-recommendation-row.compact .market-recommendation-tags {
  display: none;
}

.market-empty-row {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px dashed rgba(29, 29, 40, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.market-empty-row strong {
  color: var(--brand-black);
  font-size: 14px;
  font-weight: 900;
}

.market-empty-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

@media (max-width: 980px) {
  #marketPage .market-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.58fr);
  }

  #marketPage #marketFilterChips {
    grid-column: 1 / -1;
  }

  #marketPage .payment-filter-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #marketPage .payment-filter-chips [data-payment-filter="mobile-wallet"] {
    grid-column: 1 / -1;
  }

  .market-recommendation-row.market-table-row {
    grid-template-columns: 5px minmax(220px, 0.95fr) minmax(230px, 1fr) minmax(108px, auto);
  }

  .market-group-card.market-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-group-card .market-card-head {
    border-right: 0;
    padding-right: 0;
  }

  .market-recommendation-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #marketPage .market-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  #marketPage .market-search,
  #marketPage .filter-block,
  #marketPage .benefit-switch {
    min-height: 0;
    border-radius: 16px;
    box-shadow: 3px 3px 0 rgba(29, 29, 40, 0.06);
  }

  #marketPage .market-search {
    gap: 7px;
  }

  #marketPage #marketFilterChips.filter-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  #marketPage .payment-filter-chips.filter-block {
    grid-template-columns: minmax(0, 1fr);
  }

  #marketPage .payment-filter-chips [data-payment-filter="mobile-wallet"] {
    grid-column: auto;
  }

  #marketPage .market-view-options.filter-block {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-list-sortbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .market-recommendation-row.market-table-row {
    grid-template-columns: 5px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px 0;
  }

  .market-recommendation-accent {
    grid-row: 1 / span 3;
    height: 100%;
    min-height: 86px;
  }

  .market-recommendation-card,
  .market-recommendation-use,
  .market-recommendation-rate {
    grid-column: 2;
  }

  .market-recommendation-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .market-recommendation-card .card-art-row {
    width: 86px;
    height: 54px;
  }

  .market-recommendation-rate {
    justify-items: start;
    text-align: left;
  }

  .market-recommendation-list.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-recommendation-row.compact.market-table-row {
    grid-template-columns: 4px minmax(0, 1fr) auto;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  #marketPage #marketFilterChips.filter-block,
  #marketPage .market-view-options.filter-block {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* wallet-market-toolbar-polish-v2: one aligned command band instead of three competing boxes. */
#marketPage .market-toolbar {
  grid-template-columns: minmax(260px, 0.9fr) minmax(330px, 1.12fr) minmax(170px, auto);
  align-items: end;
  border: 1.5px solid var(--brand-black);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.06);
  padding: 14px;
}

#marketPage .market-search,
#marketPage .filter-block {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#marketPage .market-search {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  gap: 7px;
}

#marketPage .market-search input {
  min-height: 42px;
  border: 1.5px solid rgba(29, 29, 40, 0.28);
  border-radius: 999px;
  background: rgba(248, 251, 252, 0.96);
  padding: 0 16px;
}

#marketPage #marketFilterChips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 2;
  grid-row: 1;
  align-items: stretch;
  gap: 8px;
}

#marketPage #marketFilterChips.filter-block::before {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1;
}

#marketPage #marketFilterChips button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding-inline: 8px;
}

#marketPage .benefit-switch {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  min-height: 42px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  padding: 5px 8px 5px 12px;
}

#marketPage .payment-filter-chips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  grid-row: 2;
  margin-top: 2px;
  border-top: 1px solid rgba(29, 29, 40, 0.16);
  padding-top: 12px;
}

#marketPage .payment-filter-chips.filter-block::before {
  grid-column: 1 / -1;
  margin: 0;
}

#marketPage .payment-filter-chips [data-payment-filter="mobile-wallet"] {
  grid-column: auto;
}

#marketPage .payment-filter-chips button {
  min-height: 40px;
}

@media (max-width: 980px) {
  #marketPage .market-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(178px, auto);
    align-items: end;
  }

  #marketPage #marketFilterChips {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(29, 29, 40, 0.16);
  }

  #marketPage .benefit-switch {
    grid-column: 2;
    grid-row: 1;
  }

  #marketPage .payment-filter-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #marketPage .payment-filter-chips [data-payment-filter="mobile-wallet"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #marketPage .market-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 12px;
  }

  #marketPage .market-search,
  #marketPage .benefit-switch,
  #marketPage .payment-filter-chips {
    grid-column: auto;
    grid-row: auto;
  }

  #marketPage #marketFilterChips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  #marketPage #marketFilterChips.filter-block::before {
    grid-column: 1 / -1;
    margin: 0;
  }

  #marketPage #marketFilterChips button {
    width: 100%;
  }

  #marketPage .benefit-switch {
    width: 100%;
  }

  #marketPage .payment-filter-chips {
    grid-template-columns: minmax(0, 1fr);
  }

  #marketPage .payment-filter-chips [data-payment-filter="mobile-wallet"] {
    grid-column: auto;
  }
}

/* kudos-inspired-home-polish-v1: soft product-led landing, cleaner nav, fewer hard frames. */
html {
  background: #f5f1e8;
}

body {
  background-color: #f5f1e8;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #fff6db 18%, #fff6db 66%, #f3f4f2 66%, #f3f4f2 100%);
  background-position: center top;
  background-size: 100% 100%;
}

.app {
  width: min(1210px, calc(100% - 48px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  padding-top: 0;
}

.topbar {
  top: 0;
  grid-template-columns: minmax(260px, 1fr) auto minmax(150px, 0.54fr);
  margin-bottom: 0;
  padding: 18px 0 16px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(29, 29, 40, 0.08), 0 16px 34px rgba(29, 29, 40, 0.04);
}

.brand {
  padding-left: 2px;
}

.brand .mark {
  border: 0;
  border-radius: 15px;
  background: #89ccf0;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 40, 0.16), 0 10px 20px rgba(43, 120, 160, 0.18);
}

.app-nav {
  gap: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-tab {
  position: relative;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4344ff;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 830;
  box-shadow: none;
}

.nav-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: #ffd063;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease-smooth);
}

.nav-tab[aria-current="page"],
.nav-tab:hover {
  border-color: transparent;
  background: transparent;
  color: #111827;
  box-shadow: none;
  transform: translateY(-1px);
}

.nav-tab[aria-current="page"]::after,
.nav-tab:hover::after {
  transform: scaleX(1);
}

.source {
  color: rgba(17, 24, 39, 0.54);
  font-size: 11.5px;
  font-weight: 680;
}

.onboarding-page {
  contain: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.onboarding-shell {
  gap: 0;
  padding: 0;
}

.decision-home-hero {
  grid-template-columns: minmax(420px, 0.98fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
  min-height: min(720px, calc(100vh - 72px));
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  padding: clamp(58px, 8vw, 112px) max(32px, calc((100vw - 1210px) / 2 + 24px));
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff5d6;
  box-shadow: none;
}

.decision-home-hero::before,
.decision-home-hero::after {
  content: none;
}

.decision-home-copy {
  gap: 22px;
}

.decision-home-hero .onboarding-hero-copy h2 {
  max-width: 700px;
  color: #090f1d;
  font-size: clamp(56px, 7.4vw, 94px);
  font-weight: 950;
  line-height: 0.98;
  box-shadow: none;
}

.decision-home-hero .onboarding-hero-copy p {
  max-width: 620px;
  color: rgba(15, 23, 42, 0.74);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 590;
  line-height: 1.48;
}

.decision-search-form {
  gap: 10px;
  width: min(100%, 690px);
}

.decision-search-form label {
  color: rgba(15, 23, 42, 0.78);
  font-size: 13px;
  font-weight: 830;
}

.decision-search-box {
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto);
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.decision-search-box input {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0 14px;
  box-shadow: none;
  color: #101827;
  font-size: 15px;
  font-weight: 710;
}

.decision-search-box input:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(67, 68, 255, 0.18);
}

.decision-search-box .onboarding-primary {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #070d19;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 13, 25, 0.2);
}

.decision-search-box .onboarding-primary:hover {
  background: #111827;
  transform: translateY(-1px);
}

.decision-quick-scenes {
  gap: 10px;
  width: min(100%, 690px);
}

.decision-quick-scenes button {
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(15, 23, 42, 0.76);
  padding: 0 14px;
  box-shadow: none;
}

.decision-quick-scenes button[aria-pressed="true"],
.decision-quick-scenes button:hover {
  border-color: rgba(15, 23, 42, 0.22);
  background: #ffffff;
  color: #090f1d;
}

.landing-hero-actions .onboarding-secondary {
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: #101827;
  box-shadow: none;
  padding-inline: 22px;
}

.landing-hero-actions .onboarding-secondary:hover {
  background: #ffffff;
  color: #090f1d;
  transform: translateY(-1px);
}

.landing-hero-side {
  min-width: 0;
  align-content: center;
}

.landing-product-scene {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: end;
  width: 100%;
  min-height: 470px;
  isolation: isolate;
}

.landing-card-fan {
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  pointer-events: none;
}

.landing-card-fan-item {
  position: absolute;
  display: block;
  width: min(360px, 72vw);
  filter: drop-shadow(0 22px 26px rgba(15, 23, 42, 0.18));
}

.landing-card-fan-item .card-art-hero {
  width: 100%;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.landing-card-fan-item.fan-1 {
  top: 0;
  right: 28px;
  z-index: 3;
  transform: rotate(3deg);
}

.landing-card-fan-item.fan-2 {
  top: 78px;
  left: 8px;
  z-index: 2;
  width: min(320px, 62vw);
  opacity: 0.92;
  transform: rotate(-7deg);
}

.landing-card-fan-item.fan-3 {
  top: 148px;
  right: 6px;
  z-index: 1;
  width: min(285px, 54vw);
  opacity: 0.68;
  transform: rotate(8deg);
}

.home-action-card {
  position: relative;
  z-index: 5;
  width: min(440px, 100%);
  max-width: 440px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.home-action-card.empty {
  min-height: 260px;
}

.home-action-status,
.focus-status {
  border: 0;
  background: #eef7ff;
  color: #184f73;
}

.home-action-card-head strong {
  color: #07a66b;
  font-size: 36px;
}

.home-action-card h3 {
  color: #090f1d;
}

.home-action-card p,
.home-action-facts dd {
  color: rgba(15, 23, 42, 0.74);
}

.home-action-buttons .row-action {
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
}

.home-action-buttons .row-action:not(.subtle) {
  background: #070d19;
  color: #ffffff;
}

.landing-philosophy-panel {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  padding: 46px max(32px, calc((100vw - 1210px) / 2 + 24px)) 54px;
  border: 0;
  border-radius: 0;
  background: #f1f3f2;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.08), inset 0 -1px 0 rgba(15, 23, 42, 0.06);
}

.landing-philosophy-panel h3 {
  color: #090f1d;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 950;
  line-height: 1.02;
  box-shadow: inset 0 -0.18em 0 rgba(255, 208, 99, 0.85);
}

.landing-philosophy-panel p {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.56;
}

.landing-principle-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.24);
  border-bottom: 1px dashed rgba(15, 23, 42, 0.24);
}

.landing-principle-list span {
  min-height: 128px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 20px 22px;
  box-shadow: none;
}

.landing-principle-list span + span {
  border-left: 1px dashed rgba(15, 23, 42, 0.24);
}

.landing-principle-list strong {
  color: #090f1d;
  font-size: 18px;
  font-weight: 920;
}

.landing-principle-list small {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.65);
  font-size: 13px;
  font-weight: 630;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .source {
    display: none;
  }

  .decision-home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-block: 52px 58px;
  }

  .landing-product-scene {
    justify-items: center;
    min-height: 430px;
  }

  .landing-card-fan {
    width: min(560px, 100%);
    left: 50%;
    transform: translateX(-50%);
  }

  .landing-philosophy-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app {
    width: calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding-top: 0;
  }

  .topbar {
    top: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 10px;
    padding: 12px 0;
    border-radius: 0;
  }

  .app-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .nav-tab {
    min-height: 32px;
    font-size: 14px;
  }

  .decision-home-hero {
    gap: 28px;
    margin-inline: calc(50% - 50vw);
    padding: 34px max(18px, calc((100vw - 100%) / 2 + 18px)) 42px;
  }

  .decision-home-hero .onboarding-hero-copy h2 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.99;
  }

  .decision-home-hero .onboarding-hero-copy p {
    font-size: 15px;
  }

  .decision-search-box {
    grid-template-columns: minmax(0, 1fr);
    padding: 7px;
    border-radius: 17px;
  }

  .decision-search-box input {
    min-height: 48px;
    padding-inline: 12px;
  }

  .decision-search-box .onboarding-primary {
    min-height: 48px;
    width: 100%;
  }

  .decision-quick-scenes {
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .landing-product-scene {
    min-height: 380px;
    justify-items: stretch;
  }

  .landing-card-fan {
    height: 238px;
  }

  .landing-card-fan-item.fan-1 {
    right: 0;
    width: min(300px, 78vw);
  }

  .landing-card-fan-item.fan-2 {
    top: 70px;
    left: 0;
    width: min(268px, 68vw);
  }

  .landing-card-fan-item.fan-3 {
    display: none;
  }

  .home-action-card {
    width: 100%;
    max-width: none;
    border-radius: 18px;
    padding: 18px;
  }

  .landing-philosophy-panel {
    padding: 34px 18px 42px;
  }

  .landing-principle-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-principle-list span {
    min-height: auto;
    padding: 18px 0;
  }

  .landing-principle-list span + span {
    border-left: 0;
    border-top: 1px dashed rgba(15, 23, 42, 0.24);
  }
}

/* kudos-inspired-detail-polish-v2: lighter ink, true underline accents, softer repeated controls. */
.decision-home-hero .onboarding-hero-copy h2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0) 78%, rgba(255, 208, 99, 0.86) 78%, rgba(255, 208, 99, 0.86) 90%, rgba(0, 0, 0, 0) 90%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.panel,
.opportunity-section,
.gallery-page,
.activity-page,
.card-entry,
.card-benefit-board,
.market-explorer,
.gallery-detail,
.market-card,
.gallery-switcher-panel,
.card-picker-shell {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

#marketPage .market-toolbar,
.market-list-sortbar,
.market-recommendation-row.market-table-row,
.market-group-card,
.market-offer-card,
.gallery-card,
.card-picker-card,
.usage-toggle,
.activity-hero,
.detail-usage-card,
.card-playbook-panel {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

#marketPage .market-toolbar {
  border-width: 1px;
}

#marketPage .market-search input,
#marketPage .benefit-switch,
#marketPage #marketFilterChips button,
#marketPage .payment-filter-chips button,
.market-view-options button,
.network-segment,
.row-action,
.copy-btn,
.alias-chip {
  border-color: rgba(15, 23, 42, 0.16);
}

#marketPage #marketFilterChips button[aria-pressed="true"],
#marketPage .payment-filter-chips button[aria-pressed="true"],
.market-view-options button[aria-pressed="true"],
.network-segment[aria-pressed="true"] {
  border-color: rgba(71, 153, 197, 0.42);
  background: #b8def1;
  color: #111827;
  box-shadow: 0 8px 20px rgba(71, 153, 197, 0.18);
}

.market-recommendation-row.market-table-row,
.market-list-sortbar {
  background: rgba(255, 255, 255, 0.72);
}

.market-recommendation-row.market-table-row:hover,
.gallery-card:hover,
.card-picker-card:hover {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

@media (max-width: 760px) {
  .decision-home-hero .onboarding-hero-copy h2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0) 80%, rgba(255, 208, 99, 0.86) 80%, rgba(255, 208, 99, 0.86) 91%, rgba(0, 0, 0, 0) 91%);
  }
}

/* original-fusion-rollback-v1: restore the Magic Card outline language with softer detail only. */
html {
  background: #f8fbfc;
}

body {
  background-color: #f8fbfc;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 252, 0.98) 42%, rgba(255, 252, 246, 0.92) 100%),
    linear-gradient(90deg, rgba(29, 29, 40, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 29, 40, 0.026) 1px, transparent 1px);
  background-position: 0 0, center top, center top;
  background-size: auto, 72px 72px, 72px 72px;
}

.app {
  width: min(1180px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  padding: 18px 0 48px;
}

.topbar {
  top: 12px;
  grid-template-columns: minmax(240px, 1fr) auto minmax(180px, 0.7fr);
  gap: 18px;
  margin-bottom: 20px;
  padding: 10px 12px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(29, 29, 40, 0.08);
}

.brand {
  padding-left: 0;
}

.brand .mark {
  border: 1.5px solid var(--brand-black);
  border-radius: 14px;
  background: var(--brand-sky);
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.12);
}

.app-nav {
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
}

.nav-tab {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--brand-black);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.nav-tab::after {
  content: none;
}

.nav-tab[aria-current="page"],
.nav-tab:hover {
  border-color: var(--brand-black);
  background: var(--brand-cream);
  color: var(--brand-black);
  transform: none;
}

.onboarding-page {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.onboarding-shell {
  gap: 18px;
  padding: 0;
}

.decision-home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 26px;
  align-items: stretch;
  width: auto;
  max-width: 100%;
  min-height: min(560px, calc(100vh - 132px));
  margin-inline: 0;
  overflow: visible;
  border: 1.5px solid var(--brand-black);
  border-radius: 24px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 64%, rgba(247, 223, 149, 0.5) 64%, rgba(247, 223, 149, 0.5) 100%);
  padding: clamp(34px, 5vw, 64px);
  box-shadow: 0 18px 38px rgba(29, 29, 40, 0.07);
}

.decision-home-hero::after {
  content: "";
}

.decision-home-copy {
  gap: 15px;
}

.decision-home-hero .onboarding-hero-copy h2 {
  max-width: 560px;
  color: var(--brand-black);
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 950;
  line-height: 1;
  background-image: linear-gradient(rgba(0, 0, 0, 0) 66%, rgba(116, 200, 244, 0.58) 66%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.decision-home-hero .onboarding-hero-copy p {
  max-width: 620px;
  color: var(--brand-black);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.5;
}

.decision-search-form {
  gap: 8px;
  width: min(100%, 680px);
}

.decision-search-form label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 860;
}

.decision-search-box {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.decision-search-box input {
  min-height: 54px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  padding: 0 18px;
  box-shadow: 4px 4px 0 rgba(29, 29, 40, 0.08);
  font-size: 15px;
  font-weight: 760;
}

.decision-search-box .onboarding-primary {
  min-height: 54px;
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: var(--brand-black);
  color: #ffffff;
  box-shadow: none;
}

.decision-search-box .onboarding-primary:hover {
  background: var(--brand-black);
  transform: translateY(-1px);
}

.decision-quick-scenes {
  gap: 8px;
  width: min(100%, 680px);
}

.decision-quick-scenes button,
.landing-hero-actions .onboarding-secondary {
  border: 1.5px solid var(--brand-black);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-black);
  box-shadow: none;
}

.decision-quick-scenes button[aria-pressed="true"],
.decision-quick-scenes button:hover,
.landing-hero-actions .onboarding-secondary:hover {
  background: var(--brand-mint);
  color: var(--brand-black);
}

.landing-hero-side {
  min-width: min(360px, 100%);
  align-content: center;
  justify-items: stretch;
}

.landing-product-scene,
.landing-card-fan,
.landing-card-fan-item {
  display: none;
}

.decision-home-hero .home-action-card,
.home-action-card {
  width: 100%;
  max-width: 400px;
  justify-self: center;
  border: 1.5px solid var(--brand-black);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
  box-shadow: 8px 8px 0 rgba(29, 29, 40, 0.1);
}

.home-action-card.empty {
  min-height: 260px;
}

.home-action-status,
.focus-status {
  border: 1.5px solid var(--brand-black);
  background: var(--brand-cream);
  color: var(--brand-black);
}

.home-action-card-head strong {
  color: var(--accent);
}

.home-action-card h3 {
  color: var(--brand-black);
}

.home-action-card p,
.home-action-facts dd {
  color: var(--muted-strong);
}

.home-action-buttons .row-action {
  border-color: var(--brand-black);
  background: #ffffff;
  color: var(--brand-black);
}

.home-action-buttons .row-action:not(.subtle) {
  background: var(--brand-black);
  color: #ffffff;
}

.landing-philosophy-panel {
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  width: auto;
  max-width: 100%;
  margin-inline: 0;
  border: 1.5px solid var(--brand-black);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  padding: 30px 32px;
  box-shadow: 0 18px 38px rgba(29, 29, 40, 0.07);
}

.landing-philosophy-panel h3 {
  color: var(--brand-black);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.02;
  box-shadow: inset 0 -0.18em 0 var(--brand-peach);
}

.landing-philosophy-panel p {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 760;
}

.landing-principle-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.landing-principle-list span {
  min-height: 120px;
  border: 1.5px solid var(--brand-black);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  box-shadow: none;
}

.landing-principle-list span + span {
  border-left: 1.5px solid var(--brand-black);
}

.landing-principle-list span:nth-child(2) {
  background: var(--brand-mint);
}

.landing-principle-list span:nth-child(3) {
  background: var(--brand-sky);
}

.landing-principle-list strong {
  color: var(--brand-black);
  font-size: 16px;
}

.landing-principle-list small {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 720;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .decision-home-hero,
  .landing-philosophy-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .decision-home-hero .home-action-card {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .app {
    width: calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding-top: 8px;
  }

  .topbar {
    top: 8px;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .app-nav {
    width: 100%;
    justify-content: stretch;
  }

  .nav-tab {
    flex: 1 1 0;
    font-size: 12px;
  }

  .decision-home-hero {
    gap: 14px;
    margin-inline: 0;
    padding: 16px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 70%, rgba(247, 223, 149, 0.42) 70%, rgba(247, 223, 149, 0.42) 100%);
  }

  .decision-home-hero .onboarding-hero-copy h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .decision-home-hero .onboarding-hero-copy p {
    font-size: 13px;
    line-height: 1.42;
  }

  .decision-search-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .decision-search-box .onboarding-primary {
    width: 100%;
  }

  .decision-quick-scenes {
    flex-wrap: wrap;
    overflow: visible;
  }

  .decision-home-hero .home-action-card {
    border-radius: 14px;
    padding: 14px;
    box-shadow: 5px 5px 0 rgba(29, 29, 40, 0.1);
  }

  .landing-philosophy-panel {
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
  }

  .landing-principle-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-principle-list span {
    min-height: auto;
  }

  .landing-principle-list span + span {
    border-left: 1.5px solid var(--brand-black);
    border-top: 1.5px solid var(--brand-black);
  }
}

/* card-picker-overlay-fix-v1: keep picker as a real modal, not a page section. */
.card-picker-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
}

.card-picker-dialog[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .card-picker-dialog {
    align-items: start;
    place-items: start center;
    padding: 12px 0;
  }
}
