.fm-security{--fm-ink:#173c30;--fm-soft:#64736b;--fm-line:#dbe1d9;--fm-paper:#f5f5ef;--fm-leaf:#c8df70;margin:0;background:var(--fm-paper);color:var(--fm-ink);font:15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.fm-security *{box-sizing:border-box}.fm-security [hidden],.fm-account-bar [hidden]{display:none!important}.fm-security a{color:inherit;text-underline-offset:3px}.fm-security button,.fm-security input,.fm-security textarea{font:inherit}.fm-security button{cursor:pointer}.fm-security :focus-visible,.fm-account-bar :focus-visible{outline:3px solid #93b62e;outline-offset:4px}.fm-security button:disabled{opacity:.55;cursor:wait}.fm-security h1,.fm-security h2,.fm-security h3,.fm-security p{margin-top:0}.fm-security h1{font-size:clamp(35px,4vw,57px);line-height:1.12;letter-spacing:-2px;font-weight:540}.fm-security h2{font-size:26px;line-height:1.2;letter-spacing:-.8px;font-weight:550}.fm-security h3{font-size:18px;line-height:1.3;margin-bottom:7px}.fm-skip{position:fixed;left:20px;top:-60px;background:#fff;padding:12px;z-index:9999}.fm-skip:focus{top:10px}.fm-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 4vw;border-bottom:1px solid var(--fm-line)}.fm-brand{display:flex;align-items:center;gap:13px;font-size:21px;letter-spacing:-.8px;font-weight:600;text-decoration:none}.fm-brand img{object-fit:contain}.fm-domain{font-weight:400;color:var(--fm-soft)}.fm-header-note{font-size:10px;letter-spacing:2.4px;font-weight:650}.fm-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:26px 4vw;color:var(--fm-soft);font-size:11px;border-top:1px solid var(--fm-line)}.fm-footer nav{display:flex;flex-wrap:wrap;gap:23px}.fm-footer a{text-decoration:none}.fm-footer a:hover{text-decoration:underline}.fm-access{display:grid;grid-template-columns:1fr 1fr;max-width:1500px;min-height:calc(100vh - 155px);margin:auto}.fm-intro{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:65px 6vw 40px;background:#193f32;color:#eef2df}.fm-eyebrow{display:block;font-size:10px;letter-spacing:2px;font-weight:650;margin-bottom:25px}.fm-intro h1{font-size:clamp(54px,6vw,90px);line-height:1.04;font-weight:470;letter-spacing:-4px;position:relative;z-index:1;margin:35px 0 30px}.fm-intro h1 em{font-style:normal;color:var(--fm-leaf)}.fm-intro>p{max-width:340px;font-size:17px;line-height:1.7;color:#cdd8ca;position:relative;z-index:1}.fm-intro-bottom{display:flex;gap:22px;flex-wrap:wrap;font-size:11px;letter-spacing:.6px;margin-top:auto;padding-top:80px;position:relative;z-index:1}.fm-contours{position:absolute;width:650px;height:650px;bottom:-430px;left:20%;border-radius:45%;border:1px solid #91a28342;box-shadow:0 0 0 25px #193f32,0 0 0 26px #91a28330,0 0 0 51px #193f32,0 0 0 52px #91a28325,0 0 0 78px #193f32,0 0 0 79px #91a28320,0 0 0 109px #193f32,0 0 0 110px #91a28315;transform:rotate(-28deg)}.fm-access-right{padding:50px 5vw 30px;align-self:center}.fm-access-card{max-width:470px;margin:auto;background:#fff;padding:30px 36px;border:1px solid #e1e5da;border-radius:14px;box-shadow:0 14px 50px #183b2c09}.fm-tabs{display:flex;gap:23px;border-bottom:1px solid var(--fm-line);margin-bottom:29px}.fm-tabs button{border:0;background:none;padding:0 0 14px;color:var(--fm-soft);font-size:13px;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}.fm-tabs button[aria-selected=true]{color:var(--fm-ink);border-bottom-color:var(--fm-ink)}.fm-muted{font-size:13px;color:var(--fm-soft);margin-bottom:22px}.fm-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;margin-bottom:16px}.fm-field input,.fm-field textarea{width:100%;border:1px solid #cfd7ce;background:#fcfdf9;border-radius:6px;padding:11px 12px;color:#153b2f;font-size:14px;min-width:0}.fm-field textarea{resize:vertical}.fm-field input:focus,.fm-field textarea:focus{border-color:#52713e}.fm-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fm-primary,.fm-secondary{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:43px;padding:10px 18px;border:1px solid transparent;border-radius:6px;text-decoration:none!important;font-size:12px;font-weight:650;line-height:1.45}.fm-primary{background:#214c38;color:#fff!important}.fm-primary:hover{background:#143b29}.fm-secondary{background:transparent;border-color:#bfcbbc;color:#234832}.fm-secondary:hover{background:#eff3e9}.fm-security form>.fm-primary,.fm-platform{width:100%}.fm-separator{display:flex;align-items:center;gap:12px;color:#849082;font-size:11px;margin:19px 0}.fm-separator:before,.fm-separator:after{content:'';flex:1;height:1px;background:var(--fm-line)}.fm-small{font-size:11px;color:var(--fm-soft);line-height:1.65;margin:12px 0 0}.fm-recovery{font-size:12px;margin-top:15px;color:#52684e}.fm-recovery summary{cursor:pointer}.fm-recovery p{margin:12px 0}.fm-cookie-note{max-width:470px;margin:22px auto 0;padding:0 10px;color:var(--fm-soft);font-size:11px}.fm-cookie-note strong{color:#52684e;font-weight:650}.fm-cookie-note p{margin:4px 0 0}.fm-check{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.6;margin:15px 0 20px}.fm-check input{margin-top:3px;accent-color:#214c38;width:16px;height:16px;flex-shrink:0}.fm-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.fm-error{background:#fcf0ed;color:#8a3425;border:1px solid #f1d3cb;border-radius:6px;padding:12px;font-size:12px;margin-top:15px}.fm-success{background:#edf4e6;padding:25px;border-radius:8px}.fm-success>span{display:block;font-size:30px}.fm-success p{font-size:13px}.fm-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#163b2f;color:white;padding:15px 22px;border-radius:8px;box-shadow:0 5px 25px #0002;font-size:13px;max-width:90vw;z-index:10000}.fm-page,.fm-admin{max-width:1350px;margin:0 auto;padding:50px 4vw 70px;min-height:75vh}.fm-page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:30px}.fm-page-heading h1{margin:0 0 12px}.fm-page-heading p{color:var(--fm-soft);font-size:13px;margin:0}.fm-page-heading .fm-eyebrow{margin-bottom:13px}.fm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.fm-panel{background:#fff;border:1px solid var(--fm-line);border-radius:10px;padding:28px}.fm-panel>p,.fm-section-heading p{font-size:12px;color:var(--fm-soft);margin-bottom:0}.fm-account-panel{max-width:550px}.fm-account-panel>p{margin-bottom:25px}.fm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:30px 0}.fm-stats article{padding:23px;background:#eaf0e2;border:1px solid #d9e2ce;border-radius:9px}.fm-stats article span{font-size:11px;color:var(--fm-soft)}.fm-stats article strong{display:block;font-size:40px;line-height:1.1;letter-spacing:-1px;font-weight:500;margin-top:16px}.fm-admin-tabs{display:flex;gap:25px;margin:30px 0 0;border-bottom:1px solid var(--fm-line);overflow:auto}.fm-admin-tabs button{padding:12px 0;border:0;background:none;white-space:nowrap;color:var(--fm-soft);font-size:13px;border-bottom:2px solid transparent}.fm-admin-tabs button.is-active{color:var(--fm-ink);border-bottom-color:var(--fm-ink);font-weight:650}.fm-admin-tabs span:not(:empty){background:#cce388;padding:2px 7px;border-radius:9px;margin-left:6px}.fm-admin-tabs+.fm-panel,.fm-admin [data-panel]{margin-top:22px}.fm-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}.fm-section-heading h2{margin-bottom:7px}.fm-request-card{padding:24px 0;border-top:1px solid var(--fm-line)}.fm-request-card .fm-section-heading{margin-bottom:12px}.fm-reason{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:900px}.fm-request-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}.fm-request-bottom small{font-size:11px;color:var(--fm-soft)}.fm-badge{display:inline-block;white-space:nowrap;background:#f1f1ec;color:#666b62;border-radius:20px;padding:4px 11px;font-size:10px;font-weight:650}.fm-pending,.fm-invited{background:#faf0d2;color:#78611d}.fm-active,.fm-approved{background:#e4efdb;color:#396132}.fm-suspended,.fm-rejected{background:#fae6e0;color:#9a513e}.fm-empty{text-align:center;padding:55px 20px;color:#69745e;font-size:13px}.fm-empty>span{font-size:27px;display:block;margin-bottom:12px;color:#a8bd78}.fm-history{border-top:1px solid var(--fm-line);padding-top:20px;font-size:12px}.fm-history summary{cursor:pointer;margin-bottom:15px}.fm-history-row{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:12px 0;border-bottom:1px solid #eef1e8}.fm-history-row small{margin-left:auto}.fm-search{max-width:350px;margin:25px 0}.fm-table-scroll{overflow:auto}.fm-security table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.fm-security th{font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:650;color:var(--fm-soft);border-bottom:1px solid var(--fm-line);padding:12px 12px 12px 0}.fm-security td{border-bottom:1px solid #e9ede3;padding:15px 15px 15px 0;vertical-align:top}.fm-security td small{display:block;color:var(--fm-soft);font-size:11px;margin-top:4px}.fm-row-actions{display:flex;gap:8px;flex-wrap:wrap;max-width:290px}.fm-row-actions button{border:1px solid #d8e1d1;background:#fff;border-radius:4px;font-size:10px;padding:5px 8px;color:#395530}.fm-danger{color:#a04735!important}.fm-dialog{border:1px solid #cad4c1;border-radius:12px;padding:32px;max-width:550px;width:calc(100% - 30px);max-height:90vh;overflow:auto;color:#173c30;background:#fff;font:14px/1.65 system-ui}.fm-dialog::backdrop{background:#153b2fb0;backdrop-filter:blur(4px)}.fm-dialog h2{font-size:25px}.fm-dialog #fm-dialog-close{margin-top:20px}.fm-chart{margin-top:25px}.fm-chart-row{display:grid;grid-template-columns:95px 1fr 30px;gap:15px;align-items:center;margin:10px 0;font-size:11px}.fm-chart meter{height:17px;width:100%;accent-color:#527d40}.fm-legal{max-width:850px;padding:55px 25px 80px;margin:auto;min-height:75vh}.fm-legal .fm-lead{font-size:19px;color:var(--fm-soft);margin-bottom:40px}.fm-legal h2{font-size:21px;margin-top:33px}.fm-legal p,.fm-legal li{font-size:14px;line-height:1.85}.fm-legal code{font-size:11px;overflow-wrap:anywhere}.fm-account-bar{display:flex;align-items:center;justify-content:flex-end;gap:18px;background:#173c30;color:#eef3df;padding:5px 18px;font:11px/1.4 system-ui;position:relative;z-index:1001;min-height:32px}.fm-account-bar a{color:inherit;text-decoration:none}.fm-account-bar button{border:1px solid #ffffff50;color:inherit;background:none;border-radius:4px;padding:3px 9px;font:inherit;cursor:pointer}
@media(max-width:900px){.fm-header-note{display:none}.fm-access{grid-template-columns:.85fr 1fr}.fm-intro{padding:45px 35px}.fm-intro h1{font-size:60px}.fm-access-right{padding:30px 25px}.fm-access-card{padding:25px}.fm-page-heading{align-items:flex-start;flex-direction:column}.fm-stats{grid-template-columns:repeat(2,1fr)}.fm-footer{flex-direction:column;align-items:flex-start}}
@media(max-width:600px){.fm-header{padding:17px 22px}.fm-brand{font-size:19px}.fm-access{display:block}.fm-intro{padding:30px 25px 28px}.fm-intro .fm-eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:15px}.fm-intro h1{font-size:43px;letter-spacing:-2px;margin:5px 0 15px;line-height:1.1}.fm-intro h1 br{display:none}.fm-intro h1 br:after{content:' '}.fm-intro h1 em{display:block}.fm-intro>p{font-size:13px;max-width:330px;margin-bottom:0}.fm-intro-bottom{display:none}.fm-access-right{padding:22px 18px}.fm-access-card{padding:24px}.fm-field-row{gap:10px}.fm-footer{padding:23px}.fm-footer nav{gap:15px}.fm-page,.fm-admin{padding:30px 18px}.fm-panel{padding:20px}.fm-stats{gap:9px}.fm-stats article{padding:16px}.fm-stats article span{font-size:10px}.fm-stats article strong{font-size:33px}.fm-admin-tabs{gap:22px}.fm-section-heading,.fm-request-bottom{align-items:flex-start;flex-direction:column;gap:12px}.fm-request-bottom .fm-actions{width:100%}.fm-request-bottom button{flex:1;font-size:11px;padding:9px 10px}.fm-dialog{padding:23px}.fm-legal{padding-top:35px}.fm-legal h1{font-size:35px}.fm-legal table{font-size:11px}.fm-account-bar{font-size:10px;gap:15px}.fm-toast{width:calc(100% - 30px);bottom:15px}}
@media(prefers-reduced-motion:reduce){.fm-security *{scroll-behavior:auto!important}}
/* Access controls keep password input usable on mobile and with a keyboard. */
.fm-password-wrap{position:relative;display:flex;align-items:center}.fm-password-wrap input{padding-right:90px}.fm-password-toggle{position:absolute;right:5px;top:5px;bottom:5px;min-width:72px;padding:5px 9px;background:#edf2e7;color:#234832;border:0;border-radius:4px;font-size:11px!important;font-weight:650}.fm-password-toggle:hover{background:#e1ead8}.fm-login-hint{font-size:11px;color:#64736b;margin:-5px 0 20px}.fm-caps-lock{font-size:11px;font-weight:500;color:#8a531a}.fm-session-notice{background:#edf3e5;border:1px solid #cadabb;border-radius:6px;padding:11px 13px;font-size:12px}.fm-account-button{position:relative}.fm-account-button[data-authenticated=true]:after{content:'';position:absolute;right:4px;bottom:4px;width:7px;height:7px;border-radius:50%;background:#6e9d4a;box-shadow:0 0 0 2px var(--fm-bg,#fff)}.fm-account-menu .fm-account-status{display:block;font-size:11px;overflow-wrap:anywhere;margin:0 0 10px;opacity:.8}.fm-account-menu strong,.fm-account-menu p{overflow-wrap:anywhere}
@media(max-width:600px){.fm-security .fm-field input,.fm-security .fm-field textarea{font-size:16px}}
/* Keep daily administration focused on requests and people. */
.fm-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:17px 21px;background:#eaf0e2;border:1px solid #d9e2ce;border-radius:9px;margin:22px 0 8px}.fm-summary article{display:flex;align-items:baseline;gap:10px;min-width:0}.fm-summary strong{font-size:26px;font-weight:550;line-height:1.2}.fm-summary span{font-size:12px;color:var(--fm-soft)}.fm-summary p{margin:0;font-size:12px}.fm-admin .fm-page-heading{margin-bottom:20px}.fm-admin-tabs{margin-top:22px}.fm-event-history{margin-top:30px;padding-top:22px;border-top:1px solid var(--fm-line)}.fm-event-history summary{cursor:pointer;font-size:14px;font-weight:650}.fm-event-history>p{font-size:12px;color:var(--fm-soft);margin:14px 0}.fm-credential-result{padding:16px;border-radius:8px;background:#edf4e6}.fm-credential-result .fm-row-actions{max-width:none}.fm-credential-secret{font-family:ui-monospace,monospace!important}.fm-page-heading h1{overflow-wrap:anywhere}.fm-success .fm-primary{margin-top:5px}
@media(max-width:600px){.fm-access{display:flex;flex-direction:column}.fm-access-right{order:0;width:100%;padding:22px 18px}.fm-intro{order:1;padding:24px 25px}.fm-intro h1{font-size:33px;letter-spacing:-1.5px}.fm-intro>p{font-size:12px}.fm-summary{gap:8px;padding:14px 12px}.fm-summary article{flex-direction:column;gap:4px}.fm-summary span{font-size:10px;line-height:1.35}.fm-summary strong{font-size:25px}.fm-admin .fm-actions{gap:7px}.fm-admin .fm-actions .fm-secondary{padding:9px 12px}}

.fm-legal .fm-table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--fm-border-decorative);border-radius:8px;padding:0 12px}
.fm-legal .fm-table-wrap table{min-width:760px;table-layout:auto}
.fm-legal .fm-table-wrap td:first-child{min-width:180px;overflow-wrap:anywhere}
/* Shared V3 tokens. This existing public CSS is used by the gate and private applications. */
/* CANEPA ForestManagement.ch — specifica operativa V3, 29-10-2026.
   Valori per la futura implementazione. Adattare lo scope al progetto esistente.
   I colori accent sono campionati dai PNG; strong/soft/hover sono varianti UI.
   Non usare questi token per ricolorare i loghi o i dati cartografici.
   Famiglia tipografica: mantenere quella reale, da identificare nel progetto. */
