/* Scoped shared shell; page styles cannot change navigation and page width. */
.ad-image-editor{display:flex;flex-direction:column;gap:10px;min-width:0}.ad-image-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.ad-form .ad-image-local{max-width:380px;flex:1 1 280px}.ad-image-editor>small,.ad-image-status{font-size:12px;color:var(--muted);line-height:1.7}.ad-image-status:empty{display:none}.ad-image-status.is-error{color:#ff9292}.ad-image-preview{display:block;max-width:100%;width:auto;max-height:180px;object-fit:contain;align-self:flex-start;border:1px solid var(--border);border-radius:8px;background:var(--surface2)}.ad-image-preview[hidden]{display:none}
body.admin-shell{--bg:#10131b;--sidebar:#141821;--surface:#1a1f2b;--surface2:#222836;--border:#2d3545;--text:#e8ecf5;--muted:#a1abc0;--dim:#808ba2;color-scheme:dark}
.admin-shell .sidebar{width:228px;min-width:228px}
.admin-shell .sidebar-brand{padding:24px 22px;gap:12px;min-height:92px;color:var(--text)}
.sidebar-brand small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px;letter-spacing:1px}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid #4566a2;border-radius:11px;background:#203356;color:#90b6ff}
.brand-mark svg{width:23px;height:23px}.admin-shell .sidebar-nav{padding:16px 12px;display:block}.nav-group+.nav-group{margin-top:18px}
.nav-group-label{font-size:11px;letter-spacing:1px;color:var(--dim);padding:0 12px 8px}
.admin-shell .nav-item{padding:10px 12px;font-size:13px;gap:11px;border-radius:8px;margin:2px 0;white-space:nowrap}
.admin-shell .nav-item .icon{width:19px;height:19px;display:block;flex-shrink:0}.nav-item svg{width:19px;height:19px}
.admin-shell .nav-item.active{background:#233451;border-color:#354c71;color:#a6c6ff}
.admin-shell .sidebar-footer{padding:16px 22px;display:flex}.sidebar-footer>span{display:flex;align-items:center;gap:8px;color:var(--muted)}
.status-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}
.admin-shell .main{margin-left:228px;min-width:0}.admin-shell .topbar{height:62px;padding:0 32px;flex-shrink:0;background:rgba(16,19,27,.96)}
.topbar-location{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.topbar-location strong{color:var(--text);font-weight:500}
.admin-shell .content{max-width:1536px;width:100%;padding:30px 32px 56px;margin:0 auto;outline:none}
.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.page-heading h1{font-size:25px;line-height:1.3;letter-spacing:.2px;margin:0;font-weight:650}.page-heading p{margin:9px 0 0;font-size:13px;color:var(--muted);line-height:1.7}
.page-tag{border:1px solid var(--border);border-radius:6px;padding:5px 10px;color:var(--muted);font-size:11px;white-space:nowrap}
.admin-shell .panel{border-radius:12px}.admin-shell .panel-head{padding:18px 22px;gap:12px}.admin-shell .panel-head>span:not(.badge){font-size:12px;color:var(--muted)}
.admin-shell .panel-head h2{font-size:14px}.admin-shell .panel+.panel{margin-top:18px}.admin-shell .admin-view>.panel:first-child{margin-top:0}
.admin-shell .btn{min-height:34px;font-size:12px;padding:7px 12px;justify-content:center;text-decoration:none}.admin-shell .btn-sm{min-height:30px;padding:4px 10px}
.admin-shell .btn:disabled{opacity:.5;cursor:not-allowed}.admin-shell .btn:focus-visible,.admin-shell a:focus-visible,.admin-shell summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.admin-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.admin-shell select{min-height:40px;color-scheme:dark}.admin-shell input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;flex-shrink:0;vertical-align:middle}
.admin-shell .panel textarea{line-height:1.7}.admin-shell label small{line-height:1.7}.admin-shell .panel th{font-size:12px;letter-spacing:0;text-transform:none;font-weight:500;padding:12px 18px}.admin-shell .panel td{padding:14px 18px}
.admin-shell .stats{gap:16px;margin-bottom:24px}.admin-shell .stat-card{border-radius:12px;padding:20px 22px}.admin-shell .stat-card:before{display:none}.admin-shell .stat-value{font-size:27px;color:var(--text);font-weight:650;line-height:1.5;overflow-wrap:anywhere}.admin-shell .stat-label{font-size:12px;margin-bottom:6px}
.admin-flash{padding:14px 18px;border:1px solid #405b85;border-left:3px solid var(--blue);background:#1c2b42;border-radius:8px;margin-bottom:22px;overflow-wrap:anywhere}
.admin-sections-nav{display:flex;gap:4px;padding:5px;background:var(--sidebar);border:1px solid var(--border);border-radius:10px;margin:0 0 22px;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.admin-sections-nav a{padding:10px 17px;border-radius:6px;white-space:nowrap;color:var(--muted);font-size:13px;line-height:1.4;text-decoration:none}.admin-sections-nav a:hover{color:var(--text);background:var(--surface)}.admin-sections-nav a[aria-selected=true]{background:#2c3e60;color:#b8d1ff;box-shadow:0 1px 4px #0003}
.admin-shell [data-admin-view][hidden],.admin-shell [hidden]{display:none!important}.admin-view{scroll-margin-top:90px;min-width:0}.admin-view>h2{font-size:17px}
.admin-shell .catalog-intro{align-items:flex-start}.admin-shell .catalog-intro p{font-size:13px;line-height:1.8;max-width:900px}.admin-shell .catalog-intro>.btn{flex-shrink:0}
.admin-shell .catalog-list{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-shell .catalog-price strong{font-size:27px}.admin-shell .catalog-summary h3{font-size:16px}.admin-shell .catalog-editor>summary,.admin-shell .app-editor>summary{padding:20px 22px;font-size:14px}
.admin-shell .catalog-form{grid-template-columns:minmax(0,1fr) 260px;padding:0 22px 22px}.admin-shell .catalog-preview{background:#151b26}.admin-shell .app-note,.admin-shell .ad-help{font-size:13px;margin:0;padding:18px 22px;line-height:1.9}
.admin-shell .app-intro p{font-size:13px;line-height:1.8}.admin-shell .rf-box h2{font-size:16px;margin-top:0}.admin-shell .rf-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:0}.admin-shell .rf-summary>span{font-size:12px;color:var(--muted)}.admin-shell .rf-summary strong{display:block;color:var(--text);margin-top:6px;font-size:26px}
.admin-shell .rf-box p{font-size:13px}.admin-shell .rf-box details{border-color:var(--border)}.admin-shell .rf-actions{padding-top:20px;border-top:1px solid var(--border);margin-top:20px}.admin-shell .rf-actions .field{flex:0 1 300px}
.admin-shell .user-title{margin-top:0}.admin-shell .user-title h2{font-size:18px}.admin-shell .user-filters{gap:14px}.admin-shell .user-segments{gap:7px}
.admin-shell .ad-panel>summary{cursor:pointer;list-style:none}.admin-shell .ad-panel>summary h2:before{content:'›';color:var(--blue);display:inline-block;width:20px}.admin-shell .ad-panel[open]>summary h2:before{content:'⌄'}
.overview-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-note,.overview-stats a{display:block;font-size:11px;color:var(--muted);margin-top:9px}.overview-stats a{color:var(--blue)}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);gap:22px;align-items:start}.overview-aside{display:grid;gap:20px;min-width:0}.admin-shell .overview-aside>.panel{margin:0}
.ops-attention{margin:20px 22px 4px;padding:15px 18px;display:flex;gap:28px;align-items:center;background:var(--surface2);border-radius:8px}.ops-attention>div{display:flex;flex-direction:column;gap:4px}.ops-attention strong{font-size:21px;font-weight:650}.ops-attention span{font-size:12px;color:var(--muted)}.ops-attention a{margin-left:auto}
.check-list{padding:4px 22px}.check-item{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--border)}.check-item:last-child{border-bottom:0}.check-item>div{flex:1}.check-item strong{font-size:13px;font-weight:500}.check-item p{color:var(--muted);font-size:12px;line-height:1.7;margin:5px 0 0}.check-item>a,.check-status{font-size:11px;white-space:nowrap;flex-shrink:0}.check-status{color:var(--gold)}.check-dot{width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0}.check-dot.pending{background:var(--gold)}
.passed-checks{border-top:1px solid var(--border)}.passed-checks>summary{padding:18px 22px;font-size:12px;color:var(--muted)}.passed-checks .badge{margin-left:auto}
.panel-footnote{font-size:11px;color:var(--muted);padding:14px 22px;margin:0;line-height:1.8;border-top:1px solid var(--border)}
.quick-links{padding:6px 22px}.quick-links>a{display:flex;align-items:center;gap:13px;color:var(--text);padding:14px 0;border-bottom:1px solid var(--border)}.quick-links>a:last-child{border-bottom:0}.quick-links>a>span:nth-child(2){flex:1}.quick-links strong{display:block;font-size:13px;font-weight:500}.quick-links small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.quick-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:8px;background:var(--blue-dim);color:#8fb7ff}.quick-icon svg{width:18px;height:18px}
.resource-list{margin:0;padding:8px 22px}.resource-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;font-size:12px}.resource-list dt{color:var(--muted)}.resource-list dd{margin:0;font-variant-numeric:tabular-nums}.launch-notes summary{padding:18px 22px;font-size:13px}.launch-notes p{padding:0 22px;font-size:12px;line-height:1.9;color:var(--muted)}
.nav-source-list{display:grid;gap:16px}.nav-source-summary{display:flex;gap:16px;align-items:center;padding:20px 22px;list-style:none}.nav-source-summary>div{flex:1;min-width:0}.nav-source-summary strong{display:block;font-size:14px}.nav-source-summary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin-top:6px}.nav-source-summary .edit-hint{font-size:12px;color:var(--blue)}.nav-source-form{border-top:1px solid var(--border)}.nav-source-delete{padding:0 22px 20px}
.skip-link{position:fixed;top:-80px;left:245px;z-index:150;background:var(--blue);color:white;padding:12px;border-radius:8px}.skip-link:focus{top:12px}
@media(max-width:1200px){.admin-shell .content{padding:26px 24px 40px}.admin-shell .topbar{padding:0 24px}.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:minmax(0,1.3fr) minmax(270px,1fr)}.admin-shell .catalog-form{grid-template-columns:1fr}.admin-shell .catalog-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.admin-shell .sidebar{width:202px;min-width:202px}.admin-shell .main{margin-left:202px}.overview-grid{grid-template-columns:1fr}.overview-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.launch-notes{grid-column:1/-1}.admin-shell .rf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.admin-shell{display:block}.admin-shell .sidebar{position:static;width:100%;min-width:0;max-height:none;border-right:0;border-bottom:1px solid var(--border)}.admin-shell .sidebar-brand{display:flex;min-height:70px;padding:16px 20px}.admin-shell .sidebar-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.admin-shell .nav-group{margin:0}.admin-shell .sidebar-footer{display:flex}.admin-shell .main{margin:0}.admin-shell .topbar{position:sticky;padding:0 18px;height:56px}.admin-shell .content{padding:22px 18px 40px}.admin-shell .page-heading{margin-bottom:22px}.page-heading h1{font-size:22px}.page-tag{display:none}.admin-shell .menu-toggle{display:inline-flex}.admin-shell.nav-enhanced .sidebar{display:none}.admin-shell.nav-enhanced.nav-open .sidebar{display:block}.admin-shell .topbar .sub{display:none}.admin-shell .nav-item .icon{display:block}.overview-aside{grid-template-columns:1fr}.admin-shell .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-shell .stat-card{padding:16px}.admin-shell .stat-value{font-size:23px}.admin-shell .catalog-intro{flex-wrap:wrap}.admin-shell .catalog-list{grid-template-columns:1fr}.admin-sections-nav a{padding:10px 13px}.admin-shell .catalog-form{padding:0 16px 16px}.admin-shell .panel-head{padding:16px}.admin-shell .catalog-editor>summary,.admin-shell .app-editor>summary{padding:18px 16px}.admin-shell .ad-form{padding:16px}.admin-shell .app-note,.admin-shell .ad-help{padding:16px}.ops-attention{margin:16px 16px 4px;gap:14px;padding:14px}.ops-attention span{font-size:11px}.check-list{padding:0 16px}.check-item{align-items:flex-start;flex-wrap:wrap;gap:10px}.check-dot{margin-top:7px}.check-item>div{min-width:65%}.check-item>a,.check-status{margin-left:16px}.panel-footnote{padding:14px 16px}.nav-source-summary{padding:18px 16px;gap:10px}.nav-source-summary .edit-hint{display:none}.skip-link{left:18px}}
@media(min-width:761px){.admin-shell .menu-toggle{display:none}}
.admin-sections-nav{scroll-margin-top:80px}.admin-shell .nav-source-list>.panel{margin:0}
.admin-view:focus{outline:none}.admin-view:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.admin-shell #redemption-generate{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-shell .redemption-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}
.admin-shell .redemption-code-search{grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--border)}.redemption-search-note{margin:16px 20px 0;color:var(--muted);font-size:12px;line-height:1.8}
.redemption-filter-actions{grid-column:1/-1}.redemption-account{overflow-wrap:anywhere;min-width:180px;max-width:300px}#redemption-records{scroll-margin-top:80px}
@media(max-width:1000px){.admin-shell .redemption-filters{grid-template-columns:1fr}}
@media(max-width:760px){.admin-shell .redemption-code-search{grid-template-columns:1fr}}
.admin-shell #account-rewards form>label:has(input:not([type=checkbox])),.admin-shell #social-login form>label{display:grid;gap:8px;font-size:13px;color:var(--muted)}
.admin-shell #account-rewards form>div{align-self:end}.admin-shell #social-login form{max-width:760px!important}.admin-shell #social-login form+form{border-top:1px solid var(--border)}
@media(min-width:761px){.admin-shell .sidebar-brand{min-height:76px;padding:18px 22px}.admin-shell .sidebar-nav{padding:12px}.admin-shell .nav-item{padding:7px 12px;margin:1px 0;line-height:19px}.admin-shell .nav-group+.nav-group{margin-top:12px}.admin-shell .nav-group-label{padding-bottom:6px}.admin-shell .sidebar-footer{padding:12px 22px}}
@media(max-width:760px){.admin-shell #redemption-generate{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.admin-shell *{scroll-behavior:auto;transition:none}}
.admin-password-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:24px;align-items:start;max-width:1100px}.admin-password-form{padding:24px;display:grid;gap:20px}.admin-password-form label{display:grid;gap:8px;color:var(--muted);font-size:13px}.admin-password-form input{width:100%}.admin-password-form input[readonly]{color:var(--muted);background:var(--bg)}.password-help{font-size:12px;line-height:1.8;color:var(--muted);margin:-10px 0 0}.password-submit{border-top:1px solid var(--border);padding-top:20px}.password-notes{padding:6px 22px 16px}.password-notes p{font-size:13px;line-height:1.8;color:var(--muted);margin:14px 0}.password-aside{min-width:0}.login-notice{padding:12px 14px;background:var(--blue-dim);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:13px;line-height:1.7;margin-bottom:18px}
@media(max-width:1000px){.admin-password-grid{grid-template-columns:1fr}.password-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-shell .password-aside>.panel{margin:0}}
@media(max-width:620px){.password-aside{grid-template-columns:1fr}.admin-password-form{padding:18px}.password-submit .btn{width:100%}}
.sidebar-footer .footer-actions{display:flex;align-items:center;gap:6px}.admin-shell .sidebar-footer .btn-sm{padding:4px 7px;font-size:11px}
