/* Redemption homepage palette and controls. Layout and redemption state remain owned by their existing styles. */
:root[data-theme] body.site-shell.redemption-compact {
  --rd-brand: #4d59ce;
  --rd-brand-hover: #404bb8;
  --rd-on-brand: #fff;
  --rd-tint: #eef0fc;
  --rd-tint-hover: #e4e8fa;
  --rd-control-border: #cdd3ef;
  --rd-soft-fill: #f8f9fc;
  --rd-disabled: #edf0f6;
  --rd-disabled-text: #77829a;
  --rd-card-shadow: 0 2px 4px #25355703, 0 16px 48px -24px #283d6433;
  --xd-accent-a: var(--rd-brand);
  --xd-accent-b: var(--rd-brand);
  --xd-accent-grad: linear-gradient(180deg, #5965da, var(--rd-brand));
  --xd-ok-grad: linear-gradient(180deg, #23967c, #19856e);
}
:root[data-theme="white"] body.site-shell.redemption-compact {
  --ui-canvas: #f4f6fa;
  --ui-surface: #fff;
  --ui-surface-muted: #f5f7fb;
  --ui-surface-soft: #f8f9fc;
  --ui-border: #e1e6ef;
  --ui-border-strong: #c7d0e0;
  --ui-text: #202b43;
  --ui-text-muted: #606e86;
  --ui-text-soft: #6d7b92;
  --ui-primary: #4d59ce;
  --ui-primary-strong: #424fbe;
  --ui-accent: #6777cf;
  --ui-success: #19856e;
  --ui-success-text: #187660;
  --ui-success-soft: #eaf6f1;
  --xd-hair: #e1e6ef;
  --xd-fill: #f4f6fa;
  --xd-input-border: #cbd3e1;
  background: radial-gradient(ellipse 1000px 440px at 50% 0, #e9edfb 0, transparent 72%), #f4f6fa;
  background-attachment: fixed;
}
:root:is([data-theme="black"], [data-theme="classic"]) body.site-shell.redemption-compact {
  --rd-brand: #4e5ed0;
  --rd-brand-hover: #4453c0;
  --rd-tint: #252f4c;
  --rd-tint-hover: #2d3959;
  --rd-control-border: #45547a;
  --rd-soft-fill: #192235;
  --rd-disabled: #273247;
  --rd-disabled-text: #8d9ab3;
  --rd-card-shadow: 0 16px 48px -24px #0008;
  --ui-canvas: #111827;
  --ui-surface: #1c2638;
  --ui-surface-muted: #202c41;
  --ui-surface-soft: #192235;
  --ui-border: #334057;
  --ui-border-strong: #53627e;
  --ui-text: #edf1fa;
  --ui-text-muted: #b0bdd4;
  --ui-text-soft: #9cabc5;
  --ui-primary: #9aabff;
  --ui-primary-strong: #b2bfff;
  --ui-accent: #9aabff;
  --ui-success: #5bc8aa;
  --ui-success-text: #81ddc1;
  --ui-success-soft: #203d39;
  --xd-hair: #334057;
  --xd-fill: #243147;
  --xd-input-border: #53627e;
  background: radial-gradient(ellipse 1000px 440px at 50% 0, #1c2846 0, transparent 72%), #111827;
  background-attachment: fixed;
}
:root[data-theme] .site-shell.redemption-compact .topbar {
  background: color-mix(in srgb, var(--ui-surface) 92%, transparent);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: 0 1px 8px #17254603;
}
:root[data-theme] .site-shell.redemption-compact .brand-mark.brand-avatar-mark {
  box-shadow: 0 0 0 3px var(--rd-tint);
  border-color: var(--ui-border);
}
:root[data-theme] .site-shell.redemption-compact .top-actions :is(#invoiceEntry, #openQuery),
:root[data-theme] .site-shell.redemption-compact .more-tools > summary {
  border-color: var(--ui-border);
  border-radius: 10px;
  background: var(--ui-surface);
  color: var(--ui-text-muted);
  box-shadow: 0 1px 2px #17254603;
}
:root[data-theme] .site-shell.redemption-compact .top-actions #upgradeEntry {
  border-color: var(--rd-control-border);
  border-radius: 10px;
  color: var(--ui-primary-strong);
  background: var(--rd-tint);
}
:root[data-theme] .site-shell.redemption-compact .top-actions #upgradeEntry:hover {
  border-color: var(--ui-primary);
  background: var(--rd-tint-hover);
}
:root[data-theme] .site-shell.redemption-compact .redemption-product-tabs {
  border-color: var(--ui-border);
  background: color-mix(in srgb, var(--ui-surface) 78%, var(--ui-canvas));
  box-shadow: 0 2px 4px #17254603;
}
:root[data-theme] .site-shell.redemption-compact .redemption-product-tab[aria-selected="true"] {
  border: 1px solid var(--rd-control-border);
  background: var(--rd-tint);
  color: var(--ui-primary-strong);
  box-shadow: 0 1px 3px #17254606;
}
:root[data-theme] .site-shell.redemption-compact .redemption-product-tab[aria-selected="true"]::after { display: none; }
:root[data-theme] .site-shell.redemption-compact .customer-hero-panel .hero-copy h1 span,
:root[data-theme] .site-shell.redemption-compact .claude-redemption-hero h1 span {
  background: none;
  color: var(--ui-primary-strong);
  -webkit-text-fill-color: currentColor;
}
:root[data-theme] .site-shell.redemption-compact .customer-hero-panel .pill {
  color: var(--ui-primary-strong);
  background: var(--rd-tint);
  border-color: var(--rd-control-border);
}
:root[data-theme] .site-shell.redemption-compact .customer-hero-panel .pill::before {
  background: var(--ui-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-primary) 12%, transparent);
}
:root[data-theme] .site-shell.redemption-compact :is(#step1.flow-card, #step3.flow-card, .claude-redemption-card, #grokEntryCard) {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  box-shadow: var(--rd-card-shadow);
}
:root[data-theme] .site-shell.redemption-compact :is(#step1.flow-card, #step3.flow-card, .claude-redemption-card)::before { display: none; }
:root[data-theme] .site-shell.redemption-compact #step1 #addSubmissionRow {
  color: var(--ui-text-muted);
  background: var(--rd-soft-fill);
  border: 1px solid var(--ui-border);
  border-radius: 9px;
}
:root[data-theme] .site-shell.redemption-compact #step1 #addSubmissionRow:hover { color: var(--ui-primary-strong); background: var(--rd-tint); border-color: var(--rd-control-border); }
:root[data-theme] .site-shell.redemption-compact #step1 .customer-step-label > span {
  background: var(--rd-brand);
  box-shadow: 0 0 0 4px var(--rd-tint);
}
:root[data-theme] .site-shell.redemption-compact #step1 .submission-row.credential-ready > :is([data-cdk-field], .submission-plan-field) > .customer-step-label > span,
:root[data-theme] .site-shell.redemption-compact #step1 .session-recognized-icon {
  background: #19856e;
  box-shadow: 0 0 0 4px var(--ui-success-soft);
}
:root[data-theme] .site-shell.redemption-compact #step1 .submission-row.credential-ready > :is([data-cdk-field], .submission-plan-field)::before {
  background: var(--ui-border);
}
:root[data-theme] .site-shell.redemption-compact #step1 .submission-row[data-cdk-state="ok"] > [data-cdk-field]:has(> .cdk-plan-display:not(.hidden)) > input {
  border-color: color-mix(in srgb, var(--ui-success) 52%, var(--ui-border));
  background: var(--ui-surface);
  box-shadow: none;
}
:root[data-theme] .site-shell.redemption-compact #step1 .session-account-steps > li {
  border-color: var(--ui-border);
  background: var(--rd-soft-fill);
  border-radius: 14px;
}
:root[data-theme] .site-shell.redemption-compact #step1 .session-account-steps > li + li { background: var(--ui-surface); }
:root[data-theme] .site-shell.redemption-compact #step1 .session-task-heading > span { background: var(--rd-tint); color: var(--ui-primary-strong); }
:root[data-theme] .site-shell.redemption-compact #step1 .session-method-switch {
  background: var(--rd-soft-fill);
  border-color: var(--ui-border);
  border-radius: 11px;
}
:root[data-theme] .site-shell.redemption-compact #step1 .session-method-switch button[aria-pressed="true"] {
  color: var(--ui-primary-strong);
  background: var(--rd-tint);
  border-color: var(--rd-control-border);
  box-shadow: none;
}
:root[data-theme] .site-shell.redemption-compact #step1 .session-account-steps textarea {
  background: var(--rd-soft-fill);
  border-color: var(--ui-border);
  border-radius: 11px;
}
:root[data-theme] .site-shell.redemption-compact :is(.primary-button, #step1 .session-main-action.primary-button) {
  color: var(--rd-on-brand);
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rd-brand) 93%, white), var(--rd-brand));
  box-shadow: inset 0 1px 0 #ffffff14, 0 4px 10px -5px color-mix(in srgb, var(--rd-brand) 45%, transparent);
  font-weight: 600;
  filter: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