:root {
  --fm-canvas: #F5F6F0;
  --fm-surface: #FFFFFF;
  --fm-logo-plate: #F4F5F0;
  --fm-accent-border-decorative: #DCE3D7;
  --fm-text: #19372B;
  --fm-text-muted: #516257;
  --fm-primary: #173F31;
  --fm-primary-hover: #112C22;
  --fm-on-primary: #FFFFFF;
  --fm-footer: #112C22;
  --fm-border-decorative: #DCE3D7;
  --fm-border-control: #7B887E;
  --fm-focus: #173F31;
  --fm-success: #24643F;
  --fm-warning: #8A5A14;
  --fm-danger: #A12331;
  --fm-info: #245A82;
  --fm-content-max: 1200px;
  --fm-reading-max: 760px;
  --fm-auth-max: 440px;
  --fm-header-height: 96px;
  --fm-header-mobile-height: 72px;
  --fm-button-height: 44px;
  --fm-button-touch-height: 48px;
  --fm-radius-control: 8px;
  --fm-radius-card: 12px;
  --fm-radius-modal: 16px;
  --fm-space-1: 4px;
  --fm-space-2: 8px;
  --fm-space-3: 12px;
  --fm-space-4: 16px;
  --fm-space-6: 24px;
  --fm-space-8: 32px;
  --fm-space-12: 48px;
  --fm-space-18: 72px;
  --fm-accent: #173F31;
  --fm-accent-strong: #173F31;
  --fm-accent-hover: #112C22;
  --fm-accent-soft: #EAF0E6;
  --fm-on-accent-strong: #FFFFFF;
}

