/**
 * Engineering Dark — visual layer only.
 * Loaded after the Titanium token sheets. Does not change calculation,
 * permissions, service-worker cache names, or product version strings.
 * Primary actions and selection use #0A84FF. Inputs stay #2A2A2E.
 */

:root {
    --cm-night: #141416;
    --cm-panel: #202024;
    --cm-line: rgba(255, 255, 255, 0.08);
    --cm-line-strong: rgba(255, 255, 255, 0.08);
    --cm-accent: #0A84FF;
    --cm-lamp: #0A84FF;
    --cm-cta: #2A2A2E;
    --cm-cta-hover: #34343A;
    --cm-cta-pressed: #232328;
    --cm-cta-text: #E2E2E6;
    --cm-ivory: #E2E2E6;
    --cm-ink: #E2E2E6;
    --cm-muted: #A7A7B0;
    --cm-radius-panel: 12px;
    --page1-gold: #0A84FF;
    --page1-ink: #FFFFFF;
    --page1-text: #E2E2E6;
    --page1-muted: #A7A7B0;
    --highlight: #0A84FF;
    --highlight-soft: #0A84FF;
    --bg-dark: #141416;
    --panel-bg: #202024;
    --text-main: #E2E2E6;
    --text-subtle: #A7A7B0;
    --line-soft: rgba(255, 255, 255, 0.08);
    --glass-panel-bg: #202024;
    --glass-panel-bg-strong: #202024;
    --glass-panel-border: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-warm: rgba(255, 255, 255, 0.08);
    --ed-primary: #0A84FF;
    --ed-primary-hover: #2979FF;
    --ed-ink: #E2E2E6;
    --ed-muted: #A7A7B0;
    --ed-field: #2A2A2E;
    --ed-card: #202024;
    --ed-bg: #141416;
    --ed-line: rgba(255, 255, 255, 0.08);
    --ed-glow: 0 0 0 1px rgba(10, 132, 255, 0.72), 0 8px 22px rgba(10, 132, 255, 0.42);
    --ed-focus: 0 0 0 1px #0A84FF;
}

body:not(.high-contrast) {
    color-scheme: dark;
    background-color: var(--ed-bg) !important;
    background-image: none !important;
    color: var(--ed-ink);
}

body:not(.high-contrast).bg-wallpaper #wallpaperLayer .app-wallpaper-shade,
body:not(.high-contrast) #wallpaperLayer .app-wallpaper-shade {
    background: #141416 !important;
    opacity: 1 !important;
}

body:not(.high-contrast) #weatherSceneLayer {
    display: none !important;
}

/* —— Surfaces: hierarchy by block color, not bright strokes —— */
body:not(.high-contrast) header.app-chrome,
body:not(.high-contrast) .calc-page-switch,
body:not(.high-contrast) #page1StatusStrip,
body:not(.high-contrast) #cloudAccountBar,
body:not(.high-contrast) #globalWeatherTicker,
body:not(.high-contrast) #appUpdateMarquee,
body:not(.high-contrast) .cloud-pay-panel {
    background: #141416 !important;
    color: #E2E2E6 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body:not(.high-contrast) header.app-chrome {
    padding: 12px 16px !important;
}

body:not(.high-contrast) .drawing-panel,
body:not(.high-contrast) .calc-panel,
body:not(.high-contrast) .action-cluster,
body:not(.high-contrast) .formwork-check,
body:not(.high-contrast) .page2-stage-chrome,
body:not(.high-contrast) .page2-core-calc,
body:not(.high-contrast) .free-war-room-card,
body:not(.high-contrast) .page1-hero-panel,
body:not(.high-contrast) .page1-calc-jump,
body:not(.high-contrast) header.app-chrome .work-switch,
body:not(.high-contrast) .header-member-quick,
body:not(.high-contrast) .header-more-tools__panel,
body:not(.high-contrast) .site-simple-hero,
body:not(.high-contrast) .qto-sheet,
body:not(.high-contrast) .fw-sum-card,
body:not(.high-contrast) .fw-row,
body:not(.high-contrast) .preview-summary-card,
body:not(.high-contrast) .member-chat-panel,
body:not(.high-contrast) .coach-bubble {
    background: #202024 !important;
    color: #E2E2E6 !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body:not(.high-contrast) .formwork-check,
body:not(.high-contrast) .page2-stage-chrome,
body:not(.high-contrast) .page2-core-calc,
body:not(.high-contrast) .page1-hero-panel,
body:not(.high-contrast) .free-war-room-card,
body:not(.high-contrast) .header-member-quick {
    padding: 14px 16px !important;
}

body:not(.high-contrast) header.app-chrome .header-title,
body:not(.high-contrast) .formwork-check__title,
body:not(.high-contrast) .page2-stage-chrome__lead strong,
body:not(.high-contrast) .fw-block__title,
body:not(.high-contrast) .group-title {
    color: #E2E2E6 !important;
}

body:not(.high-contrast) .group-title {
    border-left: 3px solid #0A84FF !important;
}

body:not(.high-contrast) .fw-label,
body:not(.high-contrast) .fw-key,
body:not(.high-contrast) .formwork-check__honest,
body:not(.high-contrast) header.app-chrome .header-kicker {
    color: #0A84FF !important;
}

body:not(.high-contrast) hr,
body:not(.high-contrast) .fw-rate,
body:not(.high-contrast) .cloud-account-bar,
body:not(.high-contrast) header.app-chrome {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* —— Quiet chrome: API / 解說員 / 廣告收進頂部列 —— */
body:not(.high-contrast) header.app-chrome .header-actions,
body:not(.high-contrast) header.app-chrome .header-first-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: auto;
    flex: 1 1 auto;
}

body:not(.high-contrast) #coachToggle:not(.bm-ios-chip),
body:not(.high-contrast) #adsPersonalizationToggle:not(.bm-ios-chip),
body:not(.high-contrast) #cloudApiStatus:not(.bm-ios-chip),
body:not(.high-contrast) #cloudMemberStatus:not(.bm-ios-chip),
body:not(.high-contrast) #offlineSyncStatus:not(.bm-ios-chip),
body:not(.high-contrast) .live-badge,
body:not(.high-contrast) .header-meta-chip,
body:not(.high-contrast) .status-pill,
body:not(.high-contrast) .toolbar-status-chip:not(.bm-ios-chip),
body:not(.high-contrast) .blueprint-workspace-chip {
    min-height: 44px !important;
    padding: 4px 10px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #A7A7B0 !important;
    box-shadow: none !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    letter-spacing: 0;
}

body:not(.high-contrast) .cloud-account-bar__status[data-state="ok"] {
    color: #0A84FF !important;
}

body:not(.high-contrast) #page1StatusStrip,
body:not(.high-contrast) #cloudAccountBar,
body:not(.high-contrast) #globalWeatherTicker,
body:not(.high-contrast) #appUpdateMarquee {
    margin: 0 !important;
    padding: 4px 16px !important;
    min-height: 0 !important;
}

