/* ClimaFlora — shared visual system. Space-specific geometry stays in its own CSS. */
:root,body.cf-premium{
  --cf-bg:#101923;--cf-surface:#17232f;--cf-surface-raised:#1d2c39;
  --cf-text:#edf2f5;--cf-muted:#a8b7c5;--cf-border:#344552;
  --cf-gold:#d6b56e;--cf-blue:#7fb8d3;--cf-sage:#8fb89e;
  --cf-danger:#efaaa2;--cf-warning:#e4c17e;--cf-paper:#f1f0eb;
  --cf-on-accent:#18212a;--cf-overlay:#050c14a8;--cf-field:#101b26;
  --cf-success-bg:#8fb89e18;--cf-warning-bg:#d6b56e18;--cf-danger-bg:#efaaa218;
  --cf-header-height:56px;--cf-footer-height:26px;--cf-radius:10px;--cf-shadow:0 16px 44px #0003;
  /* Compatibility tokens for existing functional screens. */
  --cf-panel:var(--cf-surface);--cf-ink:var(--cf-text);--cf-line:var(--cf-border);
  --cf-green:var(--cf-sage);--cf-accent:var(--cf-gold);--cf-soft:var(--cf-surface-raised);
  --bg:var(--cf-bg);--panel:var(--cf-surface);--soft:var(--cf-surface-raised);--soft2:#233340;
  --ink:var(--cf-text);--muted:var(--cf-muted);--line:var(--cf-border);--navy:var(--cf-text);
  --green:var(--cf-sage);--green2:#add0b9;--green-soft:#263c35;--gold:var(--cf-gold);--gold-soft:#3e382b;
  --red:var(--cf-danger);--orange:var(--cf-warning);--shadow:var(--cf-shadow);--radius:10px;
}
html:has(body.cf-premium){background:var(--cf-bg);scroll-padding-top:72px;color-scheme:dark}
body.cf-premium{margin:0;min-width:320px;overflow-x:clip;background:var(--cf-bg);color:var(--cf-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;font-weight:450;line-height:1.5;-webkit-font-smoothing:antialiased}
body.cf-premium *,body.cf-premium *:before,body.cf-premium *:after{box-sizing:border-box}
body.cf-premium [hidden]{display:none!important}
body.cf-premium :focus-visible{outline:2px solid var(--cf-blue)!important;outline-offset:3px}
body.cf-premium :where(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
body.cf-premium :where(button){cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
body.cf-premium :where(button:disabled){cursor:not-allowed;opacity:.5}
body.cf-premium :where(input,select,textarea){color-scheme:dark;accent-color:var(--cf-gold)}
body.cf-premium ::selection{background:#d6b56e55;color:#fff}
body.cf-premium :where(a){text-underline-offset:3px}
body.cf-premium :where(hr){border:0;border-top:1px solid var(--cf-border)}
body.cf-premium .cf-spaces,body.cf-premium .cf-workspace-nav{display:none!important}

/* Shared shell: a single compact row in all three spaces. */
[data-cf-shared-header]{position:relative;z-index:1200;min-height:var(--cf-header-height);width:100vw;margin-left:calc(50% - 50vw)}
[data-cf-shared-footer]{width:100vw;margin:0 0 0 calc(50% - 50vw);padding:0;flex:none}
.cf-shell-header{height:var(--cf-header-height);min-height:var(--cf-header-height);display:flex;align-items:center;gap:28px;padding:0 24px;background:#101923f7;border-bottom:1px solid var(--cf-border);position:fixed;inset:0 0 auto;z-index:1200;color:var(--cf-text);box-shadow:0 1px 0 #050b1040}
.cf-shell-brand{display:flex;flex-shrink:0;align-items:center;gap:8px;text-decoration:none!important;color:var(--cf-text);white-space:nowrap}
.cf-shell-brand>img{display:block;width:34px;height:34px;object-fit:contain}
.cf-shell-brand>span{font-size:20px;letter-spacing:-.7px;font-weight:600}
.cf-shell-clima{color:var(--cf-text)}.cf-shell-flora{color:var(--cf-gold)}
.cf-shell-header .cf-icon{display:block;flex:0 0 auto;width:20px;height:20px;object-fit:contain;background:none;padding:0;border:0;border-radius:0;box-shadow:none}
.cf-shell-header .cf-shell-chevron{width:12px;height:12px;object-fit:contain;opacity:.7;margin-left:2px}
.cf-shell-spaces{display:flex;align-items:center;align-self:stretch;gap:6px;flex-shrink:0;margin:0;padding:0;border:0}
.cf-shell-spaces>a{position:relative;display:flex;align-items:center;gap:7px;min-height:40px;margin:8px 0;padding:0 11px;text-decoration:none;color:var(--cf-muted);font-size:12px;font-weight:500;white-space:nowrap;border-radius:7px;background:transparent;border:1px solid transparent}
.cf-shell-spaces>a:hover{background:var(--cf-surface-raised);color:var(--cf-text)}
.cf-shell-spaces>a[aria-current="page"]{color:var(--cf-gold);background:#d6b56e10;border-color:#d6b56e38}
.cf-shell-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 0 auto;padding:0;border:0;flex-wrap:nowrap}
.cf-shell-actions>a,.cf-shell-actions summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 10px;border:1px solid transparent;border-radius:7px;list-style:none;font-size:12px;font-weight:500;color:var(--cf-muted);text-decoration:none;cursor:pointer;white-space:nowrap;user-select:none}
.cf-shell-actions>a[aria-current="page"]{color:var(--cf-gold)}
.cf-shell-actions summary::-webkit-details-marker{display:none}
.cf-shell-actions summary::marker{content:""}
.cf-shell-actions summary:after{content:none!important}
.cf-shell-actions>a:hover,.cf-shell-actions summary:hover,.cf-shell-actions details[open]>summary{background:var(--cf-surface-raised);color:var(--cf-text)}
.cf-shell-actions .cf-shell-account>summary{border-color:var(--cf-border);color:var(--cf-text);background:var(--cf-surface)}
.cf-shell-dropdown{position:relative;margin:0;padding:0;border:0;background:none}
.cf-shell-dropdown[open]>.cf-shell-menu-panel{display:flex}
.cf-shell-menu-panel{display:none;position:absolute;right:0;top:calc(100% + 9px);z-index:1210;flex-direction:column;min-width:218px;max-width:min(290px,calc(100vw - 24px));padding:6px;background:var(--cf-surface-raised);border:1px solid var(--cf-border);border-radius:10px;box-shadow:0 16px 40px #0006}
.cf-shell-menu-panel>a,.cf-shell-menu-panel>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:38px;width:100%;padding:8px 10px;background:transparent;border:0;border-radius:6px;color:var(--cf-text);text-align:left;text-decoration:none;font:500 12px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.cf-shell-menu-panel>a:hover,.cf-shell-menu-panel>button:hover{background:#ffffff0b;color:var(--cf-gold)}
.cf-shell-menu-panel>button[aria-pressed="true"]{color:var(--cf-gold);background:#d6b56e0d}
.cf-shell-menu-panel [data-cf-signout]{border-top:1px solid var(--cf-border);margin-top:5px;padding-top:10px;border-radius:0 0 6px 6px}
.cf-shell-language>.cf-shell-menu-panel{min-width:145px}
.cf-shell-toggle{display:none;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;margin-left:auto;background:var(--cf-surface);border:1px solid var(--cf-border);border-radius:8px;color:var(--cf-text)}
.cf-shell-footer{min-height:var(--cf-footer-height);height:auto;margin:0;padding:4px 24px;display:flex;align-items:center;justify-content:space-between;gap:4px 18px;border-top:1px solid var(--cf-border);background:var(--cf-bg);color:var(--cf-muted);font-size:10px;line-height:1.3}
.cf-shell-footer nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:0;border:0;background:none}
.cf-shell-footer a,.cf-shell-footer button{font:inherit;color:var(--cf-muted);text-decoration:none;border:0;background:none;min-height:0;height:auto;margin:0;padding:0;cursor:pointer}
.cf-shell-footer a:hover,.cf-shell-footer button:hover{color:var(--cf-gold)}
.cf-shell-fallback{min-height:56px;display:flex;align-items:center;gap:18px;padding:10px 24px;background:var(--cf-surface);color:var(--cf-text)}
.cf-shell-fallback a{color:inherit}.cf-shell-fallback button{padding:6px 10px;border:1px solid var(--cf-border);border-radius:6px;background:var(--cf-surface-raised);color:var(--cf-text)}
.cf-shell-error{padding:8px;margin:0;color:var(--cf-danger);font-size:12px}

/* Forms and dialogs keep the same palette as their parent application. */
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel>section,.collection-popover,.billing-modal-panel,.consent-banner,.consent-modal){background:var(--cf-surface)!important;color:var(--cf-text)!important;border:1px solid var(--cf-border);border-radius:12px;box-shadow:var(--cf-shadow)}
body.cf-premium :is(.auth-backdrop,.workspace-overlay,.compare-panel,.auth-admin-overlay,.billing-modal-backdrop,.consent-backdrop){background:#050c14a8;backdrop-filter:blur(3px)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-banner,.consent-modal) :is(h1,h2,h3,h4,strong,label){color:var(--cf-text)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-banner,.consent-modal) :is(p,small,dt){color:var(--cf-muted)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-banner,.consent-modal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){color:var(--cf-text)!important;background:#101b26!important;border:1px solid var(--cf-border)!important;border-radius:8px}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-banner,.consent-modal) :is(button,a.auth-primary,a.workspace-action){color:var(--cf-text);background:var(--cf-surface-raised);border-color:var(--cf-border);border-radius:8px;font-weight:500}
body.cf-premium :is(.auth-subscription-card,.auth-profile-section,.auth-admin-preview,.auth-benefits li,.auth-service-tile,.workspace-toolbar,.workspace-upgrade,.workspace-projects article,.workspace-palette article,.workspace-comparison article,.collection-card,.workspace-project,.workspace-empty-state,.billing-guest-email-box){background:var(--cf-surface-raised)!important;border-color:var(--cf-border)!important;color:var(--cf-text)}
body.cf-premium :is(.auth-kicker,.auth-overline,.auth-section-head h3,.auth-preview-current strong,.auth-subscription-head strong,.auth-benefits li::before,.workspace-upgrade span){color:var(--cf-gold)}
body.cf-premium :is(.auth-copy,.auth-benefits,.auth-account-email,.auth-subscription-meta,.auth-subscription-head small,.auth-profile-section label,.auth-admin-preview p,.auth-plan-scale,.auth-preview-current,.auth-partner-preview-help,.workspace-empty,.workspace-projects article span,.workspace-comparison dt,.workspace-toolbar small){color:var(--cf-muted)}
body.cf-premium :is(.auth-account-head,.auth-subscription-meta,.auth-subscription-card .auth-benefits,.auth-account-actions,.auth-sostagora,.workspace-tabs,.workspace-comparison dl div,.consent-option){border-color:var(--cf-border)}
body.cf-premium .auth-benefits li{padding-left:30px}
body.cf-premium .auth-benefits li::before{content:"";width:14px;height:14px;background:url('icons/premium/check.png') center/contain no-repeat}
body.cf-premium :is(.auth-avatar,.auth-plan-status){background:#8fb89e18;color:var(--cf-sage);box-shadow:none}
body.cf-premium :is(.auth-avatar,.auth-overline,.auth-plan-status,.auth-test-badge,.auth-plan-scale,.auth-plan-preview-badge){font-weight:500}
body.cf-premium .auth-dialog .auth-account-actions a{background:var(--cf-surface-raised);border-color:var(--cf-border);color:var(--cf-text);font-weight:500}
body.cf-premium .auth-dialog .auth-account-actions a:not(.auth-primary):hover{background:#2c3e4c;border-color:var(--cf-blue)}
body.cf-premium .auth-dialog .auth-partner-preview-toggle{background:var(--cf-surface-raised);color:var(--cf-text)!important;border-color:var(--cf-border);font-weight:500!important}
body.cf-premium :is(.auth-test-badge,.auth-plan-preview-badge){background:#d6b56e14;border-color:#d6b56e55;color:var(--cf-gold)}
body.cf-premium :is(.auth-dialog,.workspace-panel,.billing-modal-panel,.consent-banner,.consent-modal) :is(.auth-primary,.workspace-primary,.workspace-tabs button.active,.workspace-toolbar button,.workspace-export button,.billing-next,.consent-actions .primary){background:var(--cf-gold)!important;border-color:var(--cf-gold)!important;color:#18212a!important;font-weight:500}
body.cf-premium :is(.auth-status,.workspace-status){background:#8fb89e18;color:var(--cf-sage)}
body.cf-premium :is(.auth-status.error,.workspace-status.error,.workspace-panel button.danger){background:#efaaa212!important;color:var(--cf-danger)!important;border-color:#efaaa24d}
body.cf-premium .auth-dialog{padding:24px}
body.cf-premium .auth-dialog h2,body.cf-premium .workspace-head h2{font-size:23px;letter-spacing:-.5px}
body.cf-premium :is(.auth-close,[data-workspace-close],[data-compare-close],[data-popover-close]){display:inline-grid;place-items:center;flex-shrink:0;min-width:36px;min-height:36px;font-size:0!important;background:var(--cf-surface-raised) url('icons/premium/close.png') center/18px no-repeat!important;border:1px solid var(--cf-border)!important;border-radius:8px!important}
body.cf-premium :is(.auth-close,[data-workspace-close],[data-compare-close],[data-popover-close]):hover{background-color:#2c3e4c!important;border-color:var(--cf-blue)!important}
body.cf-premium :is(.workspace-panel,.compare-panel) :is(th,td){border-color:var(--cf-border)}
body.cf-premium :is(.workspace-panel,.compare-panel) th{background:var(--cf-surface-raised);color:var(--cf-text)}
body.cf-premium .collection-popover{z-index:14000}
body.cf-premium .workspace-v3 :is(.workspace-head,.workspace-tabs){background:#17232ff5;border-color:var(--cf-border)}
body.cf-premium .workspace-v3 :is(.project-card,.project-shell-head,.editor-section,.project-photo-card,.project-address-results,.locked-section,.inline-upgrade,.editor-subtile,.report-logo-preview,.project-summary-card,.project-facts>div,.resilience-overview,.project-kpis>article,.tab-toolbar,.analysis-list>article,.analysis-list dl>div,.selection-groups>section,.export-intro,.export-card,.locked-export,.document-list>article,.implementation-list>article,.collection-return,.collections-sidebar,.collection-head,.collection-project-link,.collection-tools,.collection-bulk,.collection-items>article,.export-grid>article,.saved-comparisons>article,.implementation-form,.notes-docs-grid>form,.notes-docs-grid>section,.file-upload,.premium-note,.resilience-panel,.resilience-kpis>article,.resilience-plant,.resilience-years>div,.resilience-alternatives,.workspace-empty){background:var(--cf-surface-raised);border-color:var(--cf-border);color:var(--cf-text);box-shadow:none}
body.cf-premium .workspace-v3 :is(.project-card,.project-shell-head,.editor-section,.collection-head,.collection-items,.resilience-panel,.project-summary-card,.collections-sidebar) :is(h3,h4,strong,b,label,span,a){color:inherit}
body.cf-premium .workspace-v3 :is(p,small,dt,.workspace-loading,.editor-note,.field-help){color:var(--cf-muted)}
body.cf-premium .workspace-v3 :is(.project-cover,.project-status,.collection-nav-list button:hover,.collections-sidebar article.active){background:#8fb89e14;color:var(--cf-sage);border-color:var(--cf-border)}
body.cf-premium .workspace-v3 button:not(.primary):not(.active),body.cf-premium .workspace-v3 .export-card>a{background:var(--cf-surface-raised);border-color:var(--cf-border);color:var(--cf-text)}
body.cf-premium .workspace-v3 button:not(:disabled):hover{border-color:var(--cf-gold)}
body.cf-premium .workspace-v3 :is(.primary,button.primary,.project-tabs button.active){background:var(--cf-gold)!important;border-color:var(--cf-gold)!important;color:#18212a!important}
body.cf-premium .workspace-v3 :is(.resilience-orange,.resilience-kpis article.warning,.needs-attention,.resilience-warning){background:#d6b56e15;color:var(--cf-warning);border-color:#d6b56e55}
body.cf-premium .workspace-v3 :is(.resilience-red,.workspace-error){background:#efaaa215;color:var(--cf-danger);border-color:#efaaa255}
body.cf-premium .workspace-v3 .resilience-green{background:#8fb89e15;color:var(--cf-sage)}
body.cf-premium .workspace-v3 :is(.project-tabs,.collection-item-actions,.collection-nav-list,.editor-actions){border-color:var(--cf-border)}
body.cf-premium .workspace-v3 .premium-mark{font-size:0;background:#d6b56e14 url('icons/premium/lock.png') center/14px no-repeat;border-color:#d6b56e55;box-shadow:none}
body.cf-premium .workspace-v3 .project-cover:not(:has(img)){font-size:0;background:#8fb89e14 url('icons/premium/projects.png') center/32px no-repeat}
body.cf-premium .subscription-locked::after{content:"";display:inline-block;vertical-align:middle;margin-left:5px;width:13px;height:13px;background:url('icons/premium/lock.png') center/contain no-repeat}

/* Dialog typography and empty states are component rules, independent of Explorer. */
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-modal){font-weight:450}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-modal) :is(p,small,dt,dd,input,textarea){font-weight:450}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-modal) :is(h1,h2,h3,h4,h5,h6,strong,b){font-weight:600}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.workspace-panel,.compare-panel,.collection-popover,.billing-modal-panel,.consent-modal) :is(button,label,summary){font-weight:500}
body.cf-premium .workspace-panel .workspace-empty-layout,body.cf-premium .compare-panel .workspace-empty-layout{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;gap:12px;min-height:260px}
body.cf-premium .workspace-empty-layout :is(h3,p){display:block;max-width:560px;margin:0;line-height:1.5}
body.cf-premium .workspace-empty-layout h3{font-size:19px;line-height:1.3;color:var(--cf-text)}
body.cf-premium .workspace-empty-layout p{color:var(--cf-muted)}
body.cf-premium .workspace-empty-layout .workspace-empty-icon{display:block;width:42px;height:42px;margin:0;background:center/contain no-repeat;font-size:0}
.workspace-empty-icon[data-empty-icon="projects"]{background-image:url('icons/premium/projects.png')!important}
.workspace-empty-icon[data-empty-icon="collection"]{background-image:url('icons/premium/collection.png')!important}
.workspace-empty-icon[data-empty-icon="compare"]{background-image:url('icons/premium/compare.png')!important}
.workspace-empty-icon[data-empty-icon="lock"]{background-image:url('icons/premium/lock.png')!important}
body.cf-premium .workspace-empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;width:100%;margin-top:4px}
body.cf-premium .workspace-empty-actions :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:40px;max-width:100%;margin:0;padding:9px 14px;border:1px solid var(--cf-border);border-radius:8px;background:var(--cf-surface-raised);color:var(--cf-text);font-family:inherit;font-size:13px;font-weight:500;line-height:1.4;text-decoration:none}
body.cf-premium .workspace-empty-actions a.primary{background:var(--cf-gold);color:var(--cf-on-accent);border-color:var(--cf-gold)}
body.cf-premium .comparison-selection{display:grid;gap:8px;max-width:620px;margin:16px auto 0}
body.cf-premium .comparison-selection>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;background:var(--cf-surface-raised);border:1px solid var(--cf-border);border-radius:8px}
body.cf-premium .comparison-selection em{min-width:0;overflow-wrap:anywhere;color:var(--cf-text)}
body.cf-premium .collection-popover :is(header,form){border-color:var(--cf-border)}
body.cf-premium .collection-popover .popover-plant{color:var(--cf-text)}
body.cf-premium .compare-tray{color:var(--cf-text)}
body.cf-premium .compare-tray :is(button,strong){font-weight:500}

/* Contributions in the account/admin dialog. Plant-sheet forms belong to Explorer. */
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-create,.cf-contrib-item,.cf-contrib-moderation-row,.cf-contrib-kpis article,.cf-contrib-admin-kpis article,.cf-contrib-admin-note,.cf-contrib-proposed,.cf-contrib-history,.cf-contrib-admin-history){background:var(--cf-surface-raised);border-color:var(--cf-border);color:var(--cf-text)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-create>summary,.cf-contrib-list-head strong,.cf-contrib-item-head strong,.cf-contrib-kpis strong,.cf-contrib-admin-kpis strong,.cf-contrib-admin-title h3,.cf-contrib-moderation-row header strong,.cf-contrib-history strong,.cf-contrib-admin-history strong){color:var(--cf-text);font-weight:600}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-intro,.cf-contrib-help,.cf-contrib-empty,.cf-contrib-item>p,.cf-contrib-item-head small,.cf-contrib-type,.cf-contrib-meta,.cf-contrib-batch>p,.cf-contrib-proposed span,.cf-contrib-kpis span,.cf-contrib-admin-kpis span,.cf-contrib-admin-title span,.cf-contrib-admin-loading,.cf-contrib-moderation-row>p,.cf-contrib-moderation-row header span,.cf-contrib-moderation-row header small,.cf-contrib-history span,.cf-contrib-history small,.cf-contrib-admin-history span,.cf-contrib-admin-history small){color:var(--cf-muted);font-weight:450}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-section,.cf-contrib-admin-section) :is(input,select,textarea){background:var(--cf-field);color:var(--cf-text);border-color:var(--cf-border);font-weight:450}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-section,.cf-contrib-admin-section) :is(label,button){color:var(--cf-text);font-weight:500}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-form-actions,.cf-contrib-list-head,.cf-contrib-meta,.cf-contrib-batch,.cf-contrib-admin-title,.cf-contrib-admin-actions) button{background:var(--cf-surface-raised);border-color:var(--cf-border);color:var(--cf-text);font-weight:500}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-source,.cf-contrib-admin-source,.cf-contrib-admin-source a){color:var(--cf-blue)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-create form,.cf-contrib-batch-head,.cf-contrib-batch-row,.cf-contrib-resubmit,.cf-contrib-admin-section){border-color:var(--cf-border)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-plan,.cf-contrib-status){background:var(--cf-surface);color:var(--cf-muted);font-weight:500}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) .cf-contrib-status.ACCEPTED{background:var(--cf-success-bg);color:var(--cf-sage)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) .cf-contrib-status.PENDING{background:#7fb8d318;color:var(--cf-blue)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-status.REJECTED,.cf-contrib-admin-actions .danger){background:var(--cf-danger-bg);color:var(--cf-danger)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) :is(.cf-contrib-status.NEEDS_INFO,.cf-contrib-review-note,.cf-contrib-moderation-row .conflict){background:var(--cf-warning-bg);color:var(--cf-warning)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) .cf-contrib-review-note strong{color:var(--cf-warning)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) .cf-contrib-error{color:var(--cf-danger)}
body.cf-premium :is(.auth-dialog,.auth-admin-panel,.cf-admin-shell) .cf-contrib-meta .primary-small{background:var(--cf-gold);color:var(--cf-on-accent);border-color:var(--cf-gold)}

/* Paper remains a deliberate reading surface inside the common dark shell. */
body.cf-premium .legal-main{--legal-navy:#243847;--legal-green:#355f50;--legal-gold:#9b7836;--legal-ink:#263640;--legal-muted:#596770;--legal-border:#d7dad4;--legal-bg:var(--cf-paper);max-width:960px;background:var(--cf-paper);color:var(--legal-ink);border:1px solid #b3b7b04d;border-radius:12px;padding:36px 40px;margin:32px auto 48px;color-scheme:light;box-shadow:0 14px 40px #0002}
body.cf-premium .legal-main input,body.cf-premium .legal-main select,body.cf-premium .legal-main textarea{color-scheme:light}
body.cf-premium .legal-main nav,body.cf-premium .legal-callout{background:#e5e8e0}
body.cf-premium .legal-main a{color:#315f54}
body.cf-premium .legal-hero h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(30px,4vw,44px)}
body.cf-premium .public-shell{display:flex;flex-direction:column;min-height:100dvh;padding-top:0;padding-bottom:0}
body.cf-premium .public-shell>[data-cf-shared-footer]{margin-top:auto}
body.cf-premium .public-header-shell{padding-bottom:0}
body.cf-premium .editorial{padding-top:28px}
body.cf-premium .editorial-card{background:var(--cf-surface);border:1px solid var(--cf-border);border-radius:12px;box-shadow:none}
body.cf-premium .editorial-card :is(h2,h3){color:var(--cf-text);font-weight:600}
body.cf-premium .editorial-card p{color:var(--cf-muted)}
body.cf-premium .editorial a{color:var(--cf-blue)}
body.cf-premium .editorial .eyebrow{color:var(--cf-gold)}
body.cf-premium .editorial-hero h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-.7px;font-size:clamp(30px,4vw,44px);color:var(--cf-text)}
body.cf-premium .editorial-hero .lead{font-size:14px;line-height:1.65;color:var(--cf-muted)}
body.cf-premium :is(.editorial-hero,.pricing-hero){background-image:linear-gradient(100deg,#101923f2,#101923de),url('art/botanical-night.png');background-position:center;background-size:cover;border-radius:12px;padding:24px}
body.cf-premium .cf-page{background:var(--cf-bg)}
body.cf-premium .cf-main{--paper:var(--cf-surface);--wash:var(--cf-bg);--stone:var(--cf-surface-raised);--cf-index-ink:var(--cf-text);--cf-index-muted:var(--cf-muted);--cf-index-line:var(--cf-border);--cf-index-soft:var(--cf-surface-raised);--cf-index-green:#315b4d}
body.cf-premium .cf-main :is(.cf-card,.cf-info-card,.cf-feature-card,.cf-principle-copy-item,.cf-data,.cf-chart,.cf-mini-chart,.cf-flow-step,.cf-reco,.cf-hub-card,.cf-catalogue-content,.cf-index-toolbar,.cf-index-state,.cf-period,.cf-hero-tags span){background:var(--cf-surface);color:var(--cf-text);border-color:var(--cf-border);border-radius:12px;box-shadow:none}
body.cf-premium .cf-main :is(.cf-info-card,.cf-principle-copy-item,.cf-card,.cf-feature-card,.cf-hub-card) p{color:var(--cf-muted)}
body.cf-premium .cf-main :is(.cf-info-card strong,.cf-feature-card h2,.cf-hub-card h2,.cf-reco i){color:var(--cf-text)}
body.cf-premium .cf-main :is(.cf-chip,.cf-badge,.cf-production-badge,.cf-evidence-item,.cf-callout){background:var(--cf-surface-raised);color:var(--cf-muted);border-color:var(--cf-border)}
body.cf-premium .cf-main :is(.cf-plant-list a,.cf-plant-index a,.cf-reco){color:var(--cf-sage)}
body.cf-premium .cf-main .cf-plant-list a:hover{background:var(--cf-surface-raised);color:var(--cf-gold)!important}
body.cf-premium .cf-main th{background:var(--cf-surface-raised);color:var(--cf-muted)}
body.cf-premium .cf-hero h1{font-family:Georgia,serif;font-size:clamp(30px,4.3vw,54px);font-weight:400;line-height:1.12;letter-spacing:-1px}
body.cf-premium .cf-hero{padding-top:12px;padding-bottom:36px}
body.cf-premium .cf-onboarding-card,body.cf-premium .cf-onboarding-microtip{background:var(--cf-surface);color:var(--cf-text);border-color:var(--cf-border);border-radius:12px}
body.cf-premium .cf-onboarding-card::before{background:var(--cf-surface);border-color:var(--cf-border)}
body.cf-premium :is(.cf-onboarding-card,.cf-onboarding-microtip) :is(h2,strong){color:var(--cf-text);font-weight:600}
body.cf-premium :is(.cf-onboarding-card,.cf-onboarding-microtip) :is(p,ul){color:var(--cf-muted);font-weight:450}
body.cf-premium .cf-onboarding-microtip button{color:var(--cf-blue);font-weight:500}
body.cf-premium :is(.cf-onboarding-kicker,.cf-onboarding-count){color:var(--cf-gold);background:transparent;font-weight:500}
body.cf-premium .cf-onboarding-note{background:var(--cf-surface-raised);color:var(--cf-muted)!important;border-color:var(--cf-border)}
body.cf-premium .cf-onboarding-actions{border-color:var(--cf-border)}
body.cf-premium .cf-onboarding-btn{background:var(--cf-surface-raised);color:var(--cf-text);border-color:var(--cf-border);border-radius:8px;font-weight:500}
body.cf-premium .cf-onboarding-btn.primary{background:var(--cf-gold);color:#18212a;border-color:var(--cf-gold)}
body.cf-premium .cf-onboarding-close{font-size:0;background:var(--cf-surface-raised) url('icons/premium/close.png') center/18px no-repeat;border:1px solid var(--cf-border);border-radius:8px}

@media(min-width:1700px){.cf-shell-header,.cf-shell-footer{padding-left:40px;padding-right:40px}}
@media(max-width:1080px){.cf-shell-header{gap:14px;padding:0 16px}.cf-shell-spaces{gap:3px}.cf-shell-spaces>a{padding:0 8px}.cf-shell-actions{gap:2px}.cf-shell-actions>a,.cf-shell-actions summary{padding:0 8px}.cf-shell-brand>span{font-size:19px}}
@media(max-width:900px){
  .cf-shell-header{gap:18px;padding:0 16px}.cf-shell-spaces{margin-left:auto;margin-right:auto}.cf-shell-toggle{display:flex;margin-left:0;flex-shrink:0}
  .cf-shell-actions{display:none;position:absolute;right:12px;top:calc(100% + 7px);width:250px;max-width:calc(100vw - 24px);align-items:stretch;flex-direction:column;padding:8px;margin:0;border:1px solid var(--cf-border);border-radius:10px;box-shadow:var(--cf-shadow);background:var(--cf-surface)}
  .cf-shell-mobile-open .cf-shell-actions{display:flex}
  .cf-shell-actions>a,.cf-shell-actions summary{justify-content:flex-start;min-height:39px}
  .cf-shell-actions .cf-shell-account>summary{background:transparent;border-color:transparent}
  .cf-shell-menu-panel{position:static;box-shadow:none;max-width:none;min-width:0;border:0;border-top:1px solid var(--cf-border);border-radius:0;margin:4px 0;padding:5px 0 5px 10px;background:transparent}
  .cf-shell-language .cf-shell-menu-panel{min-width:0}
  .cf-shell-footer{padding:4px 16px;gap:4px 16px;flex-wrap:wrap}.cf-shell-footer nav{gap:10px}
}
@media(max-width:620px){
  .cf-shell-header{gap:8px;padding:0 12px}.cf-shell-brand>span{display:none}.cf-shell-spaces{gap:2px}.cf-shell-spaces>a{padding:0 8px;font-size:12px}.cf-shell-spaces .cf-icon{display:none}
  .cf-shell-brand>img{width:32px;height:32px}.cf-shell-actions .cf-icon{display:block}
  body.cf-premium .legal-main{margin:18px 12px 28px;padding:24px 20px}
  .cf-shell-footer{font-size:9.5px}.cf-shell-footer nav{gap:4px 8px}
}
@media(prefers-reduced-motion:reduce){body.cf-premium *,body.cf-premium *:before,body.cf-premium *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.cf-shell-header,.cf-shell-footer,[data-cf-shared-header],[data-cf-shared-footer]{display:none!important}body.cf-premium{background:#fff;color:#17232f}body.cf-premium .legal-main{margin:0;padding:0;border:0;box-shadow:none}}

/* Marque mieux lisible dans tous les espaces ; ne change pas la hauteur de navigation. */
.cf-shell-brand{gap:9px;padding:3px 11px 3px 5px;border:1px solid #7f987647;border-radius:11px;background:linear-gradient(112deg,#365348 0%,#223c41 42%,#152630 100%);box-shadow:inset 0 1px 0 #c0d9b41a,0 1px 9px #050d142b}
.cf-shell-brand>img{width:39px;height:39px;object-fit:contain;filter:brightness(1.18) saturate(1.24) contrast(1.07) drop-shadow(0 1px 4px #d1ce7944)}
.cf-shell-brand>span{font-weight:650;letter-spacing:-.55px;text-shadow:0 1px 1px #101923a6}
.cf-shell-clima{color:#f3f7f3}.cf-shell-flora{color:#e6c879}
@media(max-width:760px){.cf-shell-brand{padding:3px 5px;border-radius:9px}.cf-shell-brand>img{width:33px;height:33px}}