[data-fm-product="gis"] {
  --fm-accent: #DFA128;
  --fm-accent-strong: #845F18;
  --fm-accent-hover: #745415;
  --fm-accent-soft: #FCF7EC;
  --fm-accent-border-decorative: #F1D59E;
  --fm-on-accent-strong: #FFFFFF;
}

[data-fm-product="nais"] {
  --fm-accent: #B34032;
  --fm-accent-strong: #B34032;
  --fm-accent-hover: #9E382C;
  --fm-accent-soft: #F8EEED;
  --fm-accent-border-decorative: #DDA9A3;
  --fm-on-accent-strong: #FFFFFF;
}

[data-fm-product="hub"] {
  --fm-accent: #C09B6B;
  --fm-accent-strong: #7B6344;
  --fm-accent-hover: #6C573C;
  --fm-accent-soft: #F9F6F2;
  --fm-accent-border-decorative: #E3D2BC;
  --fm-on-accent-strong: #FFFFFF;
}

[data-fm-product="field"] {
  --fm-accent: #E47635;
  --fm-accent-strong: #9D5125;
  --fm-accent-hover: #8A4721;
  --fm-accent-soft: #FDF3ED;
  --fm-accent-border-decorative: #F3C1A4;
  --fm-on-accent-strong: #FFFFFF;
}

[data-fm-product="road"] {
  --fm-accent: #E0B254;
  --fm-accent-strong: #7B622E;
  --fm-accent-hover: #6C5628;
  --fm-accent-soft: #FCF8F0;
  --fm-accent-border-decorative: #F1DCB2;
  --fm-on-accent-strong: #FFFFFF;
}