body:not(.high-contrast) .cloud-account-bar__actions .tool-btn,
body:not(.high-contrast) .header-more-tools__summary {
    min-height: 44px !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
}

body:not(.high-contrast)[data-work-mode="calc"] .site-simple-start-btn {
    flex: 0 1 auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 8px 14px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    background: #2A2A2E !important;
    color: #E2E2E6 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* —— Secondary controls —— */
body:not(.high-contrast) button,
body:not(.high-contrast) .tool-btn,
body:not(.high-contrast) .mode-btn,
body:not(.high-contrast) .work-btn,
body:not(.high-contrast) .calc-page-btn,
body:not(.high-contrast) .fw-btn,
body:not(.high-contrast) .mark-calc-btn,
body:not(.high-contrast) .newbie-flow-step,
body:not(.high-contrast) .member-chat-tab,
body:not(.high-contrast) .page1-hero-panel__cta,
body:not(.high-contrast) .page1-work-start__3d,
body:not(.high-contrast) .page1-work-start__model,
body:not(.high-contrast) .page1-today-guide-btn,
body:not(.high-contrast) .page1-job-shortcuts__btn,
body:not(.high-contrast) .header-more-tools__summary,
body:not(.high-contrast) .site-simple-primary-btn,
body:not(.high-contrast) .site-simple-secondary-btn,
body:not(.high-contrast) .site-simple-exit-btn {
    background: #2A2A2E !important;
    color: #E2E2E6 !important;
    -webkit-text-fill-color: #E2E2E6;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-height: 44px;
    padding: 8px 14px;
    font-weight: 700;
}

body:not(.high-contrast) header.app-chrome .work-btn,
body:not(.high-contrast) .calc-page-btn {
    min-height: 48px !important;
    border-radius: 8px !important;
}

body:not(.high-contrast) header.app-chrome .work-switch {
    padding: 6px !important;
    gap: 8px !important;
    border-radius: 12px !important;
}

body:not(.high-contrast) .page1-work-start__row .page1-hero-panel__cta,
body:not(.high-contrast) .page1-work-start__row .page1-calc-jump__btn,
body:not(.high-contrast) .page1-work-start__row .page1-work-start__3d,
body:not(.high-contrast) .page2-stage-chrome__actions .tool-btn,
body:not(.high-contrast) .newbie-flow-step,
body:not(.high-contrast) .fw-btn {
    min-height: 48px !important;
    border-radius: 8px !important;
}

/* Selected, but not a core action: blue mark, no capsule stroke */
body:not(.high-contrast) header.app-chrome .work-btn.active:not(.bm-ios-chip),
body:not(.high-contrast) .member-chat-tab.is-active,
body:not(.high-contrast) .member-chat-tab[aria-selected="true"],
body:not(.high-contrast) .site-simple-start-btn.is-active-site-simple,
body:not(.high-contrast) .newbie-flow-step.is-done {
    background: #2A2A2E !important;
    color: #0A84FF !important;
    -webkit-text-fill-color: #0A84FF;
    box-shadow: inset 0 -2px 0 #0A84FF, 0 0 14px rgba(10, 132, 255, 0.28) !important;
}

/* —— Core fills: 計算 / 算量 / 放樣 and the selected workspace tab ——
   Skip .bm-ios-chip — chips stay translucent gray (active uses blue underline only). */
body:not(.high-contrast) header.app-chrome #workCalcBtn.active:not(.bm-ios-chip),
body:not(.high-contrast) header.app-chrome #workStakeBtn.active:not(.bm-ios-chip),
body:not(.high-contrast)[data-calc-page="1"] #calcPage1Btn,
body:not(.high-contrast)[data-calc-page="2"] #calcPage2Btn,
body:not(.high-contrast) .calc-page-btn.active,
body:not(.high-contrast) .page1-calc-jump__btn,
body:not(.high-contrast) .page2-stage-chrome__actions [onclick*="startMeasure"]:not(.bm-ios-chip),
body:not(.high-contrast) .page2-stage-chrome__actions [onclick*="enterMarkCalcMode"]:not(.bm-ios-chip),
body:not(.high-contrast) [onclick*="startMeasure"].tool-btn:not(.bm-ios-chip),
body:not(.high-contrast) [onclick*="enterMarkCalcMode"].tool-btn:not(.bm-ios-chip),
body:not(.high-contrast) [data-page2-jump="calc"]:not(.bm-ios-chip),
body:not(.high-contrast) [data-page2-jump="formwork"]:not(.bm-ios-chip),
body:not(.high-contrast) [data-page2-jump="qto"]:not(.bm-ios-chip),
body:not(.high-contrast) [data-page2-jump="list"]:not(.bm-ios-chip),
body:not(.high-contrast) [data-page2-jump="add"]:not(.bm-ios-chip),
body:not(.high-contrast) .fw-btn--primary,
body:not(.high-contrast) #addBtn,
body:not(.high-contrast) .btn-add,
body:not(.high-contrast) .newbie-flow-step.is-active,
body:not(.high-contrast) .mark-calc-btn--primary,
body:not(.high-contrast) .mobile-blueprint-dock-btn[data-dock-action="measure"],
body:not(.high-contrast) .mobile-blueprint-dock-btn[data-dock-action="mark-calc"],
body:not(.high-contrast)[data-work-mode="stake"] #honestStakeStartNavBtn,
body:not(.high-contrast)[data-work-mode="stake"] #honestStakeConfirmBtn,
body:not(.high-contrast)[data-work-mode="stake"] #stakeAnnotatePanel .tool-btn--primary,
body:not(.high-contrast)[data-work-mode="stake"] #stakeAnnotatePanel .tool-btn--accent {
    background: #0A84FF !important;
    background-image: none !important;
    color: #101216 !important;
    -webkit-text-fill-color: #101216;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: var(--ed-glow) !important;
    font-size: 1rem !important;
    font-weight: 800;
    text-shadow: none;
}

