/* KDPika License Portal
   Palette: ink background, warm amber accent (a "solved cell" highlight),
   a faint 3x3 grid motif nodding to the Sudoku product line.
   Type: Inter for UI text, IBM Plex Mono for keys/IDs (data, not decoration). */

:root {
  --bg: #12141a;
  --surface: #1a1d26;
  --surface-raised: #21242f;
  --border: #2b2f3d;
  --text: #e7e9ee;
  --text-dim: #8b93a7;
  --accent: #e8a33d;
  --accent-dim: #b5822f;
  --success: #4caf7d;
  --danger: #e5636f;
  --warning: #f0b44d;
  --accent-soft: rgba(232, 163, 61, 0.12);
  --success-soft: rgba(76, 175, 125, 0.12);
  --danger-soft: rgba(229, 99, 111, 0.12);
  --radius: 6px;
  --radius-lg: 14px;
}

/* Customer portal phase three: accessible sign-in, library controls, security and privacy. */
.customer-skip-link{position:fixed;z-index:9999;inset-inline-start:16px;top:10px;transform:translateY(-150%);padding:10px 15px;border-radius:9px;background:#fff;color:#111827;font-weight:900;box-shadow:0 8px 24px rgba(0,0,0,.24)}
.customer-skip-link:focus{transform:none;outline:3px solid #e8a33d;outline-offset:2px}
.customer-signin-methods{display:grid;gap:14px;align-content:start}
.customer-signin-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px;border:1px solid #303541;border-radius:15px;background:#14171d}
.customer-signin-tabs button{min-height:40px;padding:8px;border:0;border-radius:10px;background:transparent;color:#9da5b4;font-size:12px;font-weight:850;cursor:pointer}
.customer-signin-tabs button:hover,.customer-signin-tabs button:focus-visible{color:#fff;background:#252a34;text-decoration:none}
.customer-signin-tabs button.is-active{color:#171a20;background:#e8a33d;box-shadow:0 4px 13px rgba(232,163,61,.2)}
.customer-passkey-login{text-align:center}.customer-passkey-login h3{margin:0;color:#f4f5f7}.customer-passkey-login>p{margin:4px 0 14px;color:#aeb6c4;line-height:1.6}
.customer-passkey-icon{display:grid;place-items:center;width:58px;height:58px;margin:2px auto 11px;border-radius:18px;background:rgba(232,163,61,.13);color:#e8a33d;font-size:30px;font-weight:900}
.customer-full-width{width:100%;justify-content:center;margin-top:8px}
.customer-library-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,220px) auto;gap:12px;align-items:end;margin:18px 0 4px;padding:15px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:#15181f}
.customer-library-tools label{display:grid;gap:6px;color:#a7afbd;font-size:12px;font-weight:800}
.customer-library-tools input,.customer-library-tools select{min-height:42px;width:100%;padding:9px 12px;border:1px solid #343a47;border-radius:11px;background:#1d212a;color:#f1f3f5;font:inherit}
.customer-library-tools input:focus,.customer-library-tools select:focus{outline:3px solid rgba(232,163,61,.18);border-color:#e8a33d}
.customer-library-card{position:relative}
.customer-pin-purchase{grid-area:pin;position:relative;z-index:2;display:grid;place-items:center;align-self:center;justify-self:end;width:38px;height:38px;min-width:38px;min-height:38px;margin:0 0 0 2px;padding:0;appearance:none;border:1px solid rgba(154,165,183,.34);border-radius:50%;background:linear-gradient(145deg,#202530,#171b23);color:#aeb6c4;box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 5px 14px rgba(0,0,0,.18);font-size:17px;line-height:1;cursor:pointer;transition:color .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.customer-pin-purchase:hover{color:#ffc66f;border-color:rgba(232,163,61,.72);background:linear-gradient(145deg,rgba(232,163,61,.19),rgba(232,163,61,.075));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 4px rgba(232,163,61,.075),0 7px 18px rgba(0,0,0,.22);transform:translateY(-1px);text-decoration:none}
.customer-pin-purchase:focus-visible{outline:3px solid rgba(232,163,61,.28);outline-offset:3px;color:#ffd28b;border-color:#e8a33d;background:#29251e;text-decoration:none}
.customer-pin-purchase.is-pinned{color:#171a20;background:linear-gradient(145deg,#f2b557,#df942d);border-color:#f4bd67;box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 0 0 4px rgba(232,163,61,.1),0 7px 18px rgba(0,0,0,.2)}
.customer-pin-purchase.is-pinned:hover{color:#11141a;background:linear-gradient(145deg,#ffc66c,#e8a33d);border-color:#ffd18c;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 0 0 5px rgba(232,163,61,.13),0 9px 21px rgba(0,0,0,.24)}
.customer-page .customer-security-center{width:100%;max-width:none;margin-top:20px;border-radius:24px;padding:24px}
.customer-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px}
.customer-security-grid>section,.customer-notifications{min-width:0;padding:17px;border:1px solid rgba(255,255,255,.08);border-radius:17px;background:#15181f}
.customer-notifications{margin-top:20px}.customer-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.customer-section-title h3{margin:0;color:#f2f3f5;font-size:15px}.customer-section-title>span{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#282d37;color:#c5cad3;font-size:12px;font-weight:900}
.customer-security-list,.customer-notification-list{display:grid;gap:9px}
#browserSessions{max-height:430px;overflow-x:hidden;overflow-y:auto;padding-inline-end:5px;scrollbar-width:thin;scrollbar-color:#545c6b transparent}
#browserSessions::-webkit-scrollbar{width:8px}#browserSessions::-webkit-scrollbar-track{background:transparent}#browserSessions::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#545c6b;background-clip:padding-box}
.customer-security-item,.customer-notification-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:#1c2028}
.customer-security-item-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(76,175,125,.12);color:#62c493;font-size:17px;font-weight:900}
.customer-security-item-copy{display:grid;gap:2px;min-width:0}.customer-security-item-copy strong{color:#f1f2f5;overflow-wrap:anywhere}.customer-security-item-copy span,.customer-security-item-copy small{color:#9099a9;font-size:12px;line-height:1.45}
.customer-security-item .btn-danger{min-height:34px;padding:6px 10px;font-size:12px}.customer-current-session{display:inline-flex;width:max-content;padding:2px 7px;border-radius:999px;background:rgba(76,175,125,.12);color:#72cca1!important;font-weight:800}
.security-unread-badge{display:inline-flex;align-items:center;min-height:30px;padding:4px 10px;border-radius:999px;background:#e8a33d;color:#171a20;font-size:12px;font-weight:900}
.customer-notification-item{grid-template-columns:10px minmax(0,1fr) auto}.customer-notification-dot{width:9px;height:9px;border-radius:50%;background:#4caf7d}.customer-notification-item.is-unread{border-color:rgba(232,163,61,.35);background:#242117}.customer-notification-item.is-unread .customer-notification-dot{background:#e8a33d;box-shadow:0 0 0 4px rgba(232,163,61,.13)}.customer-notification-item.is-critical .customer-notification-dot{background:#e5636f}
.customer-page .customer-privacy-tools{display:grid;width:100%;max-width:none;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;margin-top:20px;padding:24px;border-radius:24px;background:linear-gradient(135deg,#171d22,#1b2028)}
.customer-privacy-tools h2{margin:3px 0 5px;color:#f2f3f5}.customer-privacy-tools p{margin:0;color:#949dac;line-height:1.6}.customer-privacy-tools-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:rgba(91,160,176,.14);color:#77c3d3;font-size:21px}
.customer-privacy-request-list{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:8px}.customer-privacy-request-list:empty{display:none}.customer-privacy-request-pill{display:inline-flex;gap:7px;align-items:center;padding:6px 10px;border:1px solid rgba(255,255,255,.08);border-radius:999px;color:#aeb6c4;font-size:12px}.customer-privacy-request-pill strong{color:#e6e8ec}
.customer-add-purchase-form textarea{width:100%;resize:vertical;min-height:105px;padding:11px 13px;border:1px solid #343a47;border-radius:11px;background:#1d212a;color:#f1f3f5;font:inherit}.customer-add-purchase-form textarea:focus{outline:3px solid rgba(232,163,61,.18);border-color:#e8a33d}
.customer-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@media(max-width:820px){.customer-library-tools{grid-template-columns:1fr}.customer-security-grid{grid-template-columns:1fr}.customer-privacy-tools{grid-template-columns:auto 1fr}.customer-privacy-tools>.customer-inline-actions,.customer-privacy-request-list{grid-column:1/-1}.customer-signin-tabs button{font-size:11px;padding-inline:4px}}
@media(max-width:560px){.customer-signin-tabs{grid-template-columns:1fr}.customer-security-item{grid-template-columns:auto 1fr}.customer-security-item>button{grid-column:1/-1;width:100%}.customer-notification-item{grid-template-columns:10px 1fr}.customer-notification-item time{grid-column:2}.customer-privacy-tools{grid-template-columns:1fr}.customer-privacy-tools-icon{display:none}}
@media(prefers-reduced-motion:reduce){.customer-page *{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* Customer portal phase two: language, delivery, billing and activity. */
.customer-language{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #dce5ee;border-radius:13px;background:rgba(255,255,255,.78)}
.customer-language a{padding:7px 10px;border-radius:9px;color:#546271;font-size:12px;font-weight:800;text-decoration:none;line-height:1}
.customer-language a:hover{color:#142130;background:#eef4f8;text-decoration:none}
.customer-language a[aria-current="true"]{color:#fff;background:#1b3349;box-shadow:0 3px 10px rgba(27,51,73,.18)}
.customer-phase-two-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px}
.customer-release-panel,.customer-billing-panel,.customer-activity-panel,.customer-recovery-panel{border-radius:24px;padding:24px}
.release-version{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border-radius:999px;background:#eaf7f1;color:#08734e;font-size:13px;font-weight:900;white-space:nowrap}
.release-meta{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid #e8edf2;border-bottom:1px solid #e8edf2;color:#687684;font-size:13px}
.release-meta strong{color:#1a2936;text-align:end}
.release-notes{padding:17px 0 4px}
.release-notes>strong{display:block;color:#21313f;font-size:13px;margin-bottom:6px}
.release-notes p{margin:0;color:#5f6d79;line-height:1.7;white-space:pre-line}
.customer-inline-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.customer-inline-actions .btn,.customer-inline-actions .btn-quiet,.customer-inline-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;text-decoration:none}
.billing-quick-list{display:grid;gap:0;margin-top:4px;border-top:1px solid #e8edf2}
.billing-quick-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #e8edf2}
.billing-quick-list span{color:#687684;font-size:13px}.billing-quick-list strong{color:#1a2936;text-align:end}
.customer-activity-panel{margin-top:20px}
.customer-activity-list{display:grid;gap:0;border-top:1px solid #e8edf2}
.customer-activity-item{display:grid;grid-template-columns:13px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px 3px;border-bottom:1px solid #e8edf2}
.customer-activity-dot{width:9px;height:9px;border-radius:50%;background:#159c6d;box-shadow:0 0 0 5px #e7f7f1}
.customer-activity-item div{display:grid;gap:3px}.customer-activity-item strong{font-size:14px;color:#1a2936}.customer-activity-item small{color:#74818d;font-size:12px}.customer-activity-item time{color:#667481;font-size:12px;white-space:nowrap}
.customer-recovery-panel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;margin-top:20px;background:linear-gradient(135deg,#f8fbfd,#eef6f7)}
.customer-recovery-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#fff;color:#196b75;font-size:22px;font-weight:900;box-shadow:0 8px 22px rgba(39,72,91,.10)}
.customer-recovery-panel h2{margin:3px 0 5px}.customer-recovery-panel p{margin:0;color:#687684;line-height:1.55}
.customer-merge-warning{padding:12px 14px;border-radius:13px;background:#fff8e7;border:1px solid #efd799;color:#695522;font-size:13px;line-height:1.55}
.product-form-divider{margin-top:8px;padding-top:20px;border-top:1px solid #dfe7ed}.product-form-divider h3{margin:4px 0 5px}.product-form-divider p{margin:0;color:#6a7885;line-height:1.55}
.form-grid textarea{width:100%;resize:vertical;min-height:120px;border:1px solid #cfd9e1;border-radius:12px;padding:12px 14px;font:inherit;color:#1a2936;background:#fff}
.form-grid textarea:focus{outline:none;border-color:#4e8995;box-shadow:0 0 0 3px rgba(78,137,149,.12)}

html[dir="rtl"] body{font-family:"Tahoma","Arial",sans-serif}
html[dir="rtl"] .customer-page,html[dir="rtl"] .customer-main{text-align:right}
html[dir="rtl"] .customer-hub-actions,html[dir="rtl"] .customer-inline-actions,html[dir="rtl"] .customer-help-actions{direction:rtl}
html[dir="rtl"] .customer-activity-item{grid-template-columns:13px minmax(0,1fr) auto}
html[dir="rtl"] .customer-device-actions{margin-left:0;margin-right:auto}
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[id*="LicenseKey"]{direction:ltr;text-align:left}

@media(max-width:820px){
  .customer-phase-two-grid{grid-template-columns:1fr}
  .customer-recovery-panel{grid-template-columns:auto minmax(0,1fr)}
  .customer-recovery-panel>button{grid-column:1/-1;width:100%}
  .customer-language{gap:2px}.customer-language a{padding:7px 6px;font-size:11px}
  .customer-activity-item{grid-template-columns:12px minmax(0,1fr)}.customer-activity-item time{grid-column:2;white-space:normal}
}

@media print{
  body.printing-purchase-summary .customer-topbar,body.printing-purchase-summary #signin,body.printing-purchase-summary .customer-welcome-bar,body.printing-purchase-summary .customer-hub-hero,body.printing-purchase-summary .customer-demo-notice,body.printing-purchase-summary .customer-hub-summary,body.printing-purchase-summary .customer-attention-center,body.printing-purchase-summary .customer-library-panel,body.printing-purchase-summary .customer-hero-actions,body.printing-purchase-summary .customer-provider-check,body.printing-purchase-summary .entitlement-explainer,body.printing-purchase-summary .customer-content-grid,body.printing-purchase-summary .customer-release-panel,body.printing-purchase-summary .customer-activity-panel,body.printing-purchase-summary .customer-recovery-panel,body.printing-purchase-summary .customer-help-panel,body.printing-purchase-summary .customer-foot,body.printing-purchase-summary .customer-inline-actions{display:none!important}
  body.printing-purchase-summary .customer-workspace,body.printing-purchase-summary .customer-product-hero,body.printing-purchase-summary .customer-summary-grid,body.printing-purchase-summary .customer-dates-panel,body.printing-purchase-summary .customer-phase-two-grid,body.printing-purchase-summary .customer-billing-panel{display:block!important}
  body.printing-purchase-summary .customer-main{padding:0;background:#fff}body.printing-purchase-summary .customer-product-hero,body.printing-purchase-summary .customer-dates-panel,body.printing-purchase-summary .customer-billing-panel{box-shadow:none;border:1px solid #cbd3da;margin:0 0 14px;break-inside:avoid}
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Faint grid backdrop used on entry screens only */
/* The grid pattern lives on a pseudo-element behind the content, so opacity
   fades only the pattern itself — never the text, buttons, or table on top. */
.grid-backdrop { position: relative; }
.grid-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 80%);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.grid-backdrop > * {
  position: relative;
  z-index: 1;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.brand span { color: var(--accent); }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px;
}

.panel {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.panel h1 {
  font-size: 20px;
  margin: 0 0 6px;
}
.panel p.lede {
  color: var(--text-dim);
  margin: 0 0 28px;
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 6px;
}

input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 18px;
  font-family: inherit;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 84px; }
textarea:focus { outline: none; border-color: var(--accent); }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #1a1305;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
button:hover, .btn:hover { background: #f0af52; text-decoration: none; }
button:disabled { opacity: 0.5; cursor: default; }

.btn-quiet {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-quiet:hover { background: var(--surface-raised); color: var(--text); text-decoration: none; }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover { background: rgba(229, 99, 111, 0.12); text-decoration: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

.error-text { color: var(--danger); font-size: 13px; margin: -8px 0 16px; }
.success-text { color: var(--success); font-size: 13px; margin: -8px 0 16px; }

.fa-icon {
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  vertical-align: -0.1em;
  margin-inline-end: 6px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 420px;
  width: 100%;
}
.modal-box h2 { font-size: 17px; margin: 0 0 8px; color: var(--text); }
.modal-box p { font-size: 14px; color: var(--text-dim); margin: 0 0 24px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.usage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
}
.usage-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  background: var(--accent);
}
.usage-fill.full { background: var(--danger); }
.usage-label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.device-row:first-child { border-top: none; }
.device-name { font-weight: 500; font-size: 14px; }
.device-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 20px 0;
}

/* Admin dashboard */
.dash {
  width: 100%;
  max-width: 980px;
  padding: 40px 20px;
  margin: 0 auto;
}
.dash h1 { font-size: 20px; margin-bottom: 4px; }
.dash .lede { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }

.search-row { margin-bottom: 20px; max-width: 340px; }
.search-row input { margin-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-value { font-size: 26px; font-weight: 600; color: var(--text); line-height: 1.2; }
.stat-card.stat-danger .stat-value { color: var(--danger); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.pill:hover { color: var(--text); border-color: var(--text-dim); }
.pill.active { background: var(--accent); color: #1a1305; border-color: var(--accent); font-weight: 600; }

table.licenses {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.licenses th {
  text-align: left;
  font-size: 12px;
  text-transform: none;
  color: var(--text-dim);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
table.licenses th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.licenses th.sortable:hover { color: var(--text); }
table.licenses th.sortable.sorted-asc,
table.licenses th.sortable.sorted-desc { color: var(--accent); }
table.licenses th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.45;
}
table.licenses th.sorted-asc .sort-arrow,
table.licenses th.sorted-desc .sort-arrow { opacity: 1; }
table.licenses td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
table.licenses tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.badge.full { color: var(--danger); border-color: var(--danger); }

.device-list-inline {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.device-list-inline div { padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
.device-list-inline div span:first-child { color: var(--text-dim); }

.max-devices-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.max-devices-form input {
  width: 60px;
  margin-bottom: 0;
  padding: 6px 8px;
}

footer.foot {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 24px;
}

/* Persistent section nav shown on every admin page, right under the topbar */
.admin-nav {
  display: grid;
  justify-items: center;
  gap: 4px;
  overflow: visible;
  padding: 9px max(20px, calc((100vw - 1260px) / 2 + 20px));
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(29,32,40,.98), rgba(24,27,34,.98));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.admin-nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.admin-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 550;
  color: var(--text-dim);
  white-space: nowrap;
  text-decoration: none !important;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.admin-nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.08);
  text-decoration: none !important;
  transform: translateY(-1px);
}
.admin-nav-link:focus-visible { outline: 3px solid rgba(232,163,61,.24); outline-offset: 1px; text-decoration: none; }
.admin-nav-link.active {
  color: #ffd58b;
  background: rgba(232,163,61,.1);
  border-color: rgba(232,163,61,.3);
  font-weight: 650;
  text-decoration: none !important;
}
@media (max-width: 640px) {
  .admin-nav { justify-items: stretch; padding: 8px 14px; }
  .admin-nav-row { justify-content: flex-start; }
  .admin-nav-link { min-height: 34px; padding: 6px 10px; }
}

/* Customer commerce: account content, never a popup or dismissible ad. */
.customer-special-offer{--offer-bg:#171a22;--offer-a:#e5a94a;--offer-b:#f6c76a;--offer-text:#f7f8fb;--offer-ink:#1a1205;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);align-items:center;gap:30px;overflow:hidden;margin:28px 0;padding:32px;border:1px solid color-mix(in srgb,var(--offer-a) 45%,transparent);border-radius:24px;background:var(--offer-bg);color:var(--offer-text);box-shadow:0 20px 54px rgba(0,0,0,.2)}
.customer-special-offer[hidden]{display:none!important}.customer-special-offer::before{content:"";position:absolute;inset:-60%;z-index:-2;background:radial-gradient(circle at 22% 35%,color-mix(in srgb,var(--offer-a) 38%,transparent),transparent 34%),radial-gradient(circle at 78% 70%,color-mix(in srgb,var(--offer-b) 30%,transparent),transparent 34%);filter:blur(34px);animation:customer-offer-drift 10s ease-in-out infinite alternate}.customer-special-offer::after{content:"";position:absolute;inset:2px;z-index:-1;border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.035),transparent 45%)}
.customer-offer-effects{position:absolute;inset:0;z-index:-1;pointer-events:none}.customer-offer-effects i{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--offer-a);box-shadow:0 0 10px var(--offer-a);opacity:.15;animation:customer-offer-spark 7s linear infinite}.customer-offer-effects i:nth-child(1){left:12%;bottom:-8px}.customer-offer-effects i:nth-child(2){left:54%;bottom:-8px;animation-delay:2.2s}.customer-offer-effects i:nth-child(3){left:88%;bottom:-8px;animation-delay:4.4s}
.customer-offer-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customer-offer-product:first-child:last-child{grid-column:1/-1}.customer-offer-product{min-width:0;text-align:center}.customer-offer-product strong,.customer-offer-product span{display:block}.customer-offer-product strong{margin-top:9px;color:var(--offer-text);font-size:11px;line-height:1.3}.customer-offer-product>span:last-child{margin-top:3px;color:color-mix(in srgb,var(--offer-text) 65%,transparent);font-size:8px}.customer-offer-image{display:grid;aspect-ratio:1;max-width:170px;margin:auto;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--offer-a) 48%,transparent);border-radius:20px;background:linear-gradient(135deg,var(--offer-a),var(--offer-b));color:var(--offer-ink);font-size:54px;font-weight:900;box-shadow:0 18px 38px rgba(0,0,0,.28);animation:customer-offer-float 4.5s ease-in-out infinite}.customer-offer-image img{width:100%;height:100%;object-fit:contain;padding:10%}
.customer-offer-badge{display:inline-flex;padding:6px 13px;border-radius:999px;background:var(--offer-a);color:var(--offer-ink);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 0 0 0 color-mix(in srgb,var(--offer-a) 45%,transparent);animation:customer-offer-pulse 2.8s ease-in-out infinite}.customer-offer-copy h2{max-width:720px;margin:13px 0 8px;color:var(--offer-text);font-size:29px;line-height:1.12}.customer-offer-copy>p{max-width:700px;margin:0;color:color-mix(in srgb,var(--offer-text) 75%,transparent);font-size:11px;line-height:1.65}.customer-offer-price{display:flex;align-items:baseline;gap:12px;margin:17px 0 7px}.customer-offer-price del{color:color-mix(in srgb,var(--offer-text) 46%,transparent);font-size:15px}.customer-offer-price strong{color:var(--offer-a);font-size:34px;line-height:1}.customer-offer-copy .customer-offer-ends{color:color-mix(in srgb,var(--offer-text) 62%,transparent);font-size:9px}.customer-offer-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.customer-offer-actions button{width:auto;min-height:42px;margin:0;padding:10px 18px;border:0;border-radius:12px;background:linear-gradient(95deg,var(--offer-a),var(--offer-b));color:var(--offer-ink);font-size:10px;font-weight:850;box-shadow:0 10px 24px color-mix(in srgb,var(--offer-a) 22%,transparent)}.customer-offer-actions button:hover{transform:translateY(-2px);filter:brightness(1.07)}.customer-offer-copy>small{display:block;margin-top:10px;color:color-mix(in srgb,var(--offer-text) 48%,transparent);font-size:8px}
@keyframes customer-offer-drift{to{transform:translate3d(5%,3%,0) scale(1.08)}}@keyframes customer-offer-spark{0%{transform:translateY(0);opacity:0}18%{opacity:.7}100%{transform:translateY(-360px);opacity:0}}@keyframes customer-offer-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}@keyframes customer-offer-pulse{50%{box-shadow:0 0 0 9px transparent}}

/* Complete visual library adapted from the supplied 50-style prototype. */
.offer-style-original-gold,.offer-style-luxury-gold,.offer-style-compact-gold{--offer-bg:linear-gradient(135deg,#2b2112,#171a22 72%);--offer-a:#e5a94a;--offer-b:#f6c76a;--offer-text:#fff4d6;--offer-ink:#1a1205}.offer-style-aurora{--offer-bg:#0c1220;--offer-a:#6d5dfc;--offer-b:#19d3c5}.offer-style-neon-night{--offer-bg:#09050f;--offer-a:#ff2fd1;--offer-b:#25f4ee;--offer-ink:#07070a}.offer-style-confetti,.offer-style-gift-ribbon{--offer-bg:linear-gradient(135deg,#2e1536,#1b1d2b);--offer-a:#ff5c8a;--offer-b:#ffcf5c}.offer-style-ticket-gold{--offer-bg:#1b1d28;--offer-a:#f6c76a;--offer-b:#b9741f}.offer-style-snowfall{--offer-bg:#0b1a2e;--offer-a:#9fd8ff;--offer-b:#e6f6ff;--offer-ink:#06223c}.offer-style-hearts{--offer-bg:#2a0f1d;--offer-a:#ff6f9c;--offer-b:#ffb3c9;--offer-ink:#3a0a1c}.offer-style-starry-space{--offer-bg:#050816;--offer-a:#7aa2ff;--offer-b:#c8b6ff;--offer-ink:#050816}.offer-style-matrix,.offer-style-terminal{--offer-bg:#020a04;--offer-a:#22ff6e;--offer-b:#0fb34a;--offer-text:#b9ffd0;--offer-ink:#02140a;font-family:ui-monospace,Consolas,monospace}.offer-style-synthwave{--offer-bg:linear-gradient(180deg,#1a0b3a,#3b0b52 60%,#6a0f5e);--offer-a:#ff4fd8;--offer-b:#ffd23f;--offer-ink:#1a0b3a}.offer-style-sunset{--offer-bg:linear-gradient(135deg,#ff7e5f,#feb47b);--offer-a:#fff;--offer-b:#fff0e0;--offer-ink:#b2380b}.offer-style-ocean{--offer-bg:linear-gradient(160deg,#032b4a,#0a5c7d);--offer-a:#5ce1e6;--offer-b:#9ff0f0;--offer-ink:#032b4a}.offer-style-forest{--offer-bg:#0f2418;--offer-a:#7bd88f;--offer-b:#c9f7a5;--offer-text:#eaffea;--offer-ink:#0f2418}.offer-style-minimal-white{--offer-bg:#fff;--offer-a:#111;--offer-b:#555;--offer-text:#111;--offer-ink:#fff;box-shadow:0 18px 50px rgba(20,25,34,.09)}.offer-style-paper-cream{--offer-bg:#f6efe0;--offer-a:#c2410c;--offer-b:#e5a94a;--offer-text:#3a2a14;--offer-ink:#fff;font-family:Georgia,serif}.offer-style-pastel-pink{--offer-bg:#ffe4ef;--offer-a:#ff6fa8;--offer-b:#ffa6c9;--offer-text:#4a1230;--offer-ink:#fff}.offer-style-mint-fresh{--offer-bg:#dffbef;--offer-a:#10b981;--offer-b:#34d399;--offer-text:#064e3b;--offer-ink:#fff}.offer-style-sky-light{--offer-bg:#e3f2ff;--offer-a:#2563eb;--offer-b:#60a5fa;--offer-text:#0b2a55;--offer-ink:#fff}.offer-style-candy{--offer-bg:linear-gradient(135deg,#ff9ad5,#ffd36e);--offer-a:#fff;--offer-b:#fff;--offer-text:#4a1050;--offer-ink:#c0267e}.offer-style-cyberpunk{--offer-bg:#0d0d12;--offer-a:#fcee0a;--offer-b:#00f0ff;--offer-ink:#000;border-radius:5px}.offer-style-glass{--offer-bg:linear-gradient(135deg,rgba(30,42,74,.92),rgba(59,42,90,.9));--offer-a:#a0c4ff;--offer-b:#d0a0ff;--offer-ink:#10162b;backdrop-filter:blur(18px)}.offer-style-holographic{--offer-bg:#101018;--offer-a:#ff9de6;--offer-b:#9de7ff;--offer-ink:#101018}.offer-style-fire{--offer-bg:linear-gradient(0deg,#3a0d00,#120505);--offer-a:#ff7a18;--offer-b:#ffd200;--offer-ink:#1a0600}.offer-style-ice{--offer-bg:#07182a;--offer-a:#7fd3ff;--offer-b:#e9fbff;--offer-ink:#062033}.offer-style-royal-purple{--offer-bg:#1b0f33;--offer-a:#b388ff;--offer-b:#ffd166;--offer-ink:#1b0f33}.offer-style-emerald-luxury{--offer-bg:#04140e;--offer-a:#3ddc97;--offer-b:#e8c872;--offer-text:#eafff5;--offer-ink:#04140e;font-family:Georgia,serif}.offer-style-rose-gold{--offer-bg:#1a1112;--offer-a:#e8b4a0;--offer-b:#f7d9c9;--offer-text:#fff0ea;--offer-ink:#2a1410;font-family:Georgia,serif}.offer-style-black-white-bold{--offer-bg:#000;--offer-a:#fff;--offer-b:#bbb;--offer-ink:#000;border:3px solid #fff;border-radius:0;font-family:Arial,sans-serif}.offer-style-brutalist{--offer-bg:#fff25a;--offer-a:#000;--offer-b:#ff4d4d;--offer-text:#000;--offer-ink:#fff;border:4px solid #000;border-radius:0;box-shadow:9px 9px 0 #000;font-family:Arial,sans-serif}.offer-style-pixel-game{--offer-bg:#1a1a2e;--offer-a:#ffcc00;--offer-b:#ff3366;--offer-ink:#1a1a2e;border:4px solid #ffcc00;border-radius:0;font-family:ui-monospace,Consolas,monospace}.offer-style-gamer-rgb{--offer-bg:#0b0b14;--offer-a:#ff0040;--offer-b:#00ff9d;--offer-ink:#000}.offer-style-black-friday{--offer-bg:#000;--offer-a:#ff2d2d;--offer-b:#ffd400;--offer-ink:#000}.offer-style-christmas{--offer-bg:linear-gradient(135deg,#0d3b24,#6b0f1a);--offer-a:#ff4d4d;--offer-b:#ffe08a;--offer-ink:#3a0a0a}.offer-style-eid-ramadan{--offer-bg:#0b1d2a;--offer-a:#e5c15a;--offer-b:#f6e7a8;--offer-ink:#2a1a00}.offer-style-summer{--offer-bg:linear-gradient(135deg,#00c6ff,#0072ff);--offer-a:#ffe66d;--offer-b:#fff;--offer-ink:#4a3200}.offer-style-autumn{--offer-bg:#2b1708;--offer-a:#ff9f43;--offer-b:#ee5253;--offer-text:#fff2e0;--offer-ink:#2b1708}.offer-style-spring-blossom{--offer-bg:linear-gradient(135deg,#fff0f6,#e6ffe9);--offer-a:#ff7eb3;--offer-b:#7bdc9a;--offer-text:#3b1c2c;--offer-ink:#fff}.offer-style-lavender{--offer-bg:#efe8ff;--offer-a:#7c5cff;--offer-b:#b79cff;--offer-text:#2a1b5e;--offer-ink:#fff}.offer-style-coffee{--offer-bg:#1d130d;--offer-a:#d9a566;--offer-b:#f1d3a5;--offer-text:#f6e8d6;--offer-ink:#1d130d;font-family:Georgia,serif}.offer-style-blueprint{--offer-bg:#0b3a6e;--offer-a:#fff;--offer-b:#9fd0ff;--offer-ink:#0b3a6e;border:2px dashed #fff;border-radius:8px;font-family:ui-monospace,Consolas,monospace}.offer-style-compact-gold,.offer-style-compact-gradient{grid-template-columns:1fr;padding:24px}.offer-style-compact-gold .customer-offer-products,.offer-style-compact-gradient .customer-offer-products{display:none}.offer-style-compact-gradient{--offer-bg:linear-gradient(90deg,#6d5dfc,#19d3c5);--offer-a:#fff;--offer-b:#fff;--offer-ink:#1b2150}.offer-style-centered-spotlight,.offer-style-centered-blue{grid-template-columns:1fr;text-align:center}.offer-style-centered-spotlight .customer-offer-products,.offer-style-centered-blue .customer-offer-products{max-width:190px;margin:auto}.offer-style-centered-spotlight .customer-offer-actions,.offer-style-centered-blue .customer-offer-actions,.offer-style-centered-spotlight .customer-offer-price,.offer-style-centered-blue .customer-offer-price{justify-content:center}.offer-style-centered-spotlight{--offer-bg:#0b0b10;--offer-a:#e5a94a;--offer-b:#fff1c9;--offer-ink:#1a1205}.offer-style-centered-blue{--offer-bg:#040b1c;--offer-a:#3ea6ff;--offer-b:#9b5cff;--offer-ink:#04122c}.offer-style-ticket-neon{--offer-bg:#120a1c;--offer-a:#ff2fd1;--offer-b:#25f4ee;--offer-ink:#12001a;border-style:dashed}.offer-style-ticket-light{--offer-bg:#fff;--offer-a:#e11d48;--offer-b:#fb7185;--offer-text:#1f1f1f;--offer-ink:#fff;border-style:dashed}.offer-style-right-side-amber{--offer-bg:#111827;--offer-a:#f59e0b;--offer-b:#ef4444;--offer-ink:#111}.offer-style-right-side-amber .customer-offer-products{order:2}

.customer-discover{--discover-bg:#1a1d26;--discover-card:#14161d;--discover-border:#2a2e3a;--discover-text:#f2f3f6;--discover-muted:#9aa0b0;--discover-accent:#e5a94a;margin:28px 0;padding:25px;border:1px solid var(--discover-border);border-radius:20px;background:var(--discover-bg);color:var(--discover-text)}.customer-discover[hidden]{display:none!important}.customer-discover-gold{--discover-bg:linear-gradient(145deg,#2a2115,#171a22);--discover-card:#18150f;--discover-border:#584526;--discover-accent:#f1c66b}.customer-discover-light{--discover-bg:#fff;--discover-card:#f8f9fb;--discover-border:#e5e8ee;--discover-text:#182033;--discover-muted:#667085;--discover-accent:#7a5520;box-shadow:0 18px 50px rgba(20,25,34,.07)}.customer-discover-ocean{--discover-bg:linear-gradient(145deg,#08283f,#0a4862);--discover-card:#092638;--discover-border:#17617a;--discover-accent:#69e1e6}.customer-discover-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.customer-discover-heading h2{margin:4px 0 3px;color:var(--discover-text);font-size:20px}.customer-discover-heading p{margin:0;color:var(--discover-muted);font-size:9px}.customer-discover-heading .eyebrow{color:var(--discover-accent)}.customer-discover-heading a{flex:0 0 auto;color:var(--discover-text);border-color:var(--discover-border);text-decoration:none}.customer-discover-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}.customer-discover-filters button{width:auto;min-height:31px;margin:0;padding:6px 12px;border:1px solid var(--discover-border);border-radius:999px;background:transparent;color:var(--discover-muted);font-size:8px}.customer-discover-filters button.is-active{border-color:var(--discover-accent);background:var(--discover-accent);color:#17120a}.customer-discover-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.customer-discover-card{display:flex;min-width:0;overflow:hidden;flex-direction:column;border:1px solid var(--discover-border);border-radius:15px;background:var(--discover-card)}.customer-discover-image{display:grid;height:112px;place-items:center;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--discover-accent) 45%,#172033),var(--discover-accent));color:#fff;font-size:32px;font-weight:900}.customer-discover-image img{width:100%;height:100%;object-fit:contain;padding:10%}.customer-discover-card-body{display:flex;flex:1;flex-direction:column;padding:14px}.customer-discover-card-body>span{color:var(--discover-accent);font-size:7px;font-weight:750;text-transform:uppercase}.customer-discover-card h3{margin:5px 0;color:var(--discover-text);font-size:11px;line-height:1.35}.customer-discover-card p{display:-webkit-box;overflow:hidden;margin:0 0 10px;color:var(--discover-muted);font-size:8px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.customer-discover-card-body>strong{margin-top:auto;color:var(--discover-text);font-size:12px}.customer-discover-card button{width:100%;margin:10px 0 0;border-color:var(--discover-border);color:var(--discover-text);font-size:8px}.customer-discover-card button:hover{border-color:var(--discover-accent);background:color-mix(in srgb,var(--discover-accent) 10%,transparent)}

@media(max-width:980px){.customer-discover-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.customer-special-offer{grid-template-columns:1fr;padding:23px}.customer-offer-products{max-width:270px}.customer-offer-image{max-width:130px}.customer-offer-copy h2{font-size:24px}.customer-discover-heading{align-items:flex-start;flex-direction:column}.customer-discover-grid{grid-template-columns:1fr}.customer-discover-heading a{width:100%;text-align:center}}@media(prefers-reduced-motion:reduce){.customer-special-offer::before,.customer-offer-effects i,.customer-offer-image,.customer-offer-badge{animation:none!important}}
.discover-page .customer-main{max-width:1280px}.discover-page .discover-full{margin-top:28px;min-height:60vh}.discover-page .customer-discover-heading h1{margin:5px 0;color:var(--discover-text);font-size:31px}.discover-page .discover-full-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.discover-page .customer-discover-image{height:160px}.discover-page .customer-discover-card h3{font-size:14px}.discover-page .customer-discover-card p{font-size:9px;-webkit-line-clamp:4}@media(max-width:900px){.discover-page .discover-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.discover-page .discover-full-grid{grid-template-columns:1fr}}

/* Discover and special-offer administration */
.commerce-admin{padding-bottom:80px}.commerce-admin-hero{align-items:center}.commerce-admin-hero>.btn{width:auto;margin:0}.commerce-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;margin-bottom:16px;border:1px solid var(--border);border-radius:14px;background:rgba(26,29,38,.84)}.commerce-kpis article{padding:16px;border-left:1px solid var(--border)}.commerce-kpis article:first-child{border-left:0}.commerce-kpis span,.commerce-kpis strong,.commerce-kpis small{display:block}.commerce-kpis span{color:var(--text-dim);font-size:8px}.commerce-kpis strong{margin-top:4px;color:var(--accent);font-size:21px}.commerce-kpis small{margin-top:2px;color:var(--text-muted);font-size:7px}.commerce-discover-settings{margin-bottom:17px}.commerce-settings-form{display:grid;grid-template-columns:1fr 220px 220px;align-items:end;gap:12px}.commerce-settings-form>button{width:auto;margin:0}.commerce-switch{display:flex!important;align-items:center;gap:9px;min-height:40px;margin:0!important;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(9,12,18,.36);cursor:pointer}.commerce-switch input{width:16px;height:16px;margin:0;accent-color:var(--accent)}.commerce-switch span{color:var(--text);font-size:9px;font-weight:700}.commerce-languages{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.commerce-languages fieldset{min-width:0;margin:0;padding:13px;border:1px solid var(--border);border-radius:11px;background:rgba(9,12,18,.28)}.commerce-languages legend{padding:0 6px;color:var(--accent);font-size:8px;font-weight:800}.commerce-languages label{margin:0 0 9px}.commerce-languages label:last-child{margin-bottom:0}.commerce-languages input,.commerce-languages textarea{margin-top:4px}.commerce-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:16px}.commerce-campaign-editor{min-width:0}.commerce-side{position:sticky;top:16px}.commerce-live-preview{padding:16px}.commerce-live-preview>.eyebrow{margin-bottom:10px}.commerce-preview-card{display:block!important;min-height:300px;margin:0;padding:22px}.commerce-preview-card .customer-offer-copy h2{font-size:21px}.commerce-preview-card .customer-offer-copy>p{font-size:9px}.commerce-preview-card+.commerce-live-preview p,.commerce-live-preview>p{color:var(--text-dim);font-size:8px;line-height:1.5}.commerce-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.commerce-form-grid .span-2{grid-column:1/-1}.commerce-form-grid label,.commerce-product-slots label,.commerce-audience-grid label{margin:0}.commerce-subsection{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.commerce-subsection>h3,.commerce-subsection .section-heading h3{margin:0;color:var(--text);font-size:13px}.commerce-subsection>p,.commerce-subsection .section-heading p{margin:4px 0 12px;color:var(--text-dim);font-size:8px}.section-heading.compact{align-items:center;margin-bottom:12px}.commerce-product-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.commerce-product-slots fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--border);border-radius:11px;background:rgba(9,12,18,.32)}.commerce-product-slots legend{padding:0 5px;color:var(--accent);font-size:8px;font-weight:800}.commerce-product-slots label+label{margin-top:8px}.commerce-price-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.commerce-audience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.commerce-audience-grid [hidden]{display:none!important}.commerce-style-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:390px;overflow:auto;padding:2px 4px 4px 2px}.commerce-style-grid.is-random{border:1px dashed rgba(229,169,74,.38);border-radius:12px;padding:9px}.commerce-style-choice{position:relative;margin:0!important;cursor:pointer}.commerce-style-choice input{position:absolute;opacity:0;pointer-events:none}.commerce-style-swatch{--offer-bg:#171a22;--offer-a:#e5a94a;display:flex;min-height:68px;flex-direction:column;justify-content:space-between;padding:9px;border:1px solid var(--border);border-radius:9px;background:var(--offer-bg);color:var(--offer-a);transition:border-color .15s,transform .15s}.commerce-style-swatch i{font-size:15px;font-style:normal}.commerce-style-swatch b{overflow:hidden;color:var(--offer-text,#fff);font-size:7px;line-height:1.25;text-overflow:ellipsis}.commerce-style-choice:hover .commerce-style-swatch{transform:translateY(-2px);border-color:var(--offer-a)}.commerce-style-choice input:checked+.commerce-style-swatch{border:2px solid var(--offer-a);box-shadow:0 0 0 3px color-mix(in srgb,var(--offer-a) 18%,transparent)}.commerce-publish-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding:14px;border:1px solid rgba(229,169,74,.25);border-radius:12px;background:rgba(229,169,74,.04)}.commerce-publish-bar strong,.commerce-publish-bar span{display:block}.commerce-publish-bar strong{color:var(--text);font-size:10px}.commerce-publish-bar span{margin-top:3px;color:var(--text-dim);font-size:8px}.commerce-publish-bar button{width:auto;margin:0}.commerce-campaign-list{margin-top:17px}.commerce-campaign-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.commerce-campaign-cards>article{padding:15px;border:1px solid var(--border);border-radius:12px;background:rgba(9,12,18,.32)}.commerce-campaign-cards header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.commerce-campaign-cards h3{margin:7px 0 0;color:var(--text);font-size:12px}.commerce-campaign-cards header a{width:auto;margin:0}.commerce-campaign-stats{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;margin-top:13px;border:1px solid var(--border);border-radius:9px}.commerce-campaign-stats div{padding:9px;border-left:1px solid var(--border)}.commerce-campaign-stats div:first-child{border-left:0}.commerce-campaign-stats span,.commerce-campaign-stats strong,.commerce-campaign-stats small{display:block}.commerce-campaign-stats span{color:var(--text-dim);font-size:7px}.commerce-campaign-stats strong{margin-top:3px;color:var(--accent);font-size:14px}.commerce-campaign-stats small{color:var(--text-muted);font-size:6px}.commerce-campaign-cards footer{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:var(--text-muted);font-size:7px;text-transform:capitalize}
@media(max-width:1100px){.commerce-editor-layout{grid-template-columns:1fr}.commerce-side{position:static}.commerce-live-preview{display:none}.commerce-style-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:900px){.commerce-kpis{grid-template-columns:repeat(3,1fr)}.commerce-settings-form{grid-template-columns:1fr 1fr}.commerce-switch{grid-column:1/-1}.commerce-product-slots,.commerce-languages{grid-template-columns:1fr}.commerce-style-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:650px){.commerce-kpis,.commerce-campaign-cards,.commerce-form-grid,.commerce-audience-grid{grid-template-columns:1fr}.commerce-settings-form{grid-template-columns:1fr}.commerce-form-grid .span-2{grid-column:auto}.commerce-style-grid{grid-template-columns:repeat(2,1fr)}.commerce-publish-bar{align-items:stretch;flex-direction:column}.commerce-publish-bar button{width:100%}}
.commerce-discover-analytics{margin-top:17px}.commerce-discover-ranking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.commerce-discover-ranking article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(9,12,18,.28)}.commerce-rank-number{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:rgba(229,169,74,.1);color:var(--accent);font-size:9px;font-weight:800}.commerce-discover-ranking strong,.commerce-discover-ranking small{display:block}.commerce-discover-ranking strong{color:var(--text);font-size:9px}.commerce-discover-ranking small{margin-top:2px;color:var(--text-dim);font-size:7px}.commerce-discover-ranking article>div:last-child{text-align:right}@media(max-width:750px){.commerce-discover-ranking{grid-template-columns:1fr}}

/* Phase-two components use the same compact dark customer-portal language. */
.customer-page .customer-language{border-color:rgba(255,255,255,.1);background:#181b22}
.customer-page [hidden]{display:none!important}
.customer-page .customer-language a{color:#929bab}
.customer-page .customer-language a:hover{color:#fff;background:#242934;text-decoration:none}
.customer-page .customer-language a[aria-current="true"]{color:#141820;background:#e8a33d;box-shadow:none}
.customer-page .customer-phase-two-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:18px}
.customer-page .customer-release-panel,.customer-page .customer-billing-panel,.customer-page .customer-activity-panel,.customer-page .customer-recovery-panel{max-width:none;border-radius:18px;padding:24px 26px;background:#181b22}
.customer-page .release-version{background:rgba(76,175,125,.11);color:#8bd4ad}
.customer-page .release-meta,.customer-page .billing-quick-list,.customer-page .billing-quick-list>div,.customer-page .customer-activity-list,.customer-page .customer-activity-item{border-color:rgba(255,255,255,.075)}
.customer-page .release-meta,.customer-page .billing-quick-list span{color:var(--text-dim)}
.customer-page .release-meta strong,.customer-page .billing-quick-list strong,.customer-page .release-notes>strong,.customer-page .customer-activity-item strong{color:#e3e6eb}
.customer-page .release-notes p,.customer-page .customer-activity-item small,.customer-page .customer-activity-item time{color:var(--text-dim)}
.customer-page .customer-inline-actions .btn,.customer-page .customer-inline-actions .btn-quiet,.customer-page .customer-inline-actions button{min-height:39px;border-radius:9px;font-size:10px}
.customer-page .customer-activity-panel{margin-top:18px}
.customer-page .customer-activity-dot{background:#69d99f;box-shadow:0 0 0 5px rgba(105,217,159,.08)}
.customer-page .customer-recovery-panel{background:linear-gradient(135deg,rgba(104,174,232,.08),#181b22 46%)}
.customer-page .customer-recovery-icon{background:rgba(104,174,232,.09);color:#85bce8;box-shadow:none;border:1px solid rgba(104,174,232,.2)}
.customer-page .customer-recovery-panel h2{color:#e8eaee;font-size:18px}.customer-page .customer-recovery-panel p{color:var(--text-dim);font-size:10px}
.customer-page .customer-merge-warning{background:rgba(232,163,61,.08);border-color:rgba(232,163,61,.24);color:#d9b77c}

@media(max-width:820px){.customer-page .customer-phase-two-grid{grid-template-columns:1fr}.customer-page .customer-recovery-panel{grid-template-columns:auto minmax(0,1fr)}.customer-page .customer-recovery-panel>button{grid-column:1/-1;width:100%}}

/* Form controls beyond plain text/number inputs (added for Gumroad-powered admin pages) */
select,
input[type="date"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 18px;
  font-family: inherit;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b93a7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
select:focus, input[type="date"]:focus { outline: none; border-color: var(--accent); }
/* Color-scheme hint so the native date-picker icon reads on the dark background */
input[type="date"] { color-scheme: dark; }

/* A panel whose title/description sit on the left and a summary figure or
   action sits on the right — used for "connected account", "which product",
   and "default device limit" style panels. Stacks on narrow screens. */
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.panel-header-row h1 { font-size: 16px; margin: 0 0 4px; }
.panel-header-row .lede { margin: 0; font-size: 13px; }
.panel-figure { text-align: right; white-space: nowrap; }
.panel-figure .figure-value { font-size: 15px; font-weight: 600; color: var(--text); }
.panel-figure .figure-label { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
@media (max-width: 560px) {
  .panel-header-row { flex-direction: column; align-items: flex-start; }
  .panel-figure { text-align: left; }
}

/* Two-column responsive form grid — used by the "new discount code" form.
   Fields span both columns via .span-2; collapses to one column on mobile. */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  align-items: start;
}
.form-grid label { margin-bottom: 0; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select { margin-bottom: 10px; }
.credential-box { margin: 22px 0; padding: 22px; border: 1px solid rgba(232,163,61,.45); border-radius: 16px; background: rgba(232,163,61,.08); }
.credential-box h2 { margin-top: 0; }
.credential-value { display: block; overflow-wrap: anywhere; margin: 10px 0 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(5,9,17,.82); color: var(--text); font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; }
.scope-options { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 16px; }
.scope-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--text); }
.scope-options input { width: auto; margin: 0; }
.service-client-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-wide { width: 100%; max-width: none; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Web app keys workspace */
.service-client-hero { align-items: center; }
.service-client-summary { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); min-width: 340px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.16); }
.service-client-summary div { padding: 15px 18px; border-left: 1px solid var(--border); }
.service-client-summary div:first-child { border-left: 0; }
.service-client-summary strong, .service-client-summary span { display: block; }
.service-client-summary strong { color: var(--text); font-size: 21px; line-height: 1.2; }
.service-client-summary span { margin-top: 3px; color: var(--text-dim); font-size: 10px; white-space: nowrap; }
.service-client-create-layout { display: grid; grid-template-columns: minmax(260px,.68fr) minmax(0,1.32fr); gap: 18px; margin-bottom: 18px; }
.service-client-guide, .service-client-create-panel { min-width: 0; border-radius: 16px; }
.service-client-guide { padding: 28px; border: 1px solid rgba(232,163,61,.26); background: linear-gradient(145deg, rgba(232,163,61,.105), rgba(26,29,38,.76)); }
.service-client-guide h2 { margin: 5px 0 9px; font-size: 22px; line-height: 1.2; }
.service-client-guide > p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.security-rule-list { margin-top: 22px; }
.security-rule-list > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: 14px 0; border-top: 1px solid rgba(232,163,61,.15); }
.security-rule-list > div > span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.4); border-radius: 8px; color: var(--accent); font-size: 10px; font-weight: 700; }
.security-rule-list p { margin: 0; color: var(--text-dim); font-size: 11px; line-height: 1.55; }
.security-rule-list strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; }
.service-client-create-panel { max-width: none; padding: 28px; }
.service-client-create-panel h2 { margin: 4px 0 5px; font-size: 22px; }
.service-client-create-panel .panel-intro { margin: 0 0 22px; color: var(--text-dim); font-size: 12px; }
.service-client-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.service-client-fields label { margin: 0; }
.service-client-fields select, .service-client-fields input { width: 100%; min-height: 44px; margin: 7px 0 5px; }
.service-client-fields small { display: block; min-height: 30px; color: var(--text-dim); font-size: 10px; line-height: 1.45; }
.permission-fieldset { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.permission-fieldset legend { margin-bottom: 9px; color: var(--text-dim); font-size: 12px; }
.service-scope-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 0; }
.service-scope-options .scope-option { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 9px; min-height: 92px; padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(12,15,22,.42); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.service-scope-options .scope-option:hover { border-color: rgba(232,163,61,.42); background: rgba(232,163,61,.055); transform: translateY(-1px); }
.service-scope-options .scope-option input { margin-top: 3px; accent-color: var(--accent); }
.service-scope-options .scope-option strong, .service-scope-options .scope-option small { display: block; }
.service-scope-options .scope-option strong { color: var(--text); font-size: 12px; }
.service-scope-options .scope-option small { margin-top: 4px; color: var(--text-dim); font-size: 10px; line-height: 1.45; }
.service-client-submit { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.service-client-submit span { color: var(--text-dim); font-size: 10px; }
.service-issued-secret { padding: 26px; border-radius: 16px; }
.issued-secret-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.issued-secret-heading h2 { margin: 4px 0 3px; }
.issued-secret-heading p { margin: 0; color: var(--text-dim); font-size: 12px; }
.issued-secret-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.issued-secret-grid .credential-value { min-height: 70px; margin: 7px 0 10px; }
.service-client-list-panel { padding: 28px; }
.service-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.service-client-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(35,39,49,.76), rgba(18,20,26,.64)); }
.service-client-card.is-disabled { opacity: .7; }
.service-client-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 18px 15px; border-bottom: 1px solid var(--border); }
.service-client-card h3 { margin: 3px 0 0; color: var(--text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.client-label, .service-client-application span, .service-client-detail-grid > div > span { display: block; color: var(--text-dim); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.service-client-application { padding: 15px 18px; }
.service-client-application strong { display: block; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.service-client-detail-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(150px,.75fr); gap: 12px; padding: 0 18px 17px; }
.service-client-detail-grid > div { min-width: 0; padding: 13px; border: 1px solid rgba(43,47,61,.82); border-radius: 10px; background: rgba(8,11,17,.26); }
.service-client-detail-grid > div > strong { display: block; margin-top: 7px; font-size: 10px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.scope-chip-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.scope-chip-list span { padding: 4px 7px; border: 1px solid rgba(232,163,61,.22); border-radius: 999px; background: rgba(232,163,61,.07); color: #d8c29f; font-size: 9px; }
.service-client-card > footer { min-height: 57px; padding: 11px 18px; border-top: 1px solid var(--border); background: rgba(8,11,17,.2); }
.service-client-actions { justify-content: flex-end; }
.service-client-actions form { margin: 0; }
.service-client-actions button { min-height: 35px; padding: 7px 12px; font-size: 11px; }
@media (max-width: 920px) {
  .service-client-create-layout, .service-client-grid { grid-template-columns: 1fr; }
  .service-client-guide { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(0,1.3fr); gap: 24px; align-items: start; }
  .service-client-guide .security-rule-list { margin-top: 0; }
}
@media (max-width: 680px) {
  .service-client-summary { width: 100%; min-width: 0; }
  .service-client-fields, .service-scope-options, .issued-secret-grid, .service-client-guide { grid-template-columns: 1fr; }
  .service-client-detail-grid { grid-template-columns: 1fr; }
  .service-client-submit, .issued-secret-heading { align-items: stretch; flex-direction: column; }
  .service-client-submit button { width: 100%; }
}

/* Customer accounts workspace */
.customer-account-hero { align-items: center; }
.account-status-filter { min-width: 210px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: rgba(26,29,38,.78); }
.account-status-filter label { margin: 0 0 6px; color: var(--text-dim); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.account-status-filter select { width: 100%; min-height: 41px; margin: 0; }
.account-overview-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.13); }
.account-overview-strip > div { padding: 17px 20px; border-left: 1px solid var(--border); }
.account-overview-strip > div:first-child { border-left: 0; }
.account-overview-strip span, .account-overview-strip strong { display: block; }
.account-overview-strip span { color: var(--text-dim); font-size: 10px; }
.account-overview-strip strong { margin-top: 4px; color: var(--text); font-size: 23px; line-height: 1.2; }
.customer-account-list-panel { padding: 28px; }
.account-count-label { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.52); font-size: 10px; }
.customer-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.customer-account-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(35,39,49,.76), rgba(18,20,26,.64)); }
.customer-account-card.is-suspended { opacity: .74; }
.customer-account-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.customer-account-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.customer-account-avatar { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.28); border-radius: 10px; color: var(--accent); background: rgba(232,163,61,.09); font-size: 13px; font-weight: 750; }
.customer-account-identity > div { min-width: 0; }
.customer-account-identity span:not(.customer-account-avatar), .customer-account-product > span, .customer-account-details > div > span { display: block; color: var(--text-dim); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.customer-account-identity h3 { margin: 3px 0 0; color: var(--text); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.customer-account-product { padding: 15px 18px; }
.customer-account-product strong, .customer-account-product small { display: block; overflow-wrap: anywhere; }
.customer-account-product strong { margin-top: 4px; font-size: 13px; }
.customer-account-product small { margin-top: 3px; color: var(--text-dim); font-size: 10px; }
.customer-account-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding: 0 18px 17px; }
.customer-account-details > div { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid rgba(43,47,61,.82); border-radius: 10px; background: rgba(8,11,17,.26); }
.customer-account-details strong, .customer-account-details small { display: block; overflow-wrap: anywhere; }
.customer-account-details strong { margin-top: 6px; font-size: 11px; line-height: 1.45; }
.customer-account-details small { margin-top: 3px; color: var(--text-dim); font-size: 9px; }
.customer-account-details .account-preference-count { color: var(--accent); font-size: 20px; line-height: 1.1; }
.customer-account-card > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 59px; padding: 11px 18px; border-top: 1px solid var(--border); background: rgba(8,11,17,.2); }
.customer-account-card > footer form { margin: 0; }
.customer-account-card > footer .btn, .customer-account-card > footer button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
@media (max-width: 900px) {
  .customer-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .account-status-filter { width: 100%; }
  .account-overview-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .account-overview-strip > div { border-bottom: 1px solid var(--border); }
  .account-overview-strip > div:nth-child(odd) { border-left: 0; }
  .account-overview-strip > div:nth-last-child(-n+2) { border-bottom: 0; }
  .customer-account-details { grid-template-columns: 1fr; }
  .customer-account-card > footer { align-items: stretch; flex-direction: column; }
  .customer-account-card > footer form, .customer-account-card > footer .btn, .customer-account-card > footer button { width: 100%; }
}

/* Applications workspace */
.application-hero { align-items: center; }
.application-summary { display: grid; grid-template-columns: repeat(4, minmax(82px,1fr)); min-width: 420px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.14); }
.application-summary > div { padding: 15px 17px; border-left: 1px solid var(--border); }
.application-summary > div:first-child { border-left: 0; }
.application-summary strong, .application-summary span { display: block; }
.application-summary strong { color: var(--text); font-size: 21px; line-height: 1.2; }
.application-summary span { margin-top: 3px; color: var(--text-dim); font-size: 9px; white-space: nowrap; }
.application-create-layout { display: grid; grid-template-columns: minmax(270px,.68fr) minmax(0,1.32fr); gap: 18px; margin-bottom: 18px; }
.application-guide, .application-create-panel { min-width: 0; border-radius: 16px; }
.application-guide { padding: 28px; border: 1px solid rgba(232,163,61,.26); background: linear-gradient(145deg, rgba(232,163,61,.105), rgba(26,29,38,.76)); }
.application-guide h2 { margin: 5px 0 9px; font-size: 22px; line-height: 1.2; }
.application-guide > p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.application-rule-list { margin-top: 22px; }
.application-rule-list > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: 14px 0; border-top: 1px solid rgba(232,163,61,.15); }
.application-rule-list > div > span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.4); border-radius: 8px; color: var(--accent); font-size: 10px; font-weight: 700; }
.application-rule-list p { margin: 0; color: var(--text-dim); font-size: 11px; line-height: 1.55; }
.application-rule-list strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; }
.application-rule-list code { color: #d8c29f; font-size: 10px; }
.application-create-panel { max-width: none; padding: 28px; }
.application-create-panel h2 { margin: 4px 0 5px; font-size: 22px; }
.application-create-panel .panel-intro { margin: 0 0 22px; color: var(--text-dim); font-size: 12px; }
.application-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
.application-field-grid .span-2 { grid-column: 1 / -1; }
.application-field-grid label { margin: 0; }
.application-field-grid input, .application-field-grid select { width: 100%; min-height: 44px; margin: 7px 0 5px; }
.application-field-grid small { display: block; min-height: 28px; color: var(--text-dim); font-size: 10px; line-height: 1.45; }
.application-submit { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.application-submit span { color: var(--text-dim); font-size: 10px; }
.application-list-panel { padding: 28px; }
.application-count-label { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.52); font-size: 10px; }
.application-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.application-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(35,39,49,.76), rgba(18,20,26,.64)); }
.application-card.is-inactive { opacity: .7; }
.application-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.application-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.application-type-icon { display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.28); border-radius: 10px; color: var(--accent); background: rgba(232,163,61,.09); font-size: 13px; font-weight: 750; }
.application-identity > div { min-width: 0; }
.application-identity > div > span, .application-slug > span, .application-detail-grid > div > span { display: block; color: var(--text-dim); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.application-identity h3 { margin: 3px 0 0; color: var(--text); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.application-slug { padding: 14px 18px; }
.application-slug code { display: block; width: fit-content; max-width: 100%; margin-top: 6px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; color: #d8c29f; background: rgba(8,11,17,.35); font-size: 10px; overflow-wrap: anywhere; }
.application-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding: 0 18px 17px; }
.application-detail-grid > div { min-width: 0; min-height: 72px; padding: 12px; border: 1px solid rgba(43,47,61,.82); border-radius: 10px; background: rgba(8,11,17,.26); }
.application-detail-grid strong { display: block; margin-top: 6px; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.environment-chip-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.environment-chip-list span { padding: 4px 7px; border: 1px solid rgba(76,175,125,.26); border-radius: 999px; color: #8de0b5; background: rgba(76,175,125,.07); font-size: 9px; }
.application-id-value { color: var(--text-dim); font-size: 9px !important; font-weight: 500; }
.application-card > footer { display: flex; justify-content: flex-end; min-height: 59px; padding: 11px 18px; border-top: 1px solid var(--border); background: rgba(8,11,17,.2); }
.application-card > footer form { margin: 0; }
.application-card > footer button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
@media (max-width: 940px) {
  .application-create-layout, .application-card-grid { grid-template-columns: 1fr; }
  .application-guide { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); gap: 24px; }
  .application-rule-list { margin-top: 0; }
}
@media (max-width: 680px) {
  .application-summary { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .application-summary > div:nth-child(odd) { border-left: 0; }
  .application-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .application-guide, .application-field-grid, .application-detail-grid { grid-template-columns: 1fr; }
  .application-field-grid .span-2 { grid-column: auto; }
  .application-submit { align-items: stretch; flex-direction: column; }
  .application-submit button, .application-card > footer form, .application-card > footer button { width: 100%; }
}

/* Product configuration workspace */
.product-config-hero { align-items: center; }
.product-config-summary { display: grid; grid-template-columns: repeat(4, minmax(82px,1fr)); min-width: 420px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.14); }
.product-config-summary > div { padding: 15px 17px; border-left: 1px solid var(--border); }
.product-config-summary > div:first-child { border-left: 0; }
.product-config-summary strong, .product-config-summary span { display: block; }
.product-config-summary strong { color: var(--text); font-size: 21px; line-height: 1.2; }
.product-config-summary span { margin-top: 3px; color: var(--text-dim); font-size: 9px; white-space: nowrap; }
.product-create-layout { display: grid; grid-template-columns: minmax(270px,.68fr) minmax(0,1.32fr); gap: 18px; margin-bottom: 18px; }
.product-create-guide, .product-create-panel { min-width: 0; border-radius: 16px; }
.product-create-guide { padding: 28px; border: 1px solid rgba(232,163,61,.26); background: linear-gradient(145deg, rgba(232,163,61,.105), rgba(26,29,38,.76)); }
.product-create-guide h2 { margin: 5px 0 9px; font-size: 22px; line-height: 1.2; }
.product-create-guide > p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.product-rule-list { margin-top: 22px; }
.product-rule-list > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: 14px 0; border-top: 1px solid rgba(232,163,61,.15); }
.product-rule-list > div > span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.4); border-radius: 8px; color: var(--accent); font-size: 10px; font-weight: 700; }
.product-rule-list p { margin: 0; color: var(--text-dim); font-size: 11px; line-height: 1.55; }
.product-rule-list strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; }
.product-create-panel { max-width: none; padding: 28px; }
.product-create-panel h2 { margin: 4px 0 5px; font-size: 22px; }
.product-create-panel .panel-intro { margin: 0 0 22px; color: var(--text-dim); font-size: 12px; }
.product-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 16px; }
.product-field-grid .span-2 { grid-column: 1 / -1; }
.product-field-grid label { margin: 0; }
.product-field-grid input, .product-field-grid select, .product-field-grid textarea { width: 100%; min-height: 44px; margin: 7px 0 5px; }
.product-field-grid small { display: block; min-height: 27px; color: var(--text-dim); font-size: 10px; line-height: 1.45; }
.optional-label { margin-left: 5px; color: var(--text-dim); font-size: 9px; font-weight: 400; }
.product-application-fieldset { min-width: 0; margin: 17px 0 0; padding: 0; border: 0; }
.product-application-fieldset legend { color: var(--text); font-size: 12px; font-weight: 650; }
.product-application-fieldset > p { margin: 3px 0 9px; color: var(--text-dim); font-size: 10px; }
.product-application-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.product-application-options label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 9px; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(8,11,17,.28); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.product-application-options label:hover { border-color: rgba(232,163,61,.4); background: rgba(232,163,61,.05); }
.product-application-options input { width: auto; margin: 3px 0 0; accent-color: var(--accent); }
.product-application-options strong, .product-application-options small { display: block; }
.product-application-options strong { color: var(--text); font-size: 11px; overflow-wrap: anywhere; }
.product-application-options small { margin-top: 3px; color: var(--text-dim); font-size: 9px; }
.product-create-submit { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.product-create-submit span { color: var(--text-dim); font-size: 10px; }
.product-config-list-panel { padding: 28px; }
.product-config-count { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.52); font-size: 10px; }
.product-config-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.product-config-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(35,39,49,.76), rgba(18,20,26,.64)); }
.product-config-card.is-inactive { opacity: .7; }
.product-config-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.product-config-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product-config-icon { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.28); border-radius: 10px; color: var(--accent); background: rgba(232,163,61,.09); font-size: 11px; font-weight: 750; }
.product-config-identity > div { min-width: 0; }
.product-config-identity > div > span, .product-config-id > span { display: block; color: var(--text-dim); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.product-config-identity h3 { margin: 3px 0 0; font-size: 12px; line-height: 1.38; overflow-wrap: anywhere; }
.product-config-identity h3 a { color: var(--text); }
.product-config-identity h3 a:hover { color: var(--accent); text-decoration: none; }
.product-config-card > header > .badge { flex: 0 0 auto; }
.product-config-id { padding: 13px 16px; }
.product-config-id code { display: block; max-width: 100%; margin-top: 6px; padding: 5px 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; color: #d8c29f; background: rgba(8,11,17,.35); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.product-config-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; padding: 0 16px 15px; }
.product-config-metrics div { min-width: 0; padding: 10px; border: 1px solid rgba(43,47,61,.82); border-radius: 9px; background: rgba(8,11,17,.26); }
.product-config-metrics strong, .product-config-metrics span { display: block; }
.product-config-metrics strong { font-size: 17px; line-height: 1.15; }
.product-config-metrics span { margin-top: 3px; color: var(--text-dim); font-size: 8px; }
.product-link-warning { margin: 0 16px 15px; padding: 8px 10px; border: 1px solid rgba(240,180,77,.25); border-radius: 8px; color: #d9b774; background: rgba(240,180,77,.055); font-size: 9px; line-height: 1.45; }
.product-config-card > footer { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-height: 57px; margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border); background: rgba(8,11,17,.2); }
.product-config-card > footer form { margin: 0; }
.product-config-card > footer .btn, .product-config-card > footer button { min-height: 35px; padding: 7px 10px; font-size: 10px; }
@media (max-width: 1050px) {
  .product-config-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 940px) {
  .product-create-layout { grid-template-columns: 1fr; }
  .product-create-guide { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); gap: 24px; }
  .product-rule-list { margin-top: 0; }
}
@media (max-width: 680px) {
  .product-config-summary { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-config-summary > div:nth-child(odd) { border-left: 0; }
  .product-config-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .product-create-guide, .product-field-grid, .product-application-options, .product-config-grid { grid-template-columns: 1fr; }
  .product-field-grid .span-2 { grid-column: auto; }
  .product-create-submit { align-items: stretch; flex-direction: column; }
  .product-create-submit button { width: 100%; }
  .product-config-card > footer { align-items: stretch; flex-direction: column; }
  .product-config-card > footer form, .product-config-card > footer .btn, .product-config-card > footer button { width: 100%; }
}

/* Sales and customers workspace */
.sales-hero { align-items: center; }
.sales-sensitive-control { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1px 14px; min-width: 260px; padding: 12px 13px 12px 16px; border: 1px solid var(--border); border-radius: 13px; background: rgba(26,29,38,.82); }
.sales-sensitive-control > span { color: var(--text); font-size: 12px; font-weight: 650; }
.sales-sensitive-control > small { grid-column: 1; color: var(--text-dim); font-size: 9px; }
.sales-sensitive-control > button { grid-column: 2; grid-row: 1 / 3; min-height: 38px; padding: 8px 12px; font-size: 10px; }
.sales-overview-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.13); }
.sales-overview-strip > div { min-width: 0; padding: 17px 20px; border-left: 1px solid var(--border); }
.sales-overview-strip > div:first-child { border-left: 0; }
.sales-overview-strip span, .sales-overview-strip strong { display: block; }
.sales-overview-strip span { color: var(--text-dim); font-size: 10px; }
.sales-overview-strip strong { margin-top: 4px; color: var(--text); font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.sales-overview-strip .sales-gross-summary strong { color: var(--accent); font-size: 15px; }
.sales-overview-strip .has-warning strong { color: var(--warning); }
.sales-filter-panel { max-width: none; margin-bottom: 18px; padding: 22px; border-radius: 14px; }
.sales-filter-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.sales-filter-heading h2 { margin: 2px 0 0; font-size: 18px; }
.sales-filter-heading > span { padding: 5px 9px; border: 1px solid rgba(232,163,61,.25); border-radius: 999px; color: var(--accent); background: rgba(232,163,61,.06); font-size: 9px; }
.sales-filter-grid { display: grid; grid-template-columns: minmax(180px,1.15fr) minmax(145px,.72fr) minmax(145px,.72fr) minmax(210px,1.25fr) auto; align-items: end; gap: 10px; }
.sales-filter-grid label { min-width: 0; margin: 0; }
.sales-filter-grid input, .sales-filter-grid select { width: 100%; min-height: 42px; margin: 6px 0 0; }
.sales-filter-actions { display: flex; gap: 7px; }
.sales-filter-actions .btn, .sales-filter-actions button { min-height: 42px; padding: 9px 13px; white-space: nowrap; }
.sales-list-panel { padding: 28px; }
.sales-result-count { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.52); font-size: 10px; }
.sales-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 13px; }
.sale-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(35,39,49,.76), rgba(18,20,26,.64)); }
.sale-card.sale-kind-subscription { border-left: 3px solid #8177e8; }
.sale-card.sale-kind-demo { border-left: 3px solid var(--accent); }
.sale-card.sale-kind-free { border-left: 3px solid #43b890; }
.sale-card.sale-kind-one-time { border-left: 3px solid #73839d; }
.sale-card.needs-attention { border-color: rgba(229,99,111,.36); }
.sale-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 17px; border-bottom: 1px solid var(--border); }
.sale-buyer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sale-buyer-avatar { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.28); border-radius: 10px; color: var(--accent); background: rgba(232,163,61,.09); font-size: 12px; font-weight: 750; }
.sale-buyer > div { min-width: 0; }
.sale-buyer > div > span, .sale-product > span, .sale-summary-grid > div > span, .sale-detail-grid span { display: block; color: var(--text-dim); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.sale-buyer h3 { margin: 3px 0 1px; color: var(--text); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.sale-buyer small { display: block; color: var(--text-dim); font-size: 9px; overflow-wrap: anywhere; }
.sale-copy-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sale-copy-line small { min-width: 0; }
.sale-card-badges { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 5px; flex-direction: column; }
.sale-kind-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.62); font-size: 8px; font-weight: 650; white-space: nowrap; }
.sale-kind-badge-subscription { color: #b8b1ff; border-color: rgba(129,119,232,.42); background: rgba(129,119,232,.1); }
.sale-kind-badge-demo { color: var(--accent); border-color: rgba(232,163,61,.42); background: rgba(232,163,61,.09); }
.sale-kind-badge-free { color: #78d7b7; border-color: rgba(67,184,144,.42); background: rgba(67,184,144,.09); }
.sale-kind-badge-one-time { color: #aebbd0; border-color: rgba(115,131,157,.42); background: rgba(115,131,157,.09); }
.sale-kind-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -5px 0 18px; padding: 12px 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(12,15,21,.42); }
.sale-kind-toolbar-copy { flex: 0 0 auto; }
.sale-kind-toolbar-copy span, .sale-kind-toolbar-copy small { display: block; }
.sale-kind-toolbar-copy span { color: var(--text); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sale-kind-toolbar-copy small { margin-top: 3px; color: var(--text-dim); font-size: 8px; }
.sale-kind-toolbar nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.sale-kind-filter { display: inline-flex; min-height: 30px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.58); font-size: 9px; font-weight: 650; text-decoration: none; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.sale-kind-filter:hover, .sale-kind-filter.active { color: var(--text); border-color: rgba(232,163,61,.42); background: rgba(232,163,61,.08); text-decoration: none; }
.sale-kind-filter:focus-visible { text-decoration: none; }
.sale-kind-filter-subscription.active { color: #c2bdff; border-color: rgba(129,119,232,.55); background: rgba(129,119,232,.13); }
.sale-kind-filter-demo.active { color: var(--accent); border-color: rgba(232,163,61,.55); background: rgba(232,163,61,.12); }
.sale-kind-filter-free.active { color: #83dfc0; border-color: rgba(67,184,144,.55); background: rgba(67,184,144,.12); }
.sale-kind-filter-one-time.active { color: #c1cada; border-color: rgba(115,131,157,.55); background: rgba(115,131,157,.13); }
.sale-card > header > .badge { flex: 0 0 auto; }
.sale-product { min-height: 73px; padding: 13px 17px; }
.sale-product strong, .sale-product small { display: block; overflow-wrap: anywhere; }
.sale-product strong { margin-top: 5px; font-size: 12px; line-height: 1.4; }
.sale-product small { margin-top: 3px; color: var(--text-dim); font-size: 9px; }
.sale-summary-grid { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 8px; padding: 0 17px 15px; }
.sale-summary-grid > div { min-width: 0; min-height: 72px; padding: 11px; border: 1px solid rgba(43,47,61,.82); border-radius: 9px; background: rgba(8,11,17,.26); }
.sale-summary-grid strong, .sale-summary-grid small { display: block; }
.sale-summary-grid strong { margin-top: 6px; color: var(--text); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.sale-summary-grid small { margin-top: 2px; color: var(--text-dim); font-size: 8px; }
.sale-license-key { font-size: 9px !important; font-weight: 550; }
.sale-license-copy-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 6px; }
.sale-license-copy-row .sale-license-key { min-width: 0; margin-top: 0; }
.copy-source { display: none !important; }
.copy-icon-button { position: relative; width: 25px; height: 25px; min-width: 25px; min-height: 25px; padding: 0; border: 1px solid rgba(112,119,139,.42); border-radius: 7px; color: var(--text-dim); background: rgba(12,15,21,.5); box-shadow: none; }
.copy-icon-button:hover { border-color: rgba(232,163,61,.55); color: var(--accent); background: rgba(232,163,61,.08); transform: none; }
.copy-icon-button::before { content: '⧉'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.copy-icon-button::after { display: none; }
.copy-icon-button.is-copied { color: #75d4a7; border-color: rgba(117,212,167,.48); background: rgba(117,212,167,.08); }
.copy-icon-button.is-copied::before { content: '✓'; font-size: 14px; }
.sale-date-cell strong { font-size: 9px; }
.sale-card-details { border-top: 1px solid var(--border); background: rgba(8,11,17,.2); }
.sale-card-details summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; color: var(--text-dim); font-size: 10px; cursor: pointer; list-style: none; }
.sale-card-details summary::-webkit-details-marker { display: none; }
.sale-card-details summary:hover { color: var(--accent); }
.sale-card-details summary > .sale-details-toggle { display: inline-flex; width: 22px; height: 22px; flex: 0 0 22px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; transition: transform .18s ease; }
.sale-card-details[open] summary > .sale-details-toggle { transform: rotate(45deg); }
.sale-details-summary-copy { display: grid; gap: 2px; }
.sale-details-summary-copy b { color: inherit; font-size: 10px; font-weight: 650; }
.sale-details-summary-copy small { color: var(--text-muted); font-size: 8px; }
.sale-card:has(.sale-card-details[open]) { grid-column: 1 / -1; }
.sale-details-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 14px 17px 17px; border-top: 1px solid rgba(43,47,61,.65); }
.sale-detail-section { min-width: 0; overflow: hidden; border: 1px solid rgba(43,47,61,.75); border-radius: 10px; background: rgba(8,11,17,.22); }
.sale-detail-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid rgba(43,47,61,.7); background: rgba(26,29,38,.46); }
.sale-detail-section > header > div > span { display: block; color: var(--accent); font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sale-detail-section h4 { margin: 3px 0 0; color: var(--text); font-size: 12px; }
.sale-detail-section > header > a { color: var(--accent); font-size: 9px; text-decoration: none; }
.sale-detail-section > header > a:hover { color: var(--accent-hover); }
.sale-detail-section .sale-detail-grid { padding: 0 13px 12px; border-top: 0; }
.sale-detail-section .sale-detail-grid > div { padding: 9px 0; }
.sale-detail-wide { grid-column: 1 / -1; }
.sale-subscription-section { grid-column: 1 / -1; border-color: rgba(232,163,61,.24); }
.sale-subscription-section .sale-detail-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.sale-detail-count { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: 8px; }
.sale-lifecycle-grid strong { color: var(--text); }
.sale-detail-section .product-id-hidden { margin-top: 4px; }
.sale-detail-grid .sensitive-real { display: none; }
.sale-detail-grid .sensitive-masked { display: inline; }
.show-sensitive-values .sale-detail-grid .sensitive-real { display: inline; }
.show-sensitive-values .sale-detail-grid .sensitive-masked { display: none; }
.sale-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; padding: 0 17px 14px; border-top: 1px solid rgba(43,47,61,.65); }
.sale-detail-grid > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid rgba(43,47,61,.55); }
.sale-detail-grid strong { display: block; margin-top: 4px; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.sale-detail-copy-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.sale-detail-copy-value strong { min-width: 0; margin-top: 0; }
.sale-detail-copy-value .copy-icon-button { flex: 0 0 25px; }
.sales-pagination { display: flex; justify-content: center; padding-top: 18px; }
.sales-numbered-pagination { align-items: center; justify-content: flex-start; gap: 16px; margin-top: 4px; border-top: 1px solid var(--border); }
.sales-page-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sales-page-number, .sales-page-direction { display: inline-flex; min-width: 31px; min-height: 31px; align-items: center; justify-content: center; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); background: rgba(18,20,26,.55); font-size: 9px; font-weight: 650; text-decoration: none; }
.sales-page-direction { padding-inline: 11px; }
.sales-page-number:hover, .sales-page-direction:hover { color: var(--accent); border-color: rgba(232,163,61,.42); text-decoration: none; }
.sales-page-number:focus-visible, .sales-page-direction:focus-visible { text-decoration: none; }
.sales-page-number.active { color: #15110b; border-color: var(--accent); background: var(--accent); box-shadow: 0 6px 18px rgba(232,163,61,.16); }
.sales-page-gap { color: var(--text-muted); font-size: 11px; }
.sales-pagination-warning { margin: -5px 0 15px; }
@media (max-width: 1050px) {
  .sales-filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sales-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .sales-card-grid { grid-template-columns: 1fr; }
  .sale-details-body { grid-template-columns: 1fr; }
  .sale-subscription-section { grid-column: auto; }
  .sale-kind-toolbar, .sales-numbered-pagination { align-items: stretch; flex-direction: column; }
  .sale-kind-toolbar nav { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .sales-sensitive-control { width: 100%; min-width: 0; }
  .sales-overview-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sales-overview-strip > div:nth-child(odd) { border-left: 0; }
  .sales-overview-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .sales-filter-grid, .sale-summary-grid { grid-template-columns: 1fr; }
  .sale-subscription-section .sale-detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sales-filter-actions, .sales-filter-actions .btn, .sales-filter-actions button { width: 100%; }
  .sales-filter-actions { grid-column: auto; flex-direction: column; }
}
@media (max-width: 480px) {
  .sale-detail-grid, .sale-subscription-section .sale-detail-grid { grid-template-columns: 1fr; }
  .sale-detail-wide { grid-column: auto; }
}

/* Sales intelligence workspace */
.analytics-dashboard { padding-bottom: 70px; }
.analytics-hero { align-items: center; }
.analytics-sync-box { display: flex; min-width: 270px; flex-direction: column; align-items: stretch; gap: 8px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: rgba(18,20,26,.7); }
.analytics-sync-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-sync-actions button { flex: 1 1 150px; width: auto; margin: 0; }
.analytics-sync-box button { min-height: 40px; }
.analytics-sync-box button.is-syncing::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 8px; border: 2px solid rgba(20,18,13,.35); border-top-color: #1a1510; border-radius: 50%; vertical-align: -2px; animation: analytics-spin .7s linear infinite; }
.analytics-sync-box small { color: var(--text-dim); font-size: 9px; line-height: 1.45; text-align: center; }
.analytics-sync-box > span { max-width: 430px; color: #70798e; font-size: 9px; line-height: 1.45; text-align: center; }
@keyframes analytics-spin { to { transform: rotate(360deg); } }
.analytics-filter-panel { max-width: none; margin-bottom: 16px; padding: 16px 18px; }
.analytics-filter-form { display: grid; grid-template-columns: minmax(180px,.5fr) minmax(240px,.8fr) minmax(300px,1.2fr); align-items: end; gap: 12px; }
.analytics-filter-form label { margin: 0; }
.analytics-filter-form select { min-height: 40px; margin: 5px 0 0; }
.analytics-filter-note { min-height: 40px; padding: 8px 12px; border-left: 2px solid var(--accent); background: rgba(232,163,61,.045); }
.analytics-filter-note strong, .analytics-filter-note span { display: block; }
.analytics-filter-note strong { color: var(--text); font-size: 10px; }
.analytics-filter-note span { margin-top: 3px; color: var(--text-dim); font-size: 8px; line-height: 1.4; }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.13); }
.analytics-kpi-grid article { min-width: 0; padding: 16px; border-left: 1px solid var(--border); }
.analytics-kpi-grid article:first-child { border-left: 0; }
.analytics-kpi-grid span, .analytics-kpi-grid strong, .analytics-kpi-grid small { display: block; }
.analytics-kpi-grid span { color: var(--text-dim); font-size: 9px; }
.analytics-kpi-grid strong { margin-top: 4px; color: var(--text); font-size: 23px; }
.analytics-kpi-grid small { margin-top: 3px; color: var(--text-muted); font-size: 8px; line-height: 1.35; }
.analytics-kpi-grid .has-warning strong { color: #ffba7a; }
.analytics-money-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.analytics-money-grid article { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg,rgba(36,40,50,.82),rgba(18,20,26,.68)); }
.analytics-money-grid span, .analytics-money-grid strong { display: block; }
.analytics-money-grid span { color: var(--text-dim); font-size: 9px; }
.analytics-money-grid strong { margin-top: 6px; color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.analytics-insights-panel { margin-bottom: 16px; }
.analytics-insights-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.analytics-insight { display: flex; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: rgba(12,15,21,.38); }
.analytics-insight > span { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border-radius: 50%; background: #7f8da4; box-shadow: 0 0 0 4px rgba(127,141,164,.09); }
.analytics-insight-positive > span { background: #65d3a3; box-shadow: 0 0 0 4px rgba(101,211,163,.09); }
.analytics-insight-warning > span { background: #f0a856; box-shadow: 0 0 0 4px rgba(240,168,86,.09); }
.analytics-insight strong { color: var(--text); font-size: 11px; }
.analytics-insight p { margin: 4px 0 0; color: var(--text-dim); font-size: 9px; line-height: 1.55; }
.analytics-two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.analytics-two-column > .section-panel { min-width: 0; margin-bottom: 16px; padding: 20px; }
.analytics-ranking { display: grid; gap: 8px; }
.analytics-rank-row { padding: 11px 12px; border: 1px solid rgba(43,47,61,.8); border-radius: 10px; background: rgba(8,11,17,.25); }
.analytics-rank-head { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.analytics-rank-head strong { min-width: 0; color: var(--text); font-size: 10px; overflow-wrap: anywhere; }
.analytics-rank-head b { color: var(--accent); font-size: 11px; }
.analytics-rank-index { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); font-size: 8px; }
.analytics-bar { height: 4px; overflow: hidden; margin: 8px 0 7px 30px; border-radius: 999px; background: rgba(103,111,132,.15); }
.analytics-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#f1c272); }
.analytics-rank-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-left: 30px; color: var(--text-dim); font-size: 7px; }
.analytics-rank-meta span:last-child { margin-left: auto; color: var(--text); }
.analytics-data-note { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid rgba(101,211,163,.24); border-radius: 12px; background: rgba(101,211,163,.045); }
.analytics-data-note strong { flex: 0 0 auto; color: #7bd9b0; font-size: 10px; }
.analytics-data-note span { color: var(--text-dim); font-size: 9px; line-height: 1.55; }
@media (max-width: 1120px) { .analytics-kpi-grid { grid-template-columns: repeat(3,1fr); } .analytics-kpi-grid article:nth-child(4) { border-left: 0; } .analytics-kpi-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--border); } }
@media (max-width: 850px) { .analytics-filter-form, .analytics-two-column { grid-template-columns: 1fr; } .analytics-insights-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .analytics-hero { align-items: stretch; } .analytics-sync-box { width: 100%; min-width: 0; } .analytics-kpi-grid, .analytics-money-grid { grid-template-columns: 1fr; } .analytics-kpi-grid article, .analytics-kpi-grid article:nth-child(4) { border-left: 0; border-bottom: 1px solid var(--border); } .analytics-kpi-grid article:last-child { border-bottom: 0; } .analytics-data-note { flex-direction: column; } }

/* Discount code workspace */
.offer-code-hero { align-items: center; }
.offer-product-picker { min-width: 340px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: rgba(26,29,38,.82); }
.offer-product-picker label { margin: 0 0 6px; color: var(--text-dim); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.offer-product-picker select { width: 100%; min-height: 42px; margin: 0; }
.offer-overview-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(26,29,38,.82); box-shadow: 0 16px 44px rgba(0,0,0,.13); }
.offer-overview-strip > div { padding: 17px 20px; border-left: 1px solid var(--border); }
.offer-overview-strip > div:first-child { border-left: 0; }
.offer-overview-strip span, .offer-overview-strip strong { display: block; }
.offer-overview-strip span { color: var(--text-dim); font-size: 10px; }
.offer-overview-strip strong { margin-top: 4px; color: var(--text); font-size: 23px; line-height: 1.2; }
.offer-create-layout { display: grid; grid-template-columns: minmax(270px,.68fr) minmax(0,1.32fr); gap: 18px; margin-bottom: 18px; }
.offer-create-guide, .offer-create-panel { min-width: 0; border-radius: 16px; }
.offer-create-guide { padding: 28px; border: 1px solid rgba(232,163,61,.26); background: linear-gradient(145deg, rgba(232,163,61,.105), rgba(26,29,38,.76)); }
.offer-create-guide h2 { margin: 5px 0 9px; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.offer-create-guide > p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.offer-rule-list { margin-top: 22px; }
.offer-rule-list > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: 14px 0; border-top: 1px solid rgba(232,163,61,.15); }
.offer-rule-list > div > span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.4); border-radius: 8px; color: var(--accent); font-size: 10px; font-weight: 700; }
.offer-rule-list p { margin: 0; color: var(--text-dim); font-size: 11px; line-height: 1.55; }
.offer-rule-list strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; }
.offer-create-panel { max-width: none; padding: 28px; }
.offer-create-panel h2 { margin: 4px 0 5px; font-size: 22px; }
.offer-create-panel .panel-intro { margin: 0 0 22px; color: var(--text-dim); font-size: 12px; }
.offer-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 16px; }
.offer-field-grid .span-2 { grid-column: 1 / -1; }
.offer-field-grid label { margin: 0; }
.offer-field-grid input, .offer-field-grid select { width: 100%; min-height: 44px; margin: 7px 0 5px; }
.offer-field-grid small { display: block; min-height: 27px; color: var(--text-dim); font-size: 10px; line-height: 1.45; }
.offer-create-submit { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.offer-create-submit span { color: var(--text-dim); font-size: 10px; }
.offer-list-panel { padding: 28px; }
.offer-count-label { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: rgba(18,20,26,.52); font-size: 10px; }
.offer-code-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.offer-code-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(35,39,49,.76), rgba(18,20,26,.64)); }
.offer-code-card.is-unavailable { opacity: .72; }
.offer-code-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.offer-code-card > header > div { min-width: 0; }
.offer-code-card > header span:not(.badge), .offer-code-details span { display: block; color: var(--text-dim); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.offer-code-card h3 { margin: 4px 0 0; color: var(--text); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.offer-code-card > header > .badge { flex: 0 0 auto; }
.offer-code-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; padding: 15px 16px; }
.offer-code-details > div { min-width: 0; min-height: 68px; padding: 10px; border: 1px solid rgba(43,47,61,.82); border-radius: 9px; background: rgba(8,11,17,.26); }
.offer-code-details strong, .offer-code-details small { display: block; overflow-wrap: anywhere; }
.offer-code-details strong { margin-top: 6px; font-size: 11px; line-height: 1.35; }
.offer-code-details small { margin-top: 2px; color: var(--text-dim); font-size: 8px; }
.offer-usage-bar { height: 4px; margin: 0 16px 15px; overflow: hidden; border-radius: 999px; background: var(--border); }
.offer-usage-bar div { height: 100%; border-radius: inherit; background: var(--accent); }
.offer-code-card > footer { display: flex; justify-content: flex-end; min-height: 57px; margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border); background: rgba(8,11,17,.2); }
.offer-code-card > footer form { margin: 0; }
.offer-code-card > footer button { min-height: 35px; padding: 7px 11px; font-size: 10px; }
@media (max-width: 1050px) {
  .offer-code-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 940px) {
  .offer-create-layout { grid-template-columns: 1fr; }
  .offer-create-guide { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); gap: 24px; }
  .offer-rule-list { margin-top: 0; }
}
@media (max-width: 680px) {
  .offer-product-picker { width: 100%; min-width: 0; }
  .offer-overview-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .offer-overview-strip > div:nth-child(odd) { border-left: 0; }
  .offer-overview-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .offer-create-guide, .offer-field-grid, .offer-code-grid { grid-template-columns: 1fr; }
  .offer-field-grid .span-2 { grid-column: auto; }
  .offer-create-submit { align-items: stretch; flex-direction: column; }
  .offer-create-submit button, .offer-code-card > footer form, .offer-code-card > footer button { width: 100%; }
}

/* Professional product-first dashboard */
.dash-wide { max-width: 1260px; padding-top: 34px; }
.admin-topbar { background: rgba(18, 20, 26, 0.92); backdrop-filter: blur(18px); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.btn-compact { padding: 7px 12px !important; font-size: 12px !important; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); margin-right: 8px; }
.account-chip { color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }

.dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 26px; padding: 10px 2px 4px; }
.dashboard-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; margin: 0 0 8px; }
.dashboard-hero .lede { max-width: 720px; margin: 0; font-size: 15px; }
.sync-form { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sync-hint { color: var(--text-dim); font-size: 11px; }
.notice-banner { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; color: var(--text); font-size: 13px; }
.provider-connect-panel { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(360px,1.2fr); gap: 32px; align-items: end; margin-bottom: 22px; }
.provider-connect-panel h2 { margin: 3px 0 7px; }
.provider-connect-panel p { margin: 0; color: var(--text-dim); }
.provider-connect-form label { margin-bottom: 7px; }
.provider-connect-form .inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.provider-connect-form input { margin: 0; min-width: 0; }
.notice-warning { border-color: rgba(240,180,77,.45); background: rgba(240,180,77,.08); color: #ffd58b; }
.notice-danger { border-color: rgba(229,99,111,.5); background: var(--danger-soft); color: #ffabb3; }
.notice-success { border-color: rgba(76,175,125,.42); background: var(--success-soft); color: #8de0b5; }

.overview-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.overview-item { padding: 18px 20px; border-right: 1px solid var(--border); min-width: 0; }
.overview-item:last-child { border-right: 0; }
.overview-item span { display: block; color: var(--text-dim); font-size: 11px; margin-bottom: 4px; white-space: nowrap; }
.overview-item strong { display: block; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-item.has-warning strong { color: var(--warning); }
.overview-item.has-danger strong { color: var(--danger); }

.section-block { margin-bottom: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.section-heading h2, .dashboard-panel h2, .info-panel h2, .product-hero h1 { margin: 0; color: var(--text); }
.section-heading h2 { font-size: 24px; }
.section-heading p, .panel-title-row p { color: var(--text-dim); margin: 4px 0 0; font-size: 13px; }
.catalog-heading { margin-bottom: 18px; }
.catalog-heading h2 { margin: 0; color: var(--text); font-size: 24px; }
.catalog-heading p { max-width: 920px; color: var(--text-dim); margin: 6px 0 0; font-size: 13px; line-height: 1.65; }
.catalog-toolbar-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 18px; }
.catalog-action-row { display: flex; align-items: center; min-height: 46px; }
.gumroad-sync-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.gumroad-sync-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 146px; }
.gumroad-sync-button:disabled { cursor: wait; opacity: .84; transform: none; }
.sync-spinner { display: none; width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid rgba(18,20,26,.32); border-top-color: currentColor; border-radius: 50%; }
.gumroad-sync-button.is-syncing .sync-spinner { display: inline-block; animation: gumroad-sync-spin .72s linear infinite; }
.sync-progress-text { min-height: 18px; color: var(--text-dim); font-size: 12px; }
@keyframes gumroad-sync-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gumroad-sync-button.is-syncing .sync-spinner { animation-duration: 1.5s; } }
.catalog-tools { display: flex; align-items: center; gap: 10px; }
.catalog-filter-row { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(165px, 210px) auto auto; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: rgba(18,20,26,.42); }
.catalog-tools input { width: 100%; min-width: 0; margin: 0; }
.catalog-filter-row select { width: 100%; min-width: 0; margin: 0; }
.catalog-controls { flex-wrap: wrap; justify-content: flex-end; }
.catalog-controls input, .catalog-controls select { width: auto; min-width: 160px; margin: 0; }
.catalog-controls input { min-width: 220px; }

.product-type-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -2px 0 15px; color: var(--text-dim); font-size: 11px; }
.product-type-legend span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(18,20,26,.38); }
.product-type-legend i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.product-type-legend .subscription-legend { color: #c6a8ff; border-color: rgba(151,105,255,.28); }
.product-type-legend .subscription-legend i { background: #9b6cff; }
.product-type-legend .one-time-legend { color: #9ab4ce; border-color: rgba(116,151,185,.27); }
.product-type-legend .one-time-legend i { background: #7191af; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 330px; color: var(--text); background: linear-gradient(155deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.product-card::before { content: ""; position: absolute; z-index: 4; inset: 0 auto 0 0; width: 4px; pointer-events: none; }
.product-card.is-subscription { border-color: rgba(151,105,255,.38); box-shadow: inset 0 0 0 1px rgba(151,105,255,.055); }
.product-card.is-subscription::before { background: linear-gradient(180deg, #b590ff, #7651dc); }
.product-card.is-one-time { border-color: rgba(116,151,185,.32); box-shadow: inset 0 0 0 1px rgba(116,151,185,.04); }
.product-card.is-one-time::before { background: linear-gradient(180deg, #9ab4ce, #5b7894); }
.product-card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(232,163,61,.55); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.product-card[hidden] { display: none; }
.product-card.is-inactive { opacity: .7; }
.product-card.is-pinned { border-color: rgba(232,163,61,.6); box-shadow: inset 0 0 0 1px rgba(232,163,61,.1); }
.product-card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: var(--text); }
.product-card-link:hover { color: var(--text); text-decoration: none; }
.pin-form { position: absolute; z-index: 5; right: 14px; top: 14px; margin: 0; }
.pin-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 9px; color: #70798e; background: rgba(18,20,26,.88); font-size: 17px; line-height: 1; box-shadow: none; }
.pin-button:hover { color: var(--accent); border-color: rgba(232,163,61,.55); background: #282216; }
.pin-button.active { color: #ffd479; border-color: rgba(232,163,61,.7); background: #3a2c0c; box-shadow: 0 0 18px rgba(232,163,61,.18); }
.product-card-top { position: relative; height: 96px; background: radial-gradient(circle at 15% 0%, rgba(232,163,61,.22), transparent 55%); padding: 18px; }
.product-card.is-subscription .product-card-top { background: radial-gradient(circle at 18% 0%, rgba(151,105,255,.30), transparent 60%); }
.product-card.is-one-time .product-card-top { background: radial-gradient(circle at 18% 0%, rgba(116,151,185,.24), transparent 60%); }
.product-thumb { width: 62px; height: 62px; border-radius: 13px; object-fit: cover; border: 1px solid rgba(255,255,255,.12); background: var(--bg); }
.product-initials { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; font-weight: 800; letter-spacing: .04em; background: linear-gradient(145deg, #262b38, #171a22); }
.product-state { position: absolute; right: 16px; top: 54px; display: flex; align-items: center; gap: 9px; }
.product-state .badge { flex: 0 0 auto; }
.product-card-body { padding: 18px; flex: 1; }
.product-type-row { display: flex; align-items: center; min-height: 25px; }
.product-kind-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .055em; line-height: 1; text-transform: uppercase; }
.is-subscription .product-kind-pill { color: #d3beff; border-color: rgba(151,105,255,.42); background: rgba(151,105,255,.13); }
.is-one-time .product-kind-pill { color: #afc6dc; border-color: rgba(116,151,185,.40); background: rgba(116,151,185,.11); }
.product-kicker { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.product-card h3 { font-size: 17px; line-height: 1.35; margin: 7px 0 5px; min-height: 46px; }
.product-id { color: #70798e; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.product-metrics.product-metrics-four { grid-template-columns: repeat(4, 1fr); }
.product-metrics div { padding: 9px 8px; background: rgba(18,20,26,.55); border-radius: 8px; }
.product-metrics strong, .product-metrics span { display: block; }
.product-metrics strong { font-size: 17px; }
.product-metrics span { color: var(--text-dim); font-size: 10px; }
.product-provider-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; padding: 12px 18px 14px; border-top: 1px solid rgba(255,255,255,.045); color: var(--text-dim); font-size: 11px; }
.product-provider-summary > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.product-provider-summary > span:last-child { align-items: flex-end; margin-left: auto; text-align: right; }
.product-provider-summary small { color: #70798e; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.product-provider-summary b, .product-provider-summary strong { display: block; white-space: nowrap; }
.product-provider-summary b { color: var(--text-dim); font-size: 11px; font-weight: 550; }
.product-provider-summary strong { color: var(--text); font-size: 12px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 14px 18px; }
.product-card-footer div span, .product-card-footer div strong { display: block; }
.product-card-footer div span { color: var(--text-dim); font-size: 10px; }
.product-card-footer div strong { font-size: 12px; }
.open-product { color: var(--accent); font-size: 12px; font-weight: 600; }
.empty-card { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 42px; text-align: center; color: var(--text-dim); }

.badge.success-badge { color: #8de0b5; border-color: rgba(76,175,125,.42); background: var(--success-soft); }
.badge.warning-badge { color: #ffd58b; border-color: rgba(240,180,77,.45); background: rgba(240,180,77,.09); }
.badge.danger-badge { color: #ff9ca6; border-color: rgba(229,99,111,.48); background: var(--danger-soft); }
.badge .status-dot { width: 5px; height: 5px; margin-right: 5px; box-shadow: none; }
.stat-card.stat-warning .stat-value { color: var(--warning); }

.dashboard-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr); gap: 18px; }
.dashboard-panel { max-width: none; padding: 22px; border-radius: var(--radius-lg); }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-title-row h2 { font-size: 18px; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--text); }
.activity-row:hover { text-decoration: none; }
.activity-avatar { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); font-weight: 700; flex: 0 0 auto; }
.activity-main { flex: 1; min-width: 0; }
.activity-main strong, .activity-main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-main strong { font-size: 13px; }
.activity-main span { color: var(--text-dim); font-size: 11px; }
.quick-panel h2 { margin-bottom: 16px; }
.quick-link { display: flex; justify-content: space-between; padding: 13px 0; color: var(--text); border-top: 1px solid var(--border); font-size: 13px; }
.quick-link:hover { color: var(--accent); text-decoration: none; }

/* Independent product workspace */
.product-workspace-page { max-width: 1320px; padding-top: 28px; }
.product-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--text-dim); font-size: 12px; }
.product-back:hover { color: var(--accent); text-decoration: none; }
.product-hero { position: relative; max-width: none; min-height: 154px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; border-radius: 18px; padding: 28px; background: radial-gradient(circle at 8% 12%, rgba(232,163,61,.17), transparent 34%), linear-gradient(145deg, var(--surface-raised), var(--surface)); }
.product-hero::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 38%; height: 100%; pointer-events: none; background: linear-gradient(120deg, transparent, rgba(255,255,255,.018)); }
.product-hero-main { position: relative; z-index: 1; display: flex; flex: 1; align-items: center; gap: 20px; min-width: 0; }
.product-hero-copy { min-width: 0; }
.product-hero-thumb { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.product-hero h1 { max-width: 720px; font-size: clamp(24px, 3vw, 32px); line-height: 1.18; margin: 4px 0 7px; overflow-wrap: anywhere; }
.product-hero .product-id { display: inline-block; max-width: 100%; padding: 5px 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: rgba(8,11,17,.35); }
.product-hero-description { max-width: 720px; margin: 9px 0 0; color: var(--text-dim); font-size: 12px; line-height: 1.55; }
.hero-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.product-hero-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.product-hero-actions form { margin: 0; }
.product-hero-actions .btn, .product-hero-actions button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.workspace-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 8px; background: rgba(29,32,40,.94); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 14px; overflow: visible; margin-bottom: 18px; position: sticky; top: 8px; z-index: 8; box-shadow: 0 10px 32px rgba(0,0,0,.2); }
.workspace-nav a { display: flex; align-items: center; justify-content: center; color: var(--text-dim); padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; font-size: 11px; text-align: center; }
.workspace-nav a:hover { color: var(--text); background: var(--surface-raised); text-decoration: none; }
.workspace-nav a span { background: var(--bg); border-radius: 999px; padding: 2px 6px; margin-left: 4px; }
.workspace-nav a.active { color: #ffd58b; background: rgba(232,163,61,.1); border-color: rgba(232,163,61,.28); }
.product-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.product-stats .stat-card { min-width: 0; padding: 18px; border-radius: 13px; }
.product-stats .stat-value { font-size: clamp(20px, 2vw, 25px); overflow-wrap: anywhere; }
.product-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.info-panel { max-width: none; padding: 24px; border-radius: 16px; }
.info-panel h2 { font-size: 18px; margin-bottom: 14px; }
.info-list > div { display: grid; grid-template-columns: minmax(120px,.75fr) minmax(0,1.25fr); align-items: start; gap: 18px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 12px; }
.info-list span { color: var(--text-dim); }
.info-list strong { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.section-panel { width: 100%; max-width: none; margin-bottom: 18px; padding: 26px; border-radius: 16px; scroll-margin-top: 94px; }
.section-panel > .section-heading { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.section-heading-inline { align-items: flex-end; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; background: rgba(10,13,20,.28); }
.table-wrap .licenses { margin: 0; }
.key-cell { font-size: 11px !important; white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.plan-card { position: relative; display: grid; gap: 7px; min-width: 0; min-height: 112px; padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, rgba(36,40,50,.82), rgba(18,20,26,.68)); }
.plan-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 999px; background: var(--accent); opacity: .75; }
.plan-card strong { padding-left: 4px; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.plan-card span { display: inline-flex; width: fit-content; max-width: 100%; padding: 4px 7px; border-radius: 999px; background: rgba(232,163,61,.08); color: var(--text-dim); font-size: 10px; overflow-wrap: anywhere; }
.variant-grid, .review-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.variant-group, .review-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: rgba(18,20,26,.5); }
.variant-row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding: 9px 0; color: var(--text-dim); font-size: 12px; }
.variant-row span, .variant-row strong { overflow-wrap: anywhere; }
.variant-group > strong { display: block; margin-bottom: 8px; }
.access-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.access-plan-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: rgba(18,20,26,.5); }
.access-plan-card strong, .access-plan-card span { display: block; }
.access-plan-card strong { color: var(--text); margin-bottom: 5px; }
.access-plan-card span { color: var(--accent); font-size: 11px; margin-bottom: 9px; }
.access-plan-card p { color: var(--text-dim); font-size: 12px; line-height: 1.55; margin: 0; }
.entitlement-cell strong, .entitlement-cell span { display: block; }
.entitlement-cell strong { font-size: 12px; }
.entitlement-cell span { color: var(--text-dim); font-size: 10px; margin-top: 3px; }
.review-stars { color: var(--accent); letter-spacing: 2px; }
.review-card p { color: var(--text); font-size: 13px; }
.review-card footer { color: var(--text-dim); font-size: 11px; }
.review-response { border-left: 2px solid var(--accent); padding-left: 12px; margin-top: 14px; }
.review-response strong { font-size: 11px; color: var(--accent); }
.review-response p { color: var(--text-dim); margin: 4px 0 0; }
.product-actions-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 8px; }
.sensitive-real { display: none; }
.show-sensitive-values .sensitive-real { display: inline; }
.show-sensitive-values .sensitive-masked { display: none; }
[data-sensitive-toggle][aria-pressed="true"] { color: var(--accent); border-color: rgba(232,163,61,.55); background: var(--accent-soft); }
.section-heading p { margin: 5px 0 0; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
.sale-details { position: relative; }
.sale-details summary { color: var(--accent); cursor: pointer; font-size: 11px; white-space: nowrap; }
.sale-details summary::marker { color: var(--text-dim); }
.sale-details-popover { position: absolute; z-index: 12; right: 0; width: min(360px, 75vw); margin-top: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-raised); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.sale-details-popover div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--border); }
.sale-details-popover div:first-child { border-top: 0; }
.sale-details-popover span { color: var(--text-dim); font-size: 10px; }
.sale-details-popover strong { max-width: 210px; overflow-wrap: anywhere; text-align: right; font-size: 11px; }
.provider-data-panel { max-width: none; }
.provider-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.provider-record-card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 11px; background: rgba(18,20,26,.5); }
.provider-record-card h3 { margin: 0 0 12px; font-size: 15px; overflow-wrap: anywhere; }
.provider-record-card dl { margin: 0; }
.provider-record-card dl div { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); }
.provider-record-card dt { color: var(--text-dim); font-size: 10px; }
.provider-record-card dd { margin: 0; text-align: right; font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .provider-record-grid { grid-template-columns: 1fr; } }

/* Customer license center */
.customer-page { background: radial-gradient(circle at 50% -10%, #25202a 0, var(--bg) 38%); }
.customer-topbar { max-width: 1180px; width: 100%; margin: 0 auto; border-bottom: 0; }
.customer-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 72px 24px 56px; }
.customer-intro { text-align: center; max-width: 750px; margin: 0 auto 34px; }
.customer-intro h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.045em; margin: 8px 0 16px; }
.customer-intro > p { max-width: 600px; margin: 0 auto; color: var(--text-dim); font-size: 16px; }
.trust-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; color: var(--text-dim); font-size: 11px; }
.trust-row i { display: inline-block; width: 6px; height: 6px; background: var(--success); border-radius: 50%; margin-right: 7px; }
.lookup-card { display: grid; grid-template-columns: .85fr 1.15fr; max-width: 850px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.lookup-card-copy { padding: 42px; background: linear-gradient(145deg, rgba(232,163,61,.16), rgba(232,163,61,.025)); border-right: 1px solid var(--border); }
.lookup-card-copy h2 { font-size: 25px; margin: 16px 0 10px; }
.lookup-card-copy p { color: var(--text-dim); font-size: 13px; }
.step-number { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(232,163,61,.5); border-radius: 9px; color: var(--accent); font-size: 11px; font-weight: 700; }
.lookup-form { padding: 38px 42px; }
.lookup-form input { padding: 13px 14px; }
.lookup-submit { width: 100%; padding: 13px 18px; }
.lookup-submit span { display: flex; width: 100%; justify-content: space-between; }
.form-note { text-align: center; color: var(--text-dim); font-size: 10px; margin-top: 10px; }
.customer-workspace { width: 100%; }
.customer-product-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.customer-product-hero h1 { font-size: 32px; margin: 3px 0; }
.customer-product-hero p { color: var(--text-dim); margin: 0; font-size: 12px; }
.verified-seal { display: inline-flex; align-items: center; gap: 8px; color: #8de0b5; background: var(--success-soft); border: 1px solid rgba(76,175,125,.4); border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 700; }
.verified-seal svg { width: 15px; height: 15px; fill: currentColor; }
.customer-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.customer-summary-card { padding: 15px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.customer-summary-card span, .customer-summary-card strong { display: block; }
.customer-summary-card span { color: var(--text-dim); font-size: 10px; margin-bottom: 4px; }
.customer-summary-card strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.success-color { color: #8de0b5; }
.entitlement-explainer { margin: -2px 0 18px; padding: 16px 18px; border: 1px solid rgba(232,163,61,.35); border-radius: 10px; background: rgba(232,163,61,.065); }
.entitlement-explainer strong { display: block; color: var(--accent); margin-bottom: 5px; }
.entitlement-explainer p { margin: 0; color: var(--text-dim); font-size: 12px; line-height: 1.55; }
.customer-content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 18px; }
.customer-devices-panel, .purchase-panel { max-width: none; border-radius: var(--radius-lg); }
.customer-devices-panel h2, .purchase-panel h2 { margin: 0; font-size: 20px; }
.device-count { color: var(--text-dim); font-size: 12px; }
.device-count b { color: var(--text); }
.customer-usage { margin: 6px 0 18px; }
.customer-device-row { gap: 12px; }
.device-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-raised); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.device-copy { flex: 1; min-width: 0; }
.device-copy strong { font-size: 13px; }
.device-copy > span { display: block; color: var(--text-dim); font-size: 10px; }
.text-button { padding: 0; margin-left: 8px; background: none; color: var(--accent); font-size: 10px; }
.text-button:hover { background: none; text-decoration: underline; }
.rename-form { display: flex; gap: 6px; align-items: center; }
.rename-form input { margin: 0; padding: 7px 9px; }
.device-help { color: var(--text-dim); font-size: 11px; margin: 18px 0 0; }
.customer-empty { padding: 36px; text-align: center; border: 1px dashed var(--border); border-radius: 10px; }
.customer-empty strong, .customer-empty span { display: block; }
.customer-empty span { color: var(--text-dim); font-size: 11px; margin-top: 4px; }
.purchase-panel h2 { margin-bottom: 14px; }
.customer-actions { display: flex; gap: 8px; margin-top: 12px; }
.customer-actions > * { flex: 1; }

@media (max-width: 1000px) {
  .overview-strip { grid-template-columns: repeat(3, 1fr); }
  .overview-item:nth-child(3) { border-right: 0; }
  .overview-item:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-stats { grid-template-columns: repeat(3, 1fr); }
  .workspace-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); position: static; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .customer-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .dashboard-hero, .section-heading, .product-hero, .customer-product-hero { align-items: flex-start; flex-direction: column; }
  .provider-connect-panel { grid-template-columns: 1fr; }
  .provider-connect-form .inline-form { grid-template-columns: 1fr; }
  .sync-form { width: 100%; }
  .catalog-toolbar-row { grid-template-columns: 1fr; }
  .catalog-tools { width: 100%; }
  .catalog-filter-row { grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr); }
  .catalog-filter-row .privacy-switch-control, .catalog-filter-row .btn { align-self: stretch; }
  .catalog-tools input { min-width: 0; flex: 1; }
  .catalog-controls input, .catalog-controls select { flex: 1 1 180px; min-width: 0; }
  .product-grid, .dashboard-columns, .product-info-grid, .customer-content-grid { grid-template-columns: 1fr; }
  .product-hero-actions { justify-content: flex-start; }
  .product-hero-actions, .product-hero-actions form, .product-hero-actions .btn, .product-hero-actions button { width: 100%; }
  .workspace-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-card { grid-template-columns: 1fr; }
  .lookup-card-copy { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .topbar { padding: 16px; }
  .account-chip { display: none; }
  .dash-wide { padding: 24px 14px; }
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  .overview-item, .overview-item:nth-child(3) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .overview-item:nth-child(even) { border-right: 0; }
  .overview-item:nth-last-child(-n+2) { border-bottom: 0; }
  .product-grid, .product-stats, .plan-grid, .variant-grid, .review-grid, .customer-summary-grid, .access-plan-grid { grid-template-columns: 1fr; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .catalog-filter-row { grid-template-columns: 1fr; }
  .catalog-tools .btn { width: 100%; }
  .gumroad-sync-form, .gumroad-sync-button { width: 100%; }
  .sync-progress-text { width: 100%; }
  .product-hero-main { align-items: flex-start; }
  .product-hero { padding: 20px; }
  .product-hero-main { flex-direction: column; }
  .product-hero-thumb { width: 60px; height: 60px; }
  .product-hero h1 { font-size: 21px; }
  .customer-main { padding: 42px 14px; }
  .customer-intro h1 { font-size: 36px; }
  .lookup-card-copy, .lookup-form { padding: 28px; }
  .customer-actions { flex-direction: column; }
  .customer-device-row { align-items: flex-start; flex-wrap: wrap; }
  .customer-device-row .btn-danger { margin-left: 46px; }
}

/* Inline filter bar (email/date fields + a submit button) — used on the sales report */
.filter-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 20px;
}
.filter-row label {
  font-size: 12px;
  margin-bottom: 6px;
  min-width: 160px;
}
.filter-row input { margin-bottom: 0; }
.filter-row .btn, .filter-row button { flex-shrink: 0; }

/* A single selectable row, e.g. picking which Gumroad product to manage
   discount codes for. Reuses the device-row rhythm for visual consistency. */
.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.picker-row:first-child { border-top: none; }
.picker-row .btn, .picker-row button { flex-shrink: 0; }


/* Product ID privacy toggle for screen sharing and tutorials. */
.product-id-hidden { display: none; color: var(--text-muted); letter-spacing: .02em; }
.product-ids-hidden .product-id-value { display: none !important; }
.product-ids-hidden .product-id-hidden { display: inline !important; }
.product-id-display { white-space: nowrap; }
.privacy-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}


/* Customer-facing removal dialog and product link. */
.customer-product-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(232,163,61,.35); text-underline-offset: 3px; }
.customer-product-link:hover { color: #ffd58b; text-decoration-color: currentColor; }
.info-value { color: var(--text); }
.customer-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(7,8,11,.78); backdrop-filter: blur(9px); }
.customer-confirm-dialog { width: min(100%, 460px); padding: 30px; background: linear-gradient(155deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.customer-confirm-dialog h2 { margin: 6px 0 10px; font-size: 24px; letter-spacing: -.025em; }
.customer-confirm-dialog > p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.confirm-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; color: #ffabb3; background: var(--danger-soft); border: 1px solid rgba(229,99,111,.48); border-radius: 12px; font-size: 19px; font-weight: 800; }
.confirm-device { margin: 18px 0 10px; padding: 13px 15px; color: var(--text); background: rgba(18,20,26,.7); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.customer-confirm-dialog .confirm-note { font-size: 11px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.confirm-actions button { width: 100%; }
@media (max-width: 560px) {
  .customer-confirm-dialog { padding: 24px; }
  .confirm-actions { grid-template-columns: 1fr; }
}

/* Modern Product ID ON/OFF switch. */
.privacy-switch-control { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 7px 5px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.privacy-switch-copy { display: flex; flex-direction: column; min-width: 72px; line-height: 1.15; }
.privacy-switch-copy strong { color: var(--text); font-size: 11px; font-weight: 650; white-space: nowrap; }
.privacy-switch-copy small { margin-top: 3px; color: var(--text-dim); font-size: 9px; }
.privacy-switch-control-compact { min-height: 34px; margin-left: 6px; padding: 3px 5px 3px 9px; background: rgba(18,20,26,.56); }
.privacy-switch-control-compact .privacy-switch-copy { min-width: 62px; }
.privacy-switch-control-compact .toggle-switch { width: 58px; height: 26px; flex-basis: 58px; }
.privacy-switch-control-compact .toggle-thumb { width: 18px; height: 18px; }
.privacy-switch-control-compact .toggle-switch[aria-checked="true"] .toggle-thumb { transform: translateX(32px); }
.privacy-switch-control-compact .toggle-state-on { left: 8px; }
.privacy-switch-control-compact .toggle-state-off { right: 6px; }
.toggle-switch { position: relative; width: 68px; height: 30px; flex: 0 0 68px; padding: 0; overflow: hidden; border: 1px solid #424858; border-radius: 999px; background: #292d38; box-shadow: inset 0 2px 6px rgba(0,0,0,.3); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.toggle-switch:hover { background: #303542; border-color: #555d70; }
.toggle-switch:focus-visible { outline: 3px solid rgba(232,163,61,.28); outline-offset: 2px; }
.toggle-thumb { position: absolute; z-index: 2; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #f4f5f8; box-shadow: 0 2px 7px rgba(0,0,0,.45); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.toggle-state { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); font-size: 8px; font-weight: 800; letter-spacing: .08em; transition: opacity .15s ease; }
.toggle-state-on { left: 10px; color: #231a0c; opacity: 0; }
.toggle-state-off { right: 7px; color: #aeb4c2; opacity: 1; }
.toggle-switch[aria-checked="true"] { border-color: #e8a33d; background: linear-gradient(135deg, #e8a33d, #c87f22); box-shadow: inset 0 2px 5px rgba(71,37,2,.22), 0 0 0 1px rgba(232,163,61,.08), 0 0 18px rgba(232,163,61,.16); }
.toggle-switch[aria-checked="true"] .toggle-thumb { transform: translateX(38px); }
.toggle-switch[aria-checked="true"] .toggle-state-on { opacity: 1; }
.toggle-switch[aria-checked="true"] .toggle-state-off { opacity: 0; }

/*
 * Apply the persisted privacy state before the first browser paint. The HTML
 * intentionally has an accessible default, but the root class is restored by
 * admin-dashboard-head.js before the body or this control is parsed.
 */
.product-ids-hidden .toggle-switch,
.product-ids-hidden .toggle-switch[aria-checked="true"] {
  border-color: #424858;
  background: #292d38;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.3);
}
.product-ids-hidden .toggle-switch .toggle-thumb,
.product-ids-hidden .privacy-switch-control-compact .toggle-switch .toggle-thumb,
.product-ids-hidden .toggle-switch[aria-checked="true"] .toggle-thumb {
  transform: translateX(0);
}
.product-ids-hidden .toggle-switch .toggle-state-on,
.product-ids-hidden .toggle-switch[aria-checked="true"] .toggle-state-on { opacity: 0; }
.product-ids-hidden .toggle-switch .toggle-state-off,
.product-ids-hidden .toggle-switch[aria-checked="true"] .toggle-state-off { opacity: 1; }

/* The label also has the correct value before JavaScript reaches the body. */
.product-id-status-hidden { display: none; }
.product-ids-hidden .product-id-status-shown { display: none; }
.product-ids-hidden .product-id-status-hidden { display: inline; }

/* Suppress only the initial correction; normal user clicks remain animated. */
html:not(.product-id-controls-ready) .toggle-switch,
html:not(.product-id-controls-ready) .toggle-thumb,
html:not(.product-id-controls-ready) .toggle-state { transition: none !important; }

/* Customer license center — calm, friendly and free of technical language. */
.customer-page {
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(232,163,61,.105), transparent 31rem),
    radial-gradient(circle at 88% 42%, rgba(90,113,255,.07), transparent 28rem),
    var(--bg);
}
.customer-page .page { min-height: 100vh; }
.customer-page .customer-topbar {
  position: relative;
  z-index: 5;
  padding-block: 19px;
  background: rgba(11,12,16,.86);
  border-bottom-color: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
}
.customer-page .customer-admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  text-decoration: none;
}
.customer-page .customer-main {
  width: min(100%, 1180px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 58px 24px 70px;
}
.customer-page .customer-entry,
.customer-page .customer-workspace {
  width: 100%;
  min-width: 0;
}
.customer-page .customer-welcome-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 15px;
  background: rgba(23,25,32,.82);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.customer-page .customer-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  color: #241807;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3bb61, #d8932f);
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 8px 20px rgba(0,0,0,.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
.customer-page .customer-welcome-copy { min-width: 0; flex: 1; }
.customer-page .customer-welcome-copy small,
.customer-page .customer-welcome-copy strong,
.customer-page .customer-welcome-copy span { display: block; }
.customer-page .customer-welcome-copy small { color: var(--text-dim); font-size: 9px; }
.customer-page .customer-welcome-copy strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-page .customer-welcome-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: #939aa8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-privacy-note{margin-top:12px;padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);color:var(--text-dim)}
.customer-privacy-note summary{cursor:pointer;color:var(--text);font-weight:700;list-style:none}
.customer-privacy-note summary::-webkit-details-marker{display:none}
.customer-privacy-note summary::after{content:'+';float:right;color:var(--accent)}
.customer-privacy-note[open] summary::after{content:'−'}
.customer-privacy-note p{margin:10px 0 0;line-height:1.65;max-width:850px}
.customer-privacy-link{display:inline-flex;align-items:center;gap:6px;margin-top:11px;color:var(--accent);font-weight:750;text-decoration:none}
.customer-privacy-link:hover,.customer-foot a:hover{text-decoration:none;color:#fff}
.customer-foot a{color:inherit;text-decoration:none}
.privacy-page{max-width:1180px;margin:0 auto;padding-bottom:48px}
.privacy-hero{margin-bottom:18px}
.privacy-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.privacy-card{position:relative;width:100%;max-width:none;padding:24px 24px 23px;overflow:hidden}
.privacy-card-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:16px;border:1px solid rgba(112,194,255,.24);border-radius:11px;background:rgba(112,194,255,.09);color:var(--accent);font-weight:850}
.privacy-card h2{margin:0 0 8px;font-size:18px}
.privacy-card p,.privacy-rights p{margin:0;color:var(--text-dim);line-height:1.72}
.privacy-rights{display:grid;width:100%;max-width:none;grid-template-columns:minmax(210px,.72fr) minmax(0,1.7fr) auto;align-items:center;gap:24px;margin-top:14px;padding:25px}
.privacy-rights h2{margin:5px 0 0;font-size:21px}
.privacy-rights a:not(.btn){color:var(--accent);font-weight:750;text-decoration:none}
.privacy-rights-copy{display:grid;gap:9px}
.privacy-legal-note{font-size:13px}
@media(max-width:800px){.privacy-card-grid{grid-template-columns:1fr}.privacy-rights{grid-template-columns:1fr}.privacy-rights .btn{justify-self:start}}
.protection-admin-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:20px;margin:24px 0}
.protection-settings-card,.protection-principles{max-width:none}
.protection-settings-card>p,.protection-principles>p{color:var(--text-dim)}
.protection-settings-form{display:grid;gap:14px;margin-top:22px}
.protection-settings-form>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.42fr);gap:3px 18px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025)}
.protection-settings-form label>span{font-weight:800}
.protection-settings-form label>small{color:var(--text-dim);line-height:1.45}
.unit-input{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:9px}
.unit-input input{min-width:0}
.unit-input b{color:var(--text-dim);font-size:12px;white-space:nowrap}
.protection-threshold-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.protection-threshold-row label{display:grid;gap:8px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:14px}
.protection-principle-list{display:grid;gap:12px;margin-top:20px}
.protection-principle-list>div{display:flex;gap:12px;padding:14px;border-radius:14px;background:rgba(255,255,255,.03)}
.protection-principle-list i{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;color:#8ee0b2;background:rgba(71,181,119,.12);font-style:normal;font-weight:900}
.protection-principle-list p{margin:0;color:var(--text-dim);line-height:1.5}.protection-principle-list strong{display:block;color:var(--text);margin-bottom:3px}
.risk-chip{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}.risk-low{color:#85d9aa;background:rgba(74,181,119,.12)}.risk-review{color:#f0c568;background:rgba(224,167,50,.13)}.risk-high{color:#ff8e98;background:rgba(226,77,90,.13)}
.protection-table-wrap{overflow:auto}.protection-table td{vertical-align:middle}
@media(max-width:900px){.protection-admin-grid{grid-template-columns:1fr}.protection-settings-form>label{grid-template-columns:1fr}.unit-input{grid-column:1;grid-row:auto}.protection-threshold-row{grid-template-columns:1fr}}
.license-protection-panel{border-color:rgba(224,167,50,.25)}
.protection-license-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(340px,1.3fr);gap:18px;margin-top:18px}
.protection-license-grid>div{padding:17px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.025)}
.protection-license-grid h3{margin:0 0 10px}.protection-license-grid ul{margin:0;padding-left:20px;color:var(--text-dim)}
.inline-protection-form{display:grid;gap:10px;margin:14px 0}.inline-protection-form label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-dim)}.inline-protection-form label span{display:flex;align-items:center;gap:7px}.inline-protection-form input{width:90px}
.device-event-timeline{display:grid;gap:10px;margin-top:18px}.device-event-timeline article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.075);border-radius:14px;background:rgba(255,255,255,.02)}.device-event-timeline .event-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(225,170,67,.1)}.device-event-timeline strong,.device-event-timeline span,.device-event-timeline small{display:block}.device-event-timeline span,.device-event-timeline small{margin-top:3px;color:var(--text-dim);font-size:12px}.device-event-timeline article>b{color:var(--text-dim);font-size:11px;font-weight:800}
@media(max-width:850px){.protection-license-grid{grid-template-columns:1fr}.device-event-timeline article{grid-template-columns:auto 1fr}.device-event-timeline article>b{grid-column:2}}

/* License workspace */
.license-page{max-width:1320px;padding-top:28px;padding-bottom:70px;scroll-behavior:smooth}
.license-back{margin-bottom:16px}
.license-hero{align-items:center;min-height:150px;margin-bottom:16px;padding:26px 28px;border:1px solid var(--border);border-radius:18px;background:radial-gradient(circle at 8% 12%,rgba(232,163,61,.14),transparent 38%),linear-gradient(145deg,rgba(33,36,47,.92),rgba(20,22,29,.92));overflow:hidden}
.license-hero h1{max-width:850px;overflow-wrap:anywhere}
.license-hero-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--text-dim);font-size:12px}
.license-hero-meta code{display:inline-flex;max-width:100%;padding:5px 9px;border:1px solid rgba(255,255,255,.07);border-radius:8px;background:rgba(8,11,17,.34);color:#939bad;font-size:10px;overflow-wrap:anywhere}
.license-status{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px}
.license-status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(76,175,125,.09)}
.license-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}
.license-stats .stat-card{display:flex;align-items:center;gap:12px;min-width:0;min-height:92px;padding:16px;border-radius:14px;background:linear-gradient(145deg,rgba(33,36,47,.88),rgba(24,27,35,.9))}
.license-stat-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid rgba(232,163,61,.23);border-radius:10px;background:rgba(232,163,61,.075);color:var(--accent);font-weight:800}
.license-stats .stat-label{margin:0 0 4px;font-size:10px;text-transform:uppercase;letter-spacing:.055em}
.license-stats .stat-value{font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.license-stats .stat-value small{color:var(--text-dim);font-size:11px;font-weight:650}
.license-section-nav{position:sticky;top:8px;z-index:8;display:flex;align-items:center;gap:6px;margin-bottom:18px;padding:7px;border:1px solid var(--border);border-radius:13px;background:rgba(24,27,35,.94);box-shadow:0 12px 34px rgba(0,0,0,.22);backdrop-filter:blur(16px)}
.license-section-nav a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 14px;border:1px solid transparent;border-radius:8px;color:var(--text-dim);font-size:11px;font-weight:700;white-space:nowrap}
.license-section-nav a:hover{border-color:var(--border);background:var(--surface-raised);color:var(--text);text-decoration:none}
.license-section-nav span{padding:1px 6px;border-radius:999px;background:var(--bg);font-size:9px}
.license-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr);gap:18px;align-items:start;margin-bottom:18px}
.license-layout>.panel{width:100%;max-width:none;margin:0;padding:26px;border-radius:16px}
.license-page .panel-heading{padding-bottom:18px;margin-bottom:4px;border-bottom:1px solid var(--border)}
.license-page .panel-heading h2{margin:2px 0 3px;font-size:21px}
.license-page .panel-heading p{margin:0;color:var(--text-dim);font-size:12px}
.license-page .detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:26px}
.license-page .detail-list>div{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);gap:16px;align-items:start;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.055)}
.license-page .detail-list>div:nth-last-child(-n+2){border-bottom:0}
.license-page .detail-list span{color:var(--text-dim);font-size:11px}
.license-page .detail-list strong{min-width:0;color:var(--text);font-size:12px;font-weight:650;text-align:right;overflow-wrap:anywhere}
.license-page .detail-list a:hover{text-decoration:none;color:#fff}
.action-stack{display:grid;gap:10px;margin-top:14px}
.license-action-card{display:grid;gap:12px;margin:0;padding:14px;border:1px solid rgba(255,255,255,.075);border-radius:13px;background:rgba(255,255,255,.022)}
.license-action-card>div:first-of-type strong,.license-action-card>div:first-of-type small,.license-danger-zone strong,.license-danger-zone small{display:block}
.license-action-card>div:first-of-type strong,.license-danger-zone strong{font-size:12px}
.license-action-card>div:first-of-type small,.license-danger-zone small{margin-top:3px;color:var(--text-dim);font-size:10px;line-height:1.45}
.license-action-card label{margin:0;color:var(--text-dim);font-size:10px;font-weight:650}
.license-action-card label span{display:block;margin-bottom:5px}
.license-action-card input,.license-action-card select{min-width:0;margin:0;border-radius:9px}
.license-action-card button{justify-self:start;min-height:36px;padding:8px 13px;font-size:11px;border-radius:9px}
.provider-locked-card{border-color:rgba(232,163,61,.2);background:rgba(232,163,61,.035)}.provider-locked-card .btn{justify-self:start;min-height:36px;padding:8px 13px;border-radius:9px;font-size:11px}
.license-inline-fields{display:grid!important;grid-template-columns:110px minmax(0,1fr);gap:9px}
.license-action-compact{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.license-action-compact button{justify-self:end}
.license-provider-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.license-provider-controls select{width:100%}
.license-provider-controls button{white-space:nowrap}
.license-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 0 0;padding:14px;border:1px solid rgba(229,99,111,.25);border-radius:13px;background:rgba(229,99,111,.035)}
.license-danger-zone button{flex:0 0 auto;min-height:36px;padding:8px 13px;font-size:11px;border-radius:9px}
.license-subscription-panel{border-color:rgba(151,105,255,.24);background:radial-gradient(circle at 96% 0,rgba(151,105,255,.08),transparent 28%),var(--surface)}
.subscription-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.subscription-facts>div{min-width:0;padding:15px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.02)}
.subscription-facts span,.subscription-facts strong{display:block}
.subscription-facts span{margin-bottom:5px;color:var(--text-dim);font-size:10px;text-transform:uppercase;letter-spacing:.045em}
.subscription-facts strong{font-size:13px;overflow-wrap:anywhere}
.success-copy{color:#8de0b5!important}.danger-text{color:#ff9ca6!important}
.gumroad-license-control{border-color:rgba(78,165,255,.2);background:radial-gradient(circle at 96% 0,rgba(78,165,255,.07),transparent 29%),var(--surface)}
.provider-connected-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(76,175,125,.24);border-radius:999px;background:rgba(76,175,125,.065);color:#91ddb5;font-size:10px;font-weight:750;white-space:nowrap}
.provider-connected-badge i{width:7px;height:7px;border-radius:50%;background:#69d99f;box-shadow:0 0 0 4px rgba(105,217,159,.08)}
.gumroad-control-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.gumroad-control-summary>div{min-width:0;padding:15px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.018)}
.gumroad-control-summary span,.gumroad-control-summary strong,.gumroad-control-summary small{display:block}
.gumroad-control-summary span{margin-bottom:5px;color:var(--text-dim);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}
.gumroad-control-summary strong{font-size:13px;overflow-wrap:anywhere}.gumroad-control-summary small{margin-top:5px;color:var(--text-dim);font-size:9px;line-height:1.45}
.gumroad-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gumroad-action-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;margin:0;padding:16px;border:1px solid rgba(255,255,255,.075);border-radius:14px;background:rgba(255,255,255,.02)}
.gumroad-action-card.is-danger{border-color:rgba(229,99,111,.17);background:linear-gradient(145deg,rgba(229,99,111,.035),rgba(255,255,255,.016))}
.gumroad-action-card.is-success{border-color:rgba(76,175,125,.16);background:linear-gradient(145deg,rgba(76,175,125,.03),rgba(255,255,255,.016))}
.gumroad-action-icon{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(255,255,255,.035);color:var(--accent);font-size:16px;font-weight:850}
.gumroad-action-card.is-danger .gumroad-action-icon{color:#ff9ca6;border-color:rgba(229,99,111,.2);background:rgba(229,99,111,.055)}
.gumroad-action-card.is-success .gumroad-action-icon{color:#8de0b5;border-color:rgba(76,175,125,.2);background:rgba(76,175,125,.05)}
.gumroad-action-card h3{margin:1px 0 5px;font-size:13px}.gumroad-action-card p{margin:0;color:var(--text-dim);font-size:10px;line-height:1.55}
.gumroad-action-card label{grid-column:1/-1;margin:2px 0 0;color:var(--text-dim);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.gumroad-action-card input{width:100%;margin:6px 0 0;border-radius:9px;text-transform:none;letter-spacing:normal}
.gumroad-action-card button{grid-column:1/-1;justify-self:start;min-height:36px;padding:8px 13px;border-radius:9px;font-size:11px}
.gumroad-advanced-actions{margin-top:12px;border:1px solid var(--border);border-radius:13px;background:rgba(8,11,17,.16);overflow:hidden}
.gumroad-advanced-actions>summary{cursor:pointer;list-style:none;padding:13px 15px;color:var(--text-dim);font-size:11px;font-weight:750}.gumroad-advanced-actions>summary::-webkit-details-marker{display:none}.gumroad-advanced-actions>summary::after{content:'+';float:right;color:var(--accent);font-size:16px}.gumroad-advanced-actions[open]>summary::after{content:'−'}
.gumroad-advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 12px 12px}
.gumroad-advanced-grid form{display:grid;align-content:start;gap:10px;margin:0;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.018)}
.gumroad-advanced-grid strong,.gumroad-advanced-grid small{display:block}.gumroad-advanced-grid strong{font-size:12px}.gumroad-advanced-grid small{margin-top:4px;color:var(--text-dim);font-size:9px;line-height:1.5}
.gumroad-advanced-grid label{color:var(--text-dim);font-size:9px;font-weight:700}.gumroad-advanced-grid input{width:100%;margin:5px 0 0;border-radius:9px}.gumroad-advanced-grid button{justify-self:start;min-height:34px;padding:7px 11px;border-radius:9px;font-size:10px}
.gumroad-advanced-grid .refund-action{border-color:rgba(229,99,111,.22);background:rgba(229,99,111,.035)}
.license-page .protection-license-grid>div{background:rgba(255,255,255,.018)}
.license-page .inline-protection-form input{margin:0}
.license-computers-panel .section-heading{align-items:center}
.active-device-list{display:grid;gap:10px}
.license-device-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid rgba(76,175,125,.22);border-radius:14px;background:linear-gradient(145deg,rgba(76,175,125,.055),rgba(255,255,255,.018))}
.device-platform-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.035);color:#c8ced9;font-size:18px;font-weight:800}
.device-platform-icon.is-windows{color:#76b9ed;border-color:rgba(118,185,237,.25);background:rgba(118,185,237,.07)}
.license-device-copy{min-width:0}.license-device-copy .device-name{display:flex;align-items:center;gap:8px;font-weight:750}.license-device-copy .device-meta{margin-top:5px;line-height:1.55}
.device-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.device-actions form{display:flex;align-items:center;gap:7px;margin:0}
.device-actions input{width:180px;min-width:0;margin:0;border-radius:9px}
.device-actions button{min-height:36px;padding:8px 12px;border-radius:9px;font-size:11px;white-space:nowrap}
.archived-devices,.older-events{margin-top:14px;border:1px solid var(--border);border-radius:13px;background:rgba(8,11,17,.16);overflow:hidden}
.archived-devices>summary,.older-events>summary{cursor:pointer;list-style:none;padding:13px 15px;color:var(--text-dim);font-size:11px;font-weight:750}
.archived-devices>summary::-webkit-details-marker,.older-events>summary::-webkit-details-marker{display:none}
.archived-devices>summary::after,.older-events>summary::after{content:'+';float:right;color:var(--accent);font-size:16px;line-height:1}
.archived-devices[open]>summary::after,.older-events[open]>summary::after{content:'−'}
.archived-devices summary span{display:inline-flex;margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--surface-raised);font-size:9px}
.archived-device-list{padding:0 15px 10px}
.archived-device-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid rgba(255,255,255,.055)}
.archived-device-row strong,.archived-device-row div>span{display:block}.archived-device-row strong{font-size:12px}.archived-device-row div>span{margin-top:2px;color:var(--text-dim);font-size:10px}
.archived-device-row form{margin:0}.archived-device-row button{min-height:32px;padding:6px 10px;font-size:10px}
.history-count{padding:5px 9px;border-radius:999px;background:var(--surface-raised);color:var(--text-dim);font-size:10px;font-weight:750;white-space:nowrap}
.license-history-panel .device-event-timeline{margin-top:0}
.license-history-panel .device-event-timeline article{background:rgba(255,255,255,.016)}
.older-events{margin-top:12px}.older-events .device-event-timeline{padding:0 12px 12px}
@media(max-width:1100px){.license-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.license-layout{grid-template-columns:1fr}.license-actions-panel{order:2}.subscription-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.gumroad-advanced-grid{grid-template-columns:1fr}.license-device-card{grid-template-columns:auto minmax(0,1fr)}.license-device-card .device-actions{grid-column:1/-1;justify-content:flex-start;padding-left:56px}}
@media(max-width:760px){.license-page{padding-inline:14px}.license-hero{align-items:flex-start;flex-direction:column;padding:22px}.license-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.license-section-nav{position:static;overflow-x:auto;justify-content:flex-start}.license-page .detail-list{grid-template-columns:1fr}.license-page .detail-list>div:nth-last-child(2){border-bottom:1px solid rgba(255,255,255,.055)}.protection-license-grid,.subscription-facts,.gumroad-control-summary,.gumroad-action-grid{grid-template-columns:1fr}.license-device-card{grid-template-columns:auto minmax(0,1fr)}.license-device-card .device-actions{padding-left:0}.device-actions,.device-actions form{width:100%}.device-actions input{width:100%;flex:1}.archived-device-row{grid-template-columns:minmax(0,1fr) auto}.archived-device-row form{grid-column:1/-1}.license-danger-zone{align-items:flex-start;flex-direction:column}}
@media(max-width:500px){.license-stats{grid-template-columns:1fr}.license-page .detail-list>div{grid-template-columns:1fr;gap:4px}.license-page .detail-list strong{text-align:left}.license-inline-fields,.license-provider-controls,.license-action-compact{grid-template-columns:1fr!important}.license-action-compact button{justify-self:start}.license-device-card{grid-template-columns:1fr}.device-platform-icon{display:none}.license-device-card .device-actions{grid-column:auto}.device-actions form{align-items:stretch;flex-direction:column}.device-actions button{width:100%}.section-heading{align-items:flex-start}.device-event-timeline article{grid-template-columns:auto minmax(0,1fr)}.device-event-timeline article>b{grid-column:2}}
.customer-page .customer-account-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #91ddb5;
  border: 1px solid rgba(76,175,125,.24);
  border-radius: 999px;
  background: rgba(76,175,125,.065);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.customer-page .customer-account-check i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #69d99f;
}
.customer-page .customer-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}
.customer-page .customer-intro h1 {
  max-width: 680px;
  margin: 8px auto 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.customer-page .customer-intro > p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.customer-page .trust-row { margin-top: 20px; }
.customer-page .trust-row span { display: inline-flex; align-items: center; }
.customer-page .lookup-card {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  border-color: rgba(255,255,255,.095);
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(0,0,0,.34);
}
.customer-page .lookup-card-copy,
.customer-page .lookup-form {
  min-width: 0;
  max-width: 100%;
  padding: 42px;
}
.customer-page .lookup-card-copy {
  background:
    radial-gradient(circle at 20% 4%, rgba(232,163,61,.18), transparent 17rem),
    linear-gradient(145deg, rgba(232,163,61,.105), rgba(255,255,255,.012));
}
.customer-page .lookup-card-copy h2 { font-size: 28px; letter-spacing: -.025em; }
.customer-page .lookup-card-copy p { line-height: 1.7; }
.customer-page .lookup-help-list {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}
.customer-page .lookup-help-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
}
.customer-page .lookup-help-list b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: #171108;
  background: var(--accent);
  border-radius: 50%;
  font-size: 10px;
}
.customer-page .lookup-form label { margin-top: 15px; }
.customer-page .lookup-form label:first-of-type { margin-top: 0; }
.customer-page .lookup-form input,
.customer-page .lookup-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin-bottom: 3px;
  border-radius: 11px;
}
.customer-page .lookup-submit {
  min-height: 48px;
  margin-top: 22px;
  border-radius: 11px;
}
.customer-page .lookup-submit:disabled { cursor: wait; opacity: .78; }
.customer-page .button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(17,13,6,.3);
  border-top-color: #171108;
  border-radius: 50%;
  animation: customer-spin .7s linear infinite;
}
.customer-page .customer-message {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(229,99,111,.42);
  border-radius: 11px;
  color: #ffc5ca;
  background: rgba(229,99,111,.09);
  font-size: 12px;
  line-height: 1.55;
}
.customer-page .customer-product-hero {
  padding: 27px 29px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232,163,61,.095), rgba(23,25,32,.96) 48%);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.customer-page .customer-product-hero h1 {
  max-width: 720px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.16;
}
.customer-page .customer-product-hero p {
  max-width: 700px;
  margin-top: 8px;
  line-height: 1.6;
}
.customer-page .customer-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.customer-page .verified-seal { white-space: nowrap; }
.customer-page .verified-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #69d99f;
  box-shadow: 0 0 0 0 rgba(105,217,159,.55);
  animation: verified-pulse 2s ease-out infinite;
}
.customer-page .customer-summary-grid { gap: 14px; margin: 16px 0; }
.customer-page .customer-summary-card {
  position: relative;
  min-height: 88px;
  padding: 18px 19px;
  overflow: hidden;
  border-color: rgba(255,255,255,.08);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(29,32,40,.98), rgba(19,21,27,.98));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.customer-page .customer-summary-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: '';
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: .55;
}
.customer-page .customer-summary-card span { margin-bottom: 8px; font-size: 10px; }
.customer-page .customer-summary-card strong { font-size: 14px; }
.customer-page .entitlement-explainer {
  margin: 0 0 18px;
  padding: 17px 20px;
  border-radius: 13px;
}
.customer-page .customer-dates-panel {
  margin-bottom: 18px;
  padding: 23px 25px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(27,30,38,.98), rgba(18,20,26,.98));
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.customer-page .customer-dates-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.customer-page .customer-dates-heading h2 { margin: 5px 0 0; font-size: 19px; }
.customer-page .customer-dates-heading > p { margin: 0; color: var(--text-dim); font-size: 11px; }
.customer-page .customer-dates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 11px;
}
.customer-page .customer-dates-grid.is-one-time { grid-template-columns: repeat(2, minmax(0,1fr)); }
.customer-page .customer-date-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  min-height: 94px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.customer-page .customer-date-item[hidden] { display: none !important; }
.customer-page .customer-date-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  border: 1px solid rgba(232,163,61,.28);
  border-radius: 9px;
  background: rgba(232,163,61,.075);
  font-size: 12px;
  font-style: normal;
}
.customer-page .customer-date-item small,
.customer-page .customer-date-item strong,
.customer-page .customer-date-item em { display: block; }
.customer-page .customer-date-item small { color: var(--text-dim); font-size: 9px; }
.customer-page .customer-date-item strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.customer-page .customer-date-item em {
  margin-top: 5px;
  color: #757c8a;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}
.customer-page .customer-content-grid { gap: 18px; margin-top: 18px; }
.customer-page .customer-devices-panel,
.customer-page .purchase-panel {
  padding: 26px;
  border-color: rgba(255,255,255,.085);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
}
.customer-page .customer-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}
.customer-page .customer-panel-heading h2 { margin-top: 5px; }
.customer-page .customer-panel-heading p {
  max-width: 570px;
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
}
.customer-page .device-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  white-space: nowrap;
}
.customer-page .customer-device-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.customer-page .customer-device-card + .customer-device-card { margin-top: 10px; }
.customer-page .customer-device-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #eff2f8;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #323744, #20232c);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.2);
}
.customer-page .customer-device-icon.is-windows { color: #93c7ff; background: linear-gradient(145deg, rgba(48,119,203,.32), rgba(23,41,66,.8)); }
.customer-page .customer-device-icon.is-other { color: #b8c0cf; }
.customer-page .customer-device-icon svg { width: 25px; height: 25px; fill: currentColor; }
.customer-page .customer-device-copy { min-width: 0; }
.customer-page .customer-device-copy strong,
.customer-page .customer-device-copy span { display: block; }
.customer-page .customer-device-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-page .customer-device-platform {
  margin-top: 3px;
  color: #c2c8d3;
  font-size: 11px;
}
.customer-page .customer-device-last-used {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 10px;
}
.customer-page .customer-device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-page .customer-device-actions button { min-height: 36px; border-radius: 9px; }
.customer-page .device-help { margin-bottom: 0; line-height: 1.55; }
.customer-page .purchase-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0, rgba(232,163,61,.13), transparent 12rem),
    var(--surface);
}
.customer-page .purchase-panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--accent);
  border: 1px solid rgba(232,163,61,.35);
  border-radius: 12px;
  background: rgba(232,163,61,.09);
  font-size: 19px;
}
.customer-page .purchase-panel h2 { margin: 7px 0 10px; line-height: 1.35; }
.customer-page .purchase-panel > p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.65;
}
.customer-page .purchase-link-button,
.customer-page .customer-switch-license {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
}
.customer-page .customer-switch-license { justify-content: center; margin-top: 9px; }
.customer-page .customer-empty { border-radius: 13px; }
.customer-page .customer-foot { color: #747b89; }

/* Unified customer account — products, purchases and subscriptions. */
.customer-page .customer-hub-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 16px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(232,163,61,.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(232,163,61,.17), transparent 26rem),
    linear-gradient(145deg, rgba(31,34,43,.98), rgba(17,19,25,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.customer-page .customer-hub-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.customer-page .customer-hub-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.65;
}
.customer-page .customer-hub-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}
.customer-page .customer-hub-actions button {
  min-height: 41px;
  padding: 9px 15px;
  border-radius: 10px;
  white-space: nowrap;
}
.customer-page .customer-hub-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.customer-page .customer-hub-summary article {
  position: relative;
  min-width: 0;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(29,32,40,.96), rgba(19,21,27,.96));
}
.customer-page .customer-hub-summary article::after {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 74px;
  height: 74px;
  content: '';
  border: 1px solid rgba(232,163,61,.1);
  border-radius: 50%;
}
.customer-page .customer-hub-summary span,
.customer-page .customer-hub-summary strong { display: block; }
.customer-page .customer-hub-summary span {
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .02em;
}
.customer-page .customer-hub-summary strong {
  margin-top: 5px;
  color: #f2f3f5;
  font-size: 22px;
  letter-spacing: -.03em;
}
.customer-page .customer-library-panel {
  max-width: none;
  margin-bottom: 18px;
  padding: 25px;
  border-radius: 18px;
}
.customer-page .customer-product-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.customer-page .customer-library-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto 38px;
  grid-template-areas:
    'icon copy meta pin'
    'icon copy action pin';
  align-items: center;
  gap: 7px 12px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.customer-page .customer-library-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: '';
  background: #7a8496;
}
.customer-page .customer-library-card.is-ready::before { background: #62cf96; }
.customer-page .customer-library-card.is-warning::before { background: #e8a33d; }
.customer-page .customer-library-card.is-attention::before { background: #e5636f; }
.customer-page .customer-library-card:hover {
  border-color: rgba(232,163,61,.26);
  background: rgba(255,255,255,.035);
  transform: translateY(-1px);
}
.customer-page .customer-library-card.is-selected {
  border-color: rgba(232,163,61,.48);
  background: linear-gradient(145deg, rgba(232,163,61,.075), rgba(255,255,255,.025));
  box-shadow: 0 13px 30px rgba(0,0,0,.16), inset 0 0 0 1px rgba(232,163,61,.06);
}
.customer-page .customer-library-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #f2b65d;
  border: 1px solid rgba(232,163,61,.24);
  border-radius: 12px;
  background: rgba(232,163,61,.075);
  font-size: 16px;
  font-weight: 800;
}
.customer-page .customer-library-copy { grid-area: copy; min-width: 0; }
.customer-page .customer-library-status {
  display: inline-flex;
  margin-bottom: 5px;
  color: #82d9aa;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.customer-page .is-warning .customer-library-status { color: #efb965; }
.customer-page .is-attention .customer-library-status { color: #ef8f98; }
.customer-page .customer-library-copy h3 {
  margin: 0;
  overflow: hidden;
  color: #e8eaf0;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-page .customer-library-copy p {
  margin: 3px 0 0;
  color: var(--text-dim);
  font-size: 9px;
}
.customer-page .customer-library-meta {
  grid-area: meta;
  min-width: 58px;
  text-align: right;
}
.customer-page .customer-library-meta strong,
.customer-page .customer-library-meta span { display: block; }
.customer-page .customer-library-meta strong { color: #d9dce3; font-size: 11px; }
.customer-page .customer-library-meta span { margin-top: 2px; color: var(--text-dim); font-size: 8px; }
.customer-page .customer-manage-purchase {
  grid-area: action;
  justify-self: end;
  min-height: 29px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 9px;
}
.customer-page .customer-add-purchase-dialog { width: min(100%, 520px); }
.customer-page .customer-add-purchase-form { margin-top: 20px; }
.customer-page .customer-add-purchase-form label {
  display: block;
  margin: 13px 0 7px;
  color: #a9afbb;
  font-size: 10px;
  font-weight: 650;
}
.customer-page .customer-add-purchase-form input,
.customer-page .customer-add-purchase-form select {
  width: 100%;
  min-height: 45px;
  margin: 0;
  border-radius: 10px;
}
.customer-page .customer-add-purchase-form .confirm-actions { margin-top: 21px; }

/* In-page dialogs replace technical browser prompts and alerts. */
.customer-modal-backdrop[hidden],
.customer-toast[hidden] { display: none !important; }
.customer-modal-backdrop {
  animation: customer-fade-in .16s ease-out;
}
.customer-confirm-dialog {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 35px 110px rgba(0,0,0,.66);
  animation: customer-dialog-in .22s cubic-bezier(.2,.8,.2,1);
}
.customer-confirm-dialog::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: '';
  background: linear-gradient(90deg, var(--accent), transparent 74%);
}
.customer-confirm-dialog .confirm-icon {
  color: var(--accent);
  background: rgba(232,163,61,.09);
  border-color: rgba(232,163,61,.4);
  border-radius: 13px;
}
.customer-modal-backdrop.is-danger .confirm-icon {
  color: #ffabb3;
  background: var(--danger-soft);
  border-color: rgba(229,99,111,.48);
}
.customer-confirm-dialog .confirm-device {
  padding-left: 42px;
  background:
    radial-gradient(circle at 23px 50%, #9ba3b3 0 3px, transparent 4px),
    rgba(18,20,26,.72);
  border-radius: 11px;
}
.customer-dialog-input {
  display: block;
  margin-top: 19px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}
.customer-dialog-input[hidden] { display: none !important; }
.customer-dialog-input input {
  width: 100%;
  min-height: 46px;
  margin: 8px 0 0;
  border-radius: 11px;
}
.customer-dialog-input small {
  display: block;
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}
.customer-dialog-error {
  margin-top: 12px;
  padding: 10px 12px;
  color: #ffc5ca;
  background: rgba(229,99,111,.09);
  border: 1px solid rgba(229,99,111,.38);
  border-radius: 9px;
  font-size: 11px;
}
.customer-dialog-open { overflow: hidden; }
.customer-toast {
  position: fixed;
  z-index: 120;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100vw - 32px), 390px);
  padding: 14px 16px;
  color: var(--text);
  background: rgba(24,28,34,.96);
  border: 1px solid rgba(76,175,125,.42);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  animation: customer-toast-in .25s cubic-bezier(.2,.8,.2,1);
}
.customer-toast-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #a8eac8;
  background: rgba(76,175,125,.14);
  border-radius: 9px;
  font-weight: 800;
}
.customer-toast strong,
.customer-toast small { display: block; }
.customer-toast strong { font-size: 12px; }
.customer-toast small { margin-top: 3px; color: var(--text-dim); font-size: 10px; line-height: 1.4; }

@keyframes customer-spin { to { transform: rotate(360deg); } }
@keyframes verified-pulse {
  0% { box-shadow: 0 0 0 0 rgba(105,217,159,.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(105,217,159,0); }
}
@keyframes customer-fade-in { from { opacity: 0; } }
@keyframes customer-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes customer-toast-in { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 880px) {
  .customer-page .customer-hub-hero { align-items: flex-start; flex-direction: column; }
  .customer-page .customer-hub-actions { justify-content: flex-start; }
  .customer-page .customer-product-library { grid-template-columns: 1fr; }
  .customer-page .customer-product-hero { align-items: flex-start; flex-direction: column; }
  .customer-page .customer-hero-actions { justify-content: flex-start; }
  .customer-page .customer-content-grid { grid-template-columns: 1fr; }
  .customer-page .customer-dates-grid { grid-template-columns: 1fr 1fr; }
  .customer-page .customer-dates-grid.is-one-time { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.customer-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .customer-page .page,
  .customer-page .customer-main,
  .customer-page .customer-entry,
  .customer-page .customer-workspace,
  .customer-page .customer-intro,
  .customer-page .lookup-card {
    min-width: 0;
    max-width: 100%;
  }
  .customer-page .lookup-card { grid-template-columns: minmax(0, 1fr); }
  .customer-page .lookup-card-copy {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .customer-page .customer-main { padding: 38px 15px 54px; }
  .customer-page .customer-topbar { padding: 15px; }
  .customer-page .customer-admin-link { min-height: 34px; padding-inline: 11px; }
  .customer-page .customer-account-check { display: none; }
  .customer-page .customer-hub-hero { padding: 23px; }
  .customer-page .customer-hub-actions,
  .customer-page .customer-hub-actions button { width: 100%; }
  .customer-page .customer-hub-actions { align-items: stretch; flex-direction: column; }
  .customer-page .customer-hub-summary { grid-template-columns: 1fr 1fr; }
  .customer-page .customer-library-panel { padding: 20px; }
  .customer-page .customer-intro { margin-bottom: 25px; }
  .customer-page .customer-intro h1,
  .customer-page .customer-intro > p { overflow-wrap: anywhere; }
  .customer-page .trust-row { gap: 11px 18px; }
  .customer-page .lookup-card-copy,
  .customer-page .lookup-form { padding: 28px 24px; }
  .customer-page .customer-product-hero,
  .customer-page .customer-devices-panel,
  .customer-page .purchase-panel { padding: 21px; }
  .customer-page .customer-hero-actions,
  .customer-page .customer-hero-actions button { width: 100%; }
  .customer-page .customer-summary-grid { grid-template-columns: 1fr 1fr; }
  .customer-page .customer-summary-card { min-height: 82px; }
  .customer-page .customer-panel-heading { flex-direction: column; gap: 10px; }
  .customer-page .customer-dates-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .customer-page .customer-dates-grid { grid-template-columns: 1fr; }
  .customer-page .customer-device-card { grid-template-columns: auto minmax(0,1fr); }
  .customer-page .customer-device-actions { grid-column: 1 / -1; }
  .customer-page .customer-device-actions button { flex: 1; }
  .customer-toast { top: 14px; right: 16px; }
}
@media (max-width: 420px) {
  .customer-page .brand span { display: inline; }
  .customer-page .customer-summary-grid { grid-template-columns: 1fr; }
  .customer-page .customer-hub-summary { grid-template-columns: 1fr 1fr; }
  .customer-page .customer-library-card {
    grid-template-columns: auto minmax(0,1fr) 38px;
    grid-template-areas:
      'icon copy pin'
      'meta action pin';
  }
  .customer-page .customer-library-meta { text-align: left; }
  .customer-page .customer-manage-purchase { justify-self: end; }
  .customer-page .customer-summary-card { min-height: 76px; }
  .customer-page .customer-device-icon { width: 46px; height: 46px; }
  .customer-page .customer-device-icon svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-page *,
  .customer-modal-backdrop,
  .customer-confirm-dialog,
  .customer-toast { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Customer email-code resend ------------------------------------------- */
.customer-email-resend {
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(15, 23, 42, .34);
    text-align: center;
}
.customer-email-resend .btn-quiet {
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 999px;
    text-decoration: none;
}
.customer-email-resend .btn-quiet:not(:disabled):hover {
    text-decoration: none;
    border-color: rgba(96, 165, 250, .72);
    background: rgba(59, 130, 246, .14);
}
.customer-email-resend .btn-quiet:disabled {
    cursor: not-allowed;
    opacity: .56;
}
.customer-email-resend span {
    color: var(--muted, #94a3b8);
    font-size: .82rem;
    line-height: 1.45;
}
/* Administrator sign-in */
.admin-login-page {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(232,163,61,.095), transparent 29rem),
    radial-gradient(circle at 88% 82%, rgba(76,175,125,.055), transparent 27rem),
    #101218;
}
.admin-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .19;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.admin-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-login-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f0f1f4;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.admin-login-brand strong { color: #e8a33d; font-weight: 650; }
.admin-login-brand-mark {
  display: inline-flex;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232,163,61,.42);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(232,163,61,.2), rgba(232,163,61,.07));
  color: #ffc66e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.2);
  font-size: 14px;
  font-weight: 800;
}
.admin-login-connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8991a2;
  font-size: 11px;
}
.admin-login-connection > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59c98b;
  box-shadow: 0 0 0 4px rgba(89,201,139,.1), 0 0 18px rgba(89,201,139,.34);
}
.admin-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}
.admin-login-layout {
  width: min(100%, 1000px);
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: rgba(20,23,31,.88);
  box-shadow: 0 38px 100px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.admin-login-intro {
  min-width: 0;
  padding: 54px 54px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  border-right: 1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 18% 8%, rgba(232,163,61,.13), transparent 22rem),
    linear-gradient(145deg, rgba(37,40,51,.87), rgba(21,24,32,.68));
}
.admin-login-kicker, .admin-login-eyebrow {
  color: #d89a40;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.admin-login-intro h2 {
  max-width: 500px;
  margin: 14px 0 15px;
  color: #f3f4f6;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.admin-login-intro > div:first-child > p {
  max-width: 480px;
  margin: 0;
  color: #989faf;
  font-size: 14px;
  line-height: 1.75;
}
.admin-login-capabilities { display: grid; gap: 6px; }
.admin-login-capabilities > div {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.admin-login-capabilities > div:hover {
  border-color: rgba(232,163,61,.13);
  background: rgba(255,255,255,.025);
  transform: translateX(2px);
}
.admin-login-capability-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232,163,61,.18);
  border-radius: 11px;
  background: rgba(232,163,61,.075);
}
.admin-login-capability-icon svg { width: 17px; height: 17px; fill: #dfa24b; }
.admin-login-capabilities strong, .admin-login-capabilities small { display: block; }
.admin-login-capabilities strong { color: #dfe2e8; font-size: 12px; font-weight: 630; }
.admin-login-capabilities small { margin-top: 2px; color: #7f8798; font-size: 10px; line-height: 1.45; }
.admin-login-version {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737b8c;
  font-size: 10px;
}
.admin-login-version span {
  padding: 4px 7px;
  border: 1px solid rgba(76,175,125,.25);
  border-radius: 999px;
  color: #76c99c;
  background: rgba(76,175,125,.07);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
}
.admin-login-card {
  min-width: 0;
  padding: 54px 44px 42px;
  align-self: center;
}
.admin-login-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(232,163,61,.28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(232,163,61,.16), rgba(232,163,61,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.admin-login-card-icon svg { width: 19px; height: 19px; fill: #ecad50; }
.admin-login-card h1 {
  margin: 9px 0 5px;
  color: #f2f3f5;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.admin-login-lede { margin: 0 0 28px; color: #8d95a6; font-size: 12px; line-height: 1.6; }
.admin-login-alert {
  display: grid;
  grid-template-columns: 19px minmax(0,1fr);
  gap: 10px;
  margin: -7px 0 20px;
  padding: 12px 13px;
  border: 1px solid rgba(229,99,111,.32);
  border-radius: 11px;
  background: rgba(229,99,111,.085);
  outline: none;
  transition: opacity .18s ease, transform .18s ease, margin .18s ease, padding .18s ease, max-height .18s ease;
}
.admin-login-alert svg { width: 17px; height: 17px; margin-top: 1px; fill: #ef7d87; }
.admin-login-alert strong, .admin-login-alert span { display: block; }
.admin-login-alert strong { color: #f2a1a8; font-size: 11px; }
.admin-login-alert span { margin-top: 2px; color: #c78f96; font-size: 10px; line-height: 1.5; }
.admin-login-alert.is-dismissed { max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; transform: translateY(-4px); overflow: hidden; }
.admin-login-form { margin: 0; }
.admin-login-field { margin-bottom: 17px; }
.admin-login-field label { margin: 0 0 7px; color: #a7adba; font-size: 11px; font-weight: 580; }
.admin-login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-login-caps { margin-bottom: 7px; color: #e4a94f; font-size: 9px; }
.admin-login-input-wrap { position: relative; }
.admin-login-input-wrap > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  z-index: 1;
  fill: #697184;
  transform: translateY(-50%);
  pointer-events: none;
  transition: fill .17s ease;
}
.admin-login-input-wrap:focus-within > svg { fill: #d99b42; }
.admin-login-page .admin-login-input-wrap input {
  min-height: 48px;
  margin: 0;
  padding: 11px 14px 11px 42px;
  border: 1px solid #343947;
  border-radius: 11px;
  background: rgba(11,13,18,.68);
  color: #eef0f3;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .17s ease, box-shadow .17s ease, background .17s ease;
}
.admin-login-page .admin-login-input-wrap input:hover { border-color: #444a59; }
.admin-login-page .admin-login-input-wrap input:focus {
  border-color: rgba(232,163,61,.78);
  background: rgba(13,15,21,.92);
  box-shadow: 0 0 0 4px rgba(232,163,61,.095), inset 0 1px 0 rgba(255,255,255,.025);
}
.admin-login-password-wrap input { padding-right: 65px !important; }
.admin-login-password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  min-width: 49px;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8d95a6;
  font-size: 10px;
  font-weight: 650;
  transform: translateY(-50%);
}
.admin-login-password-toggle:hover { background: rgba(255,255,255,.055); color: #e5e7eb; }
.admin-login-password-toggle:focus-visible { outline: 2px solid rgba(232,163,61,.55); outline-offset: 1px; }
.admin-login-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 5px;
  justify-content: center;
  border: 1px solid #eba846;
  border-radius: 11px;
  background: linear-gradient(180deg, #efad4c, #df9630);
  color: #211704;
  box-shadow: 0 12px 28px rgba(232,163,61,.15), inset 0 1px 0 rgba(255,255,255,.28);
  font-size: 12px;
  font-weight: 750;
  transition: transform .17s ease, box-shadow .17s ease, filter .17s ease;
}
.admin-login-submit:hover { background: linear-gradient(180deg, #f4b65a, #e7a03d); box-shadow: 0 15px 34px rgba(232,163,61,.23), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.admin-login-submit:active { transform: translateY(0); }
.admin-login-submit:focus-visible { outline: 3px solid rgba(232,163,61,.25); outline-offset: 3px; }
.admin-login-submit > svg { width: 16px; height: 16px; margin-left: auto; fill: currentColor; }
.admin-login-submit:disabled { opacity: .78; cursor: wait; transform: none; }
.admin-login-spinner {
  display: none;
  width: 15px;
  height: 15px;
  margin-left: auto;
  border: 2px solid rgba(33,23,4,.28);
  border-top-color: #211704;
  border-radius: 50%;
  animation: admin-login-spin .75s linear infinite;
}
.admin-login-form.is-submitting .admin-login-spinner { display: inline-block; }
.admin-login-form.is-submitting .admin-login-submit > svg { display: none; }
@keyframes admin-login-spin { to { transform: rotate(360deg); } }
.admin-login-security-note {
  display: grid;
  grid-template-columns: 17px minmax(0,1fr);
  gap: 9px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #6f7788;
  font-size: 9px;
  line-height: 1.55;
}
.admin-login-security-note svg { width: 15px; height: 15px; fill: #758092; }
.admin-login-footer {
  padding: 3px 24px 22px;
  color: #5f6675;
  text-align: center;
  font-size: 9px;
  letter-spacing: .02em;
}
@media (max-width: 820px) {
  .admin-login-main { align-items: flex-start; padding-top: 36px; }
  .admin-login-layout { max-width: 480px; grid-template-columns: 1fr; }
  .admin-login-intro { padding: 34px 36px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.075); }
  .admin-login-intro h2 { max-width: 390px; font-size: 29px; }
  .admin-login-intro > div:first-child > p { font-size: 12px; }
  .admin-login-capabilities, .admin-login-version { display: none; }
  .admin-login-card { padding: 38px 36px 34px; }
}
@media (max-width: 520px) {
  .admin-login-header { width: calc(100% - 32px); min-height: 66px; }
  .admin-login-connection { font-size: 0; }
  .admin-login-main { padding: 24px 15px 36px; }
  .admin-login-layout { border-radius: 18px; }
  .admin-login-intro { padding: 28px 25px; }
  .admin-login-intro h2 { margin-bottom: 10px; font-size: 25px; }
  .admin-login-card { padding: 32px 25px 29px; }
  .admin-login-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-login-page *, .admin-login-page *::before, .admin-login-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Customer portal phase one: actionable status, billing and provider clarity. */
.customer-page .customer-demo-notice {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid rgba(232,163,61,.34);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(232,163,61,.12), rgba(28,25,20,.72));
}
.customer-page .customer-demo-notice[hidden] { display: none !important; }
.customer-page .customer-demo-notice-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232,163,61,.36);
  border-radius: 10px;
  color: #f0b65f;
  background: rgba(232,163,61,.1);
  font-weight: 800;
}
.customer-page .customer-demo-notice strong { display: block; color: #f0d3a7; font-size: 12px; }
.customer-page .customer-demo-notice p { margin: 4px 0 0; color: #a69a88; font-size: 10px; line-height: 1.5; }
.customer-page .customer-demo-notice button { min-height: 38px; border-radius: 9px; white-space: nowrap; }
.customer-page .customer-hub-summary { grid-template-columns: repeat(5,minmax(0,1fr)); }
.customer-page .customer-hub-summary .customer-summary-attention.has-attention {
  border-color: rgba(229,99,111,.36);
  background: linear-gradient(150deg, rgba(71,33,40,.7), rgba(24,21,27,.96));
}
.customer-page .customer-hub-summary .customer-summary-attention.has-attention strong { color: #ff9fa8; }
.customer-page .customer-attention-center { max-width: none; margin-bottom: 18px; padding: 24px; border-radius: 18px; }
.customer-page .customer-attention-list { display: grid; gap: 9px; }
.customer-page .customer-attention-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}
.customer-page .customer-attention-dot { width: 9px; height: 9px; border-radius: 50%; background: #68aee8; box-shadow: 0 0 0 5px rgba(104,174,232,.09); }
.customer-page .customer-attention-item.is-warning .customer-attention-dot { background: #e8a33d; box-shadow: 0 0 0 5px rgba(232,163,61,.1); }
.customer-page .customer-attention-item.is-danger .customer-attention-dot,
.customer-page .customer-attention-item.is-payment .customer-attention-dot { background: #e5636f; box-shadow: 0 0 0 5px rgba(229,99,111,.1); }
.customer-page .customer-attention-item strong { color: #e5e7ec; font-size: 11px; }
.customer-page .customer-attention-item p { margin: 3px 0 0; color: var(--text-dim); font-size: 10px; line-height: 1.5; }
.customer-page .customer-attention-item button { min-height: 34px; border-radius: 8px; white-space: nowrap; }
.customer-page .customer-provider-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: -7px 7px 15px auto;
  color: #8d95a4;
  font-size: 9px;
}
.customer-page .customer-provider-check > span { width: 7px; height: 7px; border-radius: 50%; background: #69d99f; box-shadow: 0 0 0 4px rgba(105,217,159,.08); }
.customer-page .customer-provider-check strong { color: #a9d9bf; font-size: 9px; }
.customer-page .customer-provider-check small { font-size: 9px; }
.customer-page .customer-dates-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.customer-page .customer-dates-grid.is-one-time { grid-template-columns: repeat(3,minmax(0,1fr)); }
.customer-page .customer-payment-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.customer-page .customer-payment-summary > div { min-width: 0; padding: 13px 15px; background: #181b22; }
.customer-page .customer-payment-summary small,
.customer-page .customer-payment-summary strong { display: block; }
.customer-page .customer-payment-summary small { color: var(--text-dim); font-size: 9px; }
.customer-page .customer-payment-summary strong { margin-top: 5px; overflow-wrap: anywhere; color: #dfe2e8; font-size: 11px; }
.customer-page .customer-help-panel {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: none;
  margin-top: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(76,175,125,.07), rgba(24,27,34,.98) 44%);
}
.customer-page .customer-help-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(76,175,125,.28); border-radius: 13px; color: #91d8b3; background: rgba(76,175,125,.08); font-size: 18px; font-weight: 750; }
.customer-page .customer-help-panel h2 { margin: 5px 0 6px; font-size: 18px; }
.customer-page .customer-help-panel p { margin: 0; color: var(--text-dim); font-size: 10px; line-height: 1.55; }
.customer-page .customer-help-actions { display: flex; align-items: center; gap: 8px; }
.customer-page .customer-help-actions a { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; text-decoration: none; white-space: nowrap; }

@media (max-width: 880px) {
  .customer-page .customer-hub-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .customer-page .customer-dates-grid,
  .customer-page .customer-dates-grid.is-one-time { grid-template-columns: 1fr 1fr; }
  .customer-page .customer-help-panel { grid-template-columns: auto minmax(0,1fr); }
  .customer-page .customer-help-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .customer-page .customer-demo-notice { grid-template-columns: auto minmax(0,1fr); }
  .customer-page .customer-demo-notice button { grid-column: 1 / -1; width: 100%; }
  .customer-page .customer-hub-summary { grid-template-columns: 1fr 1fr; }
  .customer-page .customer-attention-item { grid-template-columns: auto minmax(0,1fr); }
  .customer-page .customer-attention-item button { grid-column: 1 / -1; width: 100%; }
  .customer-page .customer-provider-check { align-items: flex-start; flex-wrap: wrap; margin-left: 0; }
  .customer-page .customer-dates-grid,
  .customer-page .customer-dates-grid.is-one-time,
  .customer-page .customer-payment-summary { grid-template-columns: 1fr; }
  .customer-page .customer-help-panel { grid-template-columns: 1fr; }
  .customer-page .customer-help-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
}

/* Customer commerce refinement: prominent offer, complete catalogue and readable cards. */
.customer-page .customer-special-offer-top {
  margin: 20px 0 26px;
  border-width: 1px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28), 0 0 0 1px color-mix(in srgb,var(--offer-a) 12%,transparent);
}
.customer-page .customer-special-offer-top .customer-offer-badge { font-size: 11px; }
.customer-page .customer-special-offer-top .customer-offer-copy > p { font-size: 13px; }
.customer-page .customer-special-offer-top .customer-offer-actions button { font-size: 12px; }
.customer-page .customer-discover {
  margin: 30px 0;
  padding: 30px;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.customer-page .customer-discover-heading { align-items: center; margin-bottom: 20px; }
.customer-page .customer-discover-heading h2 { margin: 5px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.customer-page .customer-discover-heading p { max-width: 720px; font-size: 13px; line-height: 1.55; }
.customer-page .customer-discover-heading a { min-height: 40px; padding: 9px 14px; border-radius: 10px; }
.customer-page .customer-discover-filters { gap: 9px; margin-bottom: 22px; }
.customer-page .customer-discover-filters button {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 720;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.customer-page .customer-discover-filters button:hover { transform: translateY(-1px); border-color: var(--discover-accent); }
.customer-page .customer-discover-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; }
.customer-page .customer-discover-card {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.customer-page .customer-discover-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb,var(--discover-accent) 62%,var(--discover-border));
  box-shadow: 0 18px 38px rgba(0,0,0,.2);
}
.customer-page .customer-discover-card.is-owned { border-color: color-mix(in srgb,#69d99f 48%,var(--discover-border)); }
.customer-page .customer-discover-owned {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(119,226,165,.28);
  border-radius: 999px;
  background: rgba(9,26,18,.9);
  color: #9ce5bb;
  font-size: 10px;
  font-weight: 760;
  box-shadow: 0 7px 18px rgba(0,0,0,.24);
}
[dir="rtl"] .customer-page .customer-discover-owned { right: auto; left: 12px; }
.customer-page .customer-discover-image { height: 154px; font-size: 42px; }
.customer-page .customer-discover-image img { padding: 16px; background: rgba(255,255,255,.035); }
.customer-page .customer-discover-card-body { padding: 18px; }
.customer-page .customer-discover-card-body > span { font-size: 10px; letter-spacing: .04em; }
.customer-page .customer-discover-card h3 { margin: 8px 0; font-size: 16px; }
.customer-page .customer-discover-card p { margin-bottom: 15px; font-size: 12px; line-height: 1.6; }
.customer-page .customer-discover-card-body > strong { font-size: 15px; }
.customer-page .customer-discover-card button { min-height: 41px; margin-top: 14px; border-radius: 10px; font-size: 11px; font-weight: 740; }
.discover-page .discover-full-grid { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.discover-page .customer-discover-image { height: 185px; }
.discover-page .customer-discover-card h3 { font-size: 17px; }
.discover-page .customer-discover-card p { font-size: 12px; }

/* Customer commerce administration: comfortable spacing and a clear editing flow. */
.commerce-admin { --commerce-card: rgba(18,21,29,.9); max-width: 1480px; padding-bottom: 100px; }
.commerce-admin .dashboard-hero { margin-bottom: 24px; }
.commerce-admin .dashboard-hero h1 { font-size: clamp(28px,3vw,42px); }
.commerce-admin .dashboard-hero .lede { max-width: 780px; font-size: 14px; line-height: 1.65; }
.commerce-admin .section-panel { margin-bottom: 24px; padding: 26px; border-radius: 18px; }
.commerce-admin .section-heading { align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.commerce-admin .section-heading h2 { margin: 5px 0 6px; font-size: 23px; }
.commerce-admin .section-heading h3 { font-size: 17px; }
.commerce-admin .section-heading p { max-width: 820px; margin: 0; font-size: 12px; line-height: 1.6; }
.commerce-admin .section-heading > a { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 9px; text-decoration: none; }
.commerce-admin .section-heading > a:hover { border-color: rgba(229,169,74,.45); background: rgba(229,169,74,.07); text-decoration: none; }
.commerce-admin label { color: var(--text-dim); font-size: 11px; font-weight: 670; line-height: 1.4; }
.commerce-admin input:not([type="checkbox"]):not([type="radio"]),
.commerce-admin select,
.commerce-admin textarea { min-height: 43px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; font-size: 12px; }
.commerce-admin textarea { min-height: 86px; resize: vertical; }
.commerce-admin input[type="datetime-local"] { color-scheme: dark; }
.commerce-admin label small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 10px; font-weight: 500; }
.commerce-admin button,
.commerce-admin .btn { min-height: 41px; padding: 9px 15px; border-radius: 10px; font-size: 11px; font-weight: 750; }
.commerce-kpis { margin-bottom: 24px; border-radius: 16px; }
.commerce-kpis article { min-height: 100px; padding: 20px; }
.commerce-kpis span { font-size: 10px; }
.commerce-kpis strong { margin-top: 8px; font-size: 26px; }
.commerce-kpis small { margin-top: 5px; font-size: 9px; }
.commerce-settings-form { grid-template-columns: minmax(260px,1fr) 240px minmax(260px,1fr); gap: 16px; }
.commerce-switch { min-height: 45px; padding: 12px 14px; border-radius: 11px; }
.commerce-switch input { width: 18px; height: 18px; }
.commerce-switch span { font-size: 11px; }
.commerce-catalog-note { min-height: 45px; padding: 10px 13px; border: 1px solid rgba(105,217,159,.2); border-radius: 11px; background: rgba(105,217,159,.045); }
.commerce-catalog-note strong,.commerce-catalog-note span { display: block; }
.commerce-catalog-note strong { color: #9ce5bb; font-size: 11px; }
.commerce-catalog-note span { margin-top: 3px; color: var(--text-dim); font-size: 9px; line-height: 1.4; }
.commerce-languages { gap: 14px; }
.commerce-languages fieldset { padding: 17px; border-radius: 13px; }
.commerce-languages legend { font-size: 10px; }

.commerce-product-images { overflow: hidden; }
.commerce-product-image-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.commerce-product-image-card {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(9,12,18,.33);
}
.commerce-product-image-preview { display: grid; min-height: 100%; place-items: center; overflow: hidden; background: linear-gradient(145deg,#202532,#121620); color: var(--accent); font-size: 42px; font-weight: 850; }
.commerce-product-image-preview img { width: 100%; height: 100%; min-height: 230px; object-fit: contain; padding: 18px; }
.commerce-product-image-copy { min-width: 0; padding: 17px; }
.commerce-product-image-copy h3 { margin: 8px 0 4px; color: var(--text); font-size: 14px; line-height: 1.35; }
.commerce-product-image-copy > div > small { color: var(--text-muted); font-size: 10px; }
.commerce-product-image-form { display: grid; gap: 11px; margin-top: 14px; }
.commerce-product-image-form label { margin: 0; }
.commerce-product-image-form .commerce-file-field { display: grid; grid-template-columns: 1fr; gap: 5px; }
.commerce-product-image-form input[type="file"] { display: block; width: 100%; height: auto; min-height: 43px; margin-top: 1px; padding: 8px; border: 1px dashed var(--border); border-radius: 10px; background: var(--bg); color: var(--text-dim); cursor: pointer; }
.commerce-product-image-form input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 7px; background: rgba(229,169,74,.14); color: var(--accent); cursor: pointer; }
.commerce-image-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.commerce-image-actions button { width: auto; margin: 0; }
.commerce-product-image-form.is-saving { opacity: .66; }
.commerce-single-image-editor { grid-template-columns: minmax(220px,32%) minmax(0,1fr); }
.commerce-single-image-editor .commerce-product-image-copy { padding: 22px; }
.commerce-single-image-editor .commerce-product-image-form { margin-top: 0; }
.commerce-image-product-summary { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 4px 10px; padding: 12px 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.025); }
.commerce-image-product-summary .badge { grid-row: 1 / span 2; }
.commerce-image-product-summary strong { color: var(--text); font-size: 12px; }
.commerce-image-product-summary small { color: var(--text-muted); font-size: 9px; }
.commerce-image-actions button[hidden] { display: none !important; }
.customer-discover-card a.commerce-product-link { display: inline-flex; width: 100%; min-height: 34px; align-items: center; justify-content: center; margin: 10px 0 0; padding: 7px 11px; border: 1px solid var(--discover-border); border-radius: 8px; color: var(--discover-text); font-size: 8px; font-weight: 750; text-decoration: none; }
.customer-discover-card a.commerce-product-link:hover { border-color: var(--discover-accent); background: color-mix(in srgb,var(--discover-accent) 10%,transparent); text-decoration: none; }

.commerce-editor-layout { grid-template-columns: minmax(0,1fr) 360px; gap: 22px; }
.commerce-live-preview { padding: 20px; border-radius: 16px; }
.commerce-preview-card { min-height: 340px; padding: 25px; }
.commerce-preview-card .customer-offer-copy h2 { font-size: 25px; }
.commerce-preview-card .customer-offer-copy > p { font-size: 12px; }
.commerce-live-preview > p { font-size: 10px; line-height: 1.6; }
.commerce-form-grid { gap: 14px; }
.commerce-subsection { margin-top: 26px; padding-top: 24px; }
.commerce-subsection > h3,.commerce-subsection .section-heading h3 { font-size: 17px; }
.commerce-subsection > p,.commerce-subsection .section-heading p { margin: 7px 0 15px; font-size: 11px; line-height: 1.55; }
.commerce-product-slots { gap: 12px; }
.commerce-product-slots fieldset { padding: 15px; border-radius: 13px; }
.commerce-product-slots legend { font-size: 10px; }
.commerce-product-slots label + label { margin-top: 11px; }
.commerce-price-pair { gap: 9px; margin-top: 11px; }
.commerce-audience-grid { gap: 14px; }
.commerce-style-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; max-height: 520px; padding: 4px 8px 8px 3px; scrollbar-color: rgba(229,169,74,.4) transparent; }
.commerce-style-swatch { min-height: 86px; padding: 12px; border-radius: 11px; }
.commerce-style-swatch i { font-size: 20px; }
.commerce-style-swatch b { font-size: 9px; line-height: 1.35; }
.commerce-publish-bar { position: sticky; bottom: 12px; z-index: 4; margin-top: 26px; padding: 16px 18px; border-radius: 13px; background: rgba(22,25,33,.96); box-shadow: 0 12px 35px rgba(0,0,0,.35); backdrop-filter: blur(14px); }
.commerce-publish-bar strong { font-size: 12px; }
.commerce-publish-bar span { max-width: 620px; margin-top: 5px; font-size: 10px; line-height: 1.45; }
.commerce-publish-bar button { flex: 0 0 auto; width: auto; margin: 0; }
.commerce-campaign-list,.commerce-discover-analytics { margin-top: 24px; }
.commerce-campaign-cards { gap: 14px; }
.commerce-campaign-cards > article { padding: 19px; border-radius: 14px; }
.commerce-campaign-cards h3 { font-size: 15px; }
.commerce-campaign-cards header a { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }
.commerce-campaign-cards header a:hover { text-decoration: none; }
.commerce-campaign-stats { margin-top: 16px; border-radius: 11px; }
.commerce-campaign-stats div { padding: 12px; }
.commerce-campaign-stats span { font-size: 9px; }
.commerce-campaign-stats strong { font-size: 17px; }
.commerce-campaign-stats small { font-size: 8px; }
.commerce-campaign-cards footer { flex-wrap: wrap; margin-top: 13px; font-size: 9px; }
.commerce-discover-ranking { gap: 11px; }
.commerce-discover-ranking article { gap: 13px; padding: 14px 15px; border-radius: 11px; }
.commerce-rank-number { width: 32px; height: 32px; font-size: 11px; }
.commerce-discover-ranking strong { font-size: 11px; }
.commerce-discover-ranking small { font-size: 9px; }

@media (max-width: 1180px) {
  .commerce-product-image-grid { grid-template-columns: 1fr; }
  .commerce-editor-layout { grid-template-columns: 1fr; }
  .commerce-side { position: static; }
  .commerce-live-preview { max-width: 720px; }
}
@media (max-width: 900px) {
  .commerce-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commerce-kpis article { border-bottom: 1px solid var(--border); }
  .commerce-settings-form { grid-template-columns: 1fr 1fr; }
  .commerce-catalog-note { grid-column: 1 / -1; }
  .commerce-languages { grid-template-columns: 1fr; }
  .commerce-product-slots { grid-template-columns: 1fr; }
  .commerce-style-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .customer-page .customer-discover { padding: 21px; }
  .customer-page .customer-discover-heading h2 { font-size: 22px; }
  .customer-page .customer-discover-grid { grid-template-columns: 1fr; }
  .commerce-admin .section-panel { padding: 19px; }
  .commerce-kpis,.commerce-settings-form,.commerce-form-grid,.commerce-audience-grid,.commerce-campaign-cards { grid-template-columns: 1fr; }
  .commerce-form-grid .span-2 { grid-column: auto; }
  .commerce-product-image-card { grid-template-columns: 1fr; }
  .commerce-product-image-preview img { min-height: 190px; }
  .commerce-style-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commerce-publish-bar { align-items: stretch; flex-direction: column; }
  .commerce-publish-bar button { width: 100%; }
  .commerce-campaign-stats { grid-template-columns: 1fr 1fr; }
}

/* Full-size campaign previews: every selectable style matches the customer card. */
.commerce-admin .commerce-product-image-grid { grid-template-columns: minmax(0,1fr); }
.commerce-admin .commerce-product-image-card { grid-template-columns: 210px minmax(0,1fr); }
.commerce-admin .commerce-product-image-preview img { min-height: 250px; }

.commerce-admin .commerce-editor-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.commerce-admin .commerce-campaign-editor,
.commerce-admin .commerce-side { width: 100%; }
.commerce-admin .commerce-side { position: static; order: -1; }
.commerce-admin .commerce-live-preview { max-width: none; margin: 0; padding: 26px; }
.commerce-admin .commerce-live-preview > .section-heading { margin-bottom: 18px; }
.commerce-admin .commerce-preview-card {
  display: grid !important;
  grid-template-columns: minmax(180px,240px) minmax(0,1fr);
  min-height: 0;
  margin: 0;
  padding: 32px;
}
.commerce-admin .commerce-preview-card .customer-offer-products { display: grid; }
.commerce-admin .commerce-preview-card .customer-offer-image { max-width: 170px; }
.commerce-admin .commerce-preview-card .customer-offer-copy h2 { font-size: 29px; }
.commerce-admin .commerce-preview-card .customer-offer-copy > p { font-size: 12px; }

.commerce-admin .commerce-style-library > .section-heading { align-items: center; }
.commerce-admin .commerce-style-collections {
  display: grid;
  gap: 26px;
}
.commerce-admin .commerce-style-collection {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.commerce-admin .commerce-style-collection.is-special {
  border-color: rgba(229,169,74,.22);
  background: linear-gradient(145deg,rgba(229,169,74,.055),rgba(98,75,164,.035));
}
.commerce-admin .commerce-style-collection-header {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.commerce-admin .commerce-style-collection-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229,169,74,.3);
  border-radius: 14px;
  background: rgba(229,169,74,.08);
  color: var(--accent);
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.commerce-admin .commerce-style-collection-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}
.commerce-admin .commerce-style-collection-header p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 8px;
  line-height: 1.55;
}
.commerce-admin .commerce-style-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(5,8,13,.38);
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.commerce-admin .commerce-style-collection.is-special .commerce-style-count {
  border-color: rgba(229,169,74,.24);
  color: #e9c784;
}
.commerce-admin .commerce-style-collection.is-random-disabled {
  border-style: dashed;
}
.commerce-admin .commerce-style-collection.is-random-disabled .commerce-style-collection-header::after {
  content: "Not used by random rotation";
  grid-column: 2 / -1;
  color: #e9c784;
  font-size: 8px;
  font-weight: 800;
}
.commerce-admin .commerce-random-style-control {
  display: grid;
  width: min(100%,360px);
  gap: 6px;
}
.commerce-admin .commerce-random-style-control > small {
  color: var(--text-dim);
  font-size: 8px;
  line-height: 1.5;
}
.commerce-admin .commerce-style-grid,
.commerce-admin .commerce-style-grid.is-random {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 20px;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
}
.commerce-admin .commerce-style-choice {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0 !important;
  cursor: pointer;
}
.commerce-admin .commerce-style-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.commerce-admin .commerce-style-selected {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: #70d5a0;
  color: #072114;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.commerce-admin .commerce-style-manual-only {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 8;
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8,11,17,.82);
  color: rgba(255,255,255,.86);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.commerce-admin .commerce-style-grid.is-random .commerce-style-choice.is-manual-only .commerce-style-demo {
  opacity: .72;
  filter: saturate(.76);
}
.commerce-admin .commerce-style-grid.is-random .commerce-style-choice.is-manual-only:hover .commerce-style-demo,
.commerce-admin .commerce-style-grid.is-random .commerce-style-choice.is-manual-only > input:checked ~ .commerce-style-demo {
  opacity: 1;
  filter: none;
}
.commerce-admin .commerce-style-choice > input:checked + .commerce-style-selected { display: inline-flex; }
.commerce-admin .commerce-style-demo {
  width: 100%;
  min-height: 290px;
  margin: 0;
  padding: 32px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}
.commerce-admin .commerce-style-demo::before,
.commerce-admin .commerce-style-demo .customer-offer-image,
.commerce-admin .commerce-style-demo .customer-offer-badge { animation: none !important; }
.commerce-admin .commerce-style-choice:hover .commerce-style-demo {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0,0,0,.28);
}
.commerce-admin .commerce-style-choice > input:focus-visible ~ .commerce-style-demo,
.commerce-admin .commerce-style-choice > input:checked ~ .commerce-style-demo {
  outline: 3px solid #e5a94a;
  outline-offset: 4px;
}
.commerce-admin .commerce-style-demo .customer-offer-image { max-width: 170px; }
.commerce-admin .commerce-style-demo .customer-offer-copy h2 { font-size: 29px; }
.commerce-admin .commerce-style-demo .customer-offer-copy > p { font-size: 12px; }
.commerce-admin .commerce-style-demo-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(95deg,var(--offer-a),var(--offer-b));
  color: var(--offer-ink);
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 10px 24px color-mix(in srgb,var(--offer-a) 22%,transparent);
}
.commerce-admin .commerce-publish-bar {
  position: static;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .commerce-admin .commerce-style-collection { padding: 13px; }
  .commerce-admin .commerce-style-collection-header { grid-template-columns: 40px minmax(0,1fr); }
  .commerce-admin .commerce-style-count { grid-column: 2; justify-self: start; }
  .commerce-admin .commerce-style-collection.is-random-disabled .commerce-style-collection-header::after { grid-column: 2; }
  .commerce-admin .commerce-product-image-card { grid-template-columns: 1fr; }
  .commerce-admin .commerce-preview-card,
  .commerce-admin .commerce-style-demo { grid-template-columns: 1fr; padding: 23px; }
  .commerce-admin .commerce-preview-card .customer-offer-products,
  .commerce-admin .commerce-style-demo .customer-offer-products { max-width: 270px; }
  .commerce-admin .commerce-preview-card .customer-offer-image,
  .commerce-admin .commerce-style-demo .customer-offer-image { max-width: 130px; }
  .commerce-admin .commerce-preview-card .customer-offer-copy h2,
  .commerce-admin .commerce-style-demo .customer-offer-copy h2 { font-size: 24px; }
}

/* Exact 50-style special-offer renderer, adapted from the supplied reference file. */
.ksp-offer{position:relative;overflow:hidden;border-radius:var(--r,24px);background:var(--bg);color:var(--t);display:grid;grid-template-columns:200px minmax(0,1fr);gap:30px;align-items:center;padding:30px;border:var(--bd,1px solid rgba(255,255,255,.12));font-family:var(--f,inherit);box-shadow:var(--sh,none);text-align:left;isolation:isolate}
.ksp-offer>*{position:relative;z-index:2}.ksp-offer .ksp-fx,.ksp-offer .ksp-particles{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.ksp-offer .ksp-ribbon{display:inline-block;font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;padding:6px 14px;border-radius:999px;background:var(--a);color:var(--ink)}
.ksp-offer h2{font-size:34px;line-height:1.1;margin:12px 0 8px;font-weight:800;color:var(--t)}.ksp-offer .ksp-lead{opacity:.8;font-size:15.5px;margin:0 0 16px;max-width:520px;color:var(--t)}.ksp-price{display:flex;align-items:baseline;gap:12px}.ksp-offer .ksp-old{text-decoration:line-through;opacity:.5;font-size:19px}.ksp-offer .ksp-new{font-size:44px;font-weight:800;line-height:1;color:var(--a)}.ksp-offer .ksp-until{opacity:.6;font-size:13px;margin:6px 0 16px}.ksp-actions{display:flex;flex-wrap:wrap;gap:10px}.ksp-offer .ksp-btn,.ksp-original .ksp-btn{position:relative;display:inline-flex;width:auto;min-height:0;align-items:center;overflow:hidden;border:0;border-radius:calc(var(--r,24px)/2);padding:14px 28px;font:inherit;font-size:16px;font-weight:800;cursor:pointer;background:linear-gradient(90deg,var(--a),var(--b));color:var(--ink);transition:transform .2s;text-decoration:none}.ksp-offer .ksp-btn:hover,.ksp-original .ksp-btn:hover{transform:translateY(-2px) scale(1.03);text-decoration:none}.ksp-offer .ksp-btn::after,.ksp-original .ksp-btn::after{content:"";position:absolute;top:0;left:-80%;width:45%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-20deg);animation:ksp-shine 3.4s ease-in-out infinite}.ksp-note{margin-top:10px;font-size:12.5px;opacity:.6}
.ksp-offer .ksp-tile{aspect-ratio:1;border-radius:calc(var(--r,24px)*.9);display:grid;place-items:center;font-size:76px;font-weight:800;background:linear-gradient(135deg,var(--a),var(--b));color:var(--ink);position:relative;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.3)}.ksp-offer .ksp-tile img{width:100%;height:100%;object-fit:contain;padding:12%;border-radius:inherit;display:block}.ksp-offer .ksp-tile.ksp-em{background:none;box-shadow:none;font-size:104px;overflow:visible}.ksp-offer .ksp-tile.ksp-small-icon{font-size:44px}.ksp-offer.ksp-R{grid-template-columns:minmax(0,1fr) 200px}.ksp-offer.ksp-R .ksp-side{order:2}.ksp-offer.ksp-C{grid-template-columns:1fr;text-align:center;justify-items:center}.ksp-offer.ksp-C .ksp-tile{width:96px;font-size:50px}.ksp-offer.ksp-C .ksp-tile.ksp-em{font-size:70px}.ksp-offer.ksp-C .ksp-price,.ksp-offer.ksp-C .ksp-actions{justify-content:center}.ksp-offer.ksp-C .ksp-lead{margin-inline:auto}.ksp-offer.ksp-M{grid-template-columns:1fr;padding:24px 30px}.ksp-offer.ksp-M .ksp-side,.ksp-offer.ksp-M .ksp-lead{display:none}.ksp-offer.ksp-M h2{font-size:28px}.ksp-offer.ksp-T{grid-template-columns:240px minmax(0,1fr);gap:0;padding:0}.ksp-stub{align-self:stretch;display:grid;place-items:center;text-align:center;padding:24px;background:linear-gradient(160deg,var(--a),var(--b));color:var(--ink);font-weight:900;font-size:66px;line-height:.9;letter-spacing:-.04em;animation:ksp-ticket-breathe 2.4s ease-in-out infinite}.ksp-stub small{display:block;font-size:20px;letter-spacing:.3em;margin-top:6px}.ksp-offer.ksp-T .ksp-main{padding:30px;border-left:2px dashed rgba(128,128,128,.55);position:relative}.ksp-offer.ksp-T .ksp-main::before,.ksp-offer.ksp-T .ksp-main::after{content:"";position:absolute;left:-15px;width:28px;height:28px;border-radius:50%;background:#0b0b10}.ksp-offer.ksp-T .ksp-main::before{top:-14px}.ksp-offer.ksp-T .ksp-main::after{bottom:-14px}
.ksp-offer.ksp-aur .ksp-fx{inset:-30%;background:radial-gradient(circle at 25% 35%,var(--a),transparent 40%),radial-gradient(circle at 75% 65%,var(--b),transparent 40%);opacity:.45;filter:blur(40px);animation:ksp-drift 9s ease-in-out infinite alternate}.ksp-offer.ksp-grd .ksp-fx{background:linear-gradient(var(--a) 1px,transparent 1px) 0 0/100% 32px,linear-gradient(90deg,var(--a) 1px,transparent 1px) 0 0/32px 100%;opacity:.18;animation:ksp-grid 3s linear infinite}.ksp-offer.ksp-scn .ksp-fx{background:repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 1px,transparent 1px 3px)}.ksp-offer.ksp-scn .ksp-fx::after{content:"";position:absolute;left:0;right:0;height:60px;background:linear-gradient(transparent,var(--a),transparent);opacity:.14;animation:ksp-scan 4s linear infinite}.ksp-offer.ksp-str .ksp-fx{inset:-60px;background:repeating-linear-gradient(45deg,transparent 0 16px,rgba(128,128,128,.16) 16px 32px);animation:ksp-stripes 1.6s linear infinite}.ksp-offer.ksp-wav .ksp-fx{background:linear-gradient(120deg,var(--a),var(--b),var(--a));background-size:300% 300%;opacity:.22;animation:ksp-wave 9s ease infinite}.ksp-offer.ksp-spt .ksp-fx{background:radial-gradient(circle 260px at var(--mx,70%) var(--my,30%),rgba(255,255,255,.16),transparent 70%)}.ksp-offer.ksp-pls .ksp-fx::before,.ksp-offer.ksp-pls .ksp-fx::after{content:"";position:absolute;left:50%;top:50%;width:80px;height:80px;margin:-40px;border-radius:50%;border:2px solid var(--a);opacity:0;animation:ksp-pulse-ring 4s ease-out infinite}.ksp-offer.ksp-pls .ksp-fx::after{animation-delay:2s}.ksp-offer.ksp-ray .ksp-fx::before{content:"";position:absolute;inset:-100%;background:repeating-conic-gradient(var(--a) 0 6deg,transparent 6deg 24deg);opacity:.12;animation:ksp-spin 50s linear infinite}.ksp-offer.ksp-dot .ksp-fx{background:radial-gradient(var(--a) 1.5px,transparent 2px) 0 0/22px 22px;opacity:.25;animation:ksp-dots 4s linear infinite}
.ksp-offer.ksp-bf{border:0}.ksp-offer.ksp-bf::before{content:"";position:absolute;inset:-100%;z-index:0;background:conic-gradient(from 0deg,transparent 0 60%,var(--a),var(--b),transparent);animation:ksp-spin 5s linear infinite}.ksp-offer.ksp-bf::after{content:"";position:absolute;inset:2px;border-radius:calc(var(--r,24px) - 2px);background:var(--bg);z-index:0}.ksp-offer.ksp-bg{border-width:2px;animation:ksp-glow 3s ease-in-out infinite alternate}.ksp-offer.ksp-tg h2{background:linear-gradient(90deg,var(--t),var(--a),var(--b),var(--t));background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:ksp-flow 6s linear infinite}.ksp-offer.ksp-tn h2{text-shadow:0 0 8px var(--a),0 0 26px var(--a)}.ksp-offer.ksp-tn .ksp-new{text-shadow:0 0 14px var(--a)}.ksp-offer.ksp-tk h2{animation:ksp-flicker 5s infinite}.ksp-offer.ksp-tt h2{animation:ksp-glitch 3.5s infinite}.ksp-offer.ksp-tf .ksp-tile{animation:ksp-float 4s ease-in-out infinite}.ksp-offer.ksp-tb .ksp-tile{animation:ksp-bounce 2.2s ease-in-out infinite}.ksp-offer.ksp-tr .ksp-tile::after{content:"";position:absolute;inset:-14px;border-radius:inherit;border:2px solid var(--a);opacity:0;animation:ksp-ring 3s ease-out infinite}
.ksp-p{position:absolute;color:var(--a);opacity:0;font-style:normal;animation-timing-function:linear;animation-iteration-count:infinite}.ksp-p.ksp-f{top:-24px;animation-name:ksp-particle-fall}.ksp-p.ksp-r{bottom:-24px;animation-name:ksp-particle-rise}.ksp-p.ksp-w{animation-name:ksp-particle-twinkle}.ksp-p.ksp-c{width:8px;height:14px;border-radius:2px;top:-20px;animation-name:ksp-particle-fall}
@keyframes ksp-spin{to{transform:rotate(360deg)}}@keyframes ksp-shine{0%{left:-80%}45%,100%{left:140%}}@keyframes ksp-drift{to{transform:translate(50px,30px) scale(1.2)}}@keyframes ksp-grid{to{background-position:0 32px,32px 0}}@keyframes ksp-scan{from{top:-60px}to{top:100%}}@keyframes ksp-stripes{to{transform:translate(45px,0)}}@keyframes ksp-wave{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}@keyframes ksp-pulse-ring{0%{transform:scale(.5);opacity:.7}100%{transform:scale(9);opacity:0}}@keyframes ksp-dots{to{background-position:22px 22px}}@keyframes ksp-glow{from{box-shadow:0 0 10px var(--a);border-color:var(--a)}to{box-shadow:0 0 34px var(--b);border-color:var(--b)}}@keyframes ksp-flow{to{background-position:-250% 0}}@keyframes ksp-flicker{0%,90%,100%{opacity:1}92%{opacity:.45}94%{opacity:1}96%{opacity:.6}}@keyframes ksp-glitch{0%,90%,100%{text-shadow:none}92%{text-shadow:3px 0 var(--a),-3px 0 var(--b)}95%{text-shadow:-3px 0 var(--a),3px 0 var(--b)}}@keyframes ksp-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-10px) rotate(1deg)}}@keyframes ksp-bounce{0%,100%{transform:translateY(0)}40%{transform:translateY(-20px)}60%{transform:translateY(0) scale(1.05,.95)}}@keyframes ksp-ring{0%{transform:scale(.9);opacity:.8}100%{transform:scale(1.2);opacity:0}}@keyframes ksp-ticket-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes ksp-particle-fall{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(460px) rotate(540deg);opacity:.8}}@keyframes ksp-particle-rise{0%{transform:translateY(0);opacity:0}15%{opacity:.9}100%{transform:translateY(-440px);opacity:0}}@keyframes ksp-particle-twinkle{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1.1)}}
.ksp-original{position:relative;border-radius:26px;padding:2px;background:linear-gradient(120deg,#f6c76a,#e5a94a 35%,#b9741f 70%,#f6c76a);background-size:200% 200%;animation:ksp-og-flow 8s ease infinite;box-shadow:0 0 60px rgba(229,169,74,.28);text-align:left}.ksp-og-in{position:relative;overflow:hidden;border-radius:24px;background:radial-gradient(900px 300px at 85% -20%,rgba(229,169,74,.28),transparent 60%),linear-gradient(135deg,#2b2112,#171a22 70%);padding:34px;display:grid;grid-template-columns:230px minmax(0,1fr);gap:34px;align-items:center}.ksp-og-in::before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.09),transparent);transform:skewX(-20deg);animation:ksp-og-sweep 5s ease-in-out infinite;pointer-events:none}.ksp-og-in>*{position:relative;z-index:1}.ksp-og-spark{position:absolute;bottom:-10px;z-index:0;width:6px;height:6px;border-radius:50%;background:#ffd98a;box-shadow:0 0 10px 3px rgba(255,200,100,.7);opacity:0;animation:ksp-og-rise 6s linear infinite}.ksp-og-ribbon{display:inline-block;background:#e5a94a;color:#1a1205;font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;padding:6px 14px;border-radius:999px;animation:ksp-og-pulse 2.4s ease-in-out infinite}.ksp-og-image{aspect-ratio:1;border-radius:22px;display:grid;place-items:center;font-size:84px;font-weight:800;color:#fff;background:linear-gradient(135deg,#7a4a1e,#d98b3a);position:relative;box-shadow:0 20px 40px rgba(0,0,0,.4);animation:ksp-og-float 4s ease-in-out infinite}.ksp-og-image-inner{display:grid;width:100%;height:100%;place-items:center;overflow:hidden;border-radius:inherit}.ksp-og-image-inner img{width:100%;height:100%;object-fit:contain;padding:12%;border-radius:inherit}.ksp-og-image::after{content:"";position:absolute;inset:-18px;border-radius:30px;border:2px solid rgba(229,169,74,.5);animation:ksp-og-ring 3s ease-out infinite;pointer-events:none}.ksp-og-seal{position:absolute;top:-14px;right:-14px;width:84px;height:84px;border-radius:50%;background:#fff;color:#1a1205;display:grid;place-items:center;text-align:center;font-weight:800;font-size:24px;line-height:1;animation:ksp-og-wiggle 3.5s ease-in-out infinite;box-shadow:0 8px 20px rgba(0,0,0,.4);z-index:2}.ksp-og-seal small{display:block;font-size:11px;letter-spacing:.1em}.ksp-original h2{font-size:38px;line-height:1.1;margin:14px 0 8px;color:#f2f3f6}.ksp-og-lead{color:#d6d8e0;font-size:16px;margin:0 0 18px;max-width:520px}.ksp-original .ksp-old{text-decoration:line-through;color:#9aa0b0;font-size:20px}.ksp-original .ksp-new{font-size:48px;font-weight:800;line-height:1;background:linear-gradient(90deg,#e5a94a,#fff1c9,#e5a94a);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:ksp-og-price 3s linear infinite}.ksp-original .ksp-until{color:#9aa0b0;font-size:13.5px;margin:6px 0 18px}.ksp-original .ksp-btn{--r:28px;--a:#e5a94a;--b:#e5a94a;--ink:#1a1205;border-radius:14px;padding:15px 30px;box-shadow:0 8px 24px rgba(229,169,74,.35)}.ksp-original .ksp-note{color:#9aa0b0;opacity:1}
@keyframes ksp-og-flow{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}@keyframes ksp-og-sweep{0%{left:-60%}55%,100%{left:130%}}@keyframes ksp-og-rise{0%{transform:translateY(0) scale(.6);opacity:0}15%{opacity:1}100%{transform:translateY(-340px) scale(1.1);opacity:0}}@keyframes ksp-og-pulse{0%,100%{box-shadow:0 0 0 0 rgba(229,169,74,.6)}50%{box-shadow:0 0 0 10px rgba(229,169,74,0)}}@keyframes ksp-og-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-10px) rotate(1deg)}}@keyframes ksp-og-ring{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.12);opacity:0}}@keyframes ksp-og-wiggle{0%,100%{transform:rotate(10deg) scale(1)}50%{transform:rotate(4deg) scale(1.08)}}@keyframes ksp-og-price{to{background-position:-200% 0}}
.commerce-admin .commerce-style-demo.ksp-offer,.commerce-admin .commerce-preview-card.ksp-offer{display:grid!important;min-height:0;margin:0;padding:30px}.commerce-admin .commerce-style-demo.ksp-original,.commerce-admin .commerce-preview-card.ksp-original{display:block!important;min-height:0;margin:0;padding:2px}.commerce-admin .commerce-style-choice:hover .ksp-offer,.commerce-admin .commerce-style-choice:hover .ksp-original{transform:translateY(-2px);box-shadow:0 24px 58px rgba(0,0,0,.28)}.commerce-admin .commerce-style-choice>input:focus-visible~.ksp-offer,.commerce-admin .commerce-style-choice>input:checked~.ksp-offer,.commerce-admin .commerce-style-choice>input:focus-visible~.ksp-original,.commerce-admin .commerce-style-choice>input:checked~.ksp-original{outline:3px solid #e5a94a;outline-offset:4px}.commerce-admin .commerce-style-selected{z-index:20}.customer-page .ksp-offer,.customer-page .ksp-original{margin:28px 0}.customer-page .ksp-offer[hidden],.customer-page .ksp-original[hidden]{display:none!important}
@media(max-width:760px){.ksp-offer{grid-template-columns:1fr!important;padding:22px;gap:18px}.ksp-offer .ksp-tile{max-width:150px;font-size:54px}.ksp-offer .ksp-tile.ksp-em{font-size:76px}.ksp-offer h2{font-size:27px}.ksp-offer .ksp-new{font-size:36px}.ksp-offer.ksp-T{padding:0}.ksp-offer.ksp-T .ksp-main{border-left:0;border-top:2px dashed rgba(128,128,128,.55);padding:22px}.ksp-offer.ksp-T .ksp-main::before,.ksp-offer.ksp-T .ksp-main::after{display:none}.ksp-offer.ksp-R .ksp-side{order:0}.ksp-og-in{grid-template-columns:1fr;padding:24px;gap:24px}.ksp-og-image{max-width:180px;font-size:64px}.ksp-original h2{font-size:30px}.ksp-original .ksp-new{font-size:40px}.commerce-admin .commerce-style-demo.ksp-offer,.commerce-admin .commerce-preview-card.ksp-offer{padding:22px}}

@media(max-width:760px){.commerce-single-image-editor{grid-template-columns:1fr}.commerce-single-image-editor .commerce-product-image-preview{min-height:190px}.commerce-single-image-editor .commerce-product-image-preview img{min-height:190px}}

/* Campaign catalogue controls */
.commerce-apply-all-option{display:flex!important;align-items:flex-start;gap:11px;padding:13px 14px!important;border:1px solid rgba(229,169,74,.24);border-radius:11px;background:rgba(229,169,74,.055);cursor:pointer}
.commerce-apply-all-option input{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent)}
.commerce-apply-all-option span,.commerce-apply-all-option strong,.commerce-apply-all-option small{display:block}
.commerce-apply-all-option strong{color:var(--text);font-size:10px;line-height:1.35}
.commerce-apply-all-option small{margin-top:4px;color:var(--text-dim);font-size:8px;line-height:1.55}
.commerce-program-picker-heading{align-items:flex-start!important;gap:14px}
.commerce-program-picker-heading>div{min-width:0;flex:1}
.commerce-program-picker-heading .commerce-switch{flex:0 0 auto;min-width:185px;background:rgba(229,169,74,.055)}
@media(max-width:760px){.commerce-program-picker-heading{align-items:stretch!important;flex-direction:column}.commerce-program-picker-heading .commerce-switch{width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.ksp-offer,.ksp-offer::before,.ksp-offer::after,.ksp-offer *,.ksp-offer *::before,.ksp-offer *::after,.ksp-original,.ksp-original::before,.ksp-original::after,.ksp-original *,.ksp-original *::before,.ksp-original *::after{animation:none!important}.ksp-p{display:none}}
