/* MonSalaire V160 — Premium Signature. Presentation only, no salary logic. */
html[data-salary-theme]{--ink:#24272e;--ink-soft:#66707c;--canvas:#f6f5f2!important;--surface:#fff!important;--line:#e4e4e0!important;--shadow:0 6px 22px #20242b06!important;--ms-shadow-soft:0 6px 22px #20242b06;--ms-shadow-float:0 16px 48px #20242b18;background:var(--premium-canvas,#f6f5f2);color:var(--premium-ink,#24272e);color-scheme:light}
html[data-salary-design][data-salary-theme] .app-shell,html[data-salary-design][data-salary-theme] .access-shell,html[data-salary-design][data-salary-theme] .onboarding-shell{background:var(--premium-canvas,#f6f5f2)!important}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--premium-ink,#24272e)}
html[data-salary-design][data-salary-theme] .app-header{background:var(--premium-canvas,#f6f5f2)!important;border-bottom:1px solid var(--premium-line,#e4e4e0)!important;box-shadow:none!important}
.header-brand-copy strong,.page-heading h1,.section-heading h2{letter-spacing:-.035em}
html[data-salary-design][data-salary-theme] .brand-mark,html[data-salary-design][data-salary-theme] .access-brand{background:var(--premium-ink,#24272e)!important;box-shadow:none!important;color:white}
html[data-salary-design][data-salary-theme] .result-hero{background:linear-gradient(135deg,var(--premium-hero,#30353e),var(--premium-hero-end,#1d2128))!important;border:1px solid #383e48!important;border-radius:22px!important;box-shadow:0 12px 30px #20242b16!important;position:relative}
html[data-salary-design][data-salary-theme] .result-hero::before{content:"";position:absolute;top:0;left:22px;right:22px;height:3px;background:var(--accent-on-dark,var(--orange));border-radius:0 0 4px 4px;pointer-events:none}
html[data-salary-design][data-salary-theme] .result-main{color:#fff!important;text-shadow:none!important;font-weight:700;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
html[data-salary-design][data-salary-theme] .result-hero>p,html[data-salary-design][data-salary-theme] .result-meta,html[data-salary-design][data-salary-theme] .result-footer{color:#e4e7ec!important}
html[data-salary-design][data-salary-theme] .result-hero .eur-pill{background:#ffffff12!important;color:#fff!important;border:1px solid #ffffff24!important}
html[data-salary-design][data-salary-theme] .result-hero .live-badge{color:#eef1f5!important;background:#ffffff0c!important;border-color:#ffffff20!important}
html[data-salary-design][data-salary-theme] .result-hero .live-badge i{background:var(--accent-on-dark,var(--orange))!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .input-card,html[data-salary-design][data-salary-theme] .breakdown-card,html[data-salary-design][data-salary-theme] .history-card,html[data-salary-design][data-salary-theme] .settings-accordion,html[data-salary-design][data-salary-theme] .notice-card,html[data-salary-design][data-salary-theme] .dashboard-card-v108{background:var(--premium-surface,#fff)!important;border:1px solid var(--premium-line,#e4e4e0)!important;border-radius:20px!important;box-shadow:var(--shadow)!important}
html[data-salary-design][data-salary-theme] .card-title-row{background:transparent!important;border-bottom-color:#ededeb!important}
html[data-salary-design][data-salary-theme] .icon-tile,html[data-salary-design][data-salary-theme] .dashboard-card-icon-v108,html[data-salary-design][data-salary-theme] .modal-icon{background:color-mix(in srgb,var(--orange) 9%,white)!important;color:var(--orange-strong)!important;border-radius:13px;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .primary-button,html[data-salary-design][data-salary-theme] .planning-primary,html[data-salary-design][data-salary-theme] .onboarding-submit{background:var(--orange-strong)!important;color:white!important;border-radius:14px!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .secondary-button{background:var(--premium-surface,#fff)!important;border:1px solid var(--premium-line,#e4e4e0)!important;color:var(--premium-ink,#24272e)!important;box-shadow:none!important;border-radius:14px!important}
html[data-salary-design][data-salary-theme] .money-input,html[data-salary-design][data-salary-theme] .setting-input,html[data-salary-design][data-salary-theme] .small-number-input,html[data-salary-design][data-salary-theme] .email-login-input,html[data-salary-design][data-salary-theme] .profile-rate{background:#f8f8f6!important;border-color:var(--premium-line,#e4e4e0)!important;color:var(--premium-ink,#24272e)!important;box-shadow:none!important;font-variant-numeric:tabular-nums}
html[data-salary-design][data-salary-theme] .stepper-control{background:#f8f8f6!important;border-color:var(--premium-line,#e4e4e0)!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .stepper-control button{color:var(--orange-strong)!important;background:transparent!important}
html[data-salary-design][data-salary-theme] .bottom-nav{background:var(--premium-surface,#fff)!important;border:1px solid #e4e4e0!important;border-radius:20px!important;box-shadow:0 8px 28px #20242b12!important}
html[data-salary-design][data-salary-theme] .bottom-nav button{color:#737b86;font-weight:600;border-radius:12px;position:relative}
html[data-salary-design][data-salary-theme] .bottom-nav button.active{background:color-mix(in srgb,var(--orange) 8%,white)!important;color:var(--orange-strong)!important}
html[data-salary-design][data-salary-theme] .bottom-nav button.active::before{content:"";position:absolute;top:3px;width:16px;height:2px;border-radius:2px;background:var(--orange)}
html[data-salary-design][data-salary-theme] .app-modal,html[data-salary-design][data-salary-theme] .theme-picker-sheet,html[data-salary-design][data-salary-theme] .planning-import-sheet,html[data-salary-design][data-salary-theme] .access-card{background:var(--premium-surface,#fff)!important;border:1px solid var(--premium-line,#e4e4e0)!important;border-radius:24px!important;box-shadow:0 20px 65px #20242b24!important;color:var(--premium-ink,#24272e)}
html[data-salary-design][data-salary-theme] .theme-choice{background:#fafaf8!important;border:1px solid var(--premium-line,#e4e4e0)!important;color:var(--premium-ink,#24272e)!important;box-shadow:none!important;border-radius:14px!important}
html[data-salary-design][data-salary-theme] .theme-choice.active{border-color:var(--orange-strong)!important;background:color-mix(in srgb,var(--orange) 8%,white)!important}
html[data-salary-design][data-salary-theme] .theme-swatch{box-shadow:inset 0 0 0 1px #0000000a!important}
html[data-salary-design][data-salary-theme] .theme-picker-copy,html[data-salary-design][data-salary-theme] .access-copy,html[data-salary-design][data-salary-theme] .modal-copy{color:var(--premium-ink-soft,#66707c)!important}
html[data-salary-design][data-salary-theme] .theme-header-trigger{background:var(--premium-surface,#fff)!important;border-color:var(--premium-line,#e4e4e0)!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .dashboard-head-v108{background:var(--premium-surface,#fff)!important;border-color:var(--premium-line,#e4e4e0)!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .dashboard-month-pill-v108{color:var(--orange-strong)!important;background:color-mix(in srgb,var(--orange) 8%,white)!important}
html[data-salary-design][data-salary-theme] .install-card{background:#252a32!important;box-shadow:var(--shadow)!important}
html[data-salary-design][data-salary-theme] .breakdown-total{border-color:var(--premium-line,#e4e4e0)!important}
html[data-salary-design][data-salary-theme] .result-hero svg{flex-shrink:0}
@media(max-width:380px){html[data-salary-design][data-salary-theme] .result-main{font-size:clamp(30px,10vw,38px)}html[data-salary-design][data-salary-theme] .result-meta,html[data-salary-design][data-salary-theme] .result-footer{gap:8px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
html[data-salary-design][data-salary-theme] .result-hero.premium-result-hero::before{top:0;bottom:auto;left:22px;right:22px;width:auto;height:3px;border-radius:0 0 4px 4px;z-index:0;filter:none;background:var(--accent-on-dark,var(--orange))}
html[data-salary-design][data-salary-theme] .premium-progress-ring{background:conic-gradient(var(--accent-on-dark,var(--orange)) 0 var(--progress),#ffffff20 var(--progress) 360deg)!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .premium-progress-ring::before{background:var(--premium-hero-detail,#282d35)!important;box-shadow:none!important}
html[data-salary-design][data-salary-theme] .premium-progress-ring.is-empty{background:#ffffff20!important}
html[data-salary-design][data-salary-theme] .premium-glance-row{color:#e3e6eb}
html[data-salary-design][data-salary-theme] .premium-glance-row>div{background:#ffffff08!important;border-color:#ffffff18!important}
html[data-salary-design][data-salary-theme] .premium-quick-actions-v58 button{background:var(--premium-surface,#fff)!important;border:1px solid var(--premium-line,#e4e4e0)!important;box-shadow:var(--shadow)!important;border-radius:18px!important}
html[data-salary-design][data-salary-theme] .theme-picker-sheet.premium-theme-sheet{background:var(--premium-surface,#fff)!important;border-color:var(--premium-line,#e4e4e0)!important;box-shadow:0 20px 65px #20242b24!important}
html[data-salary-design][data-salary-theme] .theme-picker-sheet.premium-theme-sheet::before{display:none}
html[data-salary-design][data-salary-theme] .prime-date-modal-v53,html[data-salary-design][data-salary-theme] .premium-name-card{background:var(--premium-surface,#fff)!important;border-color:var(--premium-line,#e4e4e0)!important;box-shadow:0 20px 65px #20242b24!important}
html[data-salary-design][data-salary-theme] .bottom-nav.premium-bottom-nav .premium-nav-orb{background:color-mix(in srgb,var(--orange) 8%,white)!important;box-shadow:none!important;color:var(--orange-strong)!important}

/* V161: independent ambience and accent controls. */
html[data-salary-design]{--canvas:var(--premium-canvas)!important;--surface:var(--premium-surface)!important;--line:var(--premium-line)!important;--ink:var(--premium-ink);--ink-soft:var(--premium-ink-soft)}
html[data-salary-design="champagne"] .result-hero{border-color:#b89d6b70!important;border-radius:18px!important}
html[data-salary-design="champagne"] .result-hero::before{background:var(--premium-trim)!important}
html[data-salary-design="champagne"] .input-card,html[data-salary-design="champagne"] .breakdown-card{border-radius:16px!important;border-color:var(--premium-line)!important}
html[data-salary-design="night"] .result-hero{border-color:#4772a670!important;box-shadow:0 12px 30px #152d4b20!important}
html[data-salary-design="night"] .result-hero::before{background:var(--premium-trim)!important}
html[data-salary-design][data-salary-theme] .theme-picker-sheet{max-height:calc(100svh - 32px);overflow-y:auto!important;overscroll-behavior:contain}
.appearance-section-title{font-size:12px;font-weight:700;margin:16px 0 10px;color:var(--premium-ink)}
.design-picker-grid{display:grid;gap:9px}
.design-choice{display:flex;align-items:center;gap:12px;text-align:left;min-height:78px;width:100%;padding:10px;border:1px solid var(--premium-line);border-radius:15px;background:var(--premium-surface);color:var(--premium-ink);cursor:pointer}
.design-choice.active{border-color:var(--orange-strong);box-shadow:inset 0 0 0 1px var(--orange-strong)}
.design-preview{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:4px;width:64px;padding:7px;background:var(--preview-canvas);border-radius:9px;border:1px solid #00000008}
.design-preview i{grid-column:1/-1;height:22px;background:var(--preview-hero);border-top:2px solid var(--preview-trim);border-radius:4px}
.design-preview em{height:15px;background:var(--preview-card);border:1px solid #00000008;border-radius:3px}
.design-choice-copy{flex:1;min-width:0}.design-choice-copy strong{display:block;font-size:12px;font-weight:700}.design-choice-copy small{display:block;font-size:10px;line-height:1.4;color:var(--premium-ink-soft);margin-top:3px}
.design-check{opacity:0;color:var(--orange-strong);font-weight:800}.design-choice.active .design-check{opacity:1}
html[data-salary-design][data-salary-theme] .appearance-done{display:block;width:100%;min-height:44px;margin-top:18px}

/* V162: the complete premium layer outranks legacy multi-class !important rules. */
html[data-salary-design][data-salary-theme] .result-hero,
html[data-salary-design][data-salary-theme] .result-hero.premium-result-hero{
 background:linear-gradient(135deg,var(--premium-hero,#30353e),var(--premium-hero-end,#1d2128))!important;
 box-shadow:0 12px 30px #20242b16!important;
 border:1px solid var(--premium-trim,#383e48)!important;
}
/* Remove the legacy decorative reflection: it has fixed dimensions and blur. */
html[data-salary-design][data-salary-theme] .result-hero::before,
html[data-salary-design][data-salary-theme] .result-hero.premium-result-hero::before,
html[data-salary-design][data-salary-theme] .result-hero::after{
 content:none!important;display:none!important;background:none!important;filter:none!important;
}
html[data-salary-design][data-salary-theme] .dashboard-card-v108,
html[data-salary-design][data-salary-theme] .dashboard-head-v108,
html[data-salary-design][data-salary-theme] .dashboard-overview-v108{
 background:var(--premium-surface,#fff)!important;border-color:var(--premium-line,#e4e4e0)!important;
 box-shadow:0 6px 22px #20242b06!important;
}

/* V163: explicit light/dark/device appearance. Theme and accent stay independent. */
.appearance-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.appearance-mode-choice{min-height:42px;padding:8px;border:1px solid var(--premium-line);border-radius:12px;background:var(--premium-surface);color:var(--premium-ink);font-size:12px;font-weight:650;cursor:pointer}
.appearance-mode-choice.active{border-color:var(--orange-strong);box-shadow:inset 0 0 0 1px var(--orange-strong)}
.appearance-mode-help{font-size:10px;line-height:1.5;color:var(--premium-ink-soft);margin:7px 0 0}
html[data-salary-scheme="dark"]{color-scheme:dark;--peach:var(--premium-surface);--yellow-soft:var(--premium-surface);--yellow:var(--premium-line);--orange-soft:var(--premium-line);--ms-line:var(--premium-line);--ms76-line:var(--premium-line);--ms-surface:var(--premium-surface);--ms-ink:var(--premium-ink);--ms-muted:var(--premium-ink-soft)}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] body{background:var(--premium-canvas);color:var(--premium-ink)}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(.app-frame,.screen-content,.settings-body,.settings-subgroup,.card-body,.card-title-row){background:transparent!important;color:var(--premium-ink)!important;border-color:var(--premium-line)!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(.money-input,.setting-input,.small-number-input,.email-login-input,.profile-rate,.stepper-control,input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),select,textarea){background:var(--premium-canvas)!important;color:var(--premium-ink)!important;border-color:var(--premium-line)!important;box-shadow:none!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(.theme-choice,.icon-action,.info-button,.account-button,.modal-close,.theme-picker-close,.planning-close,.profile-function-choice,.profile-section,.profile-proposal,.account-email,.subscription-status,.pricing-card,.empty-state,.history-meta,.goal-plan-card,.goal-result-v26,.goal-target-field,.commission-panel-v33,.commission-day-v33,.commission-summary-v33,.commission-add-v33,.commission-supp-v151,.real-payslip-row-v65,.planning-category-card,.planning-result-top>div,.planning-paste-details,.planning-routes-details,.planning-apply-mode,.prime-date-modal-v53,.salary-goal-card-v26){background:var(--premium-surface)!important;color:var(--premium-ink)!important;border-color:var(--premium-line)!important;box-shadow:none!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(h1,h2,h3,.card-title-copy,.stepper-copy strong,.money-field-row>label,.breakdown-row,.history-card-head,.theme-picker-title,.dashboard-card-copy-v108,.setting-field-row>label){color:var(--premium-ink)!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(.modal-copy,.access-copy,.access-secure,.theme-picker-copy,.stepper-copy p,.card-title-copy p,.page-heading p,.history-meta,.settings-notice,.commission-intro-v33,.planning-import-copy,.privacy-note,.profile-warning,.header-brand-copy p){color:var(--premium-ink-soft)!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(.secondary-button,.stepper-control button,.theme-choice.active,.bottom-nav button.active,.dashboard-month-pill-v108,.icon-tile,.dashboard-card-icon-v108,.modal-icon,.premium-nav-orb){background:var(--premium-surface)!important;color:var(--accent-on-dark)!important;border-color:var(--premium-line)!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] :where(.icon-tile,.dashboard-card-icon-v108,.modal-icon){background:color-mix(in srgb,var(--accent-on-dark) 12%,var(--premium-surface))!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] .brand-mark,
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] .access-brand{background:var(--premium-hero)!important;color:#fff!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] .bottom-nav{border-color:var(--premium-line)!important;box-shadow:0 8px 28px #00000040!important}
html[data-salary-scheme="dark"][data-salary-design][data-salary-theme][data-salary-mode] .bottom-nav button{color:var(--premium-ink-soft)!important}
html[data-salary-scheme="dark"] .design-check{color:var(--accent-on-dark)}
html[data-salary-scheme="dark"] .design-choice.active,html[data-salary-scheme="dark"] .appearance-mode-choice.active{border-color:var(--accent-on-dark);box-shadow:inset 0 0 0 1px var(--accent-on-dark)}
html[data-salary-scheme="dark"] ::placeholder{color:var(--premium-ink-soft);opacity:.8}