body:not(.high-contrast) header.app-chrome #workCalcBtn.active .work-btn__name,
body:not(.high-contrast) header.app-chrome #workStakeBtn.active .work-btn__name,
body:not(.high-contrast) header.app-chrome #workCalcBtn.active .work-btn__icon,
body:not(.high-contrast) header.app-chrome #workStakeBtn.active .work-btn__icon {
    color: #101216 !important;
    -webkit-text-fill-color: #101216;
    font-size: 1rem !important;
}

body:not(.high-contrast) header.app-chrome #workCalcBtn.active:hover,
body:not(.high-contrast) header.app-chrome #workStakeBtn.active:hover,
body:not(.high-contrast)[data-calc-page="1"] #calcPage1Btn:hover,
body:not(.high-contrast)[data-calc-page="2"] #calcPage2Btn:hover,
body:not(.high-contrast) .calc-page-btn.active:hover,
body:not(.high-contrast) .page1-calc-jump__btn:hover,
body:not(.high-contrast) [onclick*="startMeasure"].tool-btn:hover,
body:not(.high-contrast) [onclick*="enterMarkCalcMode"].tool-btn:hover,
body:not(.high-contrast) [data-page2-jump="calc"]:hover,
body:not(.high-contrast) [data-page2-jump="formwork"]:hover,
body:not(.high-contrast) [data-page2-jump="qto"]:hover,
body:not(.high-contrast) [data-page2-jump="list"]:hover,
body:not(.high-contrast) [data-page2-jump="add"]:hover,
body:not(.high-contrast) .fw-btn--primary:hover,
body:not(.high-contrast) #addBtn:hover,
body:not(.high-contrast) .newbie-flow-step.is-active:hover,
body:not(.high-contrast) .mark-calc-btn--primary:hover,
body:not(.high-contrast) .mobile-blueprint-dock-btn[data-dock-action="measure"]:hover,
body:not(.high-contrast) .mobile-blueprint-dock-btn[data-dock-action="mark-calc"]:hover {
    background: #2979FF !important;
}

body:not(.high-contrast) .mobile-blueprint-dock {
    background: #141416 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

body:not(.high-contrast) .mobile-blueprint-dock-btn,
body:not(.high-contrast) .mobile-blueprint-dock-tab,
body:not(.high-contrast) .mobile-blueprint-dock-toggle {
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body:not(.high-contrast) .mobile-blueprint-dock-tab.active {
    background: #0A84FF !important;
    color: #101216 !important;
    -webkit-text-fill-color: #101216;
    box-shadow: var(--ed-glow) !important;
}

body:not(.high-contrast) button:disabled,
body:not(.high-contrast) .tool-btn:disabled {
    opacity: 0.45;
}

/* —— Fields —— */
body:not(.high-contrast) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
body:not(.high-contrast) select,
body:not(.high-contrast) textarea,
body:not(.high-contrast) .fw-input,
body:not(.high-contrast) .page2-core-calc .fw-input,
body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .page2-core-calc .fw-input,
body:not(.high-contrast) .fw-formula {
    background: #2A2A2E !important;
    color: #E2E2E6 !important;
    -webkit-text-fill-color: #E2E2E6;
    caret-color: #E2E2E6;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 12px 14px;
    min-height: 44px;
}

body:not(.high-contrast) .fw-formula {
    color: #A7A7B0 !important;
    -webkit-text-fill-color: #A7A7B0;
    background: #141416 !important;
}

body:not(.high-contrast) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
body:not(.high-contrast) select:focus,
body:not(.high-contrast) textarea:focus,
body:not(.high-contrast) .fw-input:focus {
    outline: none !important;
    border-color: #0A84FF !important;
    box-shadow: 0 0 0 1px #0A84FF !important;
}

body:not(.high-contrast) input::placeholder,
body:not(.high-contrast) textarea::placeholder {
    color: #A0A0A8;
    -webkit-text-fill-color: #A0A0A8;
}

body:not(.high-contrast) input[type="range"] {
    accent-color: #0A84FF;
}

body:not(.high-contrast) :focus-visible {
    outline: 2px solid #0A84FF;
    outline-offset: 2px;
}

/* —— Page 2 sheet —— */
body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] #canvas-container {
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
}

body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] #canvas-container[data-empty="true"] {
    min-height: 220px !important;
}

body:not(.high-contrast) .canvas-empty-state {
    background: #202024 !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #E2E2E6 !important;
}

body:not(.high-contrast) .canvas-empty-state strong {
    color: #E2E2E6 !important;
}

body:not(.high-contrast) .canvas-empty-state span,
body:not(.high-contrast) .page2-stage-chrome__hint,
body:not(.high-contrast) .fw-note {
    color: #A7A7B0 !important;
}

body:not(.high-contrast) .newbie-flow-strip {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

body:not(.high-contrast) .newbie-flow-label,
body:not(.high-contrast) .page2-stage-chrome .newbie-flow-label {
    color: #A7A7B0 !important;
}

body:not(.high-contrast) .fw-match {
    color: #062214 !important;
    -webkit-text-fill-color: #062214;
    background: #2ec4a6 !important;
    border-radius: 8px !important;
}

body:not(.high-contrast) .fw-miss {
    border-radius: 8px !important;
}

@keyframes newbieNextPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); }
    50% { box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.4); }
}

