/* Visual-only coverage for hard-coded legacy colors. Curated overrides load next. */
:root[data-theme="dark"]{background:var(--surface-soft)}
html[data-theme="dark"],[data-theme="dark"] body{background:var(--surface-soft)}
[data-theme="dark"] .prototype-sidebar,[data-theme="dark"] .prototype-inspector{background:var(--surface);border-color:var(--line)}
[data-theme="dark"] .prototype-sidebar{border-right:1px solid var(--line)}
[data-theme="dark"] .prototype-inspector{border-left:1px solid var(--line)}
[data-theme="dark"] .brand-glyph{color:#f5f0fc}
[data-theme="dark"] .directory-search input{background:var(--surface)}
[data-theme="dark"] .directory-search input:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.12)}
[data-theme="dark"] .route-group{color:var(--ink)}
[data-theme="dark"] .route-link{color:var(--ink)}
[data-theme="dark"] .route-link:hover{background:var(--surface-soft)}
[data-theme="dark"] .route-link.active{background:var(--surface-soft);color:var(--primary)}
[data-theme="dark"] .route-index{color:var(--ink)}
[data-theme="dark"] .device-shell{box-shadow:0 30px 80px rgba(0,0,0,0.25)}
[data-theme="dark"] .appbar{background:var(--warning-bg);border-bottom:1px solid var(--line)}
[data-theme="dark"] .appbar.dark{color:#f5f0fc}
[data-theme="dark"] .appbar.dark .appbar-title p{color:var(--primary)}
[data-theme="dark"] .appbar-mark{color:#f5f0fc}
[data-theme="dark"] .icon-btn{background:var(--surface);box-shadow:0 1px 0 rgba(0,0,0,0.03)}
[data-theme="dark"] .appbar.dark .icon-btn{background:rgba(255,255,255,0.08);color:#f5f0fc}
[data-theme="dark"] .hero{color:#f5f0fc}
[data-theme="dark"] .hero:after{background:radial-gradient(circle,rgba(255,255,255,0.08),transparent 70%)}
[data-theme="dark"] .hero.light{background:linear-gradient(145deg,var(--surface-soft),var(--surface));border:1px solid var(--line)}
[data-theme="dark"] .eyebrow{color:var(--primary)}
[data-theme="dark"] .hero.light .eyebrow{color:var(--primary)}
[data-theme="dark"] .hero p{color:var(--primary)}
[data-theme="dark"] .hero-stat{background:rgba(255,255,255,0.08);border:1px solid var(--line)}
[data-theme="dark"] .hero-stat span{color:var(--primary)}
[data-theme="dark"] .hero.light .hero-stat{background:var(--surface)}
[data-theme="dark"] .card{box-shadow:0 1px 0 rgba(0,0,0,0.02)}
[data-theme="dark"] .card.soft{border-color:var(--line)}
[data-theme="dark"] .card.warn{background:var(--warning-bg);border-color:var(--line)}
[data-theme="dark"] .card.success{background:var(--success-bg);border-color:var(--line)}
[data-theme="dark"] .card.error{background:var(--error-bg);border-color:var(--line)}
[data-theme="dark"] .thumb{background:var(--surface-soft)}
[data-theme="dark"] .avatar{background:var(--surface-soft)}
[data-theme="dark"] .badge{background:var(--surface-soft);color:var(--primary)}
[data-theme="dark"] .badge.success{background:var(--success-bg);color:var(--success)}
[data-theme="dark"] .badge.warning{background:var(--warning-bg);color:var(--warning)}
[data-theme="dark"] .badge.error{background:var(--error-bg);color:var(--error)}
[data-theme="dark"] .badge.neutral{background:var(--surface-soft);color:var(--ink)}
[data-theme="dark"] .metric{background:var(--surface)}
[data-theme="dark"] .quick-action{background:var(--surface)}
[data-theme="dark"] .tab{background:var(--surface)}
[data-theme="dark"] .tab.active{color:#f5f0fc}
[data-theme="dark"] .segmented{background:var(--surface-soft)}
[data-theme="dark"] .segmented button.active{background:var(--surface);box-shadow:0 2px 8px rgba(0,0,0,0.08)}
[data-theme="dark"] .input,[data-theme="dark"] .select,[data-theme="dark"] .textarea{border:1px solid var(--line);background:var(--surface)}
[data-theme="dark"] .input:focus,[data-theme="dark"] .select:focus,[data-theme="dark"] .textarea:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.1)}
[data-theme="dark"] .prefix-input{border:1px solid var(--line);background:var(--surface)}
[data-theme="dark"] .prefix-input:focus-within{box-shadow:0 0 0 3px rgba(0,0,0,0.1)}
[data-theme="dark"] .switch{background:var(--surface-soft)}
[data-theme="dark"] .switch:after{background:var(--surface);box-shadow:0 2px 6px rgba(0,0,0,0.18)}
[data-theme="dark"] .btn.primary{color:#f5f0fc;box-shadow:0 12px 26px rgba(0,0,0,0.24)}
[data-theme="dark"] .btn.secondary{background:var(--surface);border:1px solid var(--line)}
[data-theme="dark"] .btn.tonal{background:var(--surface-soft);color:var(--primary)}
[data-theme="dark"] .btn.neutral{background:var(--surface-soft)}
[data-theme="dark"] .btn.danger{color:#f5f0fc}
[data-theme="dark"] .sticky-actions{background:linear-gradient(180deg,rgba(255,255,255,0.0),var(--canvas) 28%)}
[data-theme="dark"] .bottom-nav{background:var(--surface)}
[data-theme="dark"] .bottom-nav button{color:var(--ink)}
[data-theme="dark"] .bottom-nav button.active{background:var(--surface-soft)}
[data-theme="dark"] .list-row{background:var(--surface)}
[data-theme="dark"] .list-row .icon-box{background:var(--surface-soft)}
[data-theme="dark"] .list-row .chevron{color:var(--ink)}
[data-theme="dark"] .chip{background:var(--surface)}
[data-theme="dark"] .chip.active{background:var(--surface-soft);border-color:var(--line);color:var(--primary)}
[data-theme="dark"] .progress{background:var(--surface-soft)}
[data-theme="dark"] .stepper span{background:var(--surface-soft)}
[data-theme="dark"] .post-action.active{background:var(--surface-soft)}
[data-theme="dark"] .timeline-dot{border:3px solid var(--line)}
[data-theme="dark"] .timeline-line{background:var(--surface-soft)}
[data-theme="dark"] .bubble{background:var(--surface)}
[data-theme="dark"] .bubble.me{background:var(--surface-soft);border-color:var(--line)}
[data-theme="dark"] .chat-composer input{background:var(--surface)}
[data-theme="dark"] .qr{background:repeating-conic-gradient(#211425 0 25%,var(--surface) 0 50%) 0/22px 22px;border:12px solid var(--line)}
[data-theme="dark"] .scanner{background:radial-gradient(circle at center,rgba(255,255,255,0.03),transparent 32%),linear-gradient(180deg,#130E18,#2D1A34)}
[data-theme="dark"] .scanner:before{border:2px solid var(--line)}
[data-theme="dark"] .scanner:after{box-shadow:0 0 16px rgba(0,0,0,0.25)}
[data-theme="dark"] .chart{background:linear-gradient(180deg,var(--surface-soft),var(--surface))}
[data-theme="dark"] .chart-grid line{stroke:var(--primary)}
[data-theme="dark"] .state-icon{background:var(--surface-soft)}
[data-theme="dark"] .skeleton{background:linear-gradient(90deg,var(--surface-soft) 25%,var(--surface-soft) 37%,var(--surface-soft) 63%)}
[data-theme="dark"] .sheet{box-shadow:0 -24px 80px rgba(0,0,0,0.25)}
[data-theme="dark"] .sheet-handle{background:var(--surface-soft)}
[data-theme="dark"] .sheet-actions{background:linear-gradient(180deg,rgba(255,255,255,0.0),var(--canvas) 30%)}
[data-theme="dark"] .toast{color:#f5f0fc}
[data-theme="dark"] .inspector-card{background:var(--surface)}
[data-theme="dark"] .inspector-card h3{color:var(--ink)}
[data-theme="dark"] .icon-box{background:var(--surface-soft)}
html[data-theme="dark"],[data-theme="dark"] body{background:var(--info-bg)}
[data-theme="dark"] .mobile-app,[data-theme="dark"] .screen{background:
  radial-gradient(circle at 10% 0%,rgba(255,255,255,0.014),transparent 27%),
  radial-gradient(circle at 96% 22%,rgba(255,255,255,0.009),transparent 22%),
  var(--canvas)}
[data-theme="dark"] .section-head p{color:var(--ink)}
[data-theme="dark"] .appbar{background:linear-gradient(180deg,var(--surface),var(--surface));border-bottom:1px solid var(--line);box-shadow:0 5px 18px rgba(0,0,0,0.035)}
[data-theme="dark"] .appbar.dark .appbar-title h1{color:#f5f0fc}
[data-theme="dark"] .appbar-mark{border:1px solid var(--line);background:var(--surface);color:var(--muted);box-shadow:0 8px 22px rgba(0,0,0,0.1)}
[data-theme="dark"] .icon-btn{background:var(--surface);color:var(--muted);border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,0.07)}
[data-theme="dark"] .notification-count{color:#f5f0fc;border:2px solid var(--line);box-shadow:0 3px 10px rgba(0,0,0,0.25)
}
[data-theme="dark"] .profile-avatar-btn{background:var(--surface);box-shadow:0 6px 18px rgba(0,0,0,0.12)
}
[data-theme="dark"] .profile-avatar-btn img{border:3px solid var(--line)}
[data-theme="dark"] .profile-avatar-btn span{border:2px solid var(--line)}
[data-theme="dark"] .dashboard-search,[data-theme="dark"] .nearby-btn{border:1px solid var(--line);background:var(--surface);box-shadow:0 8px 22px rgba(0,0,0,0.07);color:var(--ink)
}
[data-theme="dark"] .dashboard-search>span:first-child{color:var(--ink)}
[data-theme="dark"] .card,[data-theme="dark"] .list-row,[data-theme="dark"] .metric{background:var(--surface)}
[data-theme="dark"] .card.interactive:hover{box-shadow:0 12px 34px rgba(0,0,0,0.12);border-color:var(--line)}
[data-theme="dark"] .card.soft{background:linear-gradient(135deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .card.warn{background:linear-gradient(135deg,var(--warning-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .card.success{background:linear-gradient(135deg,var(--success-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .card.error{background:linear-gradient(135deg,var(--error-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .metric:after{background:rgba(255,255,255,0.014)}
[data-theme="dark"] .avatar{border:2px solid var(--line);box-shadow:0 4px 14px rgba(0,0,0,0.14)}
[data-theme="dark"] .hero{box-shadow:0 18px 38px rgba(0,0,0,0.22);border:1px solid var(--line)
}
[data-theme="dark"] .hero:before{background:linear-gradient(115deg,rgba(255,255,255,0.08),transparent 35%)}
[data-theme="dark"] .hero:after{background:radial-gradient(circle,var(--surface),transparent 68%)}
[data-theme="dark"] .hero p{color:var(--primary)}
[data-theme="dark"] .hero.light{background:
    radial-gradient(circle at 90% 5%,rgba(255,255,255,0.03),transparent 32%),
    radial-gradient(circle at 0% 100%,rgba(255,255,255,0.028),transparent 35%),
    linear-gradient(135deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .hero-stat{background:rgba(255,255,255,0.08)}
[data-theme="dark"] .icon-box,[data-theme="dark"] .state-icon{background:linear-gradient(145deg,var(--surface-soft),var(--surface));border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(0,0,0,0.25)
}
[data-theme="dark"] .quick-action{background:linear-gradient(145deg,var(--surface-soft),var(--surface));border-color:var(--line)}
@supports  selector(.icon-box:has(svg)){[data-theme="dark"] .icon-box:has([data-icon="users"]),[data-theme="dark"] .icon-box:has([data-icon="heart"]),[data-theme="dark"] .icon-box:has([data-icon="message"]),[data-theme="dark"] .icon-box:has([data-icon="share"]),[data-theme="dark"] .icon-box:has([data-icon="bell"]),[data-theme="dark"] .state-icon:has([data-icon="users"]),[data-theme="dark"] .state-icon:has([data-icon="heart"]),[data-theme="dark"] .state-icon:has([data-icon="message"]),[data-theme="dark"] .quick-action:has([data-icon="users"]),[data-theme="dark"] .quick-action:has([data-icon="heart"]){background:linear-gradient(145deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .icon-box:has([data-icon="search"]),[data-theme="dark"] .icon-box:has([data-icon="eye"]),[data-theme="dark"] .icon-box:has([data-icon="chart"]),[data-theme="dark"] .icon-box:has([data-icon="globe"]),[data-theme="dark"] .icon-box:has([data-icon="compass"]),[data-theme="dark"] .icon-box:has([data-icon="map"]),[data-theme="dark"] .state-icon:has([data-icon="search"]),[data-theme="dark"] .state-icon:has([data-icon="eye"]),[data-theme="dark"] .state-icon:has([data-icon="chart"]),[data-theme="dark"] .state-icon:has([data-icon="globe"]),[data-theme="dark"] .quick-action:has([data-icon="chart"]),[data-theme="dark"] .quick-action:has([data-icon="compass"]),[data-theme="dark"] .quick-action:has([data-icon="map"]){background:linear-gradient(145deg,var(--info-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .icon-box:has([data-icon="shield"]),[data-theme="dark"] .icon-box:has([data-icon="check"]),[data-theme="dark"] .icon-box:has([data-icon="wallet"]),[data-theme="dark"] .icon-box:has([data-icon="rupee"]),[data-theme="dark"] .icon-box:has([data-icon="briefcase"]),[data-theme="dark"] .state-icon:has([data-icon="shield"]),[data-theme="dark"] .state-icon:has([data-icon="check"]),[data-theme="dark"] .state-icon:has([data-icon="wallet"]),[data-theme="dark"] .quick-action:has([data-icon="briefcase"]),[data-theme="dark"] .quick-action:has([data-icon="wallet"]){background:linear-gradient(145deg,var(--success-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .icon-box:has([data-icon="calendar"]),[data-theme="dark"] .icon-box:has([data-icon="ticket"]),[data-theme="dark"] .icon-box:has([data-icon="award"]),[data-theme="dark"] .icon-box:has([data-icon="star"]),[data-theme="dark"] .icon-box:has([data-icon="upload"]),[data-theme="dark"] .icon-box:has([data-icon="camera"]),[data-theme="dark"] .icon-box:has([data-icon="play"]),[data-theme="dark"] .state-icon:has([data-icon="calendar"]),[data-theme="dark"] .state-icon:has([data-icon="ticket"]),[data-theme="dark"] .state-icon:has([data-icon="award"]),[data-theme="dark"] .state-icon:has([data-icon="camera"]),[data-theme="dark"] .quick-action:has([data-icon="calendar"]),[data-theme="dark"] .quick-action:has([data-icon="award"]),[data-theme="dark"] .quick-action:has([data-icon="upload"]),[data-theme="dark"] .quick-action:has([data-icon="play"]){background:linear-gradient(145deg,var(--warning-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .icon-box:has([data-icon="mail"]),[data-theme="dark"] .icon-box:has([data-icon="file"]),[data-theme="dark"] .icon-box:has([data-icon="download"]),[data-theme="dark"] .icon-box:has([data-icon="copy"]),[data-theme="dark"] .state-icon:has([data-icon="mail"]),[data-theme="dark"] .state-icon:has([data-icon="file"]),[data-theme="dark"] .quick-action:has([data-icon="file"]){background:linear-gradient(145deg,var(--info-bg),var(--surface));border-color:var(--line)}}
[data-theme="dark"] .btn.primary{box-shadow:0 12px 28px rgba(0,0,0,0.25)}
[data-theme="dark"] .btn.primary:hover{box-shadow:0 14px 32px rgba(0,0,0,0.25)}
[data-theme="dark"] .btn.secondary{background:var(--surface);border-color:var(--line);box-shadow:0 5px 15px rgba(0,0,0,0.055)}
[data-theme="dark"] .btn.tonal{background:linear-gradient(135deg,var(--surface-soft),var(--surface));color:var(--primary);border:1px solid var(--line)}
[data-theme="dark"] .btn.neutral{background:var(--surface-soft)}
[data-theme="dark"] .input,[data-theme="dark"] .select,[data-theme="dark"] .textarea,[data-theme="dark"] .prefix-input,[data-theme="dark"] .chat-composer input{border-color:var(--line);background:var(--surface);box-shadow:0 4px 13px rgba(0,0,0,0.035)
}
[data-theme="dark"] .input:focus,[data-theme="dark"] .select:focus,[data-theme="dark"] .textarea:focus,[data-theme="dark"] .prefix-input:focus-within,[data-theme="dark"] .chat-composer input:focus{border-color:var(--control-line);box-shadow:0 0 0 4px rgba(0,0,0,0.1)}
[data-theme="dark"] .progress{background:var(--surface-soft)}
[data-theme="dark"] .tab{border-color:var(--line);box-shadow:0 3px 10px rgba(0,0,0,0.035)}
[data-theme="dark"] .tab.active{box-shadow:0 7px 18px rgba(0,0,0,0.2)}
[data-theme="dark"] .segmented{background:var(--surface-soft);border:1px solid var(--line)}
[data-theme="dark"] .segmented button.active{box-shadow:0 3px 12px rgba(0,0,0,0.08)}
[data-theme="dark"] .chip{border-color:var(--line);box-shadow:0 3px 10px rgba(0,0,0,0.03)}
[data-theme="dark"] .chip.active{background:linear-gradient(135deg,var(--surface-soft),var(--surface));border-color:var(--line);color:var(--primary)}
[data-theme="dark"] .badge{background:var(--surface-soft);color:var(--blue);border:1px solid var(--line)}
[data-theme="dark"] .badge.success{background:var(--success-bg);color:var(--success);border-color:var(--line)}
[data-theme="dark"] .badge.warning{background:var(--warning-bg);color:var(--warning);border-color:var(--line)}
[data-theme="dark"] .badge.error{background:var(--error-bg);color:var(--pink);border-color:var(--line)}
[data-theme="dark"] .badge.neutral{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .post-action.active{background:var(--surface-soft)}
[data-theme="dark"] .bubble{box-shadow:0 4px 15px rgba(0,0,0,0.045)}
[data-theme="dark"] .bubble.me{background:linear-gradient(135deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .chart{background:linear-gradient(180deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .chart-line{stroke:var(--primary)}
[data-theme="dark"] .timeline-dot{border-color:var(--line)}
[data-theme="dark"] .scanner{background:radial-gradient(circle at center,rgba(255,255,255,0.035),transparent 32%),linear-gradient(180deg,#12072D,#351063)}
[data-theme="dark"] .bottom-nav{border:1px solid var(--line);background:var(--surface);box-shadow:0 15px 38px rgba(0,0,0,0.16)}
[data-theme="dark"] .bottom-nav button{color:var(--ink)}
[data-theme="dark"] .bottom-nav button.active{color:#f5f0fc;box-shadow:0 10px 24px rgba(0,0,0,0.25)
}
[data-theme="dark"] .bottom-nav button.active .icon{filter:drop-shadow(0 2px 2px rgba(255,255,255,0.025))}
[data-theme="dark"] .sticky-actions{background:linear-gradient(180deg,rgba(255,255,255,0.0),var(--surface) 24%,var(--canvas) 42%)}
[data-theme="dark"] .sheet{background:linear-gradient(180deg,var(--surface),var(--canvas));border:1px solid var(--line);box-shadow:0 -28px 85px rgba(0,0,0,0.25)}
[data-theme="dark"] .sheet-handle{background:var(--surface-soft)}
[data-theme="dark"] .toast{border:1px solid var(--line)}
[data-theme="dark"] .prototype-sidebar,[data-theme="dark"] .prototype-inspector{background:var(--surface)}
[data-theme="dark"] .route-link.active{background:linear-gradient(135deg,var(--surface-soft),var(--surface));color:var(--primary)}
[data-theme="dark"] .device-shell{box-shadow:0 32px 90px rgba(0,0,0,0.25)}
[data-theme="dark"] .profile-avatar-btn img{background:linear-gradient(145deg,var(--surface-soft),var(--info-bg))}
[data-theme="dark"] .universal-state{background:var(--surface)}
[data-theme="dark"] .universal-state .state-orb{background:var(--surface-soft)}
[data-theme="dark"] .universal-state.warning{background:var(--warning-bg);border-color:var(--line)}
[data-theme="dark"] .universal-state.warning .state-orb{background:var(--warning-bg)}
[data-theme="dark"] .universal-state.error{background:var(--error-bg);border-color:var(--line)}
[data-theme="dark"] .universal-state.error .state-orb{background:var(--error-bg)}
[data-theme="dark"] .universal-state.success{background:var(--success-bg);border-color:var(--line)}
[data-theme="dark"] .universal-state.success .state-orb{background:var(--success-bg)}
[data-theme="dark"] .production-panel{border:1px solid var(--line);background:linear-gradient(145deg,var(--surface),var(--surface));box-shadow:0 8px 24px rgba(0,0,0,0.06)}
[data-theme="dark"] .production-panel-body{border-top:1px solid var(--line)}
[data-theme="dark"] .validation-list>div>span{background:var(--success-bg)}
[data-theme="dark"] .state-chip{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
[data-theme="dark"] .state-chip:hover{background:var(--surface-soft)}
[data-theme="dark"] .workflow-hero{color:#f5f0fc;box-shadow:0 16px 36px rgba(0,0,0,0.2)}
[data-theme="dark"] .workflow-hero:after{background:radial-gradient(circle,rgba(255,255,255,0.08),transparent 68%)}
[data-theme="dark"] .workflow-hero.pink{background:radial-gradient(circle at 90% 0,var(--surface-soft),transparent 30%),linear-gradient(135deg,#31104F,#8B176C 58%,#F72585)}
[data-theme="dark"] .workflow-hero.blue{background:radial-gradient(circle at 90% 0,var(--info-bg),transparent 32%),linear-gradient(135deg,#0C295C,#1359AC 58%,#1889F5)}
[data-theme="dark"] .workflow-hero.orange{background:radial-gradient(circle at 90% 0,var(--warning-bg),transparent 30%),linear-gradient(135deg,#6B2200,#C34B05 58%,#FF7A1A)}
[data-theme="dark"] .workflow-status{color:var(--primary)}
[data-theme="dark"] .workflow-status span{background:rgba(255,255,255,0.08)}
[data-theme="dark"] .workflow-hero p{color:#f5f0fc}
[data-theme="dark"] .status-track span{background:rgba(255,255,255,0.08)}
[data-theme="dark"] .status-track span.done{background:var(--surface)}
[data-theme="dark"] .status-track span.current{box-shadow:0 0 0 2px rgba(0,0,0,0.25)}
[data-theme="dark"] .money-table{background:var(--surface)}
[data-theme="dark"] .money-row.total{background:linear-gradient(135deg,var(--surface-soft),var(--surface))}
[data-theme="dark"] .task-check{background:var(--surface)}
[data-theme="dark"] .task-check-icon{background:var(--warning-bg)}
[data-theme="dark"] .task-check.done .task-check-icon{background:var(--success-bg)}
[data-theme="dark"] .evidence-card{background:var(--surface)}
[data-theme="dark"] .map-card{background:linear-gradient(145deg,var(--info-bg),var(--surface-soft));border:1px solid var(--line)}
[data-theme="dark"] .map-card:before,[data-theme="dark"] .map-card:after{background:rgba(255,255,255,0.037)}
[data-theme="dark"] .map-route{border:4px dashed var(--control-line);border-bottom-color:var(--control-line)}
[data-theme="dark"] .map-pin{background:var(--surface);box-shadow:0 9px 24px rgba(0,0,0,0.18)}
[data-theme="dark"] .eta-card{background:var(--surface)}
[data-theme="dark"] .live-timer{background:radial-gradient(circle at center,var(--surface-soft) 0,var(--surface) 58%,var(--surface));border:1px solid var(--line)}
[data-theme="dark"] .pulse-ring{border:12px solid var(--line)}
[data-theme="dark"] .comparison-card{background:var(--surface)}
[data-theme="dark"] .live-event-card{color:#f5f0fc}
[data-theme="dark"] .live-event-card p{color:var(--primary)}
[data-theme="dark"] .live-badge{background:rgba(255,255,255,0.08)}
[data-theme="dark"] .live-badge span{box-shadow:0 0 0 5px rgba(0,0,0,0.16)}
[data-theme="dark"] .live-event-card .metric{background:rgba(255,255,255,0.08);border-color:var(--line);color:#f5f0fc}
[data-theme="dark"] .live-event-card .metric span{color:var(--primary)}
[data-theme="dark"] .certificate-card{color:#f5f0fc}
[data-theme="dark"] .certificate-card .icon-box.large{background:rgba(255,255,255,0.08);color:#f5f0fc}
[data-theme="dark"] .certificate-card p{color:var(--primary)}
[data-theme="dark"] .certificate-card .qr.mini{border:7px solid var(--line)}
[data-theme="dark"] .commission-card{background:var(--surface)}
[data-theme="dark"] .commission-card.active{background:linear-gradient(135deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .role-card{background:var(--surface)}
[data-theme="dark"] .role-card.active{background:linear-gradient(135deg,var(--surface-soft),var(--surface));border-color:var(--control-line);box-shadow:0 8px 20px rgba(0,0,0,0.08)}
[data-theme="dark"] .admin-queue button{background:var(--surface)}
[data-theme="dark"] .queue-priority.p0{background:var(--error-bg)}
[data-theme="dark"] .queue-priority.p1{background:var(--warning-bg)}
[data-theme="dark"] .audit-table{background:var(--surface)}
[data-theme="dark"] .tag{border:1px solid var(--line);background:linear-gradient(135deg,var(--surface-soft),var(--surface))}
[data-theme="dark"] .radio-option{background:var(--surface)}
[data-theme="dark"] .check-card{background:var(--surface)}
[data-theme="dark"] .safety-policy{border:1px solid var(--line);background:linear-gradient(135deg,var(--surface),var(--surface))}
[data-theme="dark"] .safety-policy h3{color:var(--error)}
[data-theme="dark"] .network-summary button{background:var(--surface)}
[data-theme="dark"] .booking-icon{color:#f5f0fc;box-shadow:0 8px 18px rgba(0,0,0,0.22)}
[data-theme="dark"] .document-paper{background:var(--surface)}
[data-theme="dark"] .validation-alert{border:1px solid var(--line);background:var(--error-bg);color:var(--error)}
[data-theme="dark"] .validation-alert .icon-box{background:var(--error-bg)}
[data-theme="dark"] .community-page{background:linear-gradient(180deg,var(--surface-soft) 0,var(--warning-bg) 32%,var(--warning-bg) 100%)}
[data-theme="dark"] .composer-card{border-color:var(--line);box-shadow:0 8px 22px rgba(0,0,0,0.08)}
[data-theme="dark"] .community-post{border-color:var(--line);box-shadow:0 10px 28px rgba(0,0,0,0.08)}
[data-theme="dark"] .connection-card{box-shadow:0 8px 24px rgba(0,0,0,0.07)}
[data-theme="dark"] .radio-option:has(input:checked){background:var(--surface-soft);color:var(--primary)}
[data-theme="dark"] .field [aria-invalid="true"]{box-shadow:0 0 0 3px rgba(0,0,0,0.1)}
[data-theme="dark"] .icon-box:after,[data-theme="dark"] .quick-icon:after,[data-theme="dark"] .state-icon:after{background:linear-gradient(145deg,var(--surface),transparent 42%)}
[data-theme="dark"] .icon-box{box-shadow:inset 0 1px 0 rgba(0,0,0,0.25),0 5px 14px rgba(0,0,0,0.055)}
[data-theme="dark"] .media-image{background:linear-gradient(100deg,var(--surface-soft) 18%,var(--surface) 38%,var(--surface-soft) 58%)}
[data-theme="dark"] .media-image.image-error{background:linear-gradient(145deg,var(--surface-soft),var(--info-bg))}
[data-theme="dark"] .thumb,[data-theme="dark"] .avatar{border:1px solid var(--line)}
[data-theme="dark"] .thumb{box-shadow:0 8px 20px rgba(0,0,0,0.1)}
[data-theme="dark"] .media-card{border-color:var(--line)}
[data-theme="dark"] .appbar.root{background:linear-gradient(180deg,var(--surface),var(--surface));box-shadow:0 8px 24px rgba(0,0,0,0.055)}
[data-theme="dark"] .appbar-mark,[data-theme="dark"] .icon-btn{border-color:var(--line);box-shadow:0 7px 20px rgba(0,0,0,0.085)}
[data-theme="dark"] .appbar-mark:hover,[data-theme="dark"] .icon-btn:hover{background:var(--surface);box-shadow:0 9px 24px rgba(0,0,0,0.12)}
[data-theme="dark"] .appbar-title p{color:var(--ink)}
[data-theme="dark"] .profile-avatar-btn{outline:2px solid var(--line)}
[data-theme="dark"] .dashboard-page>.hero{background-image:
    linear-gradient(90deg,rgba(17,5,51,.97) 0%,rgba(35,8,82,.91) 43%,rgba(61,13,113,.46) 70%,rgba(255,255,255,0.045) 100%),
    url("../media/photos/bharatanatyam-stage.webp");box-shadow:0 20px 42px rgba(0,0,0,0.25)
}
[data-theme="dark"] .dashboard-page>.hero:before{background:linear-gradient(120deg,rgba(255,255,255,0.08),transparent 33%,rgba(255,255,255,0.02))}
[data-theme="dark"] .dashboard-search,[data-theme="dark"] .nearby-btn{border-color:var(--line)}
[data-theme="dark"] .quick-action{background:var(--surface)}
[data-theme="dark"] .quick-icon{background:linear-gradient(145deg,var(--surface-soft),var(--surface));border:1px solid var(--line);box-shadow:0 7px 18px rgba(0,0,0,0.1),inset 0 1px 0 rgba(0,0,0,0.25)}
[data-theme="dark"] .quick-action:has([data-icon="users"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="heart"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="gift"]) .quick-icon{background:linear-gradient(145deg,var(--surface-soft),var(--surface));border-color:var(--line)}
[data-theme="dark"] .quick-action:has([data-icon="chart"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="compass"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="map"]) .quick-icon{background:linear-gradient(145deg,var(--info-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .quick-action:has([data-icon="briefcase"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="handHeart"]) .quick-icon{background:linear-gradient(145deg,var(--success-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .quick-action:has([data-icon="calendar"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="graduation"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="trophy"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="award"]) .quick-icon{background:linear-gradient(145deg,var(--warning-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .quick-action:has([data-icon="bookmark"]) .quick-icon,[data-theme="dark"] .quick-action:has([data-icon="file"]) .quick-icon{background:linear-gradient(145deg,var(--info-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .list-row:hover{border-color:var(--line);box-shadow:0 12px 30px rgba(0,0,0,0.105)}
[data-theme="dark"] .metric{background:linear-gradient(145deg,var(--surface),var(--surface))}
[data-theme="dark"] .badge{box-shadow:inset 0 1px 0 rgba(0,0,0,0.25)}
[data-theme="dark"] .btn{box-shadow:0 8px 20px rgba(0,0,0,0.1)}
[data-theme="dark"] .input:hover,[data-theme="dark"] .select:hover,[data-theme="dark"] .textarea:hover{border-color:var(--line)}
[data-theme="dark"] .bottom-nav .nav-icon{color:var(--ink)}
[data-theme="dark"] .bottom-nav .nav-label{color:var(--ink)}
[data-theme="dark"] .bottom-nav button.active .nav-icon{color:#f5f0fc;box-shadow:0 10px 24px rgba(0,0,0,0.25)}
[data-theme="dark"] .appbar.root.dark{box-shadow:0 10px 28px rgba(0,0,0,0.22)
}
[data-theme="dark"] .appbar.root.dark .appbar-title h1{color:#f5f0fc;text-shadow:0 1px 8px rgba(255,255,255,0.04)}
[data-theme="dark"] .appbar.root.dark .appbar-title p{color:var(--primary)}
[data-theme="dark"] .appbar.root.dark .appbar-mark,[data-theme="dark"] .appbar.root.dark .icon-btn{color:#f5f0fc;background:rgba(255,255,255,0.08);border-color:var(--line);box-shadow:inset 0 1px 0 rgba(0,0,0,0.12),0 7px 20px rgba(0,0,0,0.16)
}
[data-theme="dark"] .appbar.root.dark .appbar-mark:hover,[data-theme="dark"] .appbar.root.dark .icon-btn:hover{background:rgba(255,255,255,0.08)}
[data-theme="dark"] .appbar.root.dark .notification-count{border-color:var(--line)}
[data-theme="dark"] .plan-card{border:1px solid var(--line)}
[data-theme="dark"] .plan-card.selected{box-shadow:0 12px 30px rgba(0,0,0,0.13);border-color:var(--line)}
[data-theme="dark"] .compact-table{background:var(--surface)}
[data-theme="dark"] .compact-th{color:#f5f0fc}
[data-theme="dark"] .compact-th strong{color:#f5f0fc}
[data-theme="dark"] .template-chip{background:var(--surface)}
[data-theme="dark"] .template-chip.selected{background:linear-gradient(145deg,var(--surface-soft),var(--surface-soft));border-color:var(--control-line);box-shadow:0 8px 18px rgba(0,0,0,0.09)}
[data-theme="dark"] .facility-card{background:var(--surface)}
[data-theme="dark"] .facility-card.selected{background:var(--success-bg);border-color:var(--line)}
[data-theme="dark"] .facility-card.selected .facility-icon{background:var(--success-bg);color:var(--success)}
[data-theme="dark"] .status-strip{background:var(--surface-soft)}
[data-theme="dark"] .status-strip.success{background:var(--success-bg);border-color:var(--line)}
[data-theme="dark"] .status-strip.warning{background:var(--warning-bg);border-color:var(--line)}
[data-theme="dark"] .status-strip.error{background:var(--error-bg);border-color:var(--line)}
[data-theme="dark"] .status-strip.warning .icon-box{color:var(--warning)}
[data-theme="dark"] .requirement-row{background:var(--surface)}
[data-theme="dark"] .requirement-row.match{border-left:4px solid var(--control-line)}
[data-theme="dark"] .requirement-row.blocker{border-left:4px solid var(--control-line);background:var(--surface)}
[data-theme="dark"] .safety-card{background:linear-gradient(145deg,var(--warning-bg),var(--surface));border-color:var(--line)}
[data-theme="dark"] .safety-card h3{color:var(--warning)}
[data-theme="dark"] .route-map{background:linear-gradient(135deg,var(--info-bg),var(--surface-soft))}
[data-theme="dark"] .route-map:before,[data-theme="dark"] .route-map:after{border:1px solid var(--line)}
[data-theme="dark"] .map-pin{background:var(--surface);box-shadow:0 8px 18px rgba(0,0,0,0.16)}
[data-theme="dark"] .venue-pin{color:var(--success)}
[data-theme="dark"] .v5-connected-panel .section{background:linear-gradient(145deg,var(--surface-soft),var(--surface));border:1px solid var(--line)}
[data-theme="dark"] .india-feature-grid button{background:var(--surface)}
[data-theme="dark"] .category-template-list>div{background:var(--surface)}
[data-theme="dark"] :where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--control-line)}
[data-theme="dark"] .appbar.dark :where(button,a,input,select,textarea,[tabindex]):focus-visible{outline-color:var(--line)}
[data-theme="dark"] .input:focus-visible,[data-theme="dark"] .select:focus-visible,[data-theme="dark"] .textarea:focus-visible{box-shadow:0 0 0 4px rgba(0,0,0,0.11)}
[data-theme="dark"] .media-image{background:linear-gradient(145deg,var(--surface-soft),var(--info-bg))}