/* ALPHA Dark+Light Theme Foundation P0 — Home Beta only (html[data-theme="light"]) */

html[data-theme="light"]{
  color-scheme:light;
  --bg:#f8fafc;
  --panel:#ffffff;
  --panel2:#f1f5f9;
  --text:#0f172a;
  --muted:#64748b;
  --mint:#0d9488;
  --gold:#b45309;
}

html[data-theme="light"] body,
html[data-theme="light"] html{
  background:#f8fafc!important;
  color:#0f172a!important;
}

html[data-theme="light"] .app{
  background:linear-gradient(180deg,#eef2f7 0%,#f8fafc 48%,#ffffff 100%)!important;
  color:#0f172a!important;
}

/* Top disclaimer */
html[data-theme="light"] .alpha-top-disclaimer{color:var(--alpha-t-footer-muted)!important;border-bottom-color:#e2e8f0!important;}

/* Header */
html[data-theme="light"] .alpha-header-premium{
  background:linear-gradient(145deg,#ffffff,#f8fafc) padding-box,linear-gradient(135deg,rgba(13,148,136,.35),rgba(37,99,235,.22),rgba(13,148,136,.18)) border-box!important;
  box-shadow:0 8px 24px rgba(15,23,42,.08),0 0 0 1px rgba(226,232,240,.9)!important;
}
html[data-theme="light"] .alpha-brand-title{color:var(--alpha-t-title)!important;text-shadow:none!important;}
html[data-theme="light"] .alpha-brand-sub{color:var(--alpha-t-secondary)!important;}
html[data-theme="light"] .top-mini{color:var(--alpha-t-footer-muted)!important;}
html[data-theme="light"] .visit{color:var(--alpha-t-footer-muted)!important;}
html[data-theme="light"] .visit b{color:var(--alpha-t-footer-link)!important;}
html[data-theme="light"] .clock{color:var(--alpha-t-footer-link)!important;}

/* Market Bar */
html[data-theme="light"] .alpha-home-market-bar{
  background:rgba(255,255,255,.72)!important;
  border:1px solid #e2e8f0!important;
  border-radius:16px!important;
  box-shadow:0 4px 14px rgba(15,23,42,.06)!important;
}
html[data-theme="light"] .market-chip{
  background:#ffffff!important;
  border:1px solid #e2e8f0!important;
  box-shadow:0 1px 4px rgba(15,23,42,.04)!important;
}
html[data-theme="light"] .market-chip-lbl{color:var(--alpha-t-footer-muted)!important;}
html[data-theme="light"] .market-chip-val{color:var(--alpha-t-title)!important;}
html[data-theme="light"] .market-chip-unit{color:var(--alpha-t-secondary)!important;}

/* GOLD Hero */
html[data-theme="light"] .agp-shell{
  background:linear-gradient(145deg,rgba(180,83,9,.45),rgba(245,200,66,.25) 42%,rgba(13,148,136,.12))!important;
  box-shadow:0 10px 28px rgba(15,23,42,.10),0 0 0 1px rgba(226,232,240,.8)!important;
  animation:none!important;
}
html[data-theme="light"] .agp-inner{background:linear-gradient(168deg,#fffbeb,#fff,#f8fafc)!important;}
html[data-theme="light"] .agp-name,
html[data-theme="light"] .agp-price{color:#0f172a!important;}
html[data-theme="light"] .agp-code,
html[data-theme="light"] .agp-price-unit,
html[data-theme="light"] .agp-chart-title{color:#64748b!important;}
html[data-theme="light"] .agp-kicker{color:#b45309!important;}
html[data-theme="light"] .agp-score-row{background:#f8fafc!important;border-color:#e2e8f0!important;}
html[data-theme="light"] .agp-score-lbl,
html[data-theme="light"] .agp-tick{color:#64748b!important;}
html[data-theme="light"] .agp-flow-summary{background:rgba(13,148,136,.06)!important;border-color:rgba(13,148,136,.22)!important;}
html[data-theme="light"] #agp-chart{background:#f1f5f9!important;border-color:#e2e8f0!important;}

/* GO / invest flow cards */
html[data-theme="light"] .p38-invest-flow>.agp-shell,
html[data-theme="light"] .p38-invest-flow>.p40-global-watch,
html[data-theme="light"] .p38-invest-flow .alpha-v7-expert-flow,
html[data-theme="light"] .alpha-mobile-card-polish .p38-invest-flow>.agp-shell,
html[data-theme="light"] .alpha-mobile-card-polish .p38-invest-flow>.p40-global-watch{
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}

/* AI 계좌관리 */
html[data-theme="light"] .p47-fridge-card{
  background:linear-gradient(135deg,rgba(13,148,136,.06),#ffffff)!important;
  border-color:rgba(13,148,136,.28)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .p47-fridge-title{color:#0f172a!important;}
html[data-theme="light"] .p47-fridge-kicker{color:#0d9488!important;background:rgba(13,148,136,.08)!important;border-color:rgba(13,148,136,.2)!important;}
html[data-theme="light"] .p47-fridge-brief{background:#f8fafc!important;border-color:#e2e8f0!important;}

/* 종목 진단 */
html[data-theme="light"] .p43-diag-hero,
html[data-theme="light"] .p43-diag-wrap .p43-diag-hero{
  background:linear-gradient(160deg,#ffffff,#f8fafc)!important;
  border-color:#e2e8f0!important;
  box-shadow:0 8px 22px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .p43-diag-title{color:#0f172a!important;}
html[data-theme="light"] .p43-diag-input{
  background:#ffffff!important;
  color:#0f172a!important;
  border:1.75px solid #cbd5e1!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.04)!important;
}
html[data-theme="light"] .p43-diag-input::placeholder{color:#94a3b8!important;}
html[data-theme="light"] .p43-diag-input:focus{
  border-color:#6366f1!important;
  box-shadow:0 0 0 3px rgba(99,102,241,.15)!important;
}
html[data-theme="light"] .p43-diag-suggest{
  background:#ffffff!important;
  border-color:#e2e8f0!important;
  box-shadow:0 12px 28px rgba(15,23,42,.12)!important;
}
html[data-theme="light"] .p43-diag-suggest-name{color:#0f172a!important;}

/* 글로벌 AI 감시 */
html[data-theme="light"] .p40-global-watch,
html[data-theme="light"] .p42-gw-hero{
  background:linear-gradient(160deg,#ffffff,#f1f5f9)!important;
  border-color:#cbd5e1!important;
  box-shadow:0 8px 22px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .p40-gw-col,
html[data-theme="light"] .p40-global-watch .p40-gw-col{
  background:#ffffff!important;
  border-color:#e2e8f0!important;
}
html[data-theme="light"] .p40-gw-col-title,
html[data-theme="light"] .p42-gw-symbol{color:#0f172a!important;}
html[data-theme="light"] .p42-gw-score-num{color:#b45309!important;}

/* AI 투자학교 */
html[data-theme="light"] .alpha-school-card{
  background:linear-gradient(145deg,#fffbeb,#ffffff)!important;
  border-color:rgba(180,83,9,.22)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .alpha-school-title{color:#b45309!important;}
html[data-theme="light"] .alpha-school-cta{color:#0d9488!important;}

/* 전문가 분석 */
html[data-theme="light"] .alpha-v7-expert-flow{
  border-color:#cbd5e1!important;
  box-shadow:0 6px 18px rgba(15,23,42,.06)!important;
  background:#ffffff!important;
}
html[data-theme="light"] .alpha-v7-more-panel{
  background:#f8fafc!important;
  border-color:#e2e8f0!important;
}
html[data-theme="light"] .alpha-v7-more-row{color:#475569!important;border-top-color:#e2e8f0!important;}
html[data-theme="light"] .alpha-v7-more-row b{color:#0f172a!important;}
html[data-theme="light"] body.alpha-v7-expert-on .alpha-v7-expert-cta{
  background:linear-gradient(135deg,#e2e8f0,#f1f5f9)!important;
  border-color:#cbd5e1!important;
}
html[data-theme="light"] body.alpha-v7-expert-on .alpha-v7-expert-cta-title{color:#0f172a!important;}

/* MY section */
html[data-theme="light"] .p38-my-shell,
html[data-theme="light"] #my-section+div,
html[data-theme="light"] div[style*="rgba(20,10,35"]{
  background:linear-gradient(145deg,#ffffff,#f8fafc)!important;
  border-color:#e2e8f0!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
}
html[data-theme="light"] .p38-my-heading{color:#0f172a!important;}
html[data-theme="light"] .p38-my-notice{
  background:linear-gradient(135deg,rgba(13,148,136,.08),rgba(99,102,241,.06))!important;
  border-color:rgba(13,148,136,.22)!important;
}
html[data-theme="light"] .p38-my-notice-title{color:#0d9488!important;}
html[data-theme="light"] .p38-my-menu a{
  background:#ffffff;
  border-color:var(--alpha-s-border);
  color:var(--alpha-t-body);
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}

/* Theme picker (light) */
html[data-theme="light"] .alpha-theme-bar,
html[data-theme="light"] .alpha-theme-card{background:#f8fafc!important;border-color:#e2e8f0!important;}
html[data-theme="light"] .alpha-theme-bar-label,
html[data-theme="light"] .alpha-theme-label{color:var(--alpha-t-title)!important;}
html[data-theme="light"] .alpha-theme-btn{color:var(--alpha-t-secondary)!important;background:#fff!important;border-color:#e2e8f0!important;}
html[data-theme="light"] .alpha-theme-btn.active{color:#0f766e!important;background:rgba(13,148,136,.10)!important;border-color:#0d9488!important;box-shadow:0 0 0 1px rgba(13,148,136,.12)!important;}
html[data-theme="light"] .alpha-theme-beta{color:var(--alpha-t-footer-muted)!important;}

/* Footer */
html[data-theme="light"] .safe-footer{
  background:linear-gradient(145deg,#ffffff,#f8fafc)!important;
  border-color:#e2e8f0!important;
  color:var(--alpha-t-footer)!important;
  box-shadow:0 4px 14px rgba(15,23,42,.05)!important;
}
html[data-theme="light"] .safe-title{color:var(--alpha-t-secondary)!important;}
html[data-theme="light"] .safe-text{color:var(--alpha-t-footer-muted)!important;}

/* Bottom Nav */
html[data-theme="light"] .p47-bottom-nav{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.98))!important;
  border-top-color:#e2e8f0!important;
  box-shadow:0 -4px 20px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .p47-tab{color:#64748b!important;}
html[data-theme="light"] .p47-tab.active{color:#0d9488!important;filter:none!important;}
html[data-theme="light"] .p47-tab-center .p47-center-glow{
  background:linear-gradient(145deg,rgba(13,148,136,.10),rgba(13,148,136,.04))!important;
  border-color:rgba(13,148,136,.28)!important;
  box-shadow:0 4px 14px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .p47-tab-center.active{color:#0d9488!important;}

/* AI 라운지 Home preview */
html[data-theme="light"] .forest-lounge-zone{
  background:linear-gradient(165deg,#ecfdf5,#f0fdf4 40%,#f8fafc)!important;
  border-color:rgba(13,148,136,.22)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
}
html[data-theme="light"] .forest-lounge-zone::before,
html[data-theme="light"] .forest-lounge-zone::after{opacity:.35!important;}
html[data-theme="light"] .forest-lounge-hero h2,
html[data-theme="light"] .forest-hero-title{color:#065f46!important;}
html[data-theme="light"] .forest-lounge-hero p,
html[data-theme="light"] .forest-hero-sub{color:#047857!important;}
html[data-theme="light"] .forest-lounge-card{
  background:#ffffff!important;
  border-color:#bbf7d0!important;
  box-shadow:0 6px 18px rgba(15,23,42,.06)!important;
}
html[data-theme="light"] .forest-lounge-card.luck{background:linear-gradient(145deg,#ecfdf5,#ffffff)!important;}
html[data-theme="light"] .forest-lounge-card.energy{background:linear-gradient(145deg,#f0fdfa,#ffffff)!important;}
html[data-theme="light"] .forest-card-name{color:#0f172a!important;}
html[data-theme="light"] .forest-card-sub{color:#047857!important;}
html[data-theme="light"] .forest-lounge-foot{color:#64748b!important;}

/* Text Readability — light token-driven typography */
html[data-theme="light"] .p47-fridge-desc,
html[data-theme="light"] .p47-fridge-brief,
html[data-theme="light"] .p47-fridge-status,
html[data-theme="light"] .p47-fridge-brief p,
html[data-theme="light"] .p43-diag-sub,
html[data-theme="light"] .p43-advisor-lines li,
html[data-theme="light"] .p40-gw-sub,
html[data-theme="light"] .p42-gw-hero .p40-gw-sub,
html[data-theme="light"] .p31-go-desc-compact,
html[data-theme="light"] .p31-go-desc p,
html[data-theme="light"] .alpha-school-sub,
html[data-theme="light"] .alpha-school-q,
html[data-theme="light"] .lounge-hub-sub,
html[data-theme="light"] .p43-diag-block,
html[data-theme="light"] .p43-diag-report,
html[data-theme="light"] .agp-explainer-body p,
html[data-theme="light"] .agp-flow-summary,
html[data-theme="light"] .agp-reason-item-text,
html[data-theme="light"] .alpha-mb-line,
html[data-theme="light"] .alpha-mb-mood,
html[data-theme="light"] .p44-beta-banner-body,
html[data-theme="light"] .p38-my-notice-sub,
html[data-theme="light"] .p38-my-menu a{
  color:var(--alpha-t-body)!important;
}

html[data-theme="light"] .p42-gw-score-label,
html[data-theme="light"] .p42-gw-why-txt,
html[data-theme="light"] .p42-gw-why,
html[data-theme="light"] .p40-gw-pick-lbl,
html[data-theme="light"] .p40-gw-note,
html[data-theme="light"] .p40-gw-us-sub,
html[data-theme="light"] .p43-diag-price-lbl,
html[data-theme="light"] .p43-diag-trend-lbl,
html[data-theme="light"] .p43-diag-check-lbl,
html[data-theme="light"] .p43-diag-conf-lbl,
html[data-theme="light"] .agp-code,
html[data-theme="light"] .p47-fridge-brief strong,
html[data-theme="light"] .p47-fridge-health-label,
html[data-theme="light"] .alpha-v7-disclaimer,
html[data-theme="light"] .p40-gw-col-title,
html[data-theme="light"] .p42-gw-symbol-muted,
html[data-theme="light"] .p43-diag-stock,
html[data-theme="light"] .p43-diag-mode-tag,
html[data-theme="light"] .gold-metric-label,
html[data-theme="light"] .alpha-school-kicker,
html[data-theme="light"] .alpha-theme-btn{
  color:var(--alpha-t-secondary)!important;
}

html[data-theme="light"] .p31-daily-pnl-disclaimer,
html[data-theme="light"] .p31-go-footer,
html[data-theme="light"] .p43-diag-score-hint,
html[data-theme="light"] .p43-diag-conf-note,
html[data-theme="light"] .agp-tick,
html[data-theme="light"] .agp-reason-ssot,
html[data-theme="light"] .alab-disclaimer,
html[data-theme="light"] .forest-lounge-foot,
html[data-theme="light"] .p42-gw-disclaimer,
html[data-theme="light"] .p43-diag-suggest-meta,
html[data-theme="light"] .alpha-trust-time,
html[data-theme="light"] .p44-beta-banner-note,
html[data-theme="light"] .alpha-theme-beta,
html[data-theme="light"] .alpha-top-disclaimer{
  color:var(--alpha-t-footer-muted)!important;
}

html[data-theme="light"] .alpha-brand-title,
html[data-theme="light"] .p47-fridge-title,
html[data-theme="light"] .p43-diag-title,
html[data-theme="light"] .p38-my-heading,
html[data-theme="light"] .forest-card-name,
html[data-theme="light"] .market-chip-val,
html[data-theme="light"] .agp-name,
html[data-theme="light"] .agp-price{
  color:var(--alpha-t-title)!important;
}

/* Legacy block replaced by tokens above — kept for specificity on forest cards */
html[data-theme="light"] .forest-card-sub,
html[data-theme="light"] .p43-diag-block-title,
html[data-theme="light"] .p43-diag-trend{
  color:var(--alpha-t-body)!important;
}

html[data-theme="light"] .p47-fridge-desc,
html[data-theme="light"] .alpha-school-sub,
html[data-theme="light"] .p43-diag-sub,
html[data-theme="light"] .p40-gw-sub{color:var(--alpha-t-body)!important;}

/* Mobile card polish — light borders */
html[data-theme="light"] .alpha-mobile-card-polish .p38-invest-flow>.agp-shell,
html[data-theme="light"] .alpha-mobile-card-polish .p38-invest-flow>.p40-global-watch,
html[data-theme="light"] .alpha-mobile-card-polish .p47-fridge-card,
html[data-theme="light"] .alpha-mobile-card-polish .alpha-school-card,
html[data-theme="light"] .alpha-mobile-card-polish .forest-lounge-zone{
  border-color:#e2e8f0!important;
}

/* Mobile P1 — reinforce light on narrow / touch viewports */
@media (max-width:480px){
html[data-theme="light"] body,
html[data-theme="light"] html{background:#f8fafc!important;}
html[data-theme="light"] .app{background:linear-gradient(180deg,#eef2f7 0%,#f8fafc 48%,#ffffff 100%)!important;}
html[data-theme="light"] .p38-my-shell{background:linear-gradient(145deg,#ffffff,#f8fafc)!important;border-color:#e2e8f0!important;}
html[data-theme="light"] .p47-bottom-nav{background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;border-top-color:#e2e8f0!important;}
html[data-theme="light"] .alpha-theme-bar{background:#f8fafc!important;border-color:#e2e8f0!important;}
html[data-theme="light"] .forest-lounge-zone{background:linear-gradient(165deg,#ecfdf5,#f0fdf4 40%,#f8fafc)!important;}
html[data-theme="light"] .p40-global-watch,
html[data-theme="light"] .p42-gw-hero{background:linear-gradient(160deg,#ffffff,#f1f5f9)!important;}
}
/* Hub cards — light typography (background via surfaces tokens) */
html[data-theme="light"] .alpha-hub-card--history [style*="color:#ff7de9"],
html[data-theme="light"] .alpha-hub-card--history [style*="color:#e9b8ff"],
html[data-theme="light"] .alpha-hub-card--history [style*="color:#ff9df0"]{color:var(--alpha-t-title)!important;}
html[data-theme="light"] .alpha-hub-card--beta [style*="color:#00ff88"],
html[data-theme="light"] .alpha-hub-card--beta [style*="color:#dfffe8"],
html[data-theme="light"] .alpha-hub-card--beta [style*="color:#9fffc4"]{color:#047857!important;}
html[data-theme="light"] .alpha-hub-card--short [style*="color:#a78bfa"],
html[data-theme="light"] .alpha-hub-card--long [style*="color:#4da6ff"],
html[data-theme="light"] .alpha-hub-card--long [style*="color:#7ec8ff"]{color:#4338ca!important;}
html[data-theme="light"] .alpha-hub-card [style*="color:#fff"],
html[data-theme="light"] .alpha-hub-card [style*="color:#e2e8f0"],
html[data-theme="light"] .alpha-hub-card [style*="color:#cbd5e1"]{color:var(--alpha-t-body)!important;}
html[data-theme="light"] .alpha-hub-card [style*="color:#94a3b8"],
html[data-theme="light"] .alpha-hub-card [style*="color:#64748b"]{color:var(--alpha-t-secondary)!important;}
html[data-theme="light"] .alpha-hub-teaser--auto [style*="color:#00ffd5"],
html[data-theme="light"] .alpha-hub-teaser--auto [style*="color:#e2e8f0"]{color:var(--alpha-t-body)!important;}
html[data-theme="light"] .alpha-hub-teaser--auto [style*="color:#00ffd5"]:first-child{color:#0d9488!important;}
html[data-theme="light"] .alpha-hub-teaser--news [style*="color:#ff8fa3"],
html[data-theme="light"] .alpha-hub-teaser--news [style*="color:#fda4af"]{color:#be123c!important;}
html[data-theme="light"] .alpha-hub-teaser--news [style*="color:#e2e8f0"]{color:var(--alpha-t-body)!important;}
html[data-theme="light"] .home-perf-card [style*="color:#e2e8f0"],
html[data-theme="light"] .home-perf-card [style*="color:#fff"]{color:var(--alpha-t-body)!important;}
html[data-theme="light"] .home-perf-card [style*="color:#94a3b8"],
html[data-theme="light"] .home-perf-card [style*="color:#64748b"]{color:var(--alpha-t-secondary)!important;}

@media (hover:none) and (pointer:coarse){
html[data-theme="light"] .p47-bottom-nav{background:var(--alpha-s-nav-bg)!important;}
html[data-theme="light"] .p38-my-shell{background:var(--alpha-s-shell-bg)!important;}
}

/* ══════════════════════════════════════════════════════════
   P5 — Light contrast sweep (Premium Home real-device FAIL fix)
   No white/#cbd5e1 text on white surfaces — WCAG AA target
   ══════════════════════════════════════════════════════════ */

html[data-theme="light"] body.alpha-premium-mobile-home,
html[data-theme="light"] body.alpha-premium-mobile-home .app{
  color:#0f172a!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-top-disclaimer,
html[data-theme="light"] body.alpha-mobile-card-polish>div.alpha-top-disclaimer:first-of-type{
  color:#64748b!important;
  border-bottom-color:#e2e8f0!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .top-mini,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-beta{
  color:#64748b!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-bar-label{
  color:#334155!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .p38-my-menu a{
  background:#ffffff!important;
  border:1.5px solid #e2e8f0!important;
  color:#334155!important;
  font-weight:900!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .p38-my-notice-sub{
  color:#475569!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-sub{
  color:rgba(15,23,42,.72)!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-more-link,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-gold-briefing-teaser{
  color:#0d9488!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-disclaimer,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-more-locked{
  color:#64748b!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-more-panel,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-more-panel *{
  color:#334155;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-more-panel b,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-more-panel strong{
  color:#0f172a!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-hub-card,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-hub-teaser--auto,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-hub-teaser--news,
html[data-theme="light"] body.alpha-premium-mobile-home .home-perf-card{
  color:#334155!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alab-digest,
html[data-theme="light"] body.alpha-premium-mobile-home .alab-smart-bot,
html[data-theme="light"] body.alpha-premium-mobile-home .alab-digest li,
html[data-theme="light"] body.alpha-premium-mobile-home .alab-smart-bot-item{
  color:#334155!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alab-disclaimer,
html[data-theme="light"] body.alpha-premium-mobile-home .alab-smart-bot-sub{
  color:#64748b!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .safe-footer,
html[data-theme="light"] body.alpha-premium-mobile-home .safe-footer .safe-text{
  color:#64748b!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .safe-footer .safe-title{
  color:#475569!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-site-footer,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-site-footer a{
  color:#64748b!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-site-footer .alpha-footer-brand{
  color:#334155!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .p31-go-desc-compact,
html[data-theme="light"] body.alpha-premium-mobile-home .p31-go-judgment-hint,
html[data-theme="light"] body.alpha-premium-mobile-home .ap3-er-hint,
html[data-theme="light"] body.alpha-premium-mobile-home .agp-timeline-msg{
  color:#475569!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .p40-gw-note,
html[data-theme="light"] body.alpha-premium-mobile-home .p42-gw-disclaimer,
html[data-theme="light"] body.alpha-premium-mobile-home .p40-gw-us-sub{
  color:#64748b!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-browse,
html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-enter{
  color:#0d9488!important;
}

/* Kill light-on-light leaks from legacy unscoped inline styles */
html[data-theme="light"] body.alpha-premium-mobile-home [style*="color:#fff"],
html[data-theme="light"] body.alpha-premium-mobile-home [style*="color: #fff"],
html[data-theme="light"] body.alpha-premium-mobile-home [style*="color:#e2e8f0"],
html[data-theme="light"] body.alpha-premium-mobile-home [style*="color:#cbd5e1"],
html[data-theme="light"] body.alpha-premium-mobile-home [style*="color:#f1f5f9"]{
  color:#334155!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home [style*="color:#94a3b8"],
html[data-theme="light"] body.alpha-premium-mobile-home [style*="color:#64748b"]{
  color:#475569!important;
}

/* VIP/PRO cards — light surfaces only on Home light */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-golden-card,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-vip-card,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-pro-card{
  background:linear-gradient(145deg,#fffbeb,#ffffff)!important;
  border-color:#fde68a!important;
  color:#334155!important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-golden-card *,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-vip-card *,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-pro-card *{
  color:inherit;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-golden-card h3,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-vip-card h3,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-pro-card h3{
  color:#0f172a!important;
}


/* P0 LIGHT FOG KILL — remove white/blur veil in light mode */
html[data-theme="light"] #alpha-home-loading,
html[data-theme="light"] #alpha-home-loading.is-visible{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  pointer-events:none !important;
}

html[data-theme="light"] .alpha-premium-mobile-home *,
html[data-theme="light"] body.alpha-premium-mobile-home *{
  text-shadow:none !important;
}

html[data-theme="light"] [style*="backdrop-filter"],
html[data-theme="light"] [style*="-webkit-backdrop-filter"]{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* ═══════════════════════════════════════════════════════════════
   P1 LIGHT HOME FOG KILL — home core blur/veil removal (2026-07-07)
   Scope: html[data-theme="light"] only — dark mode untouched
   ═══════════════════════════════════════════════════════════════ */

/* 1. Loading veil — full kill */
html[data-theme="light"] #alpha-home-loading,
html[data-theme="light"] #alpha-home-loading.is-visible{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  background:transparent !important;
}

/* 2. Home core cards — blur/glass off */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-header-premium,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-market-bar,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-card,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-card,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-rocket-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-bar,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-bottom-nav,
html[data-theme="light"] body.alpha-premium-mobile-home #alpha-home-expert-bucket,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-only{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
}

/* 3. Pseudo overlays — hide on home core */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-header-premium::before,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-header-premium::after,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-card::before,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-card::after,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-card::before,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-card::after,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-rocket-card::before,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-rocket-card::after,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card::before,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card::after,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card::before,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card::after,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-diamond-card::before,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-diamond-card::after,
html[data-theme="light"] body.alpha-premium-mobile-home .zero-rank-wrap::before,
html[data-theme="light"] body.alpha-premium-mobile-home .zero-rank-wrap::after{
  display:none !important;
  opacity:0 !important;
  content:none !important;
}

/* 4. Home page background — single flat surface */
html[data-theme="light"] body.alpha-premium-mobile-home,
html[data-theme="light"] body.alpha-premium-mobile-home html,
html[data-theme="light"] body.alpha-premium-mobile-home .app{
  background:#f6f8fb !important;
  color:#111827 !important;
}

/* 5. Home core card surfaces — crisp white/tint */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-header-premium,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-market-bar,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-bar{
  background:rgba(255,255,255,.96) !important;
  color:#111827 !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-card{
  background:rgba(255,251,235,.96) !important;
  color:#111827 !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ahs-rocket-card{
  background:rgba(250,245,255,.96) !important;
  color:#111827 !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
}

/* 6. Text contrast — remove foggy text-shadow only */
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-card *,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card *,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card *{
  text-shadow:none !important;
}

/* ═══════════════════════════════════════════════════════════════
   P2 LIGHT HOME UI — theme bar top + sharpness (2026-07-07)
   Scope: html[data-theme="light"] body.alpha-premium-mobile-home only
   ═══════════════════════════════════════════════════════════════ */

/* Theme bar — top slot (MEECHU-style, always visible on home) */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-theme-slot{
  margin:2px 0 8px;
  padding:0 2px;
}
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-bar--home-top{
  margin:0 0 4px;
  background:#ffffff !important;
  border:1px solid rgba(15,23,42,.10) !important;
  box-shadow:0 2px 8px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-beta--home-top{
  margin:0 0 6px;
  color:#64748b !important;
  text-align:left;
}

/* Flat page — beat late mobile gradient belt */
@media(max-width:480px),(hover:none) and (pointer:coarse){
  html[data-theme="light"] body.alpha-premium-mobile-home,
  html[data-theme="light"] body.alpha-premium-mobile-home html,
  html[data-theme="light"] body.alpha-premium-mobile-home .app{
    background:#f6f8fb !important;
    background-image:none !important;
  }
}

/* Tighter home core spacing */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-simple-core{
  gap:8px !important;
  margin:2px 0 10px !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-market-bar{
  margin:4px 0 6px !important;
}

/* Sharper core card surfaces (P2 override P1 .96) */
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-header-premium,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-market-bar,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-brief-line,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-theme-bar--home-top{
  background:#ffffff !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 4px 14px rgba(15,23,42,.07) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-card{
  background:#fffbeb !important;
  border-color:rgba(245,158,11,.28) !important;
  box-shadow:0 4px 14px rgba(245,158,11,.10) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-rocket-card{
  background:#faf5ff !important;
  border-color:rgba(168,85,247,.24) !important;
  box-shadow:0 4px 14px rgba(168,85,247,.08) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-simple-core .p47-fridge-card{
  background:linear-gradient(145deg,#f0fdfa,#ffffff) !important;
  border-color:rgba(13,148,136,.20) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-simple-core .p46-diag-hero-card{
  background:linear-gradient(145deg,#f5f3ff,#ffffff) !important;
  border-color:rgba(99,102,241,.20) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-brief-line{
  background:#ffffff !important;
  border-color:#e0e7ff !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-brief-kicker{color:#6d28d9 !important;}
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-brief-text{color:#0f172a !important;}
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-meta,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-rocket-meta,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-hero-desc{color:#475569 !important;}

/* Remove mint/gray section veils */
html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-zone,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-mobile-card-polish .forest-lounge-zone{
  background:#f8fafc !important;
  background-image:none !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-zone::before,
html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-zone::after{
  display:none !important;
  opacity:0 !important;
  content:none !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home .p38-invest-flow{
  background:transparent !important;
}

/* Expert mode — light override for dark inline hub cards only */
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket div[style*="background:rgba(0,0,0"]{
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 4px 14px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket div[style*="background:linear-gradient(145deg,#020"]{
  background:linear-gradient(145deg,#ffffff,#f8fafc) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 4px 14px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket .p38-recovery-status,
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket .p38-recovery-why{
  background:#ffffff !important;
  border-color:rgba(15,23,42,.10) !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket .p38-recovery-status-badge,
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket .p38-recovery-why p{
  color:#0f172a !important;
}
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket .p38-recovery-status-lbl,
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket .p38-recovery-why-lbl{
  color:#64748b !important;
}

/* ═══════════════════════════════════════════════════════════════
   P3 LIGHT EXPERT CTA — visibility restore (2026-07-07)
   Scope: html[data-theme="light"] body.alpha-premium-mobile-home only
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-wrap{
  display:block !important;
  margin:14px 0 16px !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta{
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  min-height:62px !important;
  padding:16px 18px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#6d28d9 0%,#2563eb 100%) !important;
  border:1px solid rgba(79,70,229,.35) !important;
  box-shadow:0 12px 28px rgba(37,99,235,.22) !important;
  color:#ffffff !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-icon,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-title,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-text{
  color:#ffffff !important;
  text-shadow:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-sub,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta small,
html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta .muted{
  color:rgba(255,255,255,.82) !important;
  text-shadow:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on .alpha-v7-expert-cta{
  background:linear-gradient(135deg,#0f172a 0%,#334155 100%) !important;
  border-color:rgba(15,23,42,.25) !important;
  box-shadow:0 12px 28px rgba(15,23,42,.22) !important;
}

/* ═══════════════════════════════════════════════════════════════
   P4 EXPERT V2 — light surfaces (2026-07-07)
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="light"] body.alpha-premium-mobile-home #alpha-home-expert-v2{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-stack{
  gap:10px !important;
  margin:6px 0 14px !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card{
  background:#ffffff !important;
  color:#0f172a !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 4px 14px rgba(15,23,42,.07) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card--gold{
  background:#fffbeb !important;
  border-color:rgba(245,158,11,.28) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card--quality{
  background:#f0f9ff !important;
  border-color:rgba(14,165,233,.22) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card--stop{
  background:#fff1f2 !important;
  border-color:rgba(244,63,94,.22) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card--market{
  background:#f5f3ff !important;
  border-color:rgba(99,102,241,.22) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card-kicker{
  color:#64748b !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card-title{
  color:#0f172a !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card-sub,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card-body{
  color:#475569 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-badge{
  background:rgba(15,23,42,.06) !important;
  color:#0f172a !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-reason-item,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-risk-top,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-market-chip{
  background:#ffffff !important;
  border-color:rgba(15,23,42,.08) !important;
  color:#334155 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-list li{
  border-bottom-color:rgba(15,23,42,.08) !important;
  color:#475569 !important;
}

/* Legacy bucket — always hidden when v2 active */
html[data-theme="light"] body.alpha-premium-mobile-home.alpha-v7-expert-on #alpha-home-expert-bucket{
  display:none !important;
  visibility:hidden !important;
  max-height:0 !important;
  overflow:hidden !important;
}

/* ═══════════════════════════════════════════════════════════════
   P5 EXPERT LAB UX — light polish (2026-07-07)
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab{
  margin:20px 0 10px !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal{
  background:linear-gradient(165deg,#ffffff 0%,#f8f7ff 55%,#f3f6ff 100%) !important;
  border-color:rgba(99,102,241,.12) !important;
  box-shadow:0 16px 40px rgba(99,102,241,.07),0 2px 8px rgba(15,23,42,.04) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal-title{
  color:#0f172a !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal-tag{
  color:#6366f1 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal-manifesto li{
  color:#475569 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-entry{
  background:linear-gradient(135deg,#4f46e5 0%,#6366f1 100%) !important;
  border-color:rgba(79,70,229,.25) !important;
  box-shadow:0 12px 32px rgba(79,70,229,.22),inset 0 1px 0 rgba(255,255,255,.2) !important;
  color:#ffffff !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal.is-open .expert-lab-entry{
  background:linear-gradient(135deg,#1e293b 0%,#334155 100%) !important;
  border-color:rgba(15,23,42,.15) !important;
  box-shadow:0 8px 24px rgba(15,23,42,.12) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-chamber-inner{
  background:linear-gradient(180deg,#fafbff 0%,#ffffff 100%) !important;
  border-color:rgba(99,102,241,.1) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-chamber-kicker{
  color:#94a3b8 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-section-label{
  color:#64748b !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-section-rule::before,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-section-rule::after{
  background:linear-gradient(90deg,transparent,rgba(15,23,42,.1),transparent) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card{
  background:#ffffff !important;
  border-color:rgba(15,23,42,.07) !important;
  box-shadow:0 1px 6px rgba(15,23,42,.04) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-badge{
  background:rgba(99,102,241,.08) !important;
  color:#4338ca !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-reason-item,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-risk-top,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-market-chip{
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.06) !important;
  color:#334155 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-v7-expert-cta-wrap{
  display:none !important;
}

/* ═══════════════════════════════════════════════════════════════
   P15 HOME IA REBUILD — light clarity + AI Space
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="light"]{
  --bg:#f6f8fb;
}

html[data-theme="light"] body,
html[data-theme="light"] html,
html[data-theme="light"] .app{
  background:#f6f8fb !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-home-simple-core{
  gap:12px !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .alpha-latest-web-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:42px !important;
  margin-top:8px !important;
  border-radius:14px !important;
  background:#ffffff !important;
  border:1px solid #ddd6fe !important;
  color:#4338ca !important;
  font-size:12px !important;
  font-weight:1000 !important;
  text-decoration:none !important;
  box-shadow:0 2px 8px rgba(99,102,241,.06) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ahs-gold-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p47-fridge-card,
html[data-theme="light"] body.alpha-premium-mobile-home .p46-diag-hero-card,
html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-card,
html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal,
html[data-theme="light"] body.alpha-premium-mobile-home .ahs-admin-ops,
html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-zone{
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-card{
  display:block !important;
  padding:16px !important;
  border-radius:22px !important;
  background:linear-gradient(145deg,#fff7ed,#ffffff) !important;
  border:1px solid rgba(180,83,9,.18) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.06) !important;
  text-decoration:none !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-title{
  color:#9a3412 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-hook,
html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-q{
  color:#334155 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-badge,
html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-go-link,
html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-btn{
  color:#9a3412 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ap4-school-btn{
  background:#fff7ed !important;
  border:1px solid rgba(180,83,9,.16) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal{
  padding:24px 20px 20px !important;
  background:linear-gradient(165deg,#ffffff 0%,#f8f7ff 56%,#eef2ff 100%) !important;
  border-color:rgba(99,102,241,.14) !important;
  box-shadow:0 14px 34px rgba(99,102,241,.08),0 2px 8px rgba(15,23,42,.04) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-lab-portal-tag{
  color:#4f46e5 !important;
  text-transform:none !important;
  letter-spacing:-.01em !important;
  font-size:11px !important;
  line-height:1.45 !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ai-space-zone-title{
  color:#0f172a !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ai-space-zone-desc{
  color:#64748b !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ai-space-chip{
  background:#ffffff !important;
  border-color:rgba(15,23,42,.08) !important;
  color:#334155 !important;
  box-shadow:0 1px 6px rgba(15,23,42,.035) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ai-space-chip small{
  color:#64748b !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .expert-v2-card--quality{
  background:#ffffff !important;
  border-color:rgba(14,165,233,.14) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .ahs-admin-ops{
  background:#ffffff !important;
  border-color:#dbeafe !important;
  box-shadow:0 8px 22px rgba(15,23,42,.06) !important;
}

html[data-theme="light"] body.alpha-premium-mobile-home .forest-lounge-zone{
  background:linear-gradient(165deg,#ecfdf5,#f8fafc 70%,#ffffff) !important;
  border-color:rgba(13,148,136,.18) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.06) !important;
}


/* =========================================================
   ALPHA UI V20 — Light Theme Contrast & Premium Card Polish
   목적: 라이트 모드에서 카드 경계가 흐려지는 문제와 상세/홈 시각 일관성 보강
========================================================= */
html[data-theme="light"]{
  --alpha-ui21-page:#f5f7fb;
  --alpha-ui21-card:#ffffff;
  --alpha-ui21-card-soft:#f8fafc;
  --alpha-ui21-border:#d8e0ec;
  --alpha-ui21-border-strong:#c8d2e1;
  --alpha-ui21-text:#0f172a;
  --alpha-ui21-muted:#64748b;
  --alpha-ui21-mint:#0f766e;
  --alpha-ui21-shadow:0 12px 30px rgba(15,23,42,.09), inset 0 1px 0 rgba(255,255,255,.92);
}
html[data-theme="light"] body,
html[data-theme="light"] .app{background:var(--alpha-ui21-page)!important;color:var(--alpha-ui21-text)!important;}
html[data-theme="light"] .alpha-header-premium,
html[data-theme="light"] .alpha-home-market-bar,
html[data-theme="light"] .market-chip,
html[data-theme="light"] .card,
html[data-theme="light"] .set,
html[data-theme="light"] .note,
html[data-theme="light"] .info-card,
html[data-theme="light"] .market-card,
html[data-theme="light"] .news-card,
html[data-theme="light"] .analysis-card,
html[data-theme="light"] .agp-inner,
html[data-theme="light"] .p47-fridge-card,
html[data-theme="light"] .p43-diag-hero,
html[data-theme="light"] .p40-global-watch,
html[data-theme="light"] .p42-gw-hero,
html[data-theme="light"] .alpha-school-card,
html[data-theme="light"] .alpha-v7-expert-flow,
html[data-theme="light"] .forest-lounge-zone,
html[data-theme="light"] .forest-lounge-card,
html[data-theme="light"] .p38-my-shell,
html[data-theme="light"] .p38-my-notice,
html[data-theme="light"] .p38-company-cell,
html[data-theme="light"] .p38-recovery-status,
html[data-theme="light"] .p38-recovery-why{
  border-color:var(--alpha-ui21-border)!important;
  border-width:1.5px!important;
  box-shadow:var(--alpha-ui21-shadow)!important;
}
html[data-theme="light"] .market-chip,
html[data-theme="light"] .p40-gw-col,
html[data-theme="light"] .agp-score-row,
html[data-theme="light"] .p43-diag-input,
html[data-theme="light"] .p43-diag-suggest,
html[data-theme="light"] .p38-my-menu a{
  border-color:var(--alpha-ui21-border)!important;
  box-shadow:0 5px 16px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .alpha-theme-card,
html[data-theme="light"] .alpha-theme-bar,
html[data-theme="light"] .safe-footer,
html[data-theme="light"] .p47-bottom-nav{
  border-color:var(--alpha-ui21-border)!important;
}
html[data-theme="light"] .alpha-brand-title,
html[data-theme="light"] .p43-diag-title,
html[data-theme="light"] .p40-gw-col-title,
html[data-theme="light"] .p42-gw-symbol,
html[data-theme="light"] .p38-my-heading,
html[data-theme="light"] .p38-company-cell .val,
html[data-theme="light"] .p38-recovery-status-badge{
  color:var(--alpha-ui21-text)!important;
  text-shadow:none!important;
}
html[data-theme="light"] .alpha-brand-sub,
html[data-theme="light"] .market-chip-lbl,
html[data-theme="light"] .market-chip-unit,
html[data-theme="light"] .p47-fridge-desc,
html[data-theme="light"] .p43-diag-sub,
html[data-theme="light"] .p40-gw-sub,
html[data-theme="light"] .p42-gw-why-txt,
html[data-theme="light"] .p38-company-cell .lbl,
html[data-theme="light"] .p38-recovery-why p{
  color:var(--alpha-ui21-muted)!important;
}
html[data-theme="light"] .p47-tab-center .p47-center-glow{
  border-color:rgba(13,148,136,.38)!important;
  box-shadow:0 10px 24px rgba(13,148,136,.14), inset 0 1px 0 rgba(255,255,255,.9)!important;
}
@media(max-width:520px){
  html[data-theme="light"] .app{padding-left:8px!important;padding-right:8px!important;}
  html[data-theme="light"] .alpha-header-premium,
  html[data-theme="light"] .alpha-home-market-bar,
  html[data-theme="light"] .alpha-theme-card,
  html[data-theme="light"] .card,
  html[data-theme="light"] .note,
  html[data-theme="light"] .analysis-card{border-radius:20px!important;}
}


/* =========================================================
   ALPHA UI V21 — premium light depth & detail hardening
   목적: 라이트 카드 경계/그림자/상세 다크 잔재 정리
   ========================================================= */
html[data-theme="light"]{
  --alpha-v21-bg:#f3f6fb;
  --alpha-v21-card:#ffffff;
  --alpha-v21-card-soft:#f8fafc;
  --alpha-v21-border:#cfd9e8;
  --alpha-v21-border-soft:#dde5f0;
  --alpha-v21-text:#0f172a;
  --alpha-v21-muted:#64748b;
  --alpha-v21-mint:#0f766e;
  --alpha-v21-shadow:0 14px 34px rgba(15,23,42,.095);
  --alpha-v21-shadow-soft:0 8px 22px rgba(15,23,42,.075);
}

html[data-theme="light"] body{
  background:linear-gradient(180deg,#eef3f9 0%,#f8fafc 44%,#ffffff 100%)!important;
}

html[data-theme="light"] .app{
  background:linear-gradient(180deg,#eef3f9 0%,#f8fafc 46%,#ffffff 100%)!important;
}

/* 카드 공통 깊이 */
html[data-theme="light"] .alpha-header-premium,
html[data-theme="light"] .alpha-home-market-bar,
html[data-theme="light"] .alpha-theme-bar,
html[data-theme="light"] .alpha-brief-card,
html[data-theme="light"] .gold-throne-card,
html[data-theme="light"] .expert-v2-card,
html[data-theme="light"] .ai-space-zone,
html[data-theme="light"] .p38-my-shell,
html[data-theme="light"] .alpha-pwa-card,
html[data-theme="light"] .home-card,
html[data-theme="light"] .section-card,
html[data-theme="light"] .market-chip{
  border:1.5px solid var(--alpha-v21-border)!important;
  box-shadow:var(--alpha-v21-shadow)!important;
  background:#ffffff!important;
  color:var(--alpha-v21-text)!important;
}

html[data-theme="light"] .market-chip,
html[data-theme="light"] .alpha-theme-btn,
html[data-theme="light"] .ai-space-chip{
  border-color:var(--alpha-v21-border-soft)!important;
  box-shadow:var(--alpha-v21-shadow-soft)!important;
}

/* GOLD/AI 분석 영역 가독성 */
html[data-theme="light"] .expert-v2-section-rule{
  border-color:#dbe4ef!important;
}
html[data-theme="light"] .expert-v2-section-label{
  color:#64748b!important;
  background:#f8fafc!important;
  border:1px solid #dbe4ef!important;
  border-radius:999px!important;
  padding:5px 12px!important;
}
html[data-theme="light"] .expert-v2-card-title,
html[data-theme="light"] .ai-space-zone-title,
html[data-theme="light"] .alpha-brief-title{
  color:#0f172a!important;
  letter-spacing:-.02em;
}
html[data-theme="light"] .expert-v2-card-sub,
html[data-theme="light"] .expert-v2-list li,
html[data-theme="light"] .ai-space-zone-desc,
html[data-theme="light"] .alpha-brief-body{
  color:#334155!important;
}
html[data-theme="light"] .expert-v2-list li{
  border-bottom:1px solid #e5edf6!important;
  padding:10px 0!important;
}

/* AI STOP/주의 카드 — 위험은 보이되 무겁지 않게 */
html[data-theme="light"] .expert-v2-card--quality,
html[data-theme="light"] #expert-v2-quality-gate{
  background:linear-gradient(145deg,#ffffff,#fbfdff)!important;
}
html[data-theme="light"] .ai-stop-card,
html[data-theme="light"] .risk-card,
html[data-theme="light"] .caution-card{
  background:linear-gradient(145deg,#fff7ed,#ffffff)!important;
  border:1.5px solid rgba(217,119,6,.28)!important;
  box-shadow:0 14px 34px rgba(180,83,9,.10)!important;
}

/* 바텀 네비: 라이트에서 떠 보이게 */
html[data-theme="light"] .bottom-nav,
html[data-theme="light"] .alpha-bottom-nav,
html[data-theme="light"] nav[aria-label*="하단"]{
  background:rgba(255,255,255,.94)!important;
  border-top:1.5px solid #d8e0ec!important;
  box-shadow:0 -14px 34px rgba(15,23,42,.10)!important;
  backdrop-filter:blur(14px)!important;
}

/* 상세/섹션 다크 잔재 강제 제거 */
html[data-theme="light"] .sec-header,
html[data-theme="light"] .detail-header{
  background:rgba(248,250,252,.94)!important;
  border-bottom:1.5px solid #d8e0ec!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .sec-title,
html[data-theme="light"] .detail-title{color:#0f172a!important;}
html[data-theme="light"] .sec-back,
html[data-theme="light"] .back{
  background:#ffffff!important;
  color:#0f766e!important;
  border:1.5px solid rgba(13,148,136,.34)!important;
  box-shadow:0 8px 20px rgba(15,23,42,.08)!important;
}

/* 모바일 터치감 */
html[data-theme="light"] .alpha-clickable,
html[data-theme="light"] .expert-v2-card,
html[data-theme="light"] .ai-space-chip,
html[data-theme="light"] .alpha-theme-btn{
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
html[data-theme="light"] .alpha-clickable:active,
html[data-theme="light"] .expert-v2-card:active,
html[data-theme="light"] .ai-space-chip:active,
html[data-theme="light"] .alpha-theme-btn:active{
  transform:scale(.985);
  box-shadow:0 6px 16px rgba(15,23,42,.08)!important;
}

/* 좁은 모바일에서 카드 분리 */
@media(max-width:480px){
  html[data-theme="light"] .alpha-header-premium,
  html[data-theme="light"] .alpha-home-market-bar,
  html[data-theme="light"] .alpha-theme-bar,
  html[data-theme="light"] .alpha-brief-card,
  html[data-theme="light"] .gold-throne-card,
  html[data-theme="light"] .expert-v2-card,
  html[data-theme="light"] .ai-space-zone{
    border-radius:22px!important;
  }
}


/* =========================================================
   ALPHA Light UI 1.0 / V27 — clean, readable, non-excel system
   Scope: light mode only. UI only. No broad child borders.
   ========================================================= */
:root{
  --al27-bg:#f3f6fb;
  --al27-bg2:#f8fafc;
  --al27-surface:#ffffff;
  --al27-surface2:#f8fafc;
  --al27-ink:#111827;
  --al27-body:#334155;
  --al27-sub:#64748b;
  --al27-muted:#7b8797;
  --al27-line:#d9e2ec;
  --al27-line-strong:#cbd5e1;
  --al27-mint:#0f766e;
  --al27-mint2:#14b8a6;
  --al27-blue:#2563eb;
  --al27-gold:#b7791f;
  --al27-red:#dc2626;
  --al27-purple:#6d28d9;
  --al27-shadow:0 12px 30px rgba(15,23,42,.075);
  --al27-shadow-soft:0 6px 18px rgba(15,23,42,.055);
}
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .app,
body.alpha-light-v27{
  color-scheme:light!important;
  background:linear-gradient(180deg,var(--al27-bg) 0%,var(--al27-bg2) 60%,#ffffff 100%)!important;
  color:var(--al27-ink)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
html[data-theme="light"] body,
html[data-theme="light"] body *{
  filter:none!important;
  text-shadow:none!important;
  mix-blend-mode:normal!important;
}
html[data-theme="light"] :where(h1,h2,h3,h4,h5,h6,.title,.section-title,.card-title,.detail-title,.fridge-title,.account-title,.forest-hero-title,.alpha-brand-title){
  color:var(--al27-ink)!important;
  font-weight:900!important;
  letter-spacing:-.02em;
}
html[data-theme="light"] :where(p,li,label,.desc,.description,.sub,.subtitle,.body,.brief,.menu-sub,.forest-hero-sub,.lounge-hub-sub,.detail-ai-status-desc,.detail-ai-note,.news-ai){
  color:var(--al27-body)!important;
  line-height:1.6!important;
  font-weight:650!important;
}
html[data-theme="light"] :where(small,.small,.muted,.caption,.meta,.kicker,.score-label,.forest-lounge-foot){
  color:var(--al27-sub)!important;
  font-weight:650!important;
}
html[data-theme="light"] a{color:var(--al27-mint)!important;}

/* App surfaces */
html[data-theme="light"] :where(main,.page,.wrap,.container,.detail-wrap,.fridge-wrap,.fridge-page,.my-fridge-page,.section-page,.alpha-page,.p38-invest-flow){
  background:transparent!important;
  color:var(--al27-ink)!important;
}

/* Card system: apply only to card containers, never to every child. */
html[data-theme="light"] :where(
  .card,.panel,.premium-card,.menu-card,.hero,.hero-card,
  .fridge-card,.fridge-hero,.account-card,.account-hero,
  .detail-card,.detail-ai-status-card,.analysis,.grade-card,.ai-card,
  .gold-card,.report-card,.school-card,.stock-card,.holding-card,
  .notice-card,.summary-card,.lounge-hub-card,.forest-lounge-card,
  .forest-hero,.p38-my-shell,.p43-diag-hero,.p43-diag-card,
  .p47-fridge-card,.alpha-school-card,.agp-card,.ahs-gold-card
){
  background:var(--al27-surface)!important;
  color:var(--al27-ink)!important;
  border:1px solid var(--al27-line)!important;
  border-radius:22px!important;
  box-shadow:var(--al27-shadow)!important;
}
html[data-theme="light"] :where(.card,.panel,.premium-card,.menu-card,.lounge-hub-card,.forest-lounge-card,.fridge-card,.account-card,.detail-card,.report-card,.school-card,.stock-card,.holding-card,.notice-card,.summary-card) + :where(.card,.panel,.premium-card,.menu-card,.lounge-hub-card,.forest-lounge-card,.fridge-card,.account-card,.detail-card,.report-card,.school-card,.stock-card,.holding-card,.notice-card,.summary-card){
  margin-top:12px;
}

/* Hero surfaces */
html[data-theme="light"] :where(.fridge-hero,.account-hero,.forest-hero,.hero-card,.p43-diag-hero){
  background:linear-gradient(145deg,#ffffff 0%,#ecfeff 70%,#f8fafc 100%)!important;
  border-color:rgba(20,184,166,.45)!important;
  box-shadow:0 16px 36px rgba(13,148,136,.12)!important;
}
html[data-theme="light"] .forest-hero-title{color:#064e3b!important;}
html[data-theme="light"] .forest-hero-sub{color:#285d4e!important;}

/* Lounge */
html[data-theme="light"] body.forest-lounge-page{
  background:linear-gradient(180deg,#eefdf8 0%,#f6f8fb 48%,#ffffff 100%)!important;
  color:var(--al27-ink)!important;
}
html[data-theme="light"] .forest-lounge-header,
html[data-theme="light"] .header.forest-lounge-header{
  background:rgba(255,255,255,.92)!important;
  border:1px solid var(--al27-line)!important;
  border-radius:0 0 20px 20px!important;
  box-shadow:0 8px 22px rgba(15,23,42,.07)!important;
  backdrop-filter:blur(10px);
}
html[data-theme="light"] .lounge-hub-card{
  background:#ffffff!important;
  border-color:#dbe5ef!important;
  box-shadow:0 10px 24px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .lounge-hub-cta,
html[data-theme="light"] .forest-lounge-enter,
html[data-theme="light"] .forest-lounge-browse{
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:#ffffff!important;
  border:0!important;
  box-shadow:0 8px 18px rgba(15,118,110,.22)!important;
  border-radius:999px!important;
  font-weight:900!important;
}
html[data-theme="light"] .lounge-hub-cta *{color:#ffffff!important;}

/* Breadcrumb / top bars: remove black bars */
html[data-theme="light"] :where(.breadcrumb,.topbar,.nav-head,.tabs,.tabbar,.middle-nav,.section-nav,.page-nav,.forest-back,.back,.alpha-home-escape){
  background:#ffffff!important;
  color:var(--al27-mint)!important;
  border:1px solid var(--al27-line)!important;
  border-radius:999px!important;
  box-shadow:var(--al27-shadow-soft)!important;
  font-weight:900!important;
  text-decoration:none!important;
}
html[data-theme="light"] :where(nav:not(.bottom-nav):not(.alpha-bottom-nav):not(.p47-bottom-nav):not([class*="bottom"]), header:not(.forest-lounge-header):not([class*="bottom"])){
  color:var(--al27-ink)!important;
}

/* Buttons / inputs */
html[data-theme="light"] :where(button,.btn,.alpha-btn,.primary-btn){
  color:#ffffff!important;
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  border:0!important;
  border-radius:16px!important;
  box-shadow:0 8px 18px rgba(15,118,110,.22)!important;
  font-weight:900!important;
}
html[data-theme="light"] :where(.btn-secondary,.secondary-btn,.outline-btn){
  color:var(--al27-mint)!important;
  background:#ffffff!important;
  border:1px solid rgba(15,118,110,.28)!important;
  box-shadow:var(--al27-shadow-soft)!important;
}
html[data-theme="light"] :where(input,textarea,select,#detail-search){
  background:#ffffff!important;
  color:var(--al27-ink)!important;
  border:1px solid var(--al27-line-strong)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.04)!important;
}
html[data-theme="light"] :where(input,textarea)::placeholder{color:#64748b!important;opacity:1!important;}

/* Chips / badges */
html[data-theme="light"] :where(.badge,.chip,.pill,.tag){
  background:#f8fafc!important;
  color:#334155!important;
  border:1px solid #dbe5ef!important;
  border-radius:999px!important;
  box-shadow:none!important;
  font-weight:850!important;
}

/* Status tones */
html[data-theme="light"] :where(.positive,.profit,.up,[class*="profit"]){color:#059669!important;font-weight:900!important;}
html[data-theme="light"] :where(.negative,.loss,.down,[class*="loss"]){color:#dc2626!important;font-weight:900!important;}
html[data-theme="light"] :where(.health-score,.score-num,.score-value,.grade-label){color:#ea580c!important;font-weight:950!important;}

/* Inline dark legacy backgrounds frequently found in old HTML */
html[data-theme="light"] [style*="background:#000"],
html[data-theme="light"] [style*="background: #000"],
html[data-theme="light"] [style*="background:#020617"],
html[data-theme="light"] [style*="background: #020617"],
html[data-theme="light"] [style*="background:#061208"],
html[data-theme="light"] [style*="background: #061208"],
html[data-theme="light"] [style*="background:#0f172a"],
html[data-theme="light"] [style*="background: #0f172a"],
html[data-theme="light"] [style*="background:#111827"],
html[data-theme="light"] [style*="background: #111827"]{
  background:#ffffff!important;
  color:var(--al27-ink)!important;
}
html[data-theme="light"] [style*="color:#fff"],
html[data-theme="light"] [style*="color: #fff"],
html[data-theme="light"] [style*="color:#ffffff"],
html[data-theme="light"] [style*="color: #ffffff"],
html[data-theme="light"] [style*="color:#e2e8f0"],
html[data-theme="light"] [style*="color: #e2e8f0"],
html[data-theme="light"] [style*="color:#ecfdf5"],
html[data-theme="light"] [style*="color: #ecfdf5"]{color:var(--al27-ink)!important;}
html[data-theme="light"] [style*="color:#94a3b8"],
html[data-theme="light"] [style*="color: #94a3b8"],
html[data-theme="light"] [style*="color:#cbd5e1"],
html[data-theme="light"] [style*="color: #cbd5e1"]{color:var(--al27-sub)!important;}

/* Bottom nav */
html[data-theme="light"] :where(.bottom-nav,.alpha-bottom-nav,.p47-bottom-nav,.bottom-bar,[class*="bottom-nav"]){
  background:rgba(255,255,255,.97)!important;
  border:1px solid rgba(203,213,225,.9)!important;
  border-radius:24px!important;
  box-shadow:0 -12px 32px rgba(15,23,42,.13)!important;
  backdrop-filter:blur(12px)!important;
}
html[data-theme="light"] :where(.bottom-nav,.alpha-bottom-nav,.p47-bottom-nav,.bottom-bar,[class*="bottom-nav"]) :where(a,button,span,div){
  color:#475569!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  font-weight:850!important;
}
html[data-theme="light"] :where(.bottom-nav,.alpha-bottom-nav,.p47-bottom-nav,.bottom-bar,[class*="bottom-nav"]) :where(.active,[aria-current="page"]){color:var(--al27-mint)!important;}

@media(max-width:520px){
  html[data-theme="light"] body{font-size:15px!important;}
  html[data-theme="light"] :where(.card,.panel,.premium-card,.fridge-card,.account-card,.detail-card,.hero,.hero-card,.lounge-hub-card,.forest-hero){border-radius:20px!important;}
}


/* =========================================================
   ALPHA UI V29 - Premium Depth Finish
   목표: 명당연구소/에너지연구소 포함 전체 라이트 카드 입체감.
   원칙: 자식 전체 border 금지, 흐림/투명도 금지, 카드 컨테이너만 3D.
   ========================================================= */
:root{
  --al29-ink:#0f172a;
  --al29-body:#334155;
  --al29-sub:#64748b;
  --al29-muted:#718096;
  --al29-line:#d5e1ec;
  --al29-line-strong:#b8c9d9;
  --al29-mint:#0f766e;
  --al29-mint2:#14b8a6;
  --al29-mint-soft:#ccfbf1;
  --al29-cyan:#06b6d4;
  --al29-gold:#b7791f;
  --al29-orange:#ea580c;
  --al29-red:#dc2626;
  --al29-surface:#ffffff;
  --al29-shadow-a:0 1px 1px rgba(255,255,255,.92) inset;
  --al29-shadow-b:0 3px 8px rgba(15,23,42,.055),0 18px 44px rgba(15,23,42,.095);
  --al29-shadow-c:0 8px 18px rgba(15,118,110,.10),0 22px 52px rgba(15,23,42,.10);
}

html[data-theme="light"],
html[data-theme="light"] body,
body.alpha-lab-light,
body.alpha-premium-depth-v29{
  color-scheme:light!important;
  background:
    radial-gradient(circle at 15% 0%,rgba(20,184,166,.10),transparent 34%),
    linear-gradient(180deg,#eef6fb 0%,#f8fafc 58%,#ffffff 100%)!important;
  color:var(--al29-ink)!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:optimizeLegibility!important;
}

body.alpha-lab-light *,
body.alpha-premium-depth-v29 *{
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}

html[data-theme="light"] :where(
  .card,.panel,.premium-card,.menu-card,.hero,.hero-card,
  .fridge-card,.fridge-hero,.account-card,.account-hero,
  .detail-card,.analysis,.grade-card,.ai-card,.gold-card,.report-card,
  .school-card,.stock-card,.holding-card,.notice-card,.summary-card,
  .lounge-hub-card,.forest-lounge-card,.forest-hero,
  .p38-my-shell,.p43-diag-hero,.p43-diag-card,.p47-fridge-card
),
body.alpha-lab-light :where(
  .card,.result-box,.loading-box,.teaser,.note,.energy-aux,
  .focus-card,.place-card,.section-card,.ai-block,.lab-card,
  .stat-card,.result-card,.preview-card,.notice-card
){
  background:
    linear-gradient(180deg,rgba(255,255,255,1) 0%,rgba(255,255,255,.98) 55%,rgba(248,250,252,.96) 100%)!important;
  border:1px solid var(--al29-line)!important;
  border-top-color:rgba(255,255,255,.98)!important;
  border-left-color:#edf5fb!important;
  border-radius:24px!important;
  box-shadow:var(--al29-shadow-a),var(--al29-shadow-b)!important;
  color:var(--al29-ink)!important;
}

html[data-theme="light"] :where(.forest-hero,.fridge-hero,.account-hero,.lounge-hub-card,.hero-card),
body.alpha-lab-light :where(.card:first-of-type,.result-box,.focus-card,.place-card){
  border-color:rgba(20,184,166,.34)!important;
  background:
    radial-gradient(circle at 8% 0%,rgba(20,184,166,.09),transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#fbfffe 58%,#f4fffd 100%)!important;
  box-shadow:
    0 1px 1px rgba(255,255,255,.95) inset,
    0 0 0 1px rgba(255,255,255,.78) inset,
    0 8px 20px rgba(15,118,110,.08),
    0 22px 52px rgba(15,23,42,.095)!important;
}

html[data-theme="light"] :where(h1,h2,h3,h4,h5,h6,.title,.section-title,.card-title,.forest-hero-title),
body.alpha-lab-light :where(h1,h2,h3,h4,h5,h6,.section-title,strong,b,summary){
  color:var(--al29-ink)!important;
  opacity:1!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
}
html[data-theme="light"] :where(p,li,label,.desc,.description,.sub,.subtitle,.body,.brief,.menu-sub),
body.alpha-lab-light :where(p,li,label,.desc,.description,.sub,.subtitle,.body,.brief,.teaser,.note,td,th,div){
  color:var(--al29-body)!important;
  opacity:1!important;
}
html[data-theme="light"] :where(small,.small,.muted,.caption,.meta,.kicker),
body.alpha-lab-light :where(small,.small,.muted,.caption,.meta,.kicker){
  color:var(--al29-sub)!important;
  opacity:1!important;
}

body.alpha-lab-light [style*="color:#cbd5e1"],
body.alpha-lab-light [style*="color: #cbd5e1"],
body.alpha-lab-light [style*="color:#94a3b8"],
body.alpha-lab-light [style*="color: #94a3b8"],
body.alpha-lab-light [style*="color:#e2e8f0"],
body.alpha-lab-light [style*="color: #e2e8f0"],
body.alpha-lab-light [style*="color:#fff"],
body.alpha-lab-light [style*="color: #fff"],
body.alpha-lab-light [style*="color:white"],
body.alpha-lab-light [style*="color: white"]{
  color:var(--al29-body)!important;
  opacity:1!important;
}
body.alpha-lab-light [style*="background:#030711"],
body.alpha-lab-light [style*="background: #030711"],
body.alpha-lab-light [style*="background:#07111f"],
body.alpha-lab-light [style*="background: #07111f"],
body.alpha-lab-light [style*="rgba(255,255,255,.04)"],
body.alpha-lab-light [style*="rgba(255,255,255,.05)"]{
  background:#ffffff!important;
  color:var(--al29-ink)!important;
}

body.alpha-lab-light{
  margin:0!important;
  padding:18px!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif!important;
}
body.alpha-lab-light .wrap{
  max-width:760px!important;
  margin:0 auto!important;
}
body.alpha-lab-light h1{
  font-size:34px!important;
  line-height:1.16!important;
  margin:10px 0 16px!important;
}
body.alpha-lab-light .section-title{
  margin-top:30px!important;
  margin-bottom:12px!important;
  font-size:20px!important;
}
body.alpha-lab-light p{
  line-height:1.7!important;
  font-weight:720!important;
}
body.alpha-lab-light ul, body.alpha-lab-light ol{
  padding-left:20px!important;
}
body.alpha-lab-light li{
  margin:6px 0!important;
  line-height:1.65!important;
}

html[data-theme="light"] :where(button,.btn,.back,.alpha-home-escape,.cta,.primary-btn),
body.alpha-lab-light :where(button,.back,.btn,input[type="button"],input[type="submit"]){
  background:
    linear-gradient(180deg,#ffffff 0%,#ecfeff 46%,#dffffa 100%)!important;
  color:var(--al29-mint)!important;
  border:1px solid rgba(15,118,110,.34)!important;
  border-top-color:rgba(255,255,255,.98)!important;
  border-radius:18px!important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 4px 10px rgba(15,118,110,.08),
    0 12px 26px rgba(15,23,42,.08)!important;
  font-weight:950!important;
  opacity:1!important;
}
html[data-theme="light"] :where(button,.btn,.back,.alpha-home-escape,.cta,.primary-btn):active,
body.alpha-lab-light :where(button,.back,.btn,input[type="button"],input[type="submit"]):active{
  transform:translateY(1px)!important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 3px 8px rgba(15,23,42,.08)!important;
}

html[data-theme="light"] :where(input,textarea,select),
body.alpha-lab-light :where(input,textarea,select){
  background:#ffffff!important;
  color:var(--al29-ink)!important;
  border:1px solid var(--al29-line-strong)!important;
  border-radius:16px!important;
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 3px 8px rgba(15,23,42,.035)!important;
  font-weight:800!important;
}
html[data-theme="light"] :where(input,textarea)::placeholder,
body.alpha-lab-light :where(input,textarea)::placeholder{
  color:#64748b!important;
  opacity:1!important;
}

body.alpha-lotto-light :where(table,.stats,.stat,.grid,.number-row,.verify-box,.result-summary),
body.alpha-fortune-light :where(.energy-row,.energy-grid,.palm-grid,.result-grid,.metric-grid){
  background:#ffffff!important;
  border:1px solid #dbe7f1!important;
  border-radius:18px!important;
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 8px 18px rgba(15,23,42,.05)!important;
}
body.alpha-lotto-light :where(td,th),
body.alpha-fortune-light :where(td,th){
  color:var(--al29-ink)!important;
  opacity:1!important;
}
body.alpha-lotto-light :where(.ball,.num,.number,.lotto-ball),
body.alpha-fortune-light :where(.score,.grade,.energy-score,.metric-value){
  color:var(--al29-ink)!important;
  background:#ffffff!important;
  border:1px solid #cbd5e1!important;
  box-shadow:0 2px 6px rgba(15,23,42,.06)!important;
  opacity:1!important;
}

body.alpha-lab-light :where(.warning,.warn,.notice,.alert,[class*="warn"],[class*="notice"]){
  background:linear-gradient(180deg,#fffaf0 0%,#fff7ed 100%)!important;
  border-color:#fed7aa!important;
  color:#7c2d12!important;
}
body.alpha-lab-light :where(.warning,.warn,.notice,.alert,[class*="warn"],[class*="notice"]) *{
  color:inherit!important;
  opacity:1!important;
}

html[data-theme="light"] :where(.bottom-nav,.alpha-bottom-nav,.p47-bottom-nav,.bottom-bar,[class*="bottom-nav"]){
  background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(203,213,225,.95)!important;
  border-top-color:#ffffff!important;
  border-radius:26px!important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 -10px 30px rgba(15,23,42,.13)!important;
}
html[data-theme="light"] :where(.bottom-nav,.alpha-bottom-nav,.p47-bottom-nav,.bottom-bar,[class*="bottom-nav"]) *{
  border:0!important;
  box-shadow:none!important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme="light"] :where(.card,.panel,.premium-card,.menu-card,.hero-card,.fridge-card,.forest-lounge-card,.lounge-hub-card):hover,
  body.alpha-lab-light :where(.card,.result-box,.teaser,.note):hover{
    transform:translateY(-1px);
    box-shadow:
      0 1px 1px rgba(255,255,255,.95) inset,
      0 5px 12px rgba(15,23,42,.06),
      0 24px 58px rgba(15,23,42,.11)!important;
  }
}

@media(max-width:520px){
  body.alpha-lab-light{padding:14px!important;}
  body.alpha-lab-light .card{padding:22px!important;border-radius:24px!important;}
  body.alpha-lab-light h1{font-size:30px!important;}
}