@media (max-width: 768px) {
    body:not(.high-contrast) header.app-chrome .work-btn,
    body:not(.high-contrast) .calc-page-btn,
    body:not(.high-contrast) .page1-calc-jump__btn,
    body:not(.high-contrast) .page2-stage-chrome__actions .tool-btn,
    body:not(.high-contrast) .fw-btn,
    body:not(.high-contrast) .fw-input,
    body:not(.high-contrast) #coachToggle,
    body:not(.high-contrast) #adsPersonalizationToggle,
    body:not(.high-contrast) .cloud-account-bar__actions .tool-btn,
    body:not(.high-contrast) .header-more-tools__summary {
        min-height: 44px !important;
        min-width: 44px;
    }

    body:not(.high-contrast) .formwork-check,
    body:not(.high-contrast) .page2-core-calc,
    body:not(.high-contrast) .page2-stage-chrome {
        padding: 12px !important;
    }
}

/* —— Avatar: keep the black-hole photo, only radius and a soft azure glow —— */
body:not(.high-contrast) .logo-img.logo-blackhole-photo,
body:not(.high-contrast) .user-avatar,
body:not(.high-contrast) .header-logo {
    border-radius: 10px !important;
    border: 0 !important;
    box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.45),
        0 0 12px rgba(10, 132, 255, 0.34) !important;
    overflow: hidden;
}

body:not(.high-contrast) .logo-blackhole-photo .logo-photo,
body:not(.high-contrast) .logo-blackhole-photo::before,
body:not(.high-contrast) .logo-blackhole-photo::after {
    border-radius: 10px !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* —— Result figures: largest type on the sheet —— */
body:not(.high-contrast) .fw-sum-card .fw-key,
body:not(.high-contrast) .preview-summary-card strong,
body:not(.high-contrast) .preview-bar-main,
body:not(.high-contrast) #totalMoney {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    line-height: 1.15;
    letter-spacing: 0;
}

body:not(.high-contrast) .fw-sum-card--total .fw-key,
body:not(.high-contrast) .preview-summary-card--accent strong,
body:not(.high-contrast) #totalMoney {
    color: #0A84FF !important;
    -webkit-text-fill-color: #0A84FF;
    font-size: 1.7rem !important;
}

body:not(.high-contrast) .outdoor-bright-toggle {
    min-height: 44px !important;
    min-width: 44px;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: #2A2A2E !important;
    color: #E2E2E6 !important;
    -webkit-text-fill-color: #E2E2E6;
    border: 0 !important;
    box-shadow: none !important;
}

/* Night contrast (auto 18:00–06:00 or manual) drops the rule above, which left the
   戶外 label at the browser's 13.33px button default. Keep it as readable as daytime. */
body.high-contrast .outdoor-bright-toggle {
    min-height: 44px !important;
    min-width: 44px;
    font-size: max(14px, 0.8rem) !important;
    font-weight: 800 !important;
}

/* —— Outdoor sun: light ground, black text. Stored as bm_69:sunlight_mode —— */
html.sunlight-readable body,
body.sunlight-readable {
    background: #F2F3F5 !important;
    color: #111214 !important;
    color-scheme: light;
}

html.sunlight-readable body #wallpaperLayer,
html.sunlight-readable body #weatherSceneLayer,
body.sunlight-readable #wallpaperLayer,
body.sunlight-readable #weatherSceneLayer {
    display: none !important;
}

