/* CentralRP Phone v1.7.6 - coherent light theme contrast */
#phone[data-theme="light"]{
  --text:#111820;
  --muted:#596879;
  --bg-card:rgba(255,255,255,.94);
  --border:rgba(18,37,58,.15);
}

/* Every normal light app surface uses dark copy. Accent/danger buttons are
   explicitly excluded below so their labels remain readable. */
#phone[data-theme="light"] .app-screen,
#phone[data-theme="light"] .app-screen .card,
#phone[data-theme="light"] .app-screen .settings-card,
#phone[data-theme="light"] .app-screen .setting-row,
#phone[data-theme="light"] .app-screen .calendar-toolbar,
#phone[data-theme="light"] .app-screen .calendar-period,
#phone[data-theme="light"] .app-screen .calendar-day,
#phone[data-theme="light"] .app-screen .calendar-selected-head,
#phone[data-theme="light"] .app-screen .calendar-event-row,
#phone[data-theme="light"] .app-screen .calendar-new-date,
#phone[data-theme="light"] .app-screen .clock-panel-head,
#phone[data-theme="light"] .app-screen .list-item,
#phone[data-theme="light"] .app-screen .mail-row,
#phone[data-theme="light"] .app-screen .mail-current-account,
#phone[data-theme="light"] .app-screen .music-row-v160,
#phone[data-theme="light"] .app-screen .ct-video,
#phone[data-theme="light"] .app-screen .browser-result,
#phone[data-theme="light"] .app-screen .cr-site-v170{
  color:#111820!important;
}
#phone[data-theme="light"] .app-screen :is(p,small,.muted,.calendar-weekdays,.calendar-selected-head span,.calendar-event-row small,.calendar-new-date span,.clock-panel-head span,.list-main small,.mail-detail small,.music-row-v160 small,.ct-video small,.browser-result p){
  color:#596879!important;
}
#phone[data-theme="light"] .app-screen :is(h1,h2,h3,h4,strong,label,.section-title,.calendar-period strong,.calendar-selected-head strong,.calendar-event-row strong,.calendar-new-date strong){
  color:#111820!important;
}
#phone[data-theme="light"] .app-screen .calendar-day.selected,
#phone[data-theme="light"] .app-screen .calendar-day.selected span,
#phone[data-theme="light"] .app-screen .primary-btn,
#phone[data-theme="light"] .app-screen .primary-btn *,
#phone[data-theme="light"] .app-screen .clock-tabs button.active,
#phone[data-theme="light"] .app-screen .mail-tabs button.active,
#phone[data-theme="light"] .app-screen .map-pin-info>button{
  color:#fff!important;
}
#phone[data-theme="light"] .app-screen .danger-mini,
#phone[data-theme="light"] .app-screen .danger-media{color:#e44555!important}

/* System surfaces */
#phone[data-theme="light"] .drawer-panel,
#phone[data-theme="light"] .shade-panel,
#phone[data-theme="light"] .choice-panel,
#phone[data-theme="light"] .security-dialog{color:#111820!important}
#phone[data-theme="light"] .drawer-panel :is(strong,span,p,small),
#phone[data-theme="light"] .shade-panel :is(strong,span,p,small),
#phone[data-theme="light"] .choice-panel :is(strong,span,p,small),
#phone[data-theme="light"] .security-dialog :is(strong,span,p,small,h3){color:inherit}

/* Home widgets choose their text from their own background, not globally. */
#phone .widget-weather-v152,
#phone .widget-weather-v152 :is(strong,span,b){color:#fff!important}
#phone .widget-calendar-v152,
#phone .widget-calendar-v152 :is(strong,span){color:#151b23!important}
#phone .widget-calendar-v152-body{color:#747f8c!important}
#phone .widget-browser-v152,
#phone .widget-browser-v152 :is(strong,span,input,button){color:#17202b!important}

.drawer-placement-state{display:block;text-align:center;margin-top:2px;font-size:.68rem;color:var(--muted)}
#phone[data-theme="light"] .drawer-placement-state{color:#667587!important}

.fingerprint-button.scanning{animation:fingerprintScanV176 .7s ease-in-out infinite}
@keyframes fingerprintScanV176{0%,100%{box-shadow:0 0 0 0 rgba(37,135,255,.15)}50%{box-shadow:0 0 0 9px rgba(37,135,255,.17)}}

/* Light chrome also follows its actual pale surface. */
#phone[data-theme="light"] .statusbar{color:#111820!important}
#phone[data-theme="light"] .statusbar .network-label-v173,
#phone[data-theme="light"] .statusbar .status-right,
#phone[data-theme="light"] .statusbar .signal-live-v173{color:#111820!important}
#phone[data-theme="light"] .statusbar .signal-live-v173 i{background:#111820!important}
#phone[data-theme="light"] .app-header{color:#111820!important}
#phone[data-theme="light"] .app-header .icon-btn{color:#111820!important}
#phone[data-theme="light"] .app-screen .mini-btn:not(.danger-mini){color:#145ea8!important}