:root[data-theme] .site-shell.redemption-compact :is(.primary-button, #step1 .session-main-action.primary-button):hover:not(:disabled) {
  background: var(--rd-brand-hover);
  box-shadow: 0 5px 12px -6px color-mix(in srgb, var(--rd-brand) 55%, transparent);
  transform: none;
  filter: none;
}
:root[data-theme] .site-shell.redemption-compact #step1 [data-paste-session].session-main-action {
  color: var(--ui-primary-strong);
  border: 1px solid var(--rd-control-border);
  border-radius: 11px;
  background: var(--rd-tint);
  box-shadow: inset 0 1px 0 #ffffff0a;
  font-weight: 600;
}
:root[data-theme] .site-shell.redemption-compact #step1 [data-paste-session].session-main-action:hover:not(:disabled) {
  background: var(--rd-tint-hover);
  border-color: var(--ui-primary);
  transform: none;
}
:root[data-theme] .site-shell.redemption-compact #step1 .session-main-action svg { width: 18px; height: 18px; flex: none; }
:root[data-theme] .site-shell.redemption-compact :is(.primary-button, #step1 .session-main-action):disabled {
  color: var(--rd-disabled-text);
  background: var(--rd-disabled);
  border-color: var(--ui-border);
  box-shadow: none;
  opacity: 1;
  filter: none;
  cursor: not-allowed;
}
:root[data-theme] .site-shell.redemption-compact :is(button, a, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ui-primary) 65%, transparent);
  outline-offset: 3px;
}
:root[data-theme] .site-shell.redemption-compact #step1 :is(input, textarea):focus-visible {
  border-color: var(--ui-primary);
  outline: 3px solid color-mix(in srgb, var(--ui-primary) 16%, transparent);
  outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme] .site-shell.redemption-compact :is(button, a, summary) { transition: none; }
}