html.sunlight-readable body header.app-chrome,
html.sunlight-readable body .calc-page-switch,
html.sunlight-readable body #page1StatusStrip,
html.sunlight-readable body #cloudAccountBar,
html.sunlight-readable body #globalWeatherTicker,
html.sunlight-readable body #appUpdateMarquee,
html.sunlight-readable body .drawing-panel,
html.sunlight-readable body .calc-panel,
html.sunlight-readable body .formwork-check,
html.sunlight-readable body .page2-stage-chrome,
html.sunlight-readable body .page2-core-calc,
html.sunlight-readable body .free-war-room-card,
html.sunlight-readable body .page1-hero-panel,
html.sunlight-readable body .fw-sum-card,
html.sunlight-readable body .fw-row,
html.sunlight-readable body .preview-summary-card,
html.sunlight-readable body .header-member-quick,
html.sunlight-readable body header.app-chrome .work-switch,
html.sunlight-readable body .canvas-empty-state,
html.sunlight-readable body .coach-bubble,
body.sunlight-readable header.app-chrome,
body.sunlight-readable .calc-page-switch,
body.sunlight-readable #page1StatusStrip,
body.sunlight-readable #cloudAccountBar,
body.sunlight-readable #globalWeatherTicker,
body.sunlight-readable #appUpdateMarquee,
body.sunlight-readable .drawing-panel,
body.sunlight-readable .calc-panel,
body.sunlight-readable .formwork-check,
body.sunlight-readable .page2-stage-chrome,
body.sunlight-readable .page2-core-calc,
body.sunlight-readable .free-war-room-card,
body.sunlight-readable .page1-hero-panel,
body.sunlight-readable .fw-sum-card,
body.sunlight-readable .fw-row,
body.sunlight-readable .preview-summary-card,
body.sunlight-readable .header-member-quick,
body.sunlight-readable header.app-chrome .work-switch,
body.sunlight-readable .canvas-empty-state,
body.sunlight-readable .coach-bubble {
    background: #FFFFFF !important;
    color: #111214 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

html.sunlight-readable body header.app-chrome .header-title,
html.sunlight-readable body .formwork-check__title,
html.sunlight-readable body .fw-block__title,
html.sunlight-readable body .group-title,
html.sunlight-readable body .page2-stage-chrome__lead strong,
body.sunlight-readable header.app-chrome .header-title,
body.sunlight-readable .formwork-check__title,
body.sunlight-readable .fw-block__title,
body.sunlight-readable .group-title,
body.sunlight-readable .page2-stage-chrome__lead strong {
    color: #111214 !important;
}

html.sunlight-readable body button,
html.sunlight-readable body .tool-btn,
html.sunlight-readable body .mode-btn,
html.sunlight-readable body .work-btn,
html.sunlight-readable body .calc-page-btn,
html.sunlight-readable body .fw-btn,
html.sunlight-readable body .newbie-flow-step,
html.sunlight-readable body .page1-hero-panel__cta,
html.sunlight-readable body .page1-work-start__3d,
html.sunlight-readable body .page1-work-start__model,
html.sunlight-readable body .page1-today-guide-btn,
html.sunlight-readable body .member-chat-tab,
html.sunlight-readable body .free-war-room-btn,
body.sunlight-readable button,
body.sunlight-readable .tool-btn,
body.sunlight-readable .mode-btn,
body.sunlight-readable .work-btn,
body.sunlight-readable .calc-page-btn,
body.sunlight-readable .fw-btn,
body.sunlight-readable .newbie-flow-step,
body.sunlight-readable .page1-hero-panel__cta,
body.sunlight-readable .page1-work-start__3d,
body.sunlight-readable .page1-work-start__model,
body.sunlight-readable .page1-today-guide-btn,
body.sunlight-readable .member-chat-tab,
body.sunlight-readable .free-war-room-btn {
    background: #E6E7EB !important;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
    border: 0 !important;
    box-shadow: none !important;
}

html.sunlight-readable body header.app-chrome #workCalcBtn.active,
html.sunlight-readable body header.app-chrome #workStakeBtn.active,
html.sunlight-readable body[data-calc-page="1"] #calcPage1Btn,
html.sunlight-readable body[data-calc-page="2"] #calcPage2Btn,
html.sunlight-readable body .calc-page-btn.active,
html.sunlight-readable body .page1-calc-jump__btn,
html.sunlight-readable body .fw-btn--primary,
html.sunlight-readable body #addBtn,
html.sunlight-readable body .page2-stage-chrome__actions [onclick*="startMeasure"],
html.sunlight-readable body [data-page2-jump="calc"],
html.sunlight-readable body [data-page2-jump="formwork"],
html.sunlight-readable body [data-page2-jump="qto"],
html.sunlight-readable body #outdoorBrightToggle[aria-pressed="true"],
body.sunlight-readable header.app-chrome #workCalcBtn.active,
body.sunlight-readable header.app-chrome #workStakeBtn.active,
body.sunlight-readable[data-calc-page="1"] #calcPage1Btn,
body.sunlight-readable[data-calc-page="2"] #calcPage2Btn,
body.sunlight-readable .calc-page-btn.active,
body.sunlight-readable .page1-calc-jump__btn,
body.sunlight-readable .fw-btn--primary,
body.sunlight-readable #addBtn,
body.sunlight-readable .page2-stage-chrome__actions [onclick*="startMeasure"],
body.sunlight-readable [data-page2-jump="calc"],
body.sunlight-readable [data-page2-jump="formwork"],
body.sunlight-readable [data-page2-jump="qto"],
body.sunlight-readable #outdoorBrightToggle[aria-pressed="true"] {
    background: #0A84FF !important;
    color: #101216 !important;
    -webkit-text-fill-color: #101216;
}

html.sunlight-readable body header.app-chrome #workCalcBtn.active .work-btn__name,
html.sunlight-readable body header.app-chrome #workCalcBtn.active .work-btn__icon,
body.sunlight-readable header.app-chrome #workCalcBtn.active .work-btn__name,
body.sunlight-readable header.app-chrome #workCalcBtn.active .work-btn__icon {
    color: #101216 !important;
    -webkit-text-fill-color: #101216;
}

html.sunlight-readable body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
html.sunlight-readable body select,
html.sunlight-readable body textarea,
html.sunlight-readable body .fw-input,
body.sunlight-readable input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
body.sunlight-readable select,
body.sunlight-readable textarea,
body.sunlight-readable .fw-input {
    background: #FFFFFF !important;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
}

html.sunlight-readable body .fw-formula,
body.sunlight-readable .fw-formula {
    background: #E8E9ED !important;
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
}

html.sunlight-readable body input:focus,
html.sunlight-readable body select:focus,
html.sunlight-readable body textarea:focus,
html.sunlight-readable body .fw-input:focus,
body.sunlight-readable input:focus,
body.sunlight-readable select:focus,
body.sunlight-readable textarea:focus,
body.sunlight-readable .fw-input:focus {
    outline: none !important;
    border-color: #0A84FF !important;
    box-shadow: 0 0 0 1px #0A84FF !important;
}

html.sunlight-readable body .fw-sum-card .fw-key,
html.sunlight-readable body .preview-summary-card strong,
html.sunlight-readable body .preview-bar-main,
html.sunlight-readable body #totalMoney,
body.sunlight-readable .fw-sum-card .fw-key,
body.sunlight-readable .preview-summary-card strong,
body.sunlight-readable .preview-bar-main,
body.sunlight-readable #totalMoney {
    color: #111214 !important;
    -webkit-text-fill-color: #111214;
}

html.sunlight-readable body .fw-sum-card--total .fw-key,
html.sunlight-readable body .preview-summary-card--accent strong,
html.sunlight-readable body #totalMoney,
body.sunlight-readable .fw-sum-card--total .fw-key,
body.sunlight-readable .preview-summary-card--accent strong,
body.sunlight-readable #totalMoney {
    color: #0A84FF !important;
    -webkit-text-fill-color: #0A84FF;
}

html.sunlight-readable body #coachToggle,
html.sunlight-readable body #adsPersonalizationToggle,
html.sunlight-readable body #cloudApiStatus,
html.sunlight-readable body #cloudMemberStatus,
html.sunlight-readable body .live-badge,
html.sunlight-readable body .header-meta-chip,
html.sunlight-readable body .fw-label,
html.sunlight-readable body .header-kicker,
body.sunlight-readable #coachToggle,
body.sunlight-readable #adsPersonalizationToggle,
body.sunlight-readable #cloudApiStatus,
body.sunlight-readable #cloudMemberStatus,
body.sunlight-readable .live-badge,
body.sunlight-readable .header-meta-chip,
body.sunlight-readable .fw-label,
body.sunlight-readable .header-kicker {
    color: #3C3C43 !important;
    -webkit-text-fill-color: #3C3C43;
    background: transparent !important;
}

