/* SpaceDock local redesign layer — visual styles only; business routes remain in app.js. */
:root{
  --sd-ink:#202331;--sd-ink-soft:#555c6d;--sd-muted:#7b8291;--sd-paper:#f5f6fa;--sd-white:#fff;
  --sd-line:#e7e9ef;--sd-line-strong:#d9dce5;--sd-brand:#7669ed;--sd-brand-hover:#685be0;
  --sd-brand-wash:#f0efff;--sd-success:#20836d;--sd-warning:#a86929;--sd-danger:#c04d5b;
  --sd-dark:#111216;--sd-dark-raised:#1a1b22;--sd-dark-card:#1e2028;--sd-dark-line:#30313b;
  --sd-dark-text:#f5f4f0;--sd-dark-muted:#a1a3ad;--sd-store-accent:#aaa1ff;--sd-lime:#c8e38b;
  --sd-radius-sm:9px;--sd-radius-md:14px;--sd-radius-lg:20px;--sd-radius-xl:26px;
  --sd-content-store:1480px;--sd-content-account:1420px;--sd-content-admin:1600px;
  --sd-font:"Segoe UI Variable","Segoe UI",Inter,system-ui,-apple-system,sans-serif;
  --sd-ease:cubic-bezier(.2,.75,.25,1);
  font-family:var(--sd-font);font-synthesis:none;text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
html{min-width:320px}
body{font-family:var(--sd-font);font-size:14px;line-height:1.55}
#previewMockRibbon{position:relative;z-index:1000;display:flex;min-height:30px;align-items:center;justify-content:center;padding:5px 12px;background:#f0efff;color:#5145bc;border-bottom:1px solid #d9d4ff;font-size:11px;font-weight:750;letter-spacing:.045em;text-align:center}
:focus-visible{outline:3px solid rgba(118,105,237,.65)!important;outline-offset:3px!important}
body[data-ui-screen="store"]{background:#0d0e12;color:#f2f1ef;color-scheme:dark}
body[data-ui-screen="store"] .site-header{border-color:rgba(255,255,255,.08);background:rgba(13,14,18,.88);backdrop-filter:blur(18px)}
body[data-ui-screen="store"] .site-header .brand{color:#f6f5f1}
body[data-ui-screen="store"] .desktop-nav a{color:#b9bac3}
body[data-ui-screen="store"] .desktop-nav a:hover,body[data-ui-screen="store"] .site-footer a:hover{color:#fff}
body[data-ui-screen="store"] .hero{position:relative;isolation:isolate;overflow:hidden;padding:92px 0 80px;background:radial-gradient(ellipse at 75% 35%,rgba(118,105,237,.16),transparent 38%),linear-gradient(180deg,#101116 0%,#0d0e12 100%)}
body[data-ui-screen="store"] .hero:before{position:absolute;z-index:-1;inset:0;content:"";opacity:.23;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(180deg,#000,transparent 95%)}
body[data-ui-screen="store"] .hero-inner,body[data-ui-screen="store"] .section>.shell,body[data-ui-screen="store"] .section-tight>.shell{max-width:var(--sd-content-store)}
body[data-ui-screen="store"] .hero h1{max-width:850px;margin:22px 0 20px;color:#f7f6f4;font-size:clamp(44px,6vw,74px);font-weight:680;letter-spacing:-.065em;line-height:1.02}
body[data-ui-screen="store"] .hero h1 .soft{color:#aaa1ff}
body[data-ui-screen="store"] .hero-copy{max-width:650px;color:#a8a9b2;font-size:17px;line-height:1.75}
body[data-ui-screen="store"] .eyebrow{color:#c1bbff;letter-spacing:.11em}
body[data-ui-screen="store"] .eyebrow-dot{background:var(--sd-lime);box-shadow:0 0 0 5px rgba(200,227,139,.09)}
body[data-ui-screen="store"] .btn-primary{border-color:transparent;background:#aaa1ff;color:#17151f;font-weight:700;box-shadow:0 8px 24px rgba(118,105,237,.18)}
body[data-ui-screen="store"] .btn-primary:hover{background:#c1bbff;transform:translateY(-1px)}
body[data-ui-screen="store"] .btn-primary:disabled{background:var(--color-disabled-bg);color:var(--color-disabled-fg);box-shadow:none;cursor:not-allowed;transform:none}
body[data-ui-screen="store"] .btn-ghost{border-color:rgba(255,255,255,.14);color:#e4e3e8}
body[data-ui-screen="store"] .btn-ghost:hover{border-color:rgba(170,161,255,.48);background:rgba(170,161,255,.08)}
body[data-ui-screen="store"] .hero-meta{color:#858792;font-size:12px}
body[data-ui-screen="store"] .hero-meta span+span:before{color:#62636e}
body[data-ui-screen="store"] .section{padding-top:76px;padding-bottom:78px}
body[data-ui-screen="store"] .section-head h2,body[data-ui-screen="store"] .section-heading h2{color:#f0eff2;font-size:clamp(26px,3vw,38px);letter-spacing:-.045em}
body[data-ui-screen="store"] .section-sub{max-width:500px;color:#a1a3ad;font-size:14px;line-height:1.7}
body[data-ui-screen="store"] .section-kicker{color:#aaa1ff;font-size:11px;font-weight:700;letter-spacing:.13em}
body[data-ui-screen="store"] .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body[data-ui-screen="store"] .product-card{position:relative;display:flex;min-height:242px;flex-direction:column;padding:23px;border:1px solid rgba(255,255,255,.095);border-radius:19px;background:linear-gradient(155deg,rgba(33,34,43,.96),rgba(24,25,31,.96));box-shadow:0 18px 42px rgba(0,0,0,.12);transition:transform .2s var(--sd-ease),border-color .2s var(--sd-ease),background .2s var(--sd-ease)}
body[data-ui-screen="store"] .product-card:hover{transform:translateY(-4px);border-color:rgba(170,161,255,.42);background:linear-gradient(155deg,#272833,#1d1e26)}
body[data-ui-screen="store"] .product-card h3{margin:15px 0 7px;color:#f2f1ef;font-size:18px;letter-spacing:-.025em}
body[data-ui-screen="store"] .product-card p{color:#a1a3ad;font-size:13px;line-height:1.65}
body[data-ui-screen="store"] .product-badge{border:1px solid rgba(170,161,255,.2);background:rgba(170,161,255,.085);color:#c8c2ff;font-size:9px;letter-spacing:.08em}
body[data-ui-screen="store"] .product-icon{border:1px solid rgba(255,255,255,.1);border-radius:12px;background:linear-gradient(145deg,#34333f,#24242d);color:#dcd8ff}
body[data-ui-screen="store"] .product-mode{color:#c8e38b;font-size:11px}
body[data-ui-screen="store"] .product-foot{margin-top:auto;padding-top:17px;border-top:1px solid rgba(255,255,255,.075);color:#b7b8c1;font-size:11px}
body[data-ui-screen="store"] .feature-large,body[data-ui-screen="store"] .feature-stack>div{border-color:rgba(255,255,255,.08);background:#17181f}
body[data-ui-screen="store"] .feature-title{color:#eee;font-size:18px}
body[data-ui-screen="store"] .feature-text{color:#a1a3ad;font-size:13px;line-height:1.7}
body[data-ui-screen="store"] .site-footer{border-color:rgba(255,255,255,.08);background:#101116;color:#9c9da7}
body[data-ui-screen="store"] .site-footer .brand,body[data-ui-screen="store"] .site-footer h2{color:#f2f1ef}
body[data-ui-screen="store"] .feature-number,body[data-ui-screen="store"] .footer-note,body[data-ui-screen="store"] .footer-bottom{color:#b0b2bd}
body[data-ui-screen="store"] .page-hero{padding:72px 0 35px;background:radial-gradient(ellipse at 75% 10%,rgba(118,105,237,.13),transparent 44%)}
body[data-ui-screen="store"] .page-hero h1{color:#f3f2f0;font-size:clamp(38px,5vw,58px);letter-spacing:-.055em}
body[data-ui-screen="store"] .page-hero p{max-width:700px;color:#a8a9b2;font-size:15px}
body[data-ui-screen="store"] .filter-bar{gap:9px;flex-wrap:wrap}
body[data-ui-screen="store"] .filter{min-height:39px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:#17181f;color:#b9bac3}
body[data-ui-screen="store"] .filter.active{border-color:rgba(170,161,255,.45);background:rgba(170,161,255,.12);color:#d4d0ff}
body[data-ui-screen="account"],body[data-ui-screen="admin"]{background:#f5f6fa;color:#202331;color-scheme:light}
body[data-ui-screen="account"] .site-header,body[data-ui-screen="admin"] .site-header{border-color:#e9eaf0;background:rgba(255,255,255,.92);backdrop-filter:blur(16px)}
body[data-ui-screen="account"] .brand,body[data-ui-screen="admin"] .brand{color:#202331}
body[data-ui-screen="account"] .desktop-nav a,body[data-ui-screen="admin"] .desktop-nav a{color:#555c6d}
body[data-ui-screen="account"] .site-header .desktop-nav a{color:#343849}
body[data-ui-screen="account"] .site-header .btn-ghost,body[data-ui-screen="account"] .site-header .auth-logout-link{border-color:#c8ccd7;background:#fff;color:#202331}
body[data-ui-screen="account"] .site-header .btn-ghost:hover,body[data-ui-screen="account"] .site-header .auth-logout-link:hover{border-color:#9ba1b1;background:#f5f6fa;color:#202331}
body[data-ui-screen="account"] .auth-logout-link{border-color:#c8ccd7!important;background:#fff!important;color:#202331!important}
body[data-ui-screen="admin"] .site-header .desktop-nav a{color:#343849}
body[data-ui-screen="admin"] .site-header .btn-ghost,body[data-ui-screen="admin"] .auth-logout-link{border-color:#c8ccd7!important;background:#fff!important;color:#202331!important}
body[data-ui-screen="account"] .dashboard-page{min-height:calc(100vh - 130px);padding:28px 0 54px;background:transparent}
body[data-ui-screen="admin"] .dashboard-page{min-height:calc(100vh - 130px);padding:35px 0 70px;background:transparent}
body[data-ui-screen="account"] .dashboard-layout,body[data-ui-screen="admin"] .dashboard-layout{width:min(calc(100% - 48px),var(--sd-content-account));grid-template-columns:242px minmax(0,1fr);gap:32px;align-items:start}
body[data-ui-screen="account"] .dash-sidebar{position:sticky;top:92px;overflow:hidden;padding:14px;border:1px solid #e8e9ef;border-radius:18px;background:#fff;box-shadow:0 10px 32px rgba(30,35,54,.045)}
body[data-ui-screen="account"] .dash-user{padding:15px 12px 19px;border-bottom:1px solid #ececf1}
body[data-ui-screen="account"] .dash-user strong{color:#202331;font-size:14px}
body[data-ui-screen="account"] .dash-user span{color:#555c6d;font-size:11px}
body[data-ui-screen="account"] .dash-nav{gap:4px;margin-top:13px}
body[data-ui-screen="account"] .dash-nav a{min-height:42px;padding:0 12px;border-radius:10px;color:#646a79;font-size:13px}
body[data-ui-screen="account"] .dash-nav a:hover{background:#f7f7fb;color:#353149}
body[data-ui-screen="account"] .dash-nav a.active{background:#f0efff;color:#5549c1;font-weight:650}
body[data-ui-screen="account"] .dash-main{min-width:0;padding:8px 0}
body[data-ui-screen="account"] .dash-heading h1{margin:0;color:#202331;font-size:32px;letter-spacing:-.045em}
body[data-ui-screen="account"] .dash-heading p{max-width:740px;color:#555c6d;font-size:14px;line-height:1.7}
body[data-ui-screen="account"] .dash-cards{gap:15px;margin:24px 0 30px}
body[data-ui-screen="account"] .dash-card{min-height:114px;padding:19px;border:1px solid #e8e9ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(30,35,54,.035)}
body[data-ui-screen="account"] .dash-card-label{color:#555c6d;font-size:12px}
body[data-ui-screen="account"] .dash-card-value{margin-top:10px;color:#232435;font-size:30px;font-weight:700;letter-spacing:-.055em}
body[data-ui-screen="account"] .dash-card-small{color:#555c6d;font-size:11px}
body[data-ui-screen="account"] #dashboardContent{min-width:0;padding:0;border:0;background:transparent;color:#526078;box-shadow:none}
body[data-ui-screen="account"] .dash-main .empty-box,body[data-ui-screen="account"] .dashboard-section-empty{padding:20px;border:1px solid #e8e9ef;border-radius:16px;background:#fff;color:#526078;box-shadow:0 8px 24px rgba(30,35,54,.035)}
body[data-ui-screen="account"] .dashboard-section-empty{min-height:120px;align-items:flex-start;text-align:left}
body[data-ui-screen="account"] .dashboard-section-empty>strong{color:#182235;font-size:15px}
body[data-ui-screen="account"] .dashboard-section-empty>span{color:#526078;font-size:13px}
body[data-ui-screen="account"] .dash-main h2{color:#252638;font-size:19px;letter-spacing:-.025em}
body[data-ui-screen="account"] .dashboard-section-title{margin:22px 0 12px;color:#252638;font-size:19px;letter-spacing:-.025em}
body[data-ui-screen="account"] .dash-main table{border-color:#ebecf1;background:#fff}
body[data-ui-screen="account"] .dash-main th{color:#555c6d;font-size:10px;letter-spacing:.06em}
body[data-ui-screen="account"] .dash-main .inline-back{color:#555c6d}
body[data-ui-screen="account"] .dashboard-commerce-kicker{color:#555c6d!important}
body[data-ui-screen="account"] .dashboard-commerce-meta code{border:1px solid #d9dce5;border-radius:7px;background:#f8f9fc;padding:5px 7px;color:#343849}
body[data-ui-screen="account"] .site-footer .footer-links{color:#555c6d}
body[data-ui-screen="account"] .site-footer .footer-links a{color:#555c6d}
body[data-ui-screen="account"] .site-footer .footer-note,body[data-ui-screen="account"] .site-footer .footer-bottom{color:#555c6d}
body[data-ui-screen="account"] .dash-main td{color:#414658;font-size:12px}
body[data-ui-screen="account"] .dashboard-owned-list{display:grid;gap:11px;width:100%}
body[data-ui-screen="account"] .dashboard-owned-item{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(150px,auto) auto;align-items:center;gap:15px;padding:16px;border:1px solid #e5e9f0;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(28,42,70,.035)}
body[data-ui-screen="account"] .dashboard-owned-avatar{width:42px;height:42px;border:1px solid #e1e5ff;border-radius:13px;background:#f0f2ff;color:#4d5fc5}
body[data-ui-screen="account"] .dashboard-owned-avatar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-ui-screen="account"] .dashboard-owned-copy{gap:3px}
body[data-ui-screen="account"] .dashboard-owned-copy strong{color:#182235;font-size:15px;font-weight:650}
body[data-ui-screen="account"] .dashboard-owned-copy>span{color:#657189;font-size:11px}
body[data-ui-screen="account"] .dashboard-owned-copy p{margin:3px 0 0;color:#526078;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-owned-license{display:grid;justify-items:start;gap:5px;min-width:0}
body[data-ui-screen="account"] .dashboard-owned-status{padding:4px 9px;border:1px solid #b6ddc7;background:#eaf5ef;color:#17634c;font-size:11px;font-weight:650}
body[data-ui-screen="account"] .dashboard-owned-status[data-state="Đã hết hạn"],body[data-ui-screen="account"] .dashboard-owned-status[data-state="Đã thu hồi"]{border-color:#e6bcc1;background:#fbebed;color:#8f2f3d}
body[data-ui-screen="account"] .dashboard-owned-status[data-state="Không xác định"]{border-color:#d2d8e3;background:#f4f6fa;color:#526078}
body[data-ui-screen="account"] .dashboard-owned-expiry{color:#526078;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-owned-source{color:#657189;font-size:10px}
body[data-ui-screen="account"] .dashboard-owned-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;min-width:0}
body[data-ui-screen="account"] .dashboard-owned-actions .btn{min-height:36px;padding-inline:12px;white-space:nowrap}
body[data-ui-screen="account"] .dashboard-owned-license-link{border:1px solid #cbd2df;background:#fff;color:#33415a}
body[data-ui-screen="account"] .dashboard-owned-license-link:hover{border-color:#9da8bb;background:#f7f8fc;color:#182235}
body[data-ui-screen="account"] .dashboard-owned-open-link{border:1px solid #526de5;background:#526de5;color:#fff}
body[data-ui-screen="account"] .dashboard-owned-open-link:hover{border-color:#405bd0;background:#405bd0;color:#fff}
body[data-ui-screen="account"] .dashboard-billing-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #e5e9f0;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(30,35,54,.035);overscroll-behavior-inline:contain}
body[data-ui-screen="account"] .dashboard-billing-table{width:100%;min-width:620px;table-layout:fixed;border-collapse:collapse;background:#fff}
body[data-ui-screen="account"] .dashboard-billing-table th{padding:13px 16px;background:#f8f9fc;color:#526078;font-size:11px;font-weight:700;letter-spacing:0;text-align:left;text-transform:none}
body[data-ui-screen="account"] .dashboard-billing-table th:first-child{width:40%}
body[data-ui-screen="account"] .dashboard-billing-table th:nth-child(2){width:24%}
body[data-ui-screen="account"] .dashboard-billing-table th:nth-child(3){width:17%}
body[data-ui-screen="account"] .dashboard-billing-table th:nth-child(4){width:19%}
body[data-ui-screen="account"] .dashboard-billing-table td{padding:15px 16px;border-top:1px solid #edf0f4;color:#33415a;font-size:13px;vertical-align:middle}
body[data-ui-screen="account"] .dashboard-billing-table tbody tr:hover{background:#fafbfe}
body[data-ui-screen="account"] .dashboard-billing-product{display:grid;gap:4px;min-width:0}
body[data-ui-screen="account"] .dashboard-billing-product strong{color:#182235;font-size:13px;font-weight:650;overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-billing-product span{color:#657189;font-size:11px;overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-billing-date{color:#40516a;font-size:12px;line-height:1.45}
body[data-ui-screen="account"] .dashboard-billing-amount{color:#182235;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-ui-screen="account"] .dashboard-billing-table .commerce-status.status-paid{border-color:#b6ddc7;background:#eaf5ef;color:#17634c}
body[data-ui-screen="account"] .dashboard-billing-table .commerce-status.status-pending{border-color:#e3d2a6;background:#fbf4df;color:#75520e}
body[data-ui-screen="account"] .dashboard-billing-table .commerce-status.status-failed,body[data-ui-screen="account"] .dashboard-billing-table .commerce-status.status-cancelled,body[data-ui-screen="account"] .dashboard-billing-table .commerce-status.status-canceled{border-color:#e6bcc1;background:#fbebed;color:#8f2f3d}
body[data-ui-screen="account"] .dash-heading{margin-bottom:19px}
body[data-ui-screen="account"] .dash-cards{margin:18px 0 24px}
body[data-ui-screen="account"] .site-footer{border-color:#e8e9ef;background:#fff;color:#747b8a}
body[data-ui-screen="admin"] .dashboard-layout{width:min(calc(100% - 48px),var(--sd-content-admin));grid-template-columns:250px minmax(0,1fr);gap:30px}
body[data-ui-screen="admin"] .admin-sidebar{position:sticky;top:92px;min-height:calc(100vh - 125px);padding:17px;border:1px solid #272832;border-radius:19px;background:linear-gradient(180deg,#1d1e25,#17181e);box-shadow:0 18px 46px rgba(20,20,30,.12);color:#f3f2f5}
body[data-ui-screen="admin"] .admin-sidebar .dash-user{padding:13px 10px 20px;border-bottom:1px solid rgba(255,255,255,.09)}
body[data-ui-screen="admin"] .admin-sidebar .dash-user strong{color:#f4f3f6;font-size:14px}
body[data-ui-screen="admin"] .admin-sidebar .dash-user span{color:#a5a6b1;font-size:11px}
body[data-ui-screen="admin"] .admin-sidebar .avatar{background:linear-gradient(145deg,#897af4,#6555d8);color:#17151f}
body[data-ui-screen="admin"] .admin-sidebar .admin-nav-group-label{color:#aeb7c8}
body[data-ui-screen="admin"] .admin-sidebar .dash-nav{gap:4px;margin-top:15px}
body[data-ui-screen="admin"] .admin-sidebar .dash-nav a{min-height:40px;padding:0 11px;border-radius:9px;color:#b2b3bd;font-size:12px}
body[data-ui-screen="admin"] .admin-sidebar .dash-nav a:hover{background:rgba(255,255,255,.06);color:white}
body[data-ui-screen="admin"] .admin-sidebar .dash-nav a.active{background:rgba(137,122,244,.16);color:#d2ccff}
body[data-ui-screen="admin"] .admin-sidebar-account{width:100%;margin-top:18px;border-color:rgba(255,255,255,.13);color:#cccbd3}
body[data-ui-screen="admin"] .dash-main{min-width:0}
body[data-ui-screen="admin"] .admin-v2-heading,body[data-ui-screen="admin"] .dash-heading{margin-bottom:23px;padding-bottom:17px;border-bottom:1px solid #e6e7ed}
body[data-ui-screen="admin"] .dash-heading h1{color:#202331;font-size:32px;letter-spacing:-.045em}
body[data-ui-screen="admin"] .dash-heading p{color:#555c6d;font-size:13px}
body[data-ui-screen="admin"] .admin-badge{border:1px solid #e6e3ff;background:#f0efff;color:#6153c8;font-size:10px;font-weight:720;letter-spacing:.08em}
body[data-ui-screen="admin"] .admin-stat-grid,body[data-ui-screen="admin"] .admin-v2-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body[data-ui-screen="admin"] .dash-card,body[data-ui-screen="admin"] .admin-v2-card{min-height:105px;padding:17px;border:1px solid #e7e8ee;border-radius:15px;background:#fff;box-shadow:0 6px 20px rgba(30,35,54,.035)}
body[data-ui-screen="admin"] .dash-card-label{color:#555c6d;font-size:11px}
body[data-ui-screen="admin"] .dash-card-value{margin-top:9px;color:#28293a;font-size:25px;font-weight:690;letter-spacing:-.05em}
body[data-ui-screen="admin"] .dash-card-small{color:#555c6d;font-size:10px}
body[data-ui-screen="admin"] .admin-v2-quick-grid{gap:12px;margin-bottom:16px}
body[data-ui-screen="admin"] .admin-v2-quick{min-height:88px;border-color:#e6e7ed;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(30,35,54,.035)}
body[data-ui-screen="admin"] .admin-v2-quick strong{color:#28293a;font-size:12px}
body[data-ui-screen="admin"] .admin-v2-quick small{color:#555c6d;font-size:10px}
body[data-ui-screen="admin"] .admin-v2-quick>span{color:#454da8}
body[data-ui-screen="admin"] .admin-v2-quick.primary{border-color:#e2dfff;background:linear-gradient(135deg,#f8f7ff,#f0efff)}
body[data-ui-screen="admin"] .admin-v2-panel,body[data-ui-screen="admin"] .panel{border-color:#e7e8ee;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(30,35,54,.04)}
body[data-ui-screen="admin"] .admin-v2-panel-head h2,body[data-ui-screen="admin"] .panel-heading h2{color:#28293a;font-size:17px}
body[data-ui-screen="admin"] .admin-v2-panel-head p,body[data-ui-screen="admin"] .panel-heading p{color:#555c6d;font-size:11px}
body[data-ui-screen="admin"] .admin-v2-table-wrap,body[data-ui-screen="admin"] .admin-table-wrap{overflow-x:auto;border:1px solid #e7e8ee;border-radius:14px;background:#fff}
body[data-ui-screen="admin"] table.admin-v2-table,body[data-ui-screen="admin"] table.admin-table{min-width:700px;border-collapse:collapse}
body[data-ui-screen="admin"] .admin-v2-table th,body[data-ui-screen="admin"] .admin-table th{background:#fafafd;color:#555c6d;font-size:10px;font-weight:700;letter-spacing:.05em}
body[data-ui-screen="admin"] .admin-v2-table td,body[data-ui-screen="admin"] .admin-table td{border-color:#eff0f4;color:#454a5c;font-size:12px}
body[data-ui-screen="admin"] .admin-v2-control,body[data-ui-screen="admin"] .admin-v2-search,body[data-ui-screen="admin"] .admin-users-toolbar input{min-height:40px;border-color:#e4e5ec;border-radius:10px;background:#fff;color:#292b3a;font-size:12px}
body[data-ui-screen="account"] .license-key-copy-row{display:grid;gap:5px;min-width:0}
body[data-ui-screen="account"] .license-key-copy-row>span{color:#555c6d;font-size:11px;font-weight:650}
body[data-ui-screen="account"] .license-key-copy-row>div{display:flex;align-items:center;gap:7px;min-width:0}
body[data-ui-screen="account"] .license-key-copy-value{min-width:0;border:1px solid #d9dce5;border-radius:8px;background:#f8f9fc;padding:7px 9px;color:#202331;font:600 12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;white-space:normal}
body[data-ui-screen="account"] .license-copy-button{display:inline-grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:1px solid #c8ccd7;border-radius:9px;background:#fff;color:#343849}
body[data-ui-screen="account"] .license-copy-button:hover{border-color:#7669ed;background:#f0efff;color:#4b40b4}
body[data-ui-screen="account"] .license-copy-button:focus-visible{outline:3px solid #7669ed;outline-offset:2px}
body[data-ui-screen="account"] .license-copy-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body[data-ui-screen="account"] .license-key-copy-row>strong{color:#555c6d;font-size:12px}
body[data-ui-screen="account"] .license-type-label{color:#555c6d!important;font-size:12px!important}
body[data-ui-screen="account"] .dashboard-license-card{
  grid-template-columns:minmax(0,1.7fr) minmax(0,.72fr) minmax(0,.62fr) minmax(0,.83fr) minmax(0,.72fr);
  align-items:center;
  gap:clamp(10px,1.25vw,18px);
  padding:18px 20px;
  border-color:#e7e9ef;
  background:#fff;
}
body[data-ui-screen="account"] .dashboard-license-card>*{min-width:0}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main{gap:6px;align-items:flex-start}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main strong{max-width:100%;color:#202331;font-size:15px;white-space:normal;overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main>span:not(.dashboard-commerce-kicker){color:#555c6d;font-size:12px}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-meta{align-items:flex-start;gap:7px}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-meta>span{color:#555c6d;font-size:10px}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-meta strong,
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-meta code{max-width:100%;color:#343849;font-size:12px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
body[data-ui-screen="account"] .dashboard-license-card .license-key-copy-row{width:100%;max-width:100%}
body[data-ui-screen="account"] .dashboard-license-card .license-key-copy-row>div{width:100%;max-width:100%}
body[data-ui-screen="account"] .dashboard-license-card .license-key-copy-value{flex:1 1 0;width:0;max-width:100%;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
body[data-ui-screen="account"] .dashboard-license-card .license-copy-button{flex:0 0 36px}
body[data-ui-screen="account"] .dashboard-license-card>.commerce-status{justify-self:stretch;max-width:100%;text-align:center;white-space:normal;line-height:1.35}
body[data-ui-screen="admin"] .admin-v2-control::placeholder,body[data-ui-screen="admin"] .admin-v2-search::placeholder,body[data-ui-screen="admin"] .admin-users-toolbar input::placeholder{color:#555c6d}
body[data-ui-screen="account"] :disabled,body[data-ui-screen="admin"] :disabled{cursor:not-allowed;opacity:1;color:#555c6d;background-color:#eceef3;border-color:#d9dce5}
body[data-ui-screen="admin"] .admin-v2-summary>div,body[data-ui-screen="admin"] .admin-v2-license-section,body[data-ui-screen="admin"] .admin-v2-ownership-panel{border-color:#e7e8ee;background:#fff}
body[data-ui-screen="admin"] .admin-v2-summary span,body[data-ui-screen="admin"] .admin-v2-section-heading h2 small,body[data-ui-screen="admin"] .admin-v2-section-heading p,body[data-ui-screen="admin"] .admin-v2-section-note,body[data-ui-screen="admin"] .admin-v2-slug,body[data-ui-screen="admin"] .admin-v2-device-detail{color:#555c6d}
body[data-ui-screen="admin"] .admin-v2-summary strong,body[data-ui-screen="admin"] .admin-v2-section-heading h2,body[data-ui-screen="admin"] .admin-v2-license-row td:first-child strong,body[data-ui-screen="admin"] .admin-v2-license-row td:nth-child(2) strong,body[data-ui-screen="admin"] .admin-v2-device-label{color:#202331}
body[data-ui-screen="admin"] .admin-v2-type-label{color:#454da8}
body[data-ui-screen="admin"] .admin-v2-ownership-main strong{color:#343849}
body[data-ui-screen="admin"] .admin-v2-empty-state strong{color:#555c6d}
body[data-ui-screen="admin"] .admin-v2-toolbar{border-color:#e7e8ee;background:#fff}
body[data-ui-screen="admin"] .admin-v2-clear-filters.btn-ghost{border-color:#c8ccd7;background:#fff;color:#343849}
body[data-ui-screen="admin"] .admin-v2-clear-filters.btn-ghost:hover{border-color:#9ba1b1;background:#f5f6fa;color:#202331}
body[data-ui-screen="admin"] .commerce-status.status-active,body[data-ui-screen="admin"] .commerce-status.status-paid{border-color:#b6ddc7;background:#eaf5ef;color:#17634c}
body[data-ui-screen="admin"] .commerce-status.status-pending{border-color:#e3d2a6;background:#fbf4df;color:#75520e}
body[data-ui-screen="admin"] .commerce-status.status-failed,body[data-ui-screen="admin"] .commerce-status.status-cancelled,body[data-ui-screen="admin"] .commerce-status.status-canceled,body[data-ui-screen="admin"] .commerce-status.status-revoked{border-color:#e6bcc1;background:#fbebed;color:#8f2f3d}
body[data-ui-screen="admin"] .admin-detail-drawer{border-color:#e7e8ee;background:#fff;color:#202331}
body[data-ui-screen="admin"] .admin-detail-drawer h2{color:#202331}
body[data-ui-screen="admin"] .admin-detail-drawer .eyebrow{border-color:#d9dce5;background:#f5f6fa;color:#555c6d}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-drawer-section{border-color:#e7e8ee}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-drawer-section p{color:#555c6d}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-detail-grid dt{color:#555c6d}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-detail-grid dd{color:#202331}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-activation-card{border-color:#d9d4ff;background:#f0efff}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-activation-card strong{color:#202331}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-activation-card span{color:#555c6d}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-technical summary{color:#343849}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-drawer-close{border-color:#c8ccd7;background:#fff;color:#343849}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-key-value{border-color:#d9dce5;background:#f8f9fc;color:#202331}
body[data-ui-screen="admin"] .admin-detail-drawer .admin-v2-inline-actions{color:#555c6d}
body[data-ui-screen="admin"] .admin-detail-drawer .btn-ghost{border-color:#c8ccd7;background:#fff;color:#343849}
body[data-ui-screen="admin"] .admin-detail-drawer .btn-danger{border-color:#d9a8af;background:#fff;color:#8f2f3d}
body[data-ui-screen="admin"] .admin-v2-toolbar{margin:15px 0}
body[data-ui-screen="admin"] .admin-v2-state,body[data-ui-screen="admin"] .admin-v2-panel{border-radius:14px}
body[data-ui-screen="admin"] .site-footer{border-color:#e7e8ee;background:#fff;color:#777d8b}
body[data-ui-screen="admin"] .site-footer .footer-links,body[data-ui-screen="admin"] .site-footer .footer-links a,body[data-ui-screen="admin"] .site-footer .footer-note,body[data-ui-screen="admin"] .site-footer .footer-bottom{color:#555c6d}
body[data-ui-screen="admin"] .admin-modal-backdrop{backdrop-filter:blur(5px)}
body[data-ui-screen="admin"] .admin-modal{border:1px solid #e9e9f0;border-radius:18px;box-shadow:0 28px 90px rgba(25,26,38,.2)}
@media(max-width:1100px){
  body[data-ui-screen="store"] #app>.hero .hero-inner,body[data-ui-screen="store"] #app>.section>.shell,body[data-ui-screen="store"] #app>.section-tight>.shell{min-width:0!important;width:calc(100% - 48px)!important;max-width:calc(100% - 48px)!important}
  body[data-ui-screen="admin"] .admin-stat-grid,body[data-ui-screen="admin"] .admin-v2-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-ui-screen="store"] .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px) and (min-width:901px){
  body[data-ui-screen="account"] .dashboard-license-card{grid-template-columns:minmax(0,1.65fr) minmax(0,.8fr) minmax(0,.65fr) minmax(0,.85fr) minmax(0,.7fr);gap:10px;padding:15px 14px}
}
@media(max-width:820px){
  body[data-ui-screen="store"] .hero{padding:70px 0 58px}
  body[data-ui-screen="store"] .hero h1{font-size:clamp(39px,10vw,58px)}
  body[data-ui-screen="store"] .hero-copy{font-size:15px}
  body[data-ui-screen="store"] .section{padding:52px 0}
  body[data-ui-screen="store"] .product-grid{grid-template-columns:1fr}
  body[data-ui-screen="store"] .product-card{min-height:215px}
  body[data-ui-screen="account"] .dashboard-page,body[data-ui-screen="admin"] .dashboard-page{padding:22px 0 42px}
  body[data-ui-screen="account"] .dashboard-layout,body[data-ui-screen="admin"] .dashboard-layout{width:min(calc(100% - 28px),100%);grid-template-columns:1fr;gap:17px}
  body[data-ui-screen="account"] .dash-sidebar,body[data-ui-screen="admin"] .admin-sidebar{position:static;min-height:auto}
  body[data-ui-screen="account"] .dash-nav,body[data-ui-screen="admin"] .admin-sidebar .dash-nav{display:flex;overflow-x:auto;gap:5px;padding:4px 0 7px;scrollbar-width:thin}
  body[data-ui-screen="account"] .dash-nav a,body[data-ui-screen="admin"] .admin-sidebar .dash-nav a{flex:0 0 auto;white-space:nowrap}
  body[data-ui-screen="account"] .dash-heading h1,body[data-ui-screen="admin"] .dash-heading h1{font-size:26px}
  body[data-ui-screen="account"] .dash-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-ui-screen="account"] .dash-card:last-child{grid-column:1/-1}
  body[data-ui-screen="admin"] .admin-stat-grid,body[data-ui-screen="admin"] .admin-v2-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-ui-screen="admin"] .admin-v2-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-ui-screen="admin"] .admin-v2-home-grid{grid-template-columns:1fr}
  body[data-ui-screen="store"] .desktop-nav{display:none}
}
@media(max-width:900px){
  body[data-ui-screen="account"] .dashboard-license-card{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:16px}
  body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main{grid-column:1/-1}
  body[data-ui-screen="account"] .dashboard-license-card>.commerce-status{grid-column:1/-1;justify-self:start}
}
@media(max-width:620px){
  body[data-ui-screen="account"] .dashboard-license-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
  body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main,
  body[data-ui-screen="account"] .dashboard-license-card>.commerce-status{grid-column:1}
  body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-meta{display:grid;grid-template-columns:minmax(88px,.55fr) minmax(0,1fr);align-items:baseline;gap:12px}
  body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-meta>span{text-transform:none;letter-spacing:0}
}
@media(max-width:520px){
  body[data-ui-screen="account"] .dash-cards,body[data-ui-screen="admin"] .admin-stat-grid,body[data-ui-screen="admin"] .admin-v2-stat-grid{grid-template-columns:1fr}
  body[data-ui-screen="account"] .dash-card:last-child{grid-column:auto}
  body[data-ui-screen="admin"] .admin-v2-quick-grid{grid-template-columns:1fr}
  body[data-ui-screen="account"] .dash-heading,body[data-ui-screen="admin"] .dash-heading{align-items:flex-start;gap:12px}
  body[data-ui-screen="account"] .dash-heading>div:last-child,body[data-ui-screen="admin"] .dash-heading>div:last-child{width:100%}
  #previewMockRibbon{font-size:9px;letter-spacing:0}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media(max-width:820px){
  body[data-ui-screen] .site-header .nav-shell{width:calc(100% - 28px)!important;max-width:100%!important}
  body[data-ui-screen] .site-header .desktop-nav,body[data-ui-screen] .site-header .desktop-only{display:none!important}
  body[data-ui-screen] .site-footer .shell{width:calc(100% - 28px)!important;max-width:100%!important}
  body[data-ui-screen] .shell{min-width:0!important;width:calc(100% - 28px)!important}
  body[data-ui-screen="store"] #app>.hero .hero-inner,body[data-ui-screen="store"] #app>.section>.shell,body[data-ui-screen="store"] #app>.section-tight>.shell{min-width:0!important;width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important}
  body[data-ui-screen="store"] .hero-actions,body[data-ui-screen="store"] .hero-meta{min-width:0;max-width:100%}
  body[data-ui-screen="admin"] .admin-sidebar{display:grid;grid-template-rows:auto auto auto;max-height:none;overflow:visible}
  body[data-ui-screen="admin"] .admin-sidebar .admin-commerce-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:none;overflow:visible;padding:5px 1px}
  body[data-ui-screen="admin"] .admin-sidebar .admin-nav-group-label{grid-column:1/-1;padding:8px 7px 2px}
  body[data-ui-screen="admin"] .admin-sidebar .admin-commerce-nav a{width:100%;min-height:36px;white-space:normal}
}

@media(max-width:820px){body[data-ui-screen] .subnav-inner{width:calc(100% - 28px)!important;max-width:100%!important;min-width:0!important}body[data-ui-screen] .subnav{max-width:100%;overflow:hidden}}

/* Admin light surfaces: repair controls that still inherit the legacy dark palette. */
body[data-ui-screen="admin"] .admin-products-table .admin-product-edit,
body[data-ui-screen="admin"] .admin-products-table .admin-product-lifecycle{
  display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 11px;
  border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#344054;
  font:inherit;font-size:12px;font-weight:650;line-height:1.2;text-decoration:none;cursor:pointer;
  transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s;
}
body[data-ui-screen="admin"] .admin-products-table .admin-product-edit:hover,
body[data-ui-screen="admin"] .admin-products-table .admin-product-lifecycle:hover{border-color:#94a3b8;background:#f8fafc;color:#111827}
body[data-ui-screen="admin"] .admin-products-table .admin-product-edit:focus-visible,
body[data-ui-screen="admin"] .admin-products-table .admin-product-lifecycle:focus-visible{outline:3px solid #818cf8;outline-offset:2px}
body[data-ui-screen="admin"] .admin-products-table .admin-product-delete{border-color:#fecaca;background:#fff5f5;color:#b42318}
body[data-ui-screen="admin"] .admin-products-table .admin-product-delete:hover{border-color:#fca5a5;background:#fee2e2;color:#991b1b}
body[data-ui-screen="admin"] .admin-products-table .admin-product-delete:focus-visible{outline-color:#ef4444}
body[data-ui-screen="admin"] .admin-products-table button:disabled,
body[data-ui-screen="admin"] .admin-users-table button:disabled{border-color:#d1d5db;background:#e5e7eb;color:#4b5563;cursor:not-allowed;box-shadow:none}

body[data-ui-screen="admin"] .admin-user-action{border-color:#fecaca;background:#fff5f5;color:#b42318;font-weight:650}
body[data-ui-screen="admin"] .admin-user-action:hover{border-color:#fca5a5;background:#fee2e2;color:#991b1b}
body[data-ui-screen="admin"] .admin-user-action.unlock{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
body[data-ui-screen="admin"] .admin-user-action.unlock:hover{border-color:#86efac;background:#dcfce7;color:#14532d}
body[data-ui-screen="admin"] .admin-user-action:focus-visible{outline:3px solid #818cf8;outline-offset:2px}

body[data-ui-screen="admin"] .admin-role{border:1px solid #cbd5e1;border-radius:999px;background:#f1f5f9;color:#334155}
body[data-ui-screen="admin"] .admin-role.platform{border-color:#c7d2fe;background:#eef2ff;color:#3730a3}
body[data-ui-screen="admin"] .admin-auth-chip{border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#475569}
body[data-ui-screen="admin"] .admin-verified,
body[data-ui-screen="admin"] .admin-status.active{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}
body[data-ui-screen="admin"] .admin-unverified,
body[data-ui-screen="admin"] .admin-status.disabled{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412}
body[data-ui-screen="admin"] .admin-product-status.archived{border:1px solid #fecaca;background:#fff1f2;color:#9f1239}

body[data-ui-screen="admin"] .admin-v2-ownership-panel{background:#fff;color:#111827}
body[data-ui-screen="admin"] .admin-v2-ownership-badge{border-color:#c7d2fe;background:#eef2ff;color:#334fc2}
body[data-ui-screen="admin"] .admin-v2-ownership-row{border-color:#e2e8f0;background:#f8fafc}
body[data-ui-screen="admin"] .admin-v2-ownership-row:hover{border-color:#c7d2fe;background:#f1f5ff}
body[data-ui-screen="admin"] .admin-v2-ownership-main strong{color:#111827}
body[data-ui-screen="admin"] .admin-v2-ownership-main span{color:#475569}
body[data-ui-screen="admin"] .admin-v2-pill-owned{border:1px solid #c7d2fe;background:#eef2ff;color:#334fc2}
body[data-ui-screen="admin"] .admin-v2-pill-missing{border:1px solid #fed7aa;background:#fff7ed;color:#8a4b0a}
body[data-ui-screen="admin"] .admin-v2-empty-state{border-color:#cbd5e1;background:#f8fafc;color:#475569}

/* Portal dialogs are attached to body, outside .admin-shell--premium. */
body[data-ui-screen="admin"] .admin-modal{border-color:#293344;background:#10141f;color:#f8fafc}
body[data-ui-screen="admin"] .admin-modal h1,
body[data-ui-screen="admin"] .admin-modal h2,
body[data-ui-screen="admin"] .admin-modal h3,
body[data-ui-screen="admin"] .admin-modal h4{color:#f8fafc}
body[data-ui-screen="admin"] .admin-modal p,
body[data-ui-screen="admin"] .admin-modal .admin-v2-helper{color:#cbd5e1}
body[data-ui-screen="admin"] .admin-modal label,
body[data-ui-screen="admin"] .admin-modal legend{color:#e2e8f0}
body[data-ui-screen="admin"] .admin-v2-promo-form{max-height:min(92vh,850px);overflow-y:auto}
body[data-ui-screen="admin"] .admin-v2-promo-form .admin-v2-control{border-color:#cbd5e1;background:#fff;color:#111827}
body[data-ui-screen="admin"] .admin-v2-promo-form .admin-v2-control::placeholder{color:#64748b;opacity:1}
body[data-ui-screen="admin"] .admin-v2-promo-form .admin-modal-actions{position:sticky;bottom:-1px;z-index:1;margin:16px -2px -2px;padding:12px 2px 2px;background:linear-gradient(180deg,rgba(16,20,31,.86),#10141f 28%)}
body[data-ui-screen="admin"] .admin-modal .btn-ghost{border-color:#475569;background:#1e293b;color:#f1f5f9}
body[data-ui-screen="admin"] .admin-modal .btn-ghost:hover{border-color:#64748b;background:#334155;color:#fff}
body[data-ui-screen="admin"] .admin-modal .btn-ghost:focus-visible{outline:3px solid #a5b4fc;outline-offset:2px}

body[data-ui-screen="admin"] .admin-v2-license-drawer{max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body[data-ui-screen="admin"] .admin-v2-expiry{display:grid;gap:12px;min-width:0;color:#343849}
body[data-ui-screen="admin"] .admin-v2-expiry .eyebrow{color:#555c6d}
body[data-ui-screen="admin"] .admin-v2-expiry-current{display:grid;gap:5px;min-width:0;padding:14px;border:1px solid #e2e4eb;border-radius:12px;background:#fafafd}
body[data-ui-screen="admin"] .admin-v2-expiry-current strong{color:#202331;font-size:14px;font-weight:700}
body[data-ui-screen="admin"] .admin-v2-expiry-current span{color:#475569;font-size:12px;overflow-wrap:anywhere}
body[data-ui-screen="admin"] .admin-v2-expiry-state{font-weight:700}
body[data-ui-screen="admin"] .admin-v2-expiry-state.is-active{color:#166534}
body[data-ui-screen="admin"] .admin-v2-expiry-state.is-expired{color:#9f1239}
body[data-ui-screen="admin"] .admin-v2-expiry-editor{min-width:0;padding:14px;border:1px solid #e2e4eb;border-radius:12px;background:#fafafd}
body[data-ui-screen="admin"] .admin-v2-expiry-editor fieldset{display:grid;gap:10px;min-width:0;margin:0;padding:0;border:0}
body[data-ui-screen="admin"] .admin-v2-expiry-editor legend{margin-bottom:8px;color:#202331;font-size:13px;font-weight:700}
body[data-ui-screen="admin"] .admin-v2-expiry-editor fieldset>label{display:flex;align-items:center;gap:9px;min-height:36px;color:#343849;font-size:13px}
body[data-ui-screen="admin"] .admin-v2-expiry-editor .field{display:grid;gap:6px;min-width:0;margin-top:5px}
body[data-ui-screen="admin"] .admin-v2-expiry-editor .field>label{color:#475569;font-size:12px;font-weight:650}
body[data-ui-screen="admin"] .admin-v2-expiry-editor input[type="date"]{width:100%;min-width:0;min-height:42px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:8px 10px;color:#111827;font:inherit}
body[data-ui-screen="admin"] .admin-v2-expiry-editor input[type="date"]:disabled{background:#f1f5f9;color:#64748b;cursor:not-allowed}
body[data-ui-screen="admin"] .admin-v2-expiry-message{min-height:20px;margin:9px 0;color:#475569;font-size:12px}
body[data-ui-screen="admin"] .admin-v2-expiry-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body[data-ui-screen="admin"] .admin-v2-expiry .btn-primary{border-color:#4c3ac7;background:#4c3ac7;color:#fff}
body[data-ui-screen="admin"] .admin-v2-expiry .btn-primary:hover{border-color:#3e2fb0;background:#3e2fb0;color:#fff}
body[data-ui-screen="admin"] .admin-v2-expiry :focus-visible{outline:3px solid #7669ed;outline-offset:2px}
body[data-ui-screen="admin"] .admin-v2-expiry [hidden]{display:none!important}
@media(max-width:640px){
  body[data-ui-screen="admin"] .admin-v2-license-drawer{width:100%;max-height:100dvh;padding:24px 18px calc(24px + env(safe-area-inset-bottom))}
  body[data-ui-screen="admin"] .admin-v2-expiry-actions>*{flex:1 1 130px}
}

body[data-ui-screen="admin"] .admin-user-cell strong{color:#111827;font-weight:600;opacity:1}
body[data-ui-screen="admin"] .admin-user-cell span{color:#475569;opacity:1}
body[data-ui-screen="admin"] .admin-product-price{color:#111827;font-weight:600;opacity:1}
body[data-ui-screen="admin"] .admin-products-table td:nth-child(2) .admin-role{border:1px solid #cbd5e1;background:#f1f5f9;color:#334155;font-weight:600}
body[data-ui-screen="admin"] .admin-product-status{border:1px solid transparent;font-size:11px;font-weight:650;opacity:1}
body[data-ui-screen="admin"] .admin-product-status.available{border-color:#b6ddc7;background:#eaf5ef;color:#17634c}
body[data-ui-screen="admin"] .admin-product-status.coming_soon{border-color:#e3d2a6;background:#fbf4df;color:#75520e}
body[data-ui-screen="admin"] .admin-product-status.draft{border-color:#cbd5e1;background:#f1f5f9;color:#475569}
body[data-ui-screen="admin"] .admin-product-status.archived{border-color:#e6bcc1;background:#fbebed;color:#8f2f3d}
body[data-ui-screen="admin"] .admin-v2-table-wrap.admin-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
body[data-ui-screen="admin"] .admin-orders-table .admin-order-coupon{overflow:hidden;vertical-align:middle}
body[data-ui-screen="admin"] .admin-orders-table .admin-order-coupon-value{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-ui-screen="admin"] .admin-orders-table .admin-order-status{overflow:hidden;white-space:nowrap;vertical-align:middle}
body[data-ui-screen="admin"] .admin-orders-table .admin-order-status .commerce-status{display:inline-flex;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main>span{overflow-wrap:anywhere}
body[data-ui-screen="admin"] .admin-v2-expiry-current>span{display:block;margin-top:5px;line-height:1.5}
body[data-ui-screen="admin"] .admin-v2-expiry-editor .field{min-width:0}
@media(max-width:900px){body[data-ui-screen="account"] .dashboard-owned-item{grid-template-columns:42px minmax(0,1fr);align-items:start;gap:11px 13px;padding:15px}body[data-ui-screen="account"] .dashboard-owned-avatar{grid-row:1/span 2}body[data-ui-screen="account"] .dashboard-owned-license,body[data-ui-screen="account"] .dashboard-owned-actions{grid-column:2}body[data-ui-screen="account"] .dashboard-owned-actions{justify-content:flex-start}}
@media(max-width:640px){body[data-ui-screen="account"] .dashboard-page{padding:20px 0 40px}body[data-ui-screen="account"] .dashboard-layout{width:calc(100% - 28px);gap:18px}body[data-ui-screen="account"] .dash-main{padding:0}body[data-ui-screen="account"] .dash-heading h1{font-size:27px}body[data-ui-screen="account"] .dash-heading p{font-size:13px;line-height:1.55}body[data-ui-screen="account"] .dashboard-owned-item{grid-template-columns:38px minmax(0,1fr);gap:9px 11px;padding:13px;border-radius:14px}body[data-ui-screen="account"] .dashboard-owned-avatar{grid-row:1/span 2;width:36px;height:36px}body[data-ui-screen="account"] .dashboard-owned-avatar svg{width:19px;height:19px}body[data-ui-screen="account"] .dashboard-owned-copy strong{white-space:normal;overflow-wrap:anywhere}body[data-ui-screen="account"] .dashboard-owned-license,body[data-ui-screen="account"] .dashboard-owned-actions{grid-column:2}body[data-ui-screen="account"] .dashboard-owned-actions .btn{flex:1 1 auto;justify-content:center}body[data-ui-screen="account"] .dashboard-billing-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none}body[data-ui-screen="account"] .dashboard-billing-table,body[data-ui-screen="account"] .dashboard-billing-table tbody{display:block;width:100%;min-width:0}body[data-ui-screen="account"] .dashboard-billing-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}body[data-ui-screen="account"] .dashboard-billing-table tbody{display:grid;gap:10px}body[data-ui-screen="account"] .dashboard-billing-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;padding:14px;border:1px solid #e5e9f0;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(28,42,70,.035)}body[data-ui-screen="account"] .dashboard-billing-table td{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:4px;padding:0;border:0;background:transparent}body[data-ui-screen="account"] .dashboard-billing-table td:before{content:attr(data-label);color:#657189;font-size:10px;font-weight:600;line-height:1.3}body[data-ui-screen="account"] .dashboard-billing-table td:first-child{grid-column:1/-1}body[data-ui-screen="account"] .dashboard-billing-table td:nth-child(2){grid-column:1}body[data-ui-screen="account"] .dashboard-billing-table td:nth-child(3){grid-column:2;align-items:flex-end}body[data-ui-screen="account"] .dashboard-billing-table td:last-child{grid-column:1/-1}body[data-ui-screen="account"] .dashboard-billing-table .commerce-status{white-space:normal}}
:root{--sd-account-bg:#f5f7fb;--sd-account-card:#ffffff;--sd-account-ink:#182235;--sd-account-muted:#475569;--sd-account-border:#e2e8f0;--sd-account-divider:#e5eaf1;--sd-account-purple:#5b3fd6;--sd-account-radius:15px}
body[data-ui-screen="account"]{background:var(--sd-account-bg);color:var(--sd-account-ink)}
body[data-ui-screen="account"] .dashboard-page{background:var(--sd-account-bg)}
body[data-ui-screen="account"] .dashboard-layout{width:min(calc(100% - 48px),1420px);grid-template-columns:250px minmax(0,1fr);gap:28px}
body[data-ui-screen="account"] .dash-sidebar,body[data-ui-screen="account"] .dash-card,body[data-ui-screen="account"] .dashboard-owned-item,body[data-ui-screen="account"] .dashboard-download-card,body[data-ui-screen="account"] .dashboard-license-card,body[data-ui-screen="account"] .dashboard-profile-card,body[data-ui-screen="account"] .dashboard-billing-table-wrap{border:1px solid var(--sd-account-border);border-radius:var(--sd-account-radius);background:var(--sd-account-card);box-shadow:0 5px 18px rgba(24,34,53,.045)}
body[data-ui-screen="account"] .dash-nav a{display:flex;align-items:center;gap:11px;min-height:44px;color:var(--sd-account-muted);font-weight:570}
body[data-ui-screen="account"] .dash-nav a svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body[data-ui-screen="account"] .dash-nav a.active{background:#f0edff;color:var(--sd-account-purple);font-weight:680}
body[data-ui-screen="account"] .dash-nav a:focus-visible,body[data-ui-screen="account"] .dash-main a:focus-visible,body[data-ui-screen="account"] .dash-main button:focus-visible{outline:3px solid #5b3fd6;outline-offset:3px}
body[data-ui-screen="account"] .dash-heading h1,body[data-ui-screen="account"] .dash-main h2,body[data-ui-screen="account"] .dashboard-profile-card h3{color:var(--sd-account-ink)}
body[data-ui-screen="account"] .dash-heading p,body[data-ui-screen="account"] .dash-card-label,body[data-ui-screen="account"] .dash-card-small,body[data-ui-screen="account"] .dashboard-owned-copy p{color:var(--sd-account-muted)}
body[data-ui-screen="account"] .dashboard-section-title{margin:24px 0 14px}
body[data-ui-screen="account"] .dashboard-owned-item{grid-template-columns:48px minmax(0,1fr) minmax(170px,.72fr) auto;gap:17px;padding:19px}
body[data-ui-screen="account"] .dashboard-owned-avatar{display:grid;place-items:center;width:44px;height:44px;border-color:#ded8ff;background:#f3f0ff;color:var(--sd-account-purple)}
body[data-ui-screen="account"] .dashboard-owned-license{align-content:center}
body[data-ui-screen="account"] .dashboard-owned-actions .btn{border-color:#cbd5e1;color:var(--sd-account-ink)}
body[data-ui-screen="account"] .dashboard-owned-actions .btn:hover{border-color:var(--sd-account-purple);color:var(--sd-account-purple)}
body[data-ui-screen="account"] .dashboard-download-list{display:grid;gap:16px}
body[data-ui-screen="account"] .dashboard-download-card{overflow:hidden}
body[data-ui-screen="account"] .dashboard-download-card>header{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;padding:20px;border-bottom:1px solid var(--sd-account-divider)}
body[data-ui-screen="account"] .dashboard-download-card h3{margin:2px 0 3px;color:var(--sd-account-ink);font-size:17px;letter-spacing:-.02em}
body[data-ui-screen="account"] .dashboard-download-card p{margin:0;color:var(--sd-account-muted);font-size:12px;line-height:1.5}
body[data-ui-screen="account"] .dashboard-download-owned{padding:5px 10px;border:1px solid #b7dfca;border-radius:999px;background:#effaf3;color:#17633f;font-size:11px;font-weight:650;white-space:nowrap}
body[data-ui-screen="account"] .dashboard-download-platform-list{padding:0 20px}
body[data-ui-screen="account"] .dashboard-download-platform-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px 0}
body[data-ui-screen="account"] .dashboard-download-platform-row+.dashboard-download-platform-row{border-top:1px solid var(--sd-account-divider)}
body[data-ui-screen="account"] .dashboard-download-platform-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--sd-account-border);border-radius:11px;background:#f8f9fc;color:var(--sd-account-ink);font-size:20px}
body[data-ui-screen="account"] .dashboard-download-platform-copy{display:grid;gap:3px;min-width:0}
body[data-ui-screen="account"] .dashboard-download-platform-copy strong{color:var(--sd-account-ink);font-size:13px}
body[data-ui-screen="account"] .dashboard-download-platform-copy span{color:var(--sd-account-muted);font-size:12px}
body[data-ui-screen="account"] .dashboard-download-action{min-height:38px;border:1px solid var(--sd-account-purple);background:var(--sd-account-purple);color:#fff;font-weight:650}
body[data-ui-screen="account"] .dashboard-download-action:hover{background:#4931b8;color:#fff}
body[data-ui-screen="account"] .dashboard-license-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;padding:20px}
body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main{grid-column:1;gap:7px}
body[data-ui-screen="account"] .dashboard-license-card>.commerce-status{grid-column:2;grid-row:1;align-self:start}
body[data-ui-screen="account"] .license-key-copy-row>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body[data-ui-screen="account"] .license-key-copy-value{flex:1 1 220px;min-height:36px;overflow-wrap:anywhere;word-break:break-word;color:var(--sd-account-ink)}
body[data-ui-screen="account"] .license-reveal-button{min-height:36px;padding:0 10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:var(--sd-account-ink);font:600 12px var(--sd-font);cursor:pointer}
body[data-ui-screen="account"] .license-reveal-button:hover{border-color:var(--sd-account-purple);color:var(--sd-account-purple)}
body[data-ui-screen="account"] .dashboard-license-advanced{grid-column:1/-1;padding-top:12px;border-top:1px solid var(--sd-account-divider)}
body[data-ui-screen="account"] .dashboard-license-advanced summary{width:max-content;max-width:100%;color:#334155;font-size:12px;font-weight:650;cursor:pointer}
body[data-ui-screen="account"] .dashboard-license-advanced-grid{display:flex;flex-wrap:wrap;gap:18px;padding-top:12px}
body[data-ui-screen="account"] .dashboard-license-advanced-grid .dashboard-commerce-meta{min-width:150px}
body[data-ui-screen="account"] .dashboard-profile-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;padding:22px}
body[data-ui-screen="account"] .dashboard-profile-avatar{display:grid;place-items:center;width:58px;height:58px;border:1px solid #ded8ff;border-radius:17px;background:#f0edff;color:var(--sd-account-purple);font-size:22px;font-weight:750}
body[data-ui-screen="account"] .dashboard-profile-heading h3{margin:3px 0 2px;font-size:18px}
body[data-ui-screen="account"] .dashboard-profile-heading p{margin:0;color:var(--sd-account-muted);overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-profile-card .dashboard-account-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:5px}
body[data-ui-screen="account"] .dashboard-profile-card .dashboard-account-grid>div{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid var(--sd-account-divider);border-radius:11px;background:#fbfcfe}
body[data-ui-screen="account"] .dashboard-profile-card .dashboard-account-grid span{color:var(--sd-account-muted);font-size:11px}
body[data-ui-screen="account"] .dashboard-profile-card .dashboard-account-grid strong{color:var(--sd-account-ink);font-size:13px;overflow-wrap:anywhere}
body[data-ui-screen="account"] .dashboard-billing-table-wrap{border-color:var(--sd-account-border)}
body[data-ui-screen="account"] .dashboard-billing-table th{background:#f8f9fc;color:#334155}
body[data-ui-screen="account"] .dashboard-billing-table td{border-color:var(--sd-account-divider)}
body[data-ui-screen="account"] .dashboard-billing-amount{color:var(--sd-account-ink);font-weight:650}
@media(max-width:1020px){body[data-ui-screen="account"] .dashboard-layout{grid-template-columns:220px minmax(0,1fr);gap:20px}body[data-ui-screen="account"] .dashboard-owned-item{grid-template-columns:46px minmax(0,1fr);align-items:start}body[data-ui-screen="account"] .dashboard-owned-license,body[data-ui-screen="account"] .dashboard-owned-actions{grid-column:2}body[data-ui-screen="account"] .dashboard-owned-actions{justify-content:flex-start}}
@media(max-width:820px){body[data-ui-screen="account"] .dashboard-layout{grid-template-columns:1fr}body[data-ui-screen="account"] .dash-sidebar{position:static}body[data-ui-screen="account"] .dash-nav{display:flex;overflow-x:auto;scrollbar-width:thin}body[data-ui-screen="account"] .dash-nav a{flex:0 0 auto}body[data-ui-screen="account"] .dashboard-license-card{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:560px){body[data-ui-screen="account"] .dashboard-layout{width:calc(100% - 28px)}body[data-ui-screen="account"] .dash-heading{align-items:flex-start;gap:12px}body[data-ui-screen="account"] .dash-heading>div:first-child{min-width:0}body[data-ui-screen="account"] .dashboard-store-link{flex:none;font-size:11px}body[data-ui-screen="account"] .dashboard-download-card>header{grid-template-columns:40px minmax(0,1fr);padding:15px;gap:10px}body[data-ui-screen="account"] .dashboard-download-owned{grid-column:2;justify-self:start}body[data-ui-screen="account"] .dashboard-download-platform-list{padding:0 14px}body[data-ui-screen="account"] .dashboard-download-platform-row{grid-template-columns:34px minmax(0,1fr);gap:9px;padding:13px 0}body[data-ui-screen="account"] .dashboard-download-action{grid-column:2;justify-self:start}body[data-ui-screen="account"] .dashboard-license-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:15px}body[data-ui-screen="account"] .dashboard-license-card .dashboard-commerce-main,body[data-ui-screen="account"] .dashboard-license-card>.commerce-status{grid-column:1;grid-row:auto}body[data-ui-screen="account"] .dashboard-profile-card{grid-template-columns:48px minmax(0,1fr);padding:16px}body[data-ui-screen="account"] .dashboard-profile-avatar{width:44px;height:44px;border-radius:13px}body[data-ui-screen="account"] .dashboard-profile-card .dashboard-account-grid{grid-template-columns:1fr}body[data-ui-screen="account"] .dashboard-owned-actions .btn{white-space:normal}body[data-ui-screen="account"] .dashboard-billing-table-wrap{border:0;box-shadow:none}}

/* Keep long upstream/license URLs within the existing product detail layout. */
#app .store-detail-page .store-detail-copy,
#app .store-detail-page .store-section-heading,
#app .store-detail-page .store-bottom-purchase>div{min-width:0;max-width:100%}
#app .store-detail-page #storeDetailDescription,
#app .store-detail-page #storePreviewDescription,
#app .store-detail-page #storeBottomDescription{overflow-wrap:anywhere;word-break:normal}
