/* AMS PRO shared light palette. Desktop geometry and mobile font floors are independent. */
:root { --ams-bg: #f4f7fb; --ams-surface: #fff; --ams-text: #172b4d; --ams-muted: #52647a; --ams-border: #dce5ef; --ams-primary: #1763cf; }
body.ams-light { --bg-gradient: linear-gradient(135deg,#f4f7fb,#eef4fc); --card-bg: var(--ams-surface); --card-border: var(--ams-border); --navy-dark: #edf3fa; --text-main: var(--ams-text); --text-muted: var(--ams-muted); --accent-blue: var(--ams-primary); --accent-cyan: #126a80; --accent-green: #187046; --accent-orange: #98530b; --accent-red: #b4233b; --shadow-sm: 0 3px 12px rgba(31,67,110,.06); --shadow-lg: 0 12px 32px rgba(31,67,110,.12); background: var(--bg-gradient); color: var(--ams-text); color-scheme: light; }
body.ams-light .app-sidebar, body.ams-light .top-navbar, body.ams-light .mobile-header { background: #fff; border-color: var(--ams-border); box-shadow: var(--shadow-sm); }
body.ams-light .sidebar-user-wrapper, body.ams-light .sidebar-footer { background: #f8faff; }
body.ams-light .sidebar-link { color: #465970; }
body.ams-light .sidebar-link:hover, body.ams-light .sidebar-link.active { color: #175ac0 !important; background: #eaf2ff; }
body.ams-light .sidebar-brand, body.ams-light .brand-logo { color: #175ac0; }
body.ams-light .dashboard-hero h1 { background: none; -webkit-text-fill-color: #172b4d; color: #172b4d; }
body.ams-light .menu-item-card:hover { background: #f5f9ff; }
body.ams-light .btn-lux-secondary, body.ams-light .btn-sidebar-pw, body.ams-light .btn-pw { background: #eef5ff; color: #175ac0; border-color: #c6daf5; }
body.ams-light .form-control-lux, body.ams-light .input-lux, body.ams-light .form-control, body.ams-light select option { background: #fff !important; color: #172b4d !important; border-color: #b4c4d8 !important; }
body.ams-light .form-control-lux:disabled, body.ams-light .input-lux:disabled { background: #f1f5fa !important; color: #52647a !important; }
body.ams-light .form-control-lux:focus, body.ams-light .input-lux:focus { border-color: #1763cf !important; background: #fff !important; }
body.ams-light input::placeholder, body.ams-light textarea::placeholder { color: #64748b; }
body.ams-light .modal-content, body.ams-light .swal2-popup { background: #fff !important; color: #172b4d !important; border-color: #dce5ef !important; box-shadow: var(--shadow-lg) !important; }
body.ams-light .modal-header, body.ams-light .modal-footer { border-color: #dce5ef !important; }
body.ams-light .close { color: #172b4d; text-shadow: none; }
body.ams-light .text-white { color: #172b4d !important; }
body.ams-light .btn-primary, body.ams-light .btn-success, body.ams-light .btn-danger, body.ams-light .btn-lux-primary, body.ams-light .btn-lux-danger, body.ams-light .btn-out, body.ams-light .btn-sidebar-out, body.ams-light .sidebar-user-avatar { color: #fff !important; }
body.ams-light .text-muted, body.ams-light .text-secondary { color: #52647a !important; }
body.ams-light .text-warning { color: #98530b !important; }
body.ams-light .text-success { color: #187046 !important; }
body.ams-light .text-info, body.ams-light .text-primary { color: #175ac0 !important; }
body.ams-light .text-danger { color: #b4233b !important; }
body.ams-light .bg-dark, body.ams-light .table-dark { background: #fff !important; color: #172b4d; }
body.ams-light .premium-table th, body.ams-light #taskTable thead th { background: #edf3fa; color: #172b4d; }
body.ams-light .table-dark td, body.ams-light .table-dark th { border-color: #dce5ef; }
body.ams-light .panel-remind { background: #fff3f5; color: #b4233b; }
body.ams-light .panel-report { background: #fffaeb; color: #98530b; }
body.ams-light .sealed-badge { background: #eaf2ff; color: #175ac0; border-color: #c6daf5; box-shadow: var(--shadow-sm); }
body.ams-light .badge-secondary { color: #465970; background: #eef2f7; }
body.ams-light :focus-visible { outline: 2px solid #1763cf; outline-offset: 2px; }
body.ams-light ::-webkit-scrollbar-thumb { background: #bdcadb; }
/* Legacy inline help/viewer surfaces keep their structure while changing palette. */
body.ams-light [style*="background: rgba(10"], body.ams-light [style*="background:rgba(10"], body.ams-light [style*="background: rgba(15"], body.ams-light [style*="background:rgba(15"], body.ams-light [style*="background: rgba(30"], body.ams-light [style*="background: #0f172a"] { background: #f4f7fb !important; color: #172b4d; border-color: #dce5ef !important; }

/* Existing desktop panels and editor surfaces. */
body.ams-light .btn-top-dark,
body.ams-light .btn-top-dark:hover,
body.ams-light .button-bar,
body.ams-light .card-header-lux,
body.ams-light .chart-bar-container,
body.ams-light .chat-body,
body.ams-light .chat-footer,
body.ams-light .chat-header,
body.ams-light .chat-input,
body.ams-light .chat-message table,
body.ams-light .header-navy,
body.ams-light .input-group-lux,
body.ams-light .input-group-text-lux,
body.ams-light .link-group-wrapper,
body.ams-light .navy-header-bar,
body.ams-light .search-input,
body.ams-light .sidebar-footer,
body.ams-light .tag-box-lux,
body.ams-light .tree-box-light { background: #f4f7fb !important; color: #172b4d; }

body.ams-light .pulse-logo { background: none; -webkit-text-fill-color: #175ac0; color: #175ac0; }
body.ams-light .btn-lux-secondary { color: #175ac0 !important; }