/* Tema scuro proposto; deve essere collaudato, non dedotto dalle immagini. */
html[data-theme="dark"] {
  --fm-canvas: #101C17;
  --fm-surface: #172920;
  --fm-surface-raised: #20382B;
  --fm-text: #EEF2E8;
  --fm-text-muted: #BECABE;
  --fm-border-decorative: #3C5143;
  --fm-accent-border-decorative: #3C5143;
  --fm-border-control: #819A86;
  --fm-primary: #C5DA80;
  --fm-primary-hover: #D5E5A8;
  --fm-on-primary: #101C17;
  --fm-focus: #C5DA80;
  --fm-accent: #C5DA80;
  --fm-accent-strong: #C5DA80;
  --fm-accent-hover: #D5E5A8;
  --fm-accent-soft: #20382B;
  --fm-on-accent-strong: #101C17;
  --fm-success: #8ED0A6;
  --fm-warning: #E7BF70;
  --fm-danger: #FDA4AF;
  --fm-info: #9AC9EF;
}

html[data-theme="dark"][data-fm-product="gis"],
html[data-theme="dark"] [data-fm-product="gis"] {
  --fm-accent: #DFA128;
  --fm-accent-strong: #DFA128;
  --fm-accent-hover: #E2AA3E;
  --fm-accent-soft: #292C19;
  --fm-on-accent-strong: #101C17;
}

html[data-theme="dark"][data-fm-product="nais"],
html[data-theme="dark"] [data-fm-product="nais"] {
  --fm-accent: #B34032;
  --fm-accent-strong: #D69890;
  --fm-accent-hover: #DAA29B;
  --fm-accent-soft: #24201A;
  --fm-on-accent-strong: #101C17;
}

html[data-theme="dark"][data-fm-product="hub"],
html[data-theme="dark"] [data-fm-product="hub"] {
  --fm-accent: #C09B6B;
  --fm-accent-strong: #C4A174;
  --fm-accent-hover: #CAAA82;
  --fm-accent-soft: #252B21;
  --fm-on-accent-strong: #101C17;
}

html[data-theme="dark"][data-fm-product="field"],
html[data-theme="dark"] [data-fm-product="field"] {
  --fm-accent: #E47635;
  --fm-accent-strong: #E9915D;
  --fm-accent-hover: #EB9C6D;
  --fm-accent-soft: #29271B;
  --fm-on-accent-strong: #101C17;
}

html[data-theme="dark"][data-fm-product="road"],
html[data-theme="dark"] [data-fm-product="road"] {
  --fm-accent: #E0B254;
  --fm-accent-strong: #E0B254;
  --fm-accent-hover: #E3BA65;
  --fm-accent-soft: #292E1E;
  --fm-on-accent-strong: #101C17;
}

/* Nei contenitori prodotto scuri il bordo decorativo non deve ereditare
   la tinta molto chiara della variante light. Adattare i selettori
   al meccanismo di tema effettivo, senza introdurre un secondo toggle. */
html[data-theme="dark"][data-fm-product],
html[data-theme="dark"] [data-fm-product] {
  --fm-accent-border-decorative: #3C5143;
}