html.sunlight-readable body[data-calc-page="2"] #canvas-container,
body.sunlight-readable[data-calc-page="2"] #canvas-container {
    background: #F2F3F5 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* 實測校正 reads the same outdoor values through its --cm-* tokens, so the
   2D canvas (via #stakeCalSwatch) and the residual list follow too.
   #E23B3B is ~4:1 on white; outdoor red is #9F1A1A (≥7:1 on #FFFFFF and #F2F3F5). */
html.sunlight-readable body .stake-cal,
body.sunlight-readable .stake-cal {
    --cm-panel: #FFFFFF;
    --cm-night: #F2F3F5;
    --cm-ivory: #111214;
    --cm-muted: #3C3C43;
    --cm-lamp: #3C3C43;
    --cm-teal: #0A84FF;
    --cm-cta: #E6E7EB;
    --cm-cta-text: #111214;
    --cm-line: rgba(0, 0, 0, 0.12);
    --cm-line-strong: rgba(0, 0, 0, 0.18);
    --cm-danger: #9F1A1A;
}

html.sunlight-readable body #stakeCalApply,
body.sunlight-readable #stakeCalApply {
    background: #0A84FF !important;
    color: #101216 !important;
    -webkit-text-fill-color: #101216;
}

/* —— 16:9 desktop ribbon. Phones stay on the rules above. —— */
@media (min-width: 1024px) {
    body:not(.high-contrast) header.app-chrome {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 300px 8px 14px !important;
        position: sticky !important;
        top: 0;
        z-index: 5000;
    }

    body:not(.high-contrast) header.app-chrome .header-logo-cluster {
        position: relative;
        flex: 0 0 auto;
        order: 1;
        align-items: center;
    }

    body:not(.high-contrast) header.app-chrome .header-brand {
        order: 2;
        flex: 0 0 auto !important;
        min-width: 168px;
        max-height: none;
        overflow: visible;
    }

    body:not(.high-contrast) header.app-chrome .header-title {
        font-size: 1.02rem !important;
        white-space: nowrap;
    }

    body:not(.high-contrast) header.app-chrome .header-subtitle {
        display: none !important;
    }

    body:not(.high-contrast) header.app-chrome .work-switch {
        order: 3;
        display: flex !important;
        flex-wrap: nowrap !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 280px !important;
        max-width: none !important;
        margin: 0 !important;
        align-items: center;
    }

    body:not(.high-contrast) header.app-chrome .work-btn,
    body:not(.high-contrast)[data-calc-page="1"] header.app-chrome .work-btn {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        flex-direction: row !important;
        min-height: 44px !important;
        padding: 6px 10px !important;
        font-size: 0.95rem !important;
    }

    body:not(.high-contrast) header.app-chrome .header-actions,
    body:not(.high-contrast)[data-work-mode="calc"] .header-actions {
        order: 4;
        flex: 0 0 auto !important;
        width: auto !important;
        flex-basis: auto !important;
        min-width: 0;
    }

    body:not(.high-contrast) #adsPersonalizationToggle {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.high-contrast)[data-calc-page="2"] #headerMemberQuick {
        position: relative;
        top: auto;
        left: auto;
        min-width: 0 !important;
        width: 112px !important;
        max-width: 112px !important;
        box-sizing: border-box !important;
        max-height: 24px !important;
        overflow: hidden;
        z-index: 40;
        padding: 2px 8px !important;
        align-self: center;
    }

    body:not(.high-contrast)[data-calc-page="2"] #headerMemberQuick:hover,
    body:not(.high-contrast)[data-calc-page="2"] #headerMemberQuick:focus-within {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        width: 360px !important;
        max-width: 360px !important;
        max-height: 70vh !important;
        overflow: auto;
    }

    body:not(.high-contrast) .calc-page-switch {
        position: fixed;
        top: 34px;
        right: 14px;
        width: auto !important;
        z-index: 5200;
        display: flex !important;
        gap: 6px;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body:not(.high-contrast) .calc-page-btn {
        width: auto !important;
        flex: 0 0 auto !important;
        min-height: 40px !important;
        padding: 6px 12px !important;
        font-size: 0.86rem !important;
    }

    body:not(.high-contrast) #page1StatusStrip {
        display: flex;
        align-items: center;
        gap: 16px;
        max-height: 34px;
        overflow: hidden;
        padding: 2px 16px !important;
    }

    body:not(.high-contrast) #cloudAccountBar,
    body:not(.high-contrast) #globalWeatherTicker,
    body:not(.high-contrast) #appUpdateMarquee {
        max-height: 32px;
        overflow: hidden;
        padding: 2px 0 !important;
        min-height: 0 !important;
    }

    body:not(.high-contrast) .page2-stage-chrome__lead,
    body:not(.high-contrast) .newbie-flow-step,
    body:not(.high-contrast) .newbie-flow-label {
        display: none !important;
    }

    body:not(.high-contrast) .newbie-flow-strip {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .blueprint-workspace-row {
        display: grid !important;
        grid-template-columns: minmax(380px, 0.85fr) minmax(620px, 1.15fr) !important;
        align-items: start;
        column-gap: 12px;
    }

    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] #canvas-container {
        grid-column: 1;
        grid-row: 1 / span 4;
        min-height: calc(100vh - 200px) !important;
        max-height: calc(100vh - 170px);
    }

    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] #page2CoreCalc {
        grid-column: 2;
        grid-row: 1;
        max-height: calc(100vh - 180px) !important;
        overflow: auto;
    }

    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] #qtoBoqSheet,
    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] #markCalcRail {
        grid-column: 2;
    }

    body:not(.high-contrast) .fw-grid,
    body:not(.high-contrast) .fw-row__inputs,
    body:not(.high-contrast) .fw-row__outs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body:not(.high-contrast) .fw-grid--ratio {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body:not(.high-contrast) .fw-rate {
        grid-template-columns: 1.3fr 1fr 1fr 0.7fr 1fr !important;
        align-items: end;
    }

    body:not(.high-contrast) .fw-input,
    body:not(.high-contrast) .fw-formula,
    body:not(.high-contrast) .page2-core-calc input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]) {
        padding: 14px 16px !important;
        font-size: 1.05rem !important;
    }

    body:not(.high-contrast) .fw-sum-card .fw-key,
    body:not(.high-contrast) .preview-summary-card strong,
    body:not(.high-contrast) .preview-bar-main {
        font-size: 1.55rem !important;
    }

    body:not(.high-contrast) .fw-sum-card--total .fw-key,
    body:not(.high-contrast) .preview-summary-card--accent strong,
    body:not(.high-contrast) #totalMoney {
        font-size: 1.9rem !important;
    }

    body:not(.high-contrast)[data-calc-page="1"] #page1ChatHub {
        max-width: 1120px;
        width: min(1120px, 100%);
    }

    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .page2-core-calc .fw-input:focus,
    body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .page2-core-calc input:focus,
    body:not(.high-contrast) .fw-input:focus {
        border-color: #0A84FF !important;
        box-shadow: 0 0 0 1px #0A84FF !important;
        outline: none !important;
    }
}

