/* Theme preference is presentation only; no account data is stored here. */
html[data-fl-theme="light"]{--flt-page:#f3f5f8;--flt-surface:#fff;--flt-raised:#f5f7fa;--flt-field:#fff;--flt-text:#1e293b;--flt-muted:#475569;--flt-border:#8b98aa;--flt-link:#a6192b;--flt-focus:#145ecc;--flt-soft:#fff0f2;color-scheme:light}
html[data-fl-theme="dark"]{--flt-page:#111820;--flt-surface:#19232e;--flt-raised:#223140;--flt-field:#111b26;--flt-text:#f1f5f9;--flt-muted:#c1cddb;--flt-border:#718499;--flt-link:#ffadb5;--flt-focus:#8ecaff;--flt-soft:#39242e;color-scheme:dark}
html[data-fl-theme] body.fl-themed-page{background:var(--flt-page)!important;color:var(--flt-text)!important}
html[data-fl-theme] body.fl-themed-page #page,html[data-fl-theme] body.fl-themed-page .site-content{background:var(--flt-page)!important}
html[data-fl-theme] :is(.first-line,.fl-suite){color:var(--flt-text)!important;--title-color:var(--flt-text);--body-color:var(--flt-muted);--flt-button:#b91c32;--flt-hover:#941629}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(h1,h2,h3,h4,h5,h6,label,legend,strong,summary,td,li){color:var(--flt-text)!important}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(p,small){color:var(--flt-muted)!important}
html[data-fl-theme] .first-line :is(.fl-workspace-content,.fl-workspace-sidebar,.fl-card),html[data-fl-theme] .fl-suite :is(section,.fl-metric){background:var(--flt-surface)!important;border-color:var(--flt-border)!important;color:var(--flt-text)!important;box-shadow:0 6px 20px #0000000a}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(input,textarea,select){background:var(--flt-field)!important;color:var(--flt-text)!important;border:1px solid var(--flt-border)!important;caret-color:var(--flt-text);border-radius:8px}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(input,textarea)::placeholder{color:var(--flt-muted)!important;opacity:1}
html[data-fl-theme] :is(.first-line,.fl-suite) option{background:var(--flt-field);color:var(--flt-text)}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(input,textarea,select):disabled{opacity:.6;cursor:not-allowed}
html[data-fl-theme] :is(.first-line,.fl-suite) input[type="checkbox"],html[data-fl-theme] :is(.first-line,.fl-suite) input[type="radio"]{accent-color:#c51e38}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(a,button,input,textarea,select,summary):focus-visible,html[data-fl-theme] .fl-theme-control select:focus-visible{outline:3px solid var(--flt-focus)!important;outline-offset:3px}
html[data-fl-theme] :is(.first-line,.fl-suite) a{color:var(--flt-link)}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(.fl-outline,.fl-menu-toggle){background:var(--flt-raised)!important;color:var(--flt-text)!important;border-color:var(--flt-border)!important}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(.fl-button,.button),html[data-fl-theme] .fl-suite button{background:var(--flt-button)!important;color:#fff!important;border-color:var(--flt-button)!important}
html[data-fl-theme] :is(.first-line,.fl-suite) :is(.fl-button,.button):hover,html[data-fl-theme] .fl-suite button:hover{background:var(--flt-hover)!important;color:#fff!important}
html[data-fl-theme] .first-line .fl-workspace-sidebar a{background:transparent!important;color:var(--flt-text)!important}
html[data-fl-theme] .first-line .fl-workspace-sidebar a:hover{background:var(--flt-raised)!important}
html[data-fl-theme] .first-line .fl-workspace-sidebar :is(a.fl-button,a[aria-current="page"]){background:#b91c32!important;color:white!important}
html[data-fl-theme] .first-line :is(.fl-note,.fl-callbar){background:var(--flt-raised)!important;color:var(--flt-text)!important;border-color:var(--flt-border)!important}
html[data-fl-theme] .first-line .fl-callbar{border-left:4px solid #ef5266!important}
html[data-fl-theme] .first-line details{border-color:var(--flt-border)!important;background:var(--flt-surface)!important}
html[data-fl-theme] .fl-suite{background:var(--flt-page)!important;min-height:100vh}
html[data-fl-theme] .fl-suite aside{background:var(--flt-surface)!important;border-right:1px solid var(--flt-border)}
html[data-fl-theme] .fl-suite aside a{color:var(--flt-text)!important}
html[data-fl-theme] .fl-suite aside a.active{background:#b91c32!important;color:#fff!important}
html[data-fl-theme] .fl-suite aside a:hover{background:var(--flt-raised)}
html[data-fl-theme] .fl-suite :is(th,header span){background:var(--flt-raised)!important;color:var(--flt-text)!important}
html[data-fl-theme] .fl-suite :is(td,th,header,.fl-table-wrap){border-color:var(--flt-border)!important}
html[data-fl-theme] .fl-suite .fl-status.is-active{background:#164a38;color:#c8ffe4}
html[data-fl-theme] .fl-suite .fl-status.is-muted{background:var(--flt-raised);color:var(--flt-muted)}
html[data-fl-theme] .fl-sidebar-brand{color:var(--flt-link)!important}
html[data-fl-theme] .first-line .fl-company-poster{background:#fff!important;color:#111!important}
html[data-fl-theme] .first-line .fl-company-poster :is(h3,p){color:#111!important}
html[data-fl-theme] .first-line canvas{background:#fff}
.fl-theme-control{position:fixed;right:18px;bottom:18px;z-index:9998;display:flex;align-items:center;gap:10px;padding:9px 12px;margin:0;border:1px solid var(--flt-border);border-radius:12px;background:var(--flt-surface);color:var(--flt-text);box-shadow:0 4px 18px #0003;font:12px/1.4 system-ui,sans-serif}
.fl-theme-control select{width:auto;max-width:145px;margin:0;padding:7px 9px;min-height:36px;border:1px solid var(--flt-border);border-radius:7px;background:var(--flt-field);color:var(--flt-text);font:inherit}
@media(max-width:767px){.fl-theme-control{right:10px;bottom:10px;gap:6px;padding:6px 8px}.fl-theme-control span{display:none}html[data-fl-theme] .first-line{padding-bottom:76px}html[data-fl-theme] .fl-suite main{padding-bottom:76px}}
@media print{html[data-fl-theme]{--flt-page:white;--flt-surface:white;--flt-raised:white;--flt-field:white;--flt-text:#111;--flt-muted:#333;--flt-border:#999;--flt-link:#111;color-scheme:light}.fl-theme-control{display:none!important}html[data-fl-theme] body.fl-themed-page{background:white!important;color:#111!important}html[data-fl-theme] :is(.first-line,.fl-suite) :is(.fl-card,.fl-workspace-content){box-shadow:none!important}}
/* Tabs keep forms in the same document and submit as one form. */
.fl-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px;padding:0 0 12px;border-bottom:1px solid var(--flt-border,#8b98aa)}
html[data-fl-theme] :is(.first-line,.fl-suite) .fl-tabs button{border:1px solid var(--flt-border)!important;background:var(--flt-raised)!important;color:var(--flt-text)!important;padding:9px 13px;border-radius:8px;font:600 13px/1.4 system-ui;cursor:pointer;min-height:40px}
html[data-fl-theme] :is(.first-line,.fl-suite) .fl-tabs button[aria-selected="true"]{background:#b91c32!important;color:#fff!important;border-color:#b91c32!important}
.first-line .fl-tab-panel[hidden],.fl-suite .fl-tab-panel[hidden]{display:none!important}
.fl-tab-panel{min-width:0;scroll-margin-top:24px}
@media print{.fl-tabs{display:none!important}.first-line .fl-tab-panel[hidden],.fl-suite .fl-tab-panel[hidden]{display:block!important}}
/* Readiness cards share the selected colour theme. */
.fl-readiness-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:18px 0}
.fl-readiness-grid>.fl-card{margin:0!important;padding:18px!important;min-width:0;overflow-wrap:anywhere}
.fl-readiness-grid>.fl-card>span{display:block}
.fl-readiness-number{display:block;font-size:28px;line-height:1.25;margin-bottom:8px}
.fl-readiness progress{display:block;width:100%;height:10px;margin:10px 0 14px;accent-color:#b91c32;border:0;border-radius:10px;overflow:hidden}
.fl-readiness progress::-webkit-progress-bar{background:var(--flt-raised,#e2e8f0)}
.fl-readiness progress::-webkit-progress-value{background:#b91c32}
.fl-readiness progress::-moz-progress-bar{background:#b91c32}
.fl-readiness .fl-review-due{border-left:3px solid #d97706;padding-left:10px}
.fl-readiness-grid form{margin:14px 0}
.fl-readiness-grid .fl-check{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.5}
.fl-readiness-grid input[type=checkbox]{width:18px!important;height:18px!important;flex-shrink:0;margin-top:3px}
.fl-emergency-preview{margin:12px 0;overflow-wrap:anywhere}
.fl-emergency-preview h1{font-size:20px!important;line-height:1.3!important}
.fl-emergency-preview h2{font-size:16px!important}
.fl-emergency-preview section{padding:12px!important;margin:10px 0!important}
@media(max-width:600px){.fl-readiness-grid{grid-template-columns:1fr}.fl-readiness-grid .fl-button,.fl-readiness-grid .fl-outline{white-space:normal}}
