/* Approved neon reference, one shared frontend. No altered engine or ledger policy. */
:root{--space-1:6px;--space-2:12px;--space-3:18px;--space-4:24px;--touch:44px;--surface:#0a1e39;--cyan:#20dcff;--purple:#a660ff}
*{box-sizing:border-box}body{font-synthesis:none}img,svg,canvas{max-width:100%}fieldset{min-width:0}main,section,article,.main,.content-wrap{min-width:0}button,input,select,textarea{max-width:100%}input,select,button{border-radius:9px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.mobile-bottom-nav,.mobile-wordmark{display:none}.final-dashboard-main{grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;align-items:stretch}.member-overview h2{margin-bottom:6px}.member-overview p{color:var(--muted)}.member-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.member-metrics article{background:linear-gradient(135deg,#0b3459,#0a1c36);border:1px solid var(--line);border-radius:11px;padding:16px}.member-metrics small{display:block;color:#b5cde7}.member-metrics strong{display:block;font-size:24px;margin-top:8px;font-variant-numeric:tabular-nums}.member-performance-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tier-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.tier-counts>div{padding:10px 3px;text-align:center;border:1px solid #3b6090;border-radius:8px;background:#102a4b}.tier-counts small,.tier-counts b{display:block}.tier-counts b{color:var(--cyan);margin-top:8px}.member-money{font-variant-numeric:tabular-nums}.member-money div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.member-money dd{margin:0;color:var(--cyan)}.history-back{display:inline-block;margin-bottom:18px}.draw-history-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.draw-history-filters label{display:grid;gap:8px;flex:1 1 120px}.draw-history-filters input,.draw-history-filters select{width:100%;min-height:44px;background:#0a203b;border:1px solid var(--line);color:var(--text);padding:10px}.draw-history-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.draw-list-row{display:grid;grid-template-columns:70px 100px minmax(0,1fr);gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:12px 4px;text-decoration:none;color:var(--text)}.draw-list-row small{grid-column:2/-1;color:#a9bed7}.draw-list-row.selected{border:1px solid var(--cyan);border-radius:8px;background:#103250}.draw-list-row .balls{flex-wrap:wrap}.tier-visibility{display:flex;gap:16px;flex-wrap:wrap;border:0;padding:8px 0 16px}.tier-visibility label{display:flex;gap:6px;align-items:center;min-height:44px}.history-pagination{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:center;padding-top:20px}.history-pagination a{padding:12px;border:1px solid var(--line);border-radius:8px}.data-table td,.data-table th{font-variant-numeric:tabular-nums}.table-wrap{max-width:100%;overflow-x:auto}.portfolio-game-row .balls{display:flex;gap:7px!important}.portfolio-game-row>b{font-variant-numeric:tabular-nums}.neon-account table{display:block;max-width:100%;overflow-x:auto}
@media(max-width:1200px){.final-dashboard-main{grid-template-columns:1fr!important}.member-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.draw-history-layout{grid-template-columns:1fr}.final-generation-layout{grid-template-columns:minmax(0,1fr)!important}.final-generation-aside{display:none}.final-engine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1024px){.sidebar{width:200px}.main{margin-left:200px}.topbar{padding:10px 16px}.topbar-right .header-icon,.topbar-right .operations-link{display:none}.content-wrap{padding:18px}.hero{padding:20px!important}.hero-quote{display:none}.neon-search-trigger kbd{display:none}.member-performance-grid{grid-template-columns:1fr}.final-engine-grid{grid-template-columns:1fr}}
@media(max-width:768px){.sidebar{position:fixed!important;inset:0 auto 0 0;width:min(300px,86vw);z-index:1000;transform:translateX(-100%);visibility:hidden;overflow-y:auto;padding-bottom:90px}.sidebar.open{transform:translateX(0);visibility:visible;box-shadow:20px 0 80px #000a}.mobile-close,.mobile-menu{display:block!important;min-width:44px;min-height:44px}.main{margin-left:0!important;width:100%}.topbar{position:sticky;top:0;z-index:80;min-height:64px;justify-content:space-between}.topbar-left{flex:1;justify-content:space-between}.topbar-right{flex:0}.topbar .draw-pill,.topbar .countdown,.topbar .neon-search-trigger,.topbar-right .avatar,.topbar-right .profile-name,.nas-logout-form,.topbar-right .guest-badge{display:none}.mobile-wordmark{display:block;font-weight:800;color:#edf6ff;font-size:20px;text-decoration:none}.mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:90;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#041427f5;border-top:1px solid var(--line)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:48px;text-decoration:none;color:#b6cde3;font-size:23px}.mobile-bottom-nav span{font-size:11px}.mobile-bottom-nav a[aria-current=page]{color:var(--cyan)}.content-wrap{padding:14px 12px 100px}.hero,.page-generation .hero{min-height:138px;padding:20px!important}.hero h1{font-size:26px}.hero p{font-size:12px;max-width:80%}.neon-banner-art{opacity:.7!important}.v196-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.v196-kpi{padding:12px!important}.v196-kpi strong{font-size:20px!important;overflow-wrap:anywhere}.v196-kpi .k-icon{display:none}.panel{padding:16px!important}.final-dashboard-engines,.member-performance-grid{grid-template-columns:1fr!important}.member-metrics{gap:8px}.member-metrics article{padding:12px 8px}.member-metrics strong{font-size:20px}.member-metrics small{font-size:11px}.portfolio-section-head{flex-wrap:wrap;gap:10px}.winning-balls{gap:8px!important;flex-wrap:wrap!important}.winning-balls .ball{width:34px!important;height:34px!important;font-size:15px!important;flex:0 0 34px}.draw-list-row{grid-template-columns:60px 1fr}.draw-list-row .balls{grid-column:1/-1}.draw-list-row small{grid-column:1/-1}.draw-history-filters label{flex-basis:40%}.draw-history-filters button{width:100%;min-height:44px}.portfolio-buttons{display:flex;flex-wrap:wrap}.portfolio-buttons button{min-height:44px;flex:1 1 120px}.portfolio-mode-switch label{min-height:65px}.portfolio-count-switch label span{min-height:44px;display:flex;align-items:center;justify-content:center}.ticket-pick-summary{flex-wrap:wrap;gap:8px}.ticket-pick-summary button,.ticket-pick-summary a{min-height:44px}.portfolio-game-row{grid-template-columns:24px 24px minmax(0,1fr)!important;gap:6px!important}.portfolio-game-row .balls{gap:5px!important;flex-wrap:nowrap!important}.portfolio-game-row .ball{width:25px!important;height:25px!important;font-size:12px!important;flex:0 0 25px}.portfolio-game-meta{grid-column:3}.portfolio-game-row>a{grid-column:3;text-align:left;min-height:44px;display:flex;align-items:center}.portfolio-game-row input[type=checkbox]{width:20px;height:20px}.final-page-head{flex-wrap:wrap}.final-page-head h1{font-size:24px}.h-actions{flex-wrap:wrap}.tab-bar{max-width:100%}.tab{min-height:48px}.research-strategy-grid{grid-template-columns:1fr!important}.neon-account .grid{grid-template-columns:1fr!important}.neon-account section{padding:14px!important}.neon-account input,.neon-account button,.neon-account select{min-height:44px}.auth-layout{display:block!important;padding:22px 16px!important;min-height:100dvh}.auth-story{display:none!important}.auth-card{width:100%!important;max-width:460px!important;margin:0 auto!important;padding:26px 20px!important}.auth-card input{font-size:16px;min-height:48px}.auth-card button{min-height:44px}.auth-card h1{font-size:28px}.page-footer{flex-wrap:wrap}.discovery-shell,.discovery-layout{max-width:100%}.table-wrap table{min-width:480px}body{overflow-wrap:break-word}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.member-overview .data-table{table-layout:auto!important;min-width:500px!important}.member-overview .data-table th,.member-overview .data-table td{width:auto!important;white-space:nowrap!important;overflow-wrap:normal!important;padding:10px!important}.final-dashboard-main>.panel>.winning-balls{flex-wrap:nowrap!important;gap:7px!important}.final-dashboard-main .winning-balls>.lotto-ball{width:34px;height:34px;flex:0 0 34px}.mobile-generation-steps{display:none}
@media(max-width:768px){.auth-shell{display:block;max-width:480px;padding:26px 16px}.brand-side{align-items:center;padding:0;margin:12px 0 28px}.brand-side>.brand{align-self:center;font-size:26px}.brand-story,.draw-stats{display:none}.auth-side{padding:24px 20px}.auth-card{padding:0!important}.mobile-generation-steps{display:block;margin-bottom:16px}.mobile-generation-steps fieldset{border:0;padding:12px 0;display:flex;gap:10px}.mobile-generation-steps legend{font-weight:700;margin-bottom:8px}.mobile-generation-steps button{flex:1;min-height:54px;padding:12px;border:1px solid #257197;color:#eaf4ff;background:#092441}.mobile-generation-steps [aria-pressed=true]{background:linear-gradient(125deg,#087da3,#5931b8);border-color:#27dfff;box-shadow:0 0 12px #00cfff22}.mobile-generate-submit{width:100%;margin-top:14px}.final-engine-grid>.portfolio-engine:not(.mobile-engine-selected){display:none}.mobile-engine-selected .portfolio-mode-label,.mobile-engine-selected .portfolio-mode-switch,.mobile-engine-selected .portfolio-count-head{display:none}.member-overview .table-wrap table{min-width:450px}}

.final-dashboard-main>.panel>.winning-balls{order:0;flex:none;margin:20px 0}.draw-history-layout .winning-balls{order:0;flex:none}.member-overview .table-wrap{flex:none}.mobile-bottom-nav a{line-height:1.2}
@media(max-width:768px){.content-wrap .winning-balls>.lotto-ball{width:32px;height:32px;font-size:14px;flex:0 0 32px}.final-dashboard-main>.panel>.winning-balls{gap:7px!important}.final-dashboard-main .data-table{font-size:11px}.hero-main{max-width:100%}.hero p{max-width:85%}.member-overview .data-table{min-width:470px!important}}

.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.member-overview select,.member-overview button{background:#0c2847;border:1px solid #2b567c;color:#cde5ff;padding:8px;border-radius:8px;min-height:36px}.member-overview .portfolio-section-head>div{flex:1}.member-overview .portfolio-section-head form{display:flex;gap:6px}.member-distribution{display:flex;align-items:center;gap:14px}.member-ring{width:116px;height:116px;border-radius:50%;padding:15px;flex:none;display:grid;place-items:center}.member-ring>div{width:86px;height:86px;background:#081d36;border-radius:50%;display:grid;place-content:center;text-align:center;gap:6px}.member-ring small{font-size:11px;color:#b4cae5}.member-ring b{font-size:20px}.member-distribution .tier-counts{flex:1;grid-template-columns:1fr;gap:0}.member-distribution .tier-counts>div{display:flex;justify-content:space-between;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:6px}.member-distribution .tier-counts b{margin:0}.member-recent .table-wrap{max-height:280px;overflow:auto}.virtual-performance{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.virtual-performance summary{cursor:pointer;min-height:36px;color:#b7cced}.member-overview .data-table{min-width:420px!important;font-size:11px}.member-overview .data-table th,.member-overview .data-table td{padding:8px!important}.member-money{font-size:12px}.member-money div{padding:5px 0}.member-overview .member-performance-grid{gap:16px}.member-overview h3{margin:14px 0 8px}.member-overview .portfolio-evidence{margin:8px 0;font-size:11px}
@media(min-width:1201px){.member-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.member-metrics article{padding:14px 8px}.member-metrics small{font-size:10px}.member-metrics strong{font-size:21px}.member-overview .member-performance-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}}
@media(max-width:768px){.member-overview{order:-1}.member-overview .member-performance-grid{grid-template-columns:1fr}.member-recent .table-wrap{max-height:230px}.member-overview select,.member-overview button{min-height:44px}.hero-draw-history h1{font-size:22px}.hero-draw-history .hero-main{max-width:100%}}

.mobile-member-profile{display:none}.neon-banner-art{mask-image:linear-gradient(90deg,transparent 0,#000 35%)}
@media(max-width:768px){.mobile-member-profile{display:flex;gap:12px;align-items:center;margin:8px 4px 18px}.mobile-member-profile b{font-size:16px}.mobile-member-profile small{display:block;color:#a7bfd8;font-size:11px;margin-top:5px}.mobile-member-profile div>span{color:#d8bcff;font-size:10px;border:1px solid #7454b1;border-radius:6px;padding:3px 6px}.mobile-member-profile .avatar{width:42px;height:42px;flex:none}.hero .neon-banner-art{opacity:.4!important}.hero-main{z-index:1}}

.hero h1{word-break:keep-all}@media(max-width:768px){.mobile-wordmark{display:flex;gap:8px;align-items:center}.mobile-wordmark .brand-mark{width:26px;height:30px;gap:2px}.mobile-wordmark .brand-mark i{width:6px}.mobile-wordmark .brand-mark i:nth-child(3){height:28px}}

.draw-history-layout .data-table{width:100%;table-layout:fixed;min-width:0!important}.draw-history-layout .data-table th,.draw-history-layout .data-table td{white-space:normal;overflow-wrap:anywhere;padding:10px 5px;font-size:12px}.draw-history-layout .data-table th:nth-child(1){width:10%}.draw-history-layout .data-table th:nth-child(2){width:32%}.draw-history-layout .data-table th:nth-child(3){width:20%}.draw-history-layout .data-table th:nth-child(4){width:38%}.member-overview .data-table{min-width:360px!important}
@media(max-width:768px){.member-overview .portfolio-section-head{display:block}.member-overview .portfolio-section-head h2{white-space:nowrap}.member-overview .portfolio-section-head form{margin-top:12px}.member-overview .portfolio-section-head select{flex:1}.draw-history-layout .data-table th,.draw-history-layout .data-table td{font-size:11px}.draw-history-layout .winning-balls{gap:6px!important}.draw-history-layout .winning-balls>.lotto-ball{width:30px;height:30px;flex-basis:30px}}
/* Combination metrics: reserve the whole number, including a decimal digit. */
.content-wrap .combo-summary .metric-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:10px;row-gap:5px;align-items:center;min-width:0;padding:14px}
.content-wrap .combo-summary .metric-card>small{grid-column:1;grid-row:1;min-width:0;line-height:1.4}
.content-wrap .combo-summary .metric-card>strong{grid-column:2;grid-row:1/3;min-width:4.4ch;white-space:nowrap;word-break:normal;overflow-wrap:normal;text-align:right;font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}
.content-wrap .combo-summary .metric-card>p{grid-column:1;grid-row:2;margin:0;font-size:11px;line-height:1.4}
@media(max-width:1100px){.content-wrap .combo-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.content-wrap .combo-summary .metric-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:12px 8px}.content-wrap .combo-summary .metric-card>small{min-height:32px;display:flex;align-items:center;justify-content:center}.content-wrap .combo-summary .metric-card>strong{text-align:center;font-size:24px}.content-wrap .combo-summary .metric-card>p{min-height:30px;display:flex;align-items:center;justify-content:center}}

/* Account actions share fixed columns regardless of workspace availability. */
.account-users .account-table-wrap{overflow-x:auto}
.account-users table{width:100%;border-collapse:collapse}
.account-users th,.account-users td{padding:14px 10px;vertical-align:middle;text-align:left}
.account-users td:nth-child(-n+4){white-space:nowrap}
.account-row-actions{display:grid;grid-template-columns:112px 220px 96px 190px;gap:10px;align-items:center}
.account-row-actions .account-record-slot{min-height:42px;display:flex;align-items:center}
.account-row-actions form.inline{display:flex;align-items:center;gap:8px;margin:0!important}
.account-row-actions button,.account-row-actions .v196-btn{min-height:40px;white-space:nowrap;margin:0}
.account-row-actions select{width:130px;min-width:0}
.account-row-actions input[name=confirm]{width:134px;min-width:0}
.account-row-actions .account-delete-form{grid-column:2/-1;justify-content:flex-end;border-top:1px solid #284969;padding-top:10px}
.draw-list-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid #284969}
.draw-list-entry .draw-list-row{border-bottom:0}
.draw-list-entry>.v196-btn{margin-right:10px;white-space:nowrap}
@media(max-width:600px){.draw-list-entry{grid-template-columns:minmax(0,1fr)}.draw-list-entry>.v196-btn{justify-self:end;margin:0 8px 12px}.account-row-actions{grid-template-columns:112px 220px 96px 190px}}
/* Keep application decisions and their persisted result visible on phones. */
.membership-applications form.inline{display:inline-flex;gap:8px;margin:4px}
@media(max-width:768px){.neon-account .membership-applications table{display:block;overflow:visible;width:100%}.membership-applications thead{display:none}.membership-applications tbody{display:grid;gap:12px}.membership-applications tr{display:block;border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0}.membership-applications td{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0!important;min-width:0;overflow-wrap:anywhere}.membership-applications td::before{content:attr(data-label);flex:0 0 84px;color:var(--muted);font-size:12px}.membership-applications td[colspan]::before{display:none}.membership-applications button{min-width:72px;min-height:44px}}
.current-plans-table{width:100%;min-width:640px!important}.current-plans-table th,.current-plans-table td{padding:10px 6px!important}.current-plans-table td:nth-child(3){white-space:normal;min-width:130px}.current-plans-table .row-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:106px}.current-plans-table .row-actions .v196-btn{margin:0;text-align:center;white-space:nowrap}
/* Browser zoom can leave less than 300 CSS px; retain every control and number. */
@media(max-width:320px){.final-dashboard-main>.panel>.winning-balls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) auto minmax(0,1fr);gap:3px!important}.final-dashboard-main>.panel>.winning-balls>.lotto-ball{width:100%;max-width:32px;height:auto;aspect-ratio:1;font-size:11px;justify-self:center}.mobile-generation-steps fieldset{min-width:0;gap:6px}.mobile-generation-steps fieldset button{min-width:0;overflow-wrap:anywhere;padding:10px 6px}}

.purchase-scroll { max-height: 26rem; overflow: auto; margin-top: 9px; }
.purchase-scroll thead { position: sticky; top: 0; z-index: 1; }
.purchase-plan-page { margin-top: 9px; }
.purchase-plan-page tr[hidden], .purchase-scroll tr[hidden], .purchase-pager[hidden] { display: none !important; }
.purchase-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.quick-guide-steps { padding-inline-start: 1.25em; }
.page-account .neon-account { max-width: none; margin-inline: 0; }
.account-users .account-table-wrap { max-width: 100%; }
.neon-account .account-users table { display: table; min-width: max-content; }
.account-users .account-row-actions { display: flex; gap: 12px; white-space: nowrap; }
.account-users .account-row-actions form.inline { flex-wrap: nowrap; }
.account-users .account-row-actions .account-delete-form { border-top: 0; padding-top: 0; }
.account-users .account-row-actions .account-record-slot { min-width: 112px; }

@media (max-width: 768px) {
  .v196-combination .rank-line { grid-template-columns: 28px max-content minmax(0, 1fr); }
}

.v196-settings .setting-row :is(#settingDefaultPage, #settingWeeklyBudget) {
  box-sizing: border-box;
  width: 140px;
  height: 38px;
}
#settingWeeklyBudget {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.weekly-budget-field { position: relative; max-width: 100%; }
.weekly-budget-field > span { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }
.v196-settings .setting-row #settingWeeklyBudget { padding-inline-end: 42px; }