/* Page-2 blue fills hug the label. Width follows the text; height stays a tap target. */
body:not(.high-contrast) .page2-stage-chrome__actions {
    align-items: center;
}

body:not(.high-contrast) .page2-stage-chrome__actions [onclick*="startMeasure"],
body:not(.high-contrast) .page2-stage-chrome__actions [onclick*="enterMarkCalcMode"],
body:not(.high-contrast) .page2-stage-chrome__actions [data-page2-jump="calc"],
body:not(.high-contrast) .page2-stage-chrome__actions [data-page2-jump="formwork"],
body:not(.high-contrast) .page2-stage-chrome__actions [data-page2-jump="qto"],
body:not(.high-contrast) .page2-core-jumps [data-page2-jump="calc"],
body:not(.high-contrast) .page2-core-jumps [data-page2-jump="formwork"],
body:not(.high-contrast) .page2-core-jumps [data-page2-jump="qto"],
body:not(.high-contrast) .page2-core-jumps [data-page2-jump="list"],
body:not(.high-contrast) .page2-quote-dock__actions [data-page2-jump="add"],
body:not(.high-contrast) .page2-quote-dock__actions [data-page2-jump="list"],
body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .drawing-panel .tool-bar [onclick*="startMeasure"].tool-btn,
body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .drawing-panel .tool-bar [onclick*="enterMarkCalcMode"].tool-btn {
    width: auto !important;
    max-width: max-content;
    flex: 0 0 auto !important;
    align-self: center !important;
    justify-self: start;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    min-height: 44px !important;
    height: auto !important;
    white-space: nowrap;
}

/* Compact iOS chips last: beat generic button / page-2 blue fills. Visual hugs the
   label; 44pt tap lives on .bm-ios-chip::before in design-tokens.css. */
html body .bm-ios-chip,
html body:not(.high-contrast) .bm-ios-chip,
html body:not(.high-contrast) button.bm-ios-chip,
html body:not(.high-contrast) a.bm-ios-chip,
html body:not(.high-contrast) label.bm-ios-chip,
html body:not(.high-contrast) span.bm-ios-chip,
html body:not(.high-contrast) .tool-btn.bm-ios-chip,
html body:not(.high-contrast) .work-btn.bm-ios-chip,
html body:not(.high-contrast) .mode-btn.bm-ios-chip,
html body:not(.high-contrast) .header-status-chip.bm-ios-chip,
html body:not(.high-contrast) .cloud-account-bar__actions .bm-ios-chip,
html body:not(.high-contrast) .outdoor-bright-toggle.bm-ios-chip,
html body:not(.high-contrast) .app-update-marquee__dismiss.bm-ios-chip,
html body:not(.high-contrast) .app-update-marquee__action.bm-ios-chip,
html body:not(.high-contrast) .page2-stage-chrome__actions .bm-ios-chip,
html body:not(.high-contrast) .page2-stage-chrome__actions .tool-btn.bm-ios-chip,
html body:not(.high-contrast) .page2-stage-chrome__actions [onclick].bm-ios-chip,
html body:not(.high-contrast) .page2-stage-chrome__actions [onclick*="startMeasure"].bm-ios-chip,
html body:not(.high-contrast) .page2-stage-chrome__actions [onclick*="enterMarkCalcMode"].bm-ios-chip,
html body:not(.high-contrast) .page2-core-jumps .bm-ios-chip,
html body:not(.high-contrast) .page2-quote-dock__actions .bm-ios-chip,
html body:not(.high-contrast) [data-page2-jump].bm-ios-chip,
html body:not(.high-contrast) [onclick*="startMeasure"].bm-ios-chip,
html body:not(.high-contrast) [onclick*="enterMarkCalcMode"].bm-ios-chip,
html body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .drawing-panel .tool-bar .bm-ios-chip,
html body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .drawing-panel .tool-bar [onclick].bm-ios-chip,
html body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .drawing-panel .tool-bar [onclick*="startMeasure"].tool-btn.bm-ios-chip,
html body:not(.high-contrast)[data-work-mode="calc"][data-calc-page="2"] .drawing-panel .tool-bar [onclick*="enterMarkCalcMode"].tool-btn.bm-ios-chip,
html body:not(.high-contrast) #avatarHome .avatar-home__btn,
html body:not(.high-contrast) #avatarHome .avatar-home__ghost,
html.sunlight-readable body .bm-ios-chip,
html.sunlight-readable body button.bm-ios-chip,
html.sunlight-readable body .tool-btn.bm-ios-chip,
html.sunlight-readable body .work-btn.bm-ios-chip,
html.sunlight-readable body .page2-stage-chrome__actions [onclick].bm-ios-chip,
html.sunlight-readable body .page2-stage-chrome__actions [onclick*="startMeasure"].bm-ios-chip,
html.sunlight-readable body [data-page2-jump].bm-ios-chip,
html.sunlight-readable body [data-page2-jump="calc"].bm-ios-chip,
html.sunlight-readable body [data-page2-jump="formwork"].bm-ios-chip,
html.sunlight-readable body [data-page2-jump="qto"].bm-ios-chip,
body.sunlight-readable .bm-ios-chip,
body.sunlight-readable button.bm-ios-chip,
body.sunlight-readable .tool-btn.bm-ios-chip,
body.sunlight-readable .work-btn.bm-ios-chip,
body.sunlight-readable .page2-stage-chrome__actions [onclick].bm-ios-chip,
body.sunlight-readable .page2-stage-chrome__actions [onclick*="startMeasure"].bm-ios-chip,
body.sunlight-readable [data-page2-jump].bm-ios-chip,
body.sunlight-readable [data-page2-jump="calc"].bm-ios-chip,
body.sunlight-readable [data-page2-jump="formwork"].bm-ios-chip,
body.sunlight-readable [data-page2-jump="qto"].bm-ios-chip {
    background: var(--bm-ios-chip-bg) !important;
    background-image: none !important;
    color: var(--bm-ios-chip-ink) !important;
    -webkit-text-fill-color: var(--bm-ios-chip-ink) !important;
    border: none !important;
    border-radius: var(--bm-ios-chip-radius) !important;
    box-shadow: none !important;
    padding: var(--bm-ios-chip-pad) !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    max-width: max-content;
    -webkit-backdrop-filter: var(--bm-ios-chip-blur);
    backdrop-filter: var(--bm-ios-chip-blur);
    text-shadow: none;
}