.fm-security{--fm-ink:var(--fm-text);--fm-soft:var(--fm-text-muted);--fm-line:var(--fm-border-decorative);--fm-paper:var(--fm-canvas);--fm-leaf:var(--fm-primary);font:16px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--fm-text);background:var(--fm-canvas)}.fm-security .fm-header{height:96px;padding:12px max(24px,calc((100vw - 1200px)/2));border-color:var(--fm-border-decorative)}.fm-security .fm-brand img{display:block;width:64px;height:64px;object-fit:contain;background:var(--fm-logo-plate);border-radius:4px;filter:none}.fm-security h1{font-size:48px;line-height:1.15;font-weight:650;letter-spacing:-1px;color:var(--fm-text)}.fm-security h2{font-size:28px;line-height:1.2;font-weight:650;letter-spacing:-.4px}.fm-security h3{font-size:22px;line-height:1.3}.fm-security :focus-visible{outline:3px solid var(--fm-focus);outline-offset:3px}.fm-security .fm-access{max-width:1200px;margin:32px auto 48px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-radius:12px;overflow:hidden;border:1px solid var(--fm-border-decorative)}.fm-security .fm-intro{background:#173f31;color:#f5f6f0;padding:48px 40px}.fm-security .fm-intro h1{font-size:48px;line-height:1.1;color:#f5f6f0;letter-spacing:-1px;overflow-wrap:break-word}.fm-security .fm-intro h1 br{display:block}.fm-security .fm-intro>p{font-size:18px;line-height:1.6;color:#f5f6f0;max-width:none}.fm-security .fm-eyebrow{font-size:14px;line-height:1.45;letter-spacing:.07em;margin-bottom:20px}.fm-security .fm-intro .fm-eyebrow{color:#f5f6f0}.fm-security .fm-contours{opacity:.12}.fm-security .fm-access-right{padding:32px 24px;background:var(--fm-canvas)}.fm-security .fm-access-card{max-width:440px;margin:auto;padding:24px;background:var(--fm-surface);border:1px solid var(--fm-border-decorative);border-radius:12px;box-shadow:0 4px 16px #112c220a}.fm-security .fm-access-card h2{font-size:28px}.fm-security .fm-muted,.fm-security .fm-panel>p,.fm-security .fm-section-heading p{font-size:16px;line-height:1.6;color:var(--fm-text-muted)}.fm-security .fm-tabs{gap:16px;margin-bottom:24px}.fm-security .fm-tabs button{min-height:48px;font-size:14px;padding:10px 4px;color:var(--fm-text-muted);border-bottom-color:transparent}.fm-security .fm-tabs button[aria-selected=true]{color:var(--fm-primary);border-bottom-color:var(--fm-primary);font-weight:650}.fm-security .fm-field{font-size:14px;line-height:1.45;color:var(--fm-text);gap:8px;margin-bottom:20px}.fm-security .fm-field :is(input,textarea,select){font-size:16px;line-height:1.5;min-height:48px;padding:10px 12px;border:1px solid var(--fm-border-control);border-radius:8px;background:var(--fm-surface);color:var(--fm-text)}.fm-security .fm-password-wrap input{padding-right:96px}.fm-security .fm-password-toggle{min-height:40px;color:var(--fm-text);background:var(--fm-accent-soft);font-size:14px!important;border-radius:6px;min-width:80px}.fm-security .fm-primary,.fm-security .fm-secondary{font-size:14px;line-height:1.45;min-height:44px;padding:11px 16px;border-radius:8px;box-shadow:none}.fm-security .fm-primary{background:var(--fm-primary);color:var(--fm-on-primary)!important}.fm-security .fm-primary:hover{background:var(--fm-primary-hover)}.fm-security .fm-secondary{color:var(--fm-text);border-color:var(--fm-border-control);background:var(--fm-surface)}.fm-security .fm-secondary:hover{background:var(--fm-accent-soft)}.fm-security .fm-access-card form>.fm-primary{min-height:48px}.fm-security .fm-small,.fm-security .fm-recovery,.fm-security .fm-cookie-note,.fm-security .fm-check,.fm-security .fm-caps-lock{font-size:14px;line-height:1.5;color:var(--fm-text-muted)}.fm-security .fm-cookie-note{max-width:440px;padding:0;margin-top:24px}.fm-security .fm-cookie-note strong{color:var(--fm-text)}.fm-security .fm-check{gap:12px;align-items:flex-start}.fm-security .fm-check input{width:20px;height:20px;margin:1px 0;accent-color:var(--fm-primary)}.fm-security .fm-error{font-size:14px;line-height:1.5;color:var(--fm-danger);border:1px solid var(--fm-danger);background:var(--fm-surface);border-radius:8px}.fm-security .fm-success{padding:24px;border:1px solid var(--fm-success);background:var(--fm-surface);border-radius:12px}.fm-security .fm-success>span{color:var(--fm-success)}.fm-security .fm-success p{font-size:16px;line-height:1.6}.fm-security #panel-request.fm-request-complete>h2,.fm-security #panel-request.fm-request-complete>p{display:none}.fm-security .fm-page,.fm-security .fm-admin{max-width:1248px;padding:48px 24px 72px}.fm-security .fm-page-heading h1{font-size:36px;line-height:1.2;margin-bottom:20px}.fm-security .fm-profile-name{font-size:24px;margin-bottom:12px}.fm-security .fm-page-heading p{font-size:16px;line-height:1.6;margin:4px 0;color:var(--fm-text-muted)}.fm-security .fm-panel{padding:24px;border:1px solid var(--fm-border-decorative);border-radius:12px;background:var(--fm-surface)}.fm-security .fm-account-panel{max-width:520px}.fm-security .fm-panel+.fm-small{max-width:760px}.fm-security .fm-summary{padding:20px 24px;background:var(--fm-accent-soft);border-color:var(--fm-border-decorative);border-radius:12px}.fm-security .fm-summary span{font-size:14px;color:var(--fm-text-muted)}.fm-security .fm-summary strong{font-size:28px;color:var(--fm-text)}.fm-security .fm-admin-tabs button{min-height:44px;padding:12px 8px;font-size:14px;color:var(--fm-text-muted)}.fm-security .fm-admin-tabs button.is-active{border-bottom:3px solid var(--fm-primary);color:var(--fm-text);font-weight:650}.fm-security .fm-admin-tabs span:not(:empty){color:var(--fm-text);background:var(--fm-accent-soft)}.fm-security .fm-stats{gap:24px}.fm-security .fm-stats article{padding:20px;border-radius:12px;background:var(--fm-accent-soft);border:1px solid var(--fm-border-decorative)}.fm-security .fm-stats article span{font-size:14px;line-height:1.45}.fm-security .fm-stats article strong{font-size:32px;color:var(--fm-text);margin-top:12px}.fm-security .fm-chart{max-height:380px;overflow:auto;padding-right:12px;scrollbar-width:thin}.fm-security .fm-chart-row{grid-template-columns:100px minmax(80px,1fr) 40px;min-height:28px;margin:6px 0;font-size:14px}.fm-security .fm-chart meter{accent-color:var(--fm-primary)}.fm-security table{font-size:14px;line-height:1.5}.fm-security th{font-size:14px;line-height:1.45;letter-spacing:0;text-transform:none;padding:12px 16px 12px 0}.fm-security td{min-height:48px;padding:16px 16px 16px 0;border-color:var(--fm-border-decorative)}.fm-security td small{font-size:14px;line-height:1.45}.fm-security .fm-row-actions button{font-size:14px;line-height:1.45;min-height:44px;padding:8px 12px;background:var(--fm-surface);color:var(--fm-text);border-color:var(--fm-border-control);border-radius:8px}.fm-security .fm-danger{color:var(--fm-danger)!important}.fm-security .fm-badge{font-size:14px;padding:5px 10px;border:1px solid currentColor;background:var(--fm-surface);line-height:1.45;white-space:normal}.fm-security .fm-active,.fm-security .fm-approved{color:var(--fm-success)}.fm-security .fm-pending,.fm-security .fm-invited{color:var(--fm-warning)}.fm-security .fm-suspended,.fm-security .fm-rejected{color:var(--fm-danger)}.fm-security .fm-badge:before{content:'•';margin-right:6px}.fm-security .fm-empty{font-size:16px;line-height:1.6;color:var(--fm-text-muted);padding:40px 20px}.fm-security .fm-dialog{background:var(--fm-surface);color:var(--fm-text);border-radius:16px;border-color:var(--fm-border-control);padding:24px;max-width:560px;font-size:16px}.fm-security .fm-credential-result{background:var(--fm-accent-soft);border:1px solid var(--fm-border-control)}.fm-security .fm-legal{max-width:808px;padding:48px 24px 72px}.fm-security .fm-legal h1{font-size:48px;line-height:1.15}.fm-security .fm-legal .fm-lead{font-size:18px;line-height:1.6}.fm-security .fm-legal p,.fm-security .fm-legal li{font-size:16px;line-height:1.6}.fm-security .fm-legal h2{font-size:28px;margin:32px 0 16px;scroll-margin-top:24px}.fm-security .fm-legal-index{padding:20px 24px;border:1px solid var(--fm-border-decorative);border-radius:12px;background:var(--fm-surface);margin:32px 0}.fm-security .fm-legal-index ol{padding-left:20px;margin:0}.fm-security .fm-legal-index a{display:inline-flex;align-items:center;min-height:44px}.fm-security .fm-footer{background:var(--fm-footer);color:#eef2e8;display:flex;align-items:center;gap:24px;padding:24px max(24px,calc((100vw - 1200px)/2));border:0;font-size:14px}.fm-security .fm-footer .fm-brand img{width:56px;height:56px}.fm-security .fm-footer nav{display:flex;flex-wrap:wrap;gap:16px;margin-left:auto}.fm-security .fm-footer a{min-height:44px;display:inline-flex;align-items:center}.fm-security .fm-event-history summary{min-height:44px;font-size:16px}.fm-security .fm-event-history>p{font-size:14px}.fm-security .fm-session-notice{font-size:14px;background:var(--fm-accent-soft);color:var(--fm-text);border-color:var(--fm-border-control)}
@media(max-width:900px){.fm-security .fm-access{margin:24px;grid-template-columns:1fr 1fr}.fm-security .fm-intro{padding:32px 24px}.fm-security .fm-intro h1{font-size:40px}.fm-security .fm-access-right{padding:24px 16px}.fm-security .fm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fm-security .fm-header{height:72px;padding:12px 16px}.fm-security .fm-header .fm-brand img{width:48px;height:48px}.fm-security .fm-access{margin:0;border:0;border-radius:0;display:flex;flex-direction:column}.fm-security .fm-intro{order:0;padding:24px 20px}.fm-security .fm-intro .fm-eyebrow{font-size:14px;line-height:1.45;letter-spacing:.04em}.fm-security .fm-intro h1{font-size:32px;letter-spacing:-.6px}.fm-security .fm-intro>p{font-size:16px;line-height:1.6}.fm-security .fm-access-right{order:1;padding:24px 16px}.fm-security .fm-access-card{padding:20px}.fm-security .fm-field-row{grid-template-columns:1fr}.fm-security .fm-page,.fm-security .fm-admin,.fm-security .fm-legal{padding:32px 16px 40px}.fm-security .fm-page-heading h1{font-size:32px}.fm-security .fm-page-heading{align-items:stretch;gap:20px}.fm-security .fm-actions{gap:8px}.fm-security .fm-actions>*{min-height:48px}.fm-security .fm-panel{padding:20px}.fm-security .fm-summary{padding:16px;gap:16px;grid-template-columns:1fr}.fm-security .fm-summary article{flex-direction:row;align-items:center}.fm-security .fm-summary span{font-size:14px}.fm-security .fm-stats{gap:12px}.fm-security .fm-stats article{padding:16px}.fm-security .fm-stats article span{font-size:14px}.fm-security .fm-legal h1{font-size:34px}.fm-security .fm-legal h2{font-size:26px}.fm-security .fm-footer{padding:24px 16px;gap:16px;flex-wrap:wrap}.fm-security .fm-footer nav{margin-left:0}.fm-security .fm-legal-index{padding:16px}.fm-security .fm-request-bottom .fm-actions{flex-direction:column;align-items:stretch}.fm-security .fm-request-bottom button{font-size:14px;min-height:48px}.fm-security .fm-chart{max-height:360px}.fm-security .fm-chart-row{grid-template-columns:86px minmax(90px,1fr) 30px;font-size:14px;gap:10px}.fm-security .fm-dialog{padding:20px}}
@media print{.fm-legal-index,.fm-skip{display:none}.fm-security{background:#fff;color:#111}}
/* SAMPLED BRAND COLORS */
/* Generated from the sampled original logo colors by build-brand-palette.mjs. */
:root{--brand-woodprice:#88BB4E;--brand-stand:#AE4FCC;--brand-gis:#DEA027;--brand-nais:#B54332;--brand-hub:#C09B6C;--brand-field:#E67835;--brand-road:#E1B254;}
[data-fm-product="woodprice"],html[data-theme="dark"][data-fm-product="woodprice"],html[data-theme="dark"] [data-fm-product="woodprice"]{--fm-accent:#88BB4E;--fm-accent-strong:#88BB4E;--fm-accent-hover:#88BB4E;--fm-on-accent-strong:#053421}
.name-woodprice,html[data-theme=dark] .name-woodprice{color:#88BB4E}
[data-fm-product="stand"],html[data-theme="dark"][data-fm-product="stand"],html[data-theme="dark"] [data-fm-product="stand"]{--fm-accent:#AE4FCC;--fm-accent-strong:#AE4FCC;--fm-accent-hover:#AE4FCC;--fm-on-accent-strong:#0B0510}
.name-stand,html[data-theme=dark] .name-stand{color:#AE4FCC}
[data-fm-product="gis"],html[data-theme="dark"][data-fm-product="gis"],html[data-theme="dark"] [data-fm-product="gis"]{--fm-accent:#DEA027;--fm-accent-strong:#DEA027;--fm-accent-hover:#DEA027;--fm-on-accent-strong:#0A3423}
.name-gis,html[data-theme=dark] .name-gis{color:#DEA027}
[data-fm-product="nais"],html[data-theme="dark"][data-fm-product="nais"],html[data-theme="dark"] [data-fm-product="nais"]{--fm-accent:#B54332;--fm-accent-strong:#B54332;--fm-accent-hover:#B54332;--fm-on-accent-strong:#FFFFFF}
.name-nais,html[data-theme=dark] .name-nais{color:#B54332}
[data-fm-product="hub"],html[data-theme="dark"][data-fm-product="hub"],html[data-theme="dark"] [data-fm-product="hub"]{--fm-accent:#C09B6C;--fm-accent-strong:#C09B6C;--fm-accent-hover:#C09B6C;--fm-on-accent-strong:#0A3423}
.name-hub,html[data-theme=dark] .name-hub{color:#C09B6C}
[data-fm-product="field"],html[data-theme="dark"][data-fm-product="field"],html[data-theme="dark"] [data-fm-product="field"]{--fm-accent:#E67835;--fm-accent-strong:#E67835;--fm-accent-hover:#E67835;--fm-on-accent-strong:#0A3423}
.name-field,html[data-theme=dark] .name-field{color:#E67835}
[data-fm-product="road"],html[data-theme="dark"][data-fm-product="road"],html[data-theme="dark"] [data-fm-product="road"]{--fm-accent:#E1B254;--fm-accent-strong:#E1B254;--fm-accent-hover:#E1B254;--fm-on-accent-strong:#0A3423}
.name-road,html[data-theme=dark] .name-road{color:#E1B254}

.fm-admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}

.fm-work-sidebar {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.fm-admin-workspace .fm-panel { min-width: 0; }

.fm-calendar-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fm-calendar-toolbar h3 {
  margin: 0 6px;
  min-width: 130px;
  text-align: center;
  text-transform: capitalize;
}

.fm-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 28px;
}

.fm-calendar-weekday {
  text-align: center;
  color: var(--fm-text-muted);
  font-size: 14px;
}

.fm-calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 2px;
  border: 1px solid var(--fm-border-decorative);
  border-radius: 7px;
  background: var(--fm-surface);
  color: var(--fm-text);
}

.fm-calendar-date:hover,
.fm-calendar-date[aria-pressed="true"] {
  background: var(--fm-accent-soft);
  border-color: var(--fm-primary);
}

.fm-calendar-date[aria-pressed="true"] { font-weight: 700; }
.fm-calendar-date[aria-current="date"] > span { text-decoration: underline; text-underline-offset: 3px; }
.fm-calendar-date.is-outside:not([aria-pressed="true"]) { color: var(--fm-text-muted); }
.fm-calendar-date small { font-size: 12px; line-height: 1; }
#fm-calendar-day { text-transform: capitalize; }

.fm-planner-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--fm-border-decorative);
  overflow-wrap: anywhere;
}

.fm-planner-row small { display: block; color: var(--fm-text-muted); }
.fm-planner-row .fm-check { margin: 0; color: var(--fm-text); }
.fm-planner-row .fm-check:has(input:checked) span { text-decoration: line-through; }
.fm-planner-details { margin: 6px 0 0; white-space: pre-wrap; }
.fm-admin-workspace .fm-empty { padding: 18px 6px; text-align: left; }
.fm-admin-workspace .fm-empty > :is(p, span) { margin: 0; }
.fm-admin-workspace .fm-empty > span { display: none; }
.fm-presence-summary { margin: 20px 0 8px; }
.fm-admin-shortcuts { margin-top: 24px; }
.fm-admin .fm-admin-tabs button:focus-visible { outline-offset: -3px; }

@media (max-width: 850px) {
  .fm-admin-workspace { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .fm-calendar-grid { gap: 3px; }
  .fm-calendar-date { min-height: 44px; }
  .fm-calendar-toolbar h3 { min-width: 0; font-size: 17px; }
}

.fm-dashboard .fm-admin { padding-top: 24px; }
.fm-security .fm-skip {
  color: var(--fm-text);
  background: var(--fm-surface);
}
body > :is(.skip-link, .fm-skip) {
  position: fixed;
  inset: 8px auto auto 16px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--fm-text, CanvasText);
  background: var(--fm-surface, Canvas);
}
body > :is(.skip-link, .fm-skip):not(:focus-visible) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.fm-account-profile { margin-bottom: 20px; }
.fm-profile-details { display: grid; gap: 8px; margin: 16px 0 20px; }
.fm-profile-details > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.fm-profile-details dt { font-weight: 600; }
.fm-profile-details dd { margin: 0; overflow-wrap: anywhere; }
.fm-dashboard .fm-admin [data-panel] { margin-top: 32px; }

.fm-deskbar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid var(--fm-border-decorative);
  border-radius: 16px;
  background: var(--fm-surface);
}

.fm-deskbrand {
  display: grid;
  place-items: center;
  justify-self: start;
  min-width: 52px;
  min-height: 52px;
  border-radius: 10px;
}
.fm-deskbrand img { display: block; object-fit: contain; border-radius: inherit; }

html:not([data-theme="dark"]) img[data-canepa-theme="dark"],
html[data-theme="dark"] img[data-canepa-theme="light"] { display: none !important; }
.fm-security .fm-brand img.canepa-mark { background: transparent; }

.fm-desk-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #416451;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 46px);
  background: radial-gradient(ellipse at 90% 30%, #305b43, #14392e 73%);
  color: #f6f7ee;
}
.fm-desk-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -260px -115px auto auto;
  width: min(56vw, 570px);
  aspect-ratio: 1;
  border-radius: 46% 54% 60% 40%;
  transform: rotate(-24deg);
  background: repeating-radial-gradient(ellipse at center, transparent 0 23px, #f1e9c31a 24px 25px);
  pointer-events: none;
}
.fm-security .fm-desk-hero h1 {
  color: inherit;
  margin: 7px 0;
  font-size: clamp(40px, 6vw, 66px);
  letter-spacing: -.045em;
}
.fm-desk-hero p { margin: 0; color: #e2ebe1; }
.fm-desk-hero .fm-desk-date { font-weight: 650; color: #e7d5a2; }
.fm-security .fm-desk-hero .fm-primary {
  flex: 0 0 auto;
  color: #183a2e !important;
  background: #ece4bf;
}
.fm-security .fm-desk-hero .fm-primary:hover { background: #fff5d2; }
.fm-desk-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.fm-desk-overview button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  min-height: 110px;
  padding: 17px 19px;
  border: 1px solid var(--fm-border-decorative);
  border-radius: 12px;
  background: var(--fm-surface);
  color: var(--fm-text-muted);
  text-align: left;
}
.fm-desk-overview button:hover { background: var(--fm-accent-soft); border-color: var(--fm-border-control); }
.fm-desk-overview button strong { color: var(--fm-text); font-size: 32px; line-height: 1.15; font-variant-numeric: tabular-nums; grid-row: 2; }
.fm-desk-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--fm-primary); font-size: 19px; }
.fm-dashboard #fm-users-detail > p { margin-bottom: 16px; }
.fm-security .fm-row-actions .fm-plan-action { background: var(--fm-accent-soft); font-weight: 650; }

.fm-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.fm-account-layout .fm-account-profile { max-width: none; margin: 0; }
.fm-account-plan .fm-section-heading { align-items: center; margin-bottom: 8px; }
.fm-account-plan .fm-section-heading h2 { margin: 0; }
.fm-security .fm-account-plan > p { margin-bottom: 16px; }
.fm-plan-badge {
  display: inline-block;
  padding: 4px 11px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  border-radius: 30px;
  border: 1px solid var(--fm-border-control);
  color: var(--fm-text);
}
.fm-plan-pro { background: #ecdfab; color: #332a12; border-color: #b8a45e; }
.fm-plan-details { margin-top: 12px; border-top: 1px solid var(--fm-border-decorative); }
.fm-plan-details summary { cursor: pointer; font-weight: 650; padding: 11px 0; }
.fm-plan-details summary span { margin-left: 5px; color: var(--fm-text-muted); font-weight: 450; }
.fm-plan-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.fm-plan-tools a {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--fm-accent-soft);
  text-decoration: none;
  font-size: 14px;
}
.fm-plan-tools a:hover { text-decoration: underline; }
.fm-pro-fieldset { margin: 0 0 16px; min-width: 0; border: 1px solid var(--fm-border-decorative); border-radius: 8px; }
.fm-pro-fieldset legend { font-weight: 650; }
.fm-pro-fieldset p { margin-bottom: 10px; color: var(--fm-text-muted); font-size: 14px; }
.fm-pro-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin-top: 12px; }
.fm-security .fm-pro-options label { min-height: 44px; margin: 0; align-items: center; color: var(--fm-text); }

@media (max-width: 760px) {
  .fm-account-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fm-desk-hero { align-items: start; flex-direction: column; gap: 16px; }
  .fm-desk-overview { gap: 8px; }
  .fm-desk-overview button { padding: 12px; font-size: 13px; grid-template-rows: 1fr auto; }
  .fm-desk-arrow { display: none; }
}

.fm-dashboard .fm-desk-tabs {
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 2px;
  border: 0;
}
.fm-dashboard .fm-desk-tabs :is(button, a),
.fm-desk-account summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fm-text-muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.fm-dashboard .fm-desk-tabs :is(button, a):hover,
.fm-dashboard .fm-desk-tabs button.is-active,
.fm-desk-account summary:hover {
  border: 1px solid transparent;
  background: var(--fm-accent-soft);
  color: var(--fm-text);
}
.fm-dashboard .fm-desk-tabs button.is-active { font-weight: 650; }
.fm-dashboard .fm-desk-tabs a:focus-visible { outline-offset: -3px; }
.fm-dashboard .fm-desk-tabs #fm-pending-count:not(:empty) { padding: 1px 4px; margin-left: 4px; background: var(--fm-surface); }

.fm-desk-account { position: relative; }
.fm-desk-account summary { border-color: var(--fm-border-control); color: var(--fm-text); cursor: pointer; }
.fm-desk-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  width: max-content;
  min-width: 155px;
  max-width: min(260px, 75vw);
  padding: 6px;
  border: 1px solid var(--fm-border-decorative);
  border-radius: 10px;
  background: var(--fm-surface);
  box-shadow: 0 8px 20px #142f2324;
}
.fm-desk-menu > * {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-decoration: none;
  overflow-wrap: anywhere;
  color: var(--fm-text);
}
.fm-desk-menu strong { font-size: 14px; color: var(--fm-text-muted); }
.fm-desk-menu :is(a, button):hover { background: var(--fm-accent-soft); }

.fm-dashboard .fm-desk-heading { margin-bottom: 20px; }
.fm-dashboard .fm-desk-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 36px); }
.fm-desk-heading p { margin: 5px 0 0; color: var(--fm-text-muted); }
#fm-today-date { text-transform: capitalize; }
.fm-dashboard .fm-section-heading > h3 { margin: 5px 0 0; }
.fm-dashboard .fm-calendar-grid { margin-bottom: 0; }
.fm-dashboard #fm-stats { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.fm-dashboard #fm-presence-error { margin-top: 14px; }

.fm-upcoming-item {
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-top: 1px solid var(--fm-border-decorative);
  background: transparent;
  color: var(--fm-text);
  text-align: left;
  overflow-wrap: anywhere;
}
.fm-upcoming-item:hover { background: var(--fm-accent-soft); }
.fm-upcoming-date time { display: block; font-weight: 600; }
.fm-upcoming-date small { display: block; color: var(--fm-text-muted); }

.fm-desk-detail > summary { cursor: pointer; font-weight: 650; font-size: 18px; }
.fm-desk-detail[open] > summary { margin-bottom: 18px; }
#fm-request-detail-count { font-weight: 400; font-size: 14px; color: var(--fm-text-muted); }
.fm-desk-users { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.fm-dashboard .fm-desk-users .fm-search { flex: 1 1 230px; margin: 0; }
.fm-dashboard .fm-admin-shortcuts { margin: 0; }
.fm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.fm-access-content {
  flex: 1 0 auto;
  background: var(--home-paper);
  font-family: var(--portal-font, system-ui), sans-serif;
}
.fm-security.fm-access-page .fm-access {
  width: min(1200px, calc(100% - 48px));
  min-height: 0;
  margin: 28px auto 42px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.fm-security.fm-access-page .fm-access .fm-intro {
  justify-content: flex-start;
  background: linear-gradient(180deg, rgb(9 29 21 / 92%), rgb(9 29 21 / 26%) 65%),
    url("/assets/hero-editorial.webp") center / cover;
}
.fm-security.fm-access-page .fm-access .fm-intro h1 { margin: 0 0 12px; }
.fm-security.fm-access-page .fm-access .fm-intro p { margin: 0; }
.fm-security.fm-access-page .fm-access-right { align-self: start; min-width: 0; }
.fm-access-page .fm-access-card { width: 100%; max-width: 520px; }
.fm-access-page .fm-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fm-access-page .fm-tabs [role="tab"] { min-width: 0; padding-inline: 6px; line-height: 1.3; }
.fm-access-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.fm-access-panels > [role="tabpanel"] { grid-area: 1 / 1; align-self: start; outline-offset: 5px; }
/* Let the taller panel size the card, while only the active panel is operable. */
.fm-access-page .fm-access-panels > [hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
.fm-access-page .fm-access-panels h2 { margin: 0 0 16px; }
.fm-access-page #fm-request .fm-field { margin-bottom: 12px; }
.fm-access-page .fm-access-hint { margin: -4px 0 18px; color: var(--fm-text-muted); font-size: .875rem; }
.fm-access-page .fm-entry-terms { margin: 0; line-height: 1.45; font-size: .9rem; color: var(--fm-text-muted); }
.fm-access-page .fm-entry-terms a { color: var(--fm-primary-text, var(--fm-text)); text-decoration: underline; text-underline-offset: .15em; }
.fm-access-page .fm-access-alternatives {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
  font-size: .875rem;
}
.fm-access-page .fm-access-guest {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}
.fm-access-page .fm-password-wrap input { padding-right: 104px; }
.fm-access-page .fm-password-toggle { min-width: 88px; }
@media (max-width: 740px) {
  .fm-security.fm-access-page .fm-access { display: flex; flex-direction: column; }
  .fm-security.fm-access-page .fm-access .fm-intro {
    order: 0;
    padding: 21px;
  }
  .fm-security.fm-access-page .fm-access-right { order: 1; padding: 16px; }
}
@media (max-width: 550px) {
  .fm-security.fm-access-page .fm-access { width: calc(100% - 24px); margin-block: 16px 28px; }
  .fm-security.fm-access-page .fm-access-right { padding: 12px; }
  .fm-security.fm-access-page .fm-access-card { padding: 16px; }
  .fm-access-page .fm-access-panels h2 { font-size: 24px; }
}

@media (max-width: 800px) {
  .fm-deskbar { grid-template-columns: 1fr auto; gap: 8px; padding: 10px; }
  .fm-desk-account { justify-self: end; }
  .fm-dashboard .fm-desk-tabs { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 430px) {
  .fm-dashboard .fm-admin { padding: 12px 12px 32px; }
  .fm-dashboard .fm-admin [data-panel] { margin-top: 24px; }
  .fm-dashboard .fm-desk-tabs { gap: 2px; }
  .fm-dashboard .fm-desk-tabs :is(button, a) { padding-inline: 6px; }
  .fm-deskbrand img { width: 42px; height: 42px; }
  .fm-upcoming-item { grid-template-columns: 1fr; gap: 4px; }
}

.fm-account-updates{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--fm-line)}
.fm-account-updates .fm-secondary{justify-self:start}

.fm-offer-inbox .fm-panel { overflow-wrap: anywhere; }
.fm-offer-inbox dt { margin-top: .65rem; font-weight: 650; }
.fm-offer-inbox dd { margin-inline-start: 0; }

.fm-mail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem 1.5rem;
}
.fm-mail-metrics dt { color: var(--fm-soft); }
.fm-mail-metrics dd { margin: .25rem 0 0; font-size: 1.1rem; font-weight: 650; }
#fm-mail-language {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--fm-line);
  border-radius: .4rem;
  padding: .4rem;
}
.fm-access-page .fm-text-action{border:0;background:transparent;color:var(--fm-accent,var(--green,#17583c));font:inherit;font-size:.85rem;text-align:left;text-decoration:underline;text-underline-offset:3px;padding:6px 0;margin:0 0 12px;min-height:36px;cursor:pointer}
.fm-access-page .fm-text-action:hover{background:transparent;text-decoration-thickness:2px}
.fm-field-requirement{font-weight:400;color:var(--fm-muted,var(--muted));font-size:.8em;white-space:nowrap}
.fm-access-page .fm-field-label{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 12px}
.fm-access-page .fm-field-label .fm-field-requirement{font-size:.75rem;font-weight:400;line-height:1.4}
