:root {
  color-scheme: light;
  --product-ink: #1d2a35;
  --product-muted: #66747d;
  --product-line: #dce3e5;
  --product-paper: #ffffff;
  --product-wash: #f4f7f7;
  --product-blue: #3161bd;
  --product-blue-dark: #23488f;
  --product-green: #187866;
  --product-green-wash: #eaf5f0;
  --product-coral: #c85f4e;
  --product-yellow: #e3ad4f;
  --product-radius: 6px;
  --product-width: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--product-wash); color: var(--product-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--product-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--product-blue-dark); }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--product-yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h1 { margin-bottom: 10px; font-size: 34px; font-weight: 690; }
h2 { margin-bottom: 0; font-size: 20px; font-weight: 660; }
.product-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100vw - var(--product-width)) / 2)); border-bottom: 1px solid var(--product-line); background: var(--product-paper); }
.product-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--product-ink); font-size: 17px; font-weight: 720; text-decoration: none; }
.product-brand img { display: block; border-radius: 7px; object-fit: cover; }
.product-header nav { display: flex; align-items: center; gap: 24px; }
.product-header nav a { color: #51616b; font-size: 13px; font-weight: 620; text-decoration: none; }
.product-header nav a[aria-current="page"] { color: var(--product-blue); }
.product-header nav a:hover { color: var(--product-green); }
.product-main { width: min(var(--product-width), 100%); min-height: calc(100vh - 140px); margin: 0 auto; padding: 36px 24px 52px; }
.product-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: var(--product-green); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.lede { max-width: 720px; margin: 0; color: #566773; font-size: 16px; }
.user-chip { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: var(--product-paper); color: var(--product-muted); font-size: 12px; }
.user-chip > span:nth-child(2) { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip a { margin-left: 7px; font-weight: 650; text-decoration: none; }
.status-dot, .note-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #aeb9be; }
.user-chip.is-signed-in .status-dot { background: var(--product-green); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; align-items: start; gap: 36px; }
.workspace-primary { min-width: 0; }
.generator-form { padding: 25px 27px 27px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: var(--product-paper); }
.form-row { display: grid; gap: 7px; margin-bottom: 22px; }
.field-label, legend.field-label { color: var(--product-ink); font-size: 13px; font-weight: 690; }
select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"] { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd5d9; border-radius: 4px; background: #fff; color: var(--product-ink); }
select { cursor: pointer; }
.form-row small, .compact-row small { color: var(--product-muted); font-size: 12px; }
.mode-field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.mode-field legend { margin-bottom: 8px; padding: 0; }
.segmented-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--product-line); border-radius: 5px; background: #f2f5f5; }
.segmented-control label { position: relative; display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; border-radius: 3px; color: #56636a; cursor: pointer; font-size: 13px; font-weight: 610; }
.segmented-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segmented-control label:has(input:checked) { background: #fff; box-shadow: 0 1px 4px rgba(22, 42, 51, .13); color: var(--product-blue-dark); }
.segmented-control label:focus-within { outline: 2px solid var(--product-yellow); outline-offset: 1px; }
.segmented-control b { padding: 1px 4px; border-radius: 3px; background: #fff0e7; color: #a64d39; font-size: 9px; text-transform: uppercase; }
.lucky-row { margin-top: -4px; }
.compact-row { grid-template-columns: minmax(130px, 1fr) auto; align-items: center; margin-bottom: 8px; }
.compact-row .field-label { grid-column: 1; }
.compact-row small { grid-column: 1; }
.stepper { grid-column: 2; grid-row: 1 / span 2; display: flex; width: 136px; min-height: 42px; align-items: center; border: 1px solid #cbd5d9; border-radius: 4px; background: #fff; }
.stepper button { width: 38px; height: 40px; flex: 0 0 auto; border: 0; background: transparent; color: var(--product-blue-dark); cursor: pointer; font-size: 21px; }
.stepper input { width: 58px; min-height: 38px; padding: 5px 2px; border: 0; border-radius: 0; text-align: center; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.primary-button, .secondary-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 13px; padding: 0 16px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 680; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.primary-button { background: var(--product-blue); color: #fff; }
.primary-button:hover { background: var(--product-blue-dark); color: #fff; }
.secondary-button { border-color: #bdcbd0; background: #fff; color: var(--product-ink); }
.secondary-button:hover { border-color: var(--product-blue); color: var(--product-blue); }
.primary-button:disabled, .secondary-button:disabled, button:disabled { cursor: not-allowed; opacity: .55; }
.generator-form > .primary-button { width: 100%; justify-content: space-between; margin-top: 13px; padding: 0 17px; }
.form-message { min-height: 19px; margin: 5px 0 0; color: var(--product-coral); font-size: 12px; }
.result-section { margin-top: 31px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-title-row .eyebrow { margin-bottom: 3px; }
.section-title-row h2 { font-size: 18px; }
.subtle-button, .text-button { min-height: 35px; padding: 5px 8px; border: 0; background: transparent; color: var(--product-blue); cursor: pointer; font-size: 12px; font-weight: 650; }
.subtle-button:disabled { color: #a7b0b4; cursor: default; }
.generated-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-item { min-width: 0; padding: 14px 15px 10px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: var(--product-paper); }
.result-item-heading, .saved-pick-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #50616a; font-size: 12px; font-weight: 620; }
.result-index { color: var(--product-green); font-size: 11px; font-weight: 760; }
.number-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 13px 0 10px; }
.number-ball { display: inline-flex; width: 37px; aspect-ratio: 1; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid #d5e3dd; border-radius: 50%; background: var(--product-green-wash); color: #15594b; font-size: 13px; font-weight: 710; font-variant-numeric: tabular-nums; }
.additional-ball { border-color: #f2d6cf; background: #fff0ec; color: #a74b3b; }
.result-actions { display: flex; justify-content: flex-end; gap: 4px; border-top: 1px solid #edf0f1; }
.result-actions .text-button { min-height: 30px; }
.empty-state { display: flex; min-height: 120px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1px dashed #cbd5d9; border-radius: var(--product-radius); color: var(--product-muted); text-align: center; }
.empty-state p { margin: 0; font-size: 13px; }
.empty-mark { display: inline-flex; width: 34px; aspect-ratio: 1; align-items: center; justify-content: center; border: 1px solid #cae1d8; border-radius: 50%; color: var(--product-green); font-size: 10px; font-weight: 800; }
.workspace-sidebar { display: grid; gap: 27px; }
.membership-panel { padding: 18px; border: 1px solid #c7ddd3; border-radius: var(--product-radius); background: #edf5f1; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.panel-heading .eyebrow { color: #327d6a; }
.panel-heading h2 { font-size: 17px; }
.membership-mark, .count-mark { display: inline-flex; min-width: 40px; min-height: 25px; align-items: center; justify-content: center; padding: 0 7px; border-radius: 3px; background: #e2e8e9; color: #55636a; font-size: 10px; font-weight: 780; }
.membership-mark.is-vip { background: #c9e7d8; color: #17604d; }
.membership-panel > p { margin: 12px 0 10px; color: #50615d; font-size: 12px; }
.panel-link { display: inline-flex; align-items: center; gap: 6px; color: #166650; font-size: 12px; font-weight: 710; text-decoration: none; }
.saved-panel { min-width: 0; }
.saved-panel .section-title-row { margin-bottom: 10px; }
.count-mark { min-width: 28px; background: #e8edef; color: #42525a; }
.saved-list { display: grid; gap: 8px; }
.saved-pick { min-width: 0; padding: 11px 12px 7px; border-bottom: 1px solid var(--product-line); background: var(--product-paper); }
.saved-pick-top { font-size: 11px; }
.saved-pick-top strong { overflow: hidden; color: var(--product-ink); text-overflow: ellipsis; white-space: nowrap; }
.saved-pick-top time { flex: 0 0 auto; color: #7b888d; font-size: 10px; font-weight: 450; }
.small-number-row { gap: 4px; margin: 9px 0 3px; }
.small-number-row .number-ball { width: 27px; font-size: 10px; }
.saved-pick-actions { display: flex; justify-content: flex-end; gap: 5px; }
.saved-pick-actions .text-button { min-height: 28px; padding: 2px 5px; font-size: 11px; }
.delete-action { color: #9b5548; }
.compact-empty { min-height: 82px; padding: 13px; background: transparent; }
.responsible-note { margin: 27px 0 0; color: #77858c; font-size: 11px; }
.product-footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(24px, calc((100vw - var(--product-width)) / 2)); border-top: 1px solid var(--product-line); background: #fff; color: #77858c; font-size: 11px; }
.product-footer > span:last-child { display: flex; gap: 17px; }
.product-footer a { color: #64737b; text-decoration: none; }
.narrow-main { max-width: 780px; }
.account-panel { padding: 24px 27px 28px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: #fff; }
.auth-tabs { display: flex; gap: 23px; margin: -2px 0 23px; border-bottom: 1px solid var(--product-line); }
.auth-tabs button { min-height: 39px; padding: 0 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #718087; cursor: pointer; font-size: 13px; font-weight: 650; }
.auth-tabs button[aria-selected="true"] { border-color: var(--product-blue); color: var(--product-blue-dark); }
.auth-form { display: grid; gap: 8px; max-width: 440px; }
.auth-form .field-label:not(:first-child) { margin-top: 10px; }
.auth-form .primary-button { justify-content: space-between; margin-top: 5px; }
.account-summary { display: flex; align-items: center; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--product-line); }
.account-summary h2 { font-size: 17px; }
.account-summary .eyebrow { margin-bottom: 3px; }
.account-avatar { display: flex; width: 48px; aspect-ratio: 1; align-items: center; justify-content: center; border-radius: 50%; background: #dcece5; color: #1b6654; font-size: 17px; font-weight: 720; }
.account-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 25px; }
.account-details div { min-width: 0; }
.account-details dt { color: #748188; font-size: 11px; }
.account-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 640; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.text-button { border-radius: 3px; }
.pricing-main { padding-top: 42px; }
.pricing-heading { margin-bottom: 31px; }
.pricing-heading h1 { max-width: 700px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-option { display: flex; min-width: 0; flex-direction: column; padding: 20px 20px 18px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: #fff; }
.featured-plan { border-color: #8da9d9; box-shadow: inset 0 3px 0 var(--product-blue); }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-symbol { display: flex; width: 34px; aspect-ratio: 1; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 800; }
.month-symbol { background: #fce9e4; color: #a94f42; }
.year-symbol { background: #e5edfc; color: #315ab0; }
.life-symbol { background: #e5f2eb; color: #21745c; font-size: 19px; }
.plan-term { color: #6e7b80; font-size: 11px; }
.plan-option h2 { margin-top: 18px; font-size: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 16px; }
.plan-price strong { font-size: 29px; font-weight: 710; font-variant-numeric: tabular-nums; }
.plan-price span { color: #718087; font-size: 11px; }
.plan-option ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 15px 0 0; border-top: 1px solid #edf0f1; list-style: none; }
.plan-option li { position: relative; padding-left: 17px; color: #52616a; font-size: 12px; }
.plan-option li::before { position: absolute; left: 0; color: var(--product-green); content: "✓"; font-weight: 800; }
.plan-buy { width: 100%; margin-top: auto; }
.featured-plan .plan-buy { justify-content: space-between; }
.pricing-message { min-height: 24px; margin: 8px 0 12px; }
.payment-info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 30px; align-items: center; margin-top: 18px; padding: 22px 0; border-top: 1px solid var(--product-line); border-bottom: 1px solid var(--product-line); }
.payment-info h2 { margin-bottom: 7px; font-size: 17px; }
.payment-info p:not(.eyebrow) { max-width: 650px; margin: 0; color: #62717a; font-size: 12px; }
.payment-terms { display: grid; gap: 5px; padding-left: 18px; border-left: 2px solid var(--product-coral); font-size: 11px; }
.payment-terms span { color: #68777e; }
.vip-note { display: flex; align-items: start; gap: 9px; margin-top: 16px; color: #738087; }
.vip-note .note-dot { margin-top: 6px; background: var(--product-yellow); }
.vip-note p { margin: 0; font-size: 11px; }
.admin-main { padding-top: 35px; }
.admin-main .product-heading { align-items: center; }
.admin-main .product-heading .secondary-button { flex: 0 0 auto; }
.admin-error { margin-bottom: 20px; padding: 12px 15px; border: 1px solid #ecc7bf; border-radius: 4px; background: #fff1ed; color: #914639; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.metric-item { display: grid; min-height: 93px; align-content: space-between; gap: 12px; padding: 14px 13px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: #fff; }
.metric-label { color: #6a7980; font-size: 11px; }
.metric-value { overflow-wrap: anywhere; color: #23353d; font-size: 22px; font-weight: 690; font-variant-numeric: tabular-nums; }
.admin-content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 26px; margin-top: 25px; }
.admin-section { min-width: 0; padding-top: 17px; border-top: 1px solid var(--product-line); }
.admin-section .section-title-row { margin-bottom: 13px; }
.activity-chart { display: grid; gap: 5px; }
.activity-day { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 8px; min-height: 16px; }
.activity-date, .activity-count { color: #75838a; font-size: 10px; font-variant-numeric: tabular-nums; }
.activity-count { text-align: right; }
.activity-bars { position: relative; height: 9px; overflow: hidden; border-radius: 2px; background: #eef1f2; }
.activity-bar { position: absolute; top: 0; left: 0; width: var(--bar-width); height: 4px; min-width: 2px; border-radius: 2px; }
.generations-bar { background: var(--product-blue); }
.signup-bar { top: 5px; height: 4px; background: var(--product-coral); }
.rank-list { display: grid; gap: 15px; }
.rank-item { display: grid; gap: 5px; }
.rank-label { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.rank-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-label span { color: #6d7a80; font-variant-numeric: tabular-nums; }
.rank-track { height: 5px; overflow: hidden; border-radius: 3px; background: #e9eeee; }
.rank-fill { display: block; width: var(--bar-width); height: 100%; background: var(--product-green); }
.table-section { margin-top: 27px; }
.table-section .section-title-row { align-items: end; }
.search-field { display: grid; gap: 3px; width: min(260px, 45%); color: #748188; font-size: 10px; }
.search-field input { min-height: 35px; padding: 5px 9px; font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--product-line); }
table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
th, td { min-width: 105px; padding: 10px 9px; border-bottom: 1px solid #e9edef; white-space: nowrap; }
th { color: #68777e; font-size: 10px; font-weight: 680; }
td { color: #47565e; }
.email-cell { min-width: 200px; color: #26383f; font-weight: 620; }
.vip-cell { color: #176d56; font-weight: 660; }
.table-empty { padding: 22px 9px; color: #78868c; text-align: center; }
.invoice-status { font-size: 10px; font-weight: 720; }
.status-paid { color: #187866; }
.status-pending, .status-processing { color: #9b701c; }
.status-expired, .status-invalid { color: #a34e43; }
.muted { color: var(--product-muted); font-size: 12px; }
.legal-content { padding-top: 42px; }
.legal-content .product-heading { margin-bottom: 20px; }
.legal-content > section { padding: 17px 0; border-top: 1px solid var(--product-line); }
.legal-content > section h2 { margin-bottom: 8px; font-size: 17px; }
.legal-content > section p, .legal-callout { margin: 0; color: #596971; font-size: 13px; }
.legal-callout { margin: 0 0 20px; padding: 13px 15px; border-left: 3px solid var(--product-green); background: #eaf5f0; }

@media (max-width: 960px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .product-header { min-height: 62px; gap: 12px; padding-right: 17px; padding-left: 17px; }
  .product-header nav { gap: 14px; }
  .product-header nav a { font-size: 11px; }
  .product-header nav .quiet-link { display: none; }
  .product-brand { gap: 7px; font-size: 15px; }
  .product-brand img { width: 30px; height: 30px; }
  .product-main { min-height: calc(100vh - 124px); padding: 27px 17px 36px; }
  .product-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  h1 { font-size: 29px; }
  .lede { font-size: 14px; }
  .user-chip { max-width: 100%; }
  .workspace-grid { grid-template-columns: 1fr; gap: 26px; }
  .generator-form { padding: 19px 17px 20px; }
  .workspace-sidebar { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .saved-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: 1fr; gap: 9px; }
  .plan-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 15px; }
  .plan-topline { grid-column: 1 / -1; }
  .plan-option h2 { margin-top: 12px; }
  .plan-price { grid-column: 1 / -1; margin: 6px 0 10px; }
  .plan-option ul { grid-column: 1; grid-row: 4; gap: 5px; margin: 0; padding-top: 9px; }
  .plan-buy { grid-column: 2; grid-row: 4; width: auto; min-width: 118px; padding: 0 11px; align-self: center; }
  .payment-info { grid-template-columns: 1fr; gap: 13px; }
  .payment-terms { padding-left: 12px; }
  .admin-content-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-footer { min-height: 62px; padding-right: 17px; padding-left: 17px; }
}
@media (max-width: 460px) {
  .product-header nav { gap: 10px; }
  .product-header nav a { font-size: 10px; }
  .product-header nav a:last-child { display: none; }
  .product-heading { gap: 12px; }
  .generated-results { grid-template-columns: 1fr; }
  .result-item { padding: 12px 13px 8px; }
  .saved-list { grid-template-columns: 1fr; }
  .compact-row { grid-template-columns: minmax(110px, 1fr) auto; }
  .stepper { width: 116px; }
  .stepper button { width: 32px; }
  .stepper input { width: 50px; }
  .account-panel { padding: 19px 16px 21px; }
  .account-details { grid-template-columns: 1fr; gap: 11px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-item { min-height: 82px; }
  .metric-value { font-size: 20px; }
  .admin-main .product-heading { align-items: start; }
  .admin-main .product-heading .secondary-button { min-height: 37px; }
  .search-field { width: 48%; }
  .table-section .section-title-row { align-items: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