/* Selected work-mode chip: keep underline mark, never a white stroke. */
html body:not(.high-contrast) header.app-chrome .work-btn.bm-ios-chip.active,
html.sunlight-readable body header.app-chrome .work-btn.bm-ios-chip.active,
body.sunlight-readable header.app-chrome .work-btn.bm-ios-chip.active {
    color: #0A84FF !important;
    -webkit-text-fill-color: #0A84FF !important;
    border: none !important;
    box-shadow: inset 0 -2px 0 #0A84FF !important;
}

html body .bm-ios-chip:hover,
html body .bm-ios-chip:active,
html body:not(.high-contrast) .bm-ios-chip:hover,
html body:not(.high-contrast) .bm-ios-chip:active,
html body:not(.high-contrast) [onclick*="startMeasure"].bm-ios-chip:hover,
html body:not(.high-contrast) [onclick*="enterMarkCalcMode"].bm-ios-chip:hover,
html body:not(.high-contrast) [data-page2-jump].bm-ios-chip:hover,
html.sunlight-readable body .bm-ios-chip:hover,
html.sunlight-readable body .bm-ios-chip:active,
body.sunlight-readable .bm-ios-chip:hover,
body.sunlight-readable .bm-ios-chip:active {
    background: var(--bm-ios-chip-bg-pressed) !important;
    filter: brightness(1.16);
}

html.sunlight-readable body .bm-ios-chip,
html.sunlight-readable body button.bm-ios-chip,
html.sunlight-readable body .tool-btn.bm-ios-chip,
html.sunlight-readable body .work-btn.bm-ios-chip,
html.sunlight-readable body .mode-btn.bm-ios-chip,
html.sunlight-readable body .header-status-chip.bm-ios-chip,
html.sunlight-readable body .page2-stage-chrome__actions [onclick].bm-ios-chip,
html.sunlight-readable body .page2-stage-chrome__actions [onclick*="startMeasure"].bm-ios-chip,
html.sunlight-readable body [data-page2-jump].bm-ios-chip,
html.sunlight-readable body [data-page2-jump="calc"].bm-ios-chip,
html.sunlight-readable body [data-page2-jump="formwork"].bm-ios-chip,
html.sunlight-readable body [data-page2-jump="qto"].bm-ios-chip,
html.sunlight-readable body #avatarHome .avatar-home__btn,
html.sunlight-readable body #avatarHome .avatar-home__ghost,
body.sunlight-readable .bm-ios-chip,
body.sunlight-readable button.bm-ios-chip,
body.sunlight-readable .tool-btn.bm-ios-chip,
body.sunlight-readable .work-btn.bm-ios-chip,
body.sunlight-readable .mode-btn.bm-ios-chip,
body.sunlight-readable .header-status-chip.bm-ios-chip,
body.sunlight-readable .page2-stage-chrome__actions [onclick].bm-ios-chip,
body.sunlight-readable .page2-stage-chrome__actions [onclick*="startMeasure"].bm-ios-chip,
body.sunlight-readable [data-page2-jump].bm-ios-chip,
body.sunlight-readable [data-page2-jump="calc"].bm-ios-chip,
body.sunlight-readable [data-page2-jump="formwork"].bm-ios-chip,
body.sunlight-readable [data-page2-jump="qto"].bm-ios-chip,
body.sunlight-readable #avatarHome .avatar-home__btn,
body.sunlight-readable #avatarHome .avatar-home__ghost,
html body.high-contrast .bm-ios-chip,
html body.high-contrast button.bm-ios-chip,
html body.high-contrast .tool-btn.bm-ios-chip,
html body.high-contrast .work-btn.bm-ios-chip,
html body.high-contrast .mode-btn.bm-ios-chip,
html body.high-contrast .header-status-chip.bm-ios-chip,
html body.high-contrast .page2-stage-chrome__actions .tool-btn--primary.bm-ios-chip,
html body.high-contrast[data-work-mode="calc"][data-calc-page="2"] .page2-stage-chrome__actions .tool-btn--primary.bm-ios-chip,
html body.high-contrast[data-work-mode="calc"][data-calc-page="2"] .page2-quote-dock__actions .tool-btn--primary.bm-ios-chip,
html body.high-contrast #avatarHome .avatar-home__btn,
html body.high-contrast #avatarHome .avatar-home__ghost {
    background: var(--bm-ios-chip-sun-bg) !important;
    color: var(--bm-ios-chip-sun-ink) !important;
    -webkit-text-fill-color: var(--bm-ios-chip-sun-ink) !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
}
