*{box-sizing:border-box}
:root{--red:var(--sfi-red);--red-hover:var(--sfi-red);--bg:#070809;--panel:#101214;--panel2:#0b0d0f;--line:#2b2f33;--line-soft:#202428;--text:#f1f2f3;--muted:#a6adb2;--content:min(1540px,90vw)}
html{background:var(--bg)}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -10%,rgba(255,255,255,.035),transparent 36rem),linear-gradient(180deg,#0a0c0e 0,#060708 75%);color:var(--text);font-family:Arial,Helvetica,sans-serif;letter-spacing:.01em}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.3;background:repeating-linear-gradient(0deg,rgba(255,255,255,.012) 0,rgba(255,255,255,.012) 1px,transparent 1px,transparent 6px)}
a{color:inherit}.muted{color:var(--muted)}
.shell{min-height:100vh;display:grid;place-items:center;padding:clamp(20px,4vw,72px)}
.auth-card{position:relative;width:min(1180px,88vw);min-height:clamp(560px,68vh,720px);display:grid;grid-template-columns:minmax(320px,.9fr) minmax(430px,1.1fr);background:linear-gradient(145deg,#121518,#0b0d0f);border:1px solid var(--line);box-shadow:0 32px 80px rgba(0,0,0,.55);overflow:hidden;clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%)}
.auth-card:before{content:"";position:absolute;left:clamp(28px,3vw,48px);top:0;width:clamp(80px,8vw,132px);height:3px;background:var(--red);z-index:2}
.auth-brand{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:clamp(34px,4vw,64px);border-right:1px solid #1b1e21;background:linear-gradient(145deg,rgba(255,255,255,.018),transparent 58%)}
.auth-logo{width:min(395px,96%);height:auto;object-fit:contain;filter:drop-shadow(0 12px 28px rgba(0,0,0,.55))}
.auth-brand p{max-width:350px;margin:34px 0 0;text-align:center;color:#c3c7ca;font-size:clamp(13px,.88vw,16px);line-height:1.65;letter-spacing:.14em;font-weight:700;text-transform:uppercase}
.panel{padding:clamp(38px,4.2vw,72px);display:flex;flex-direction:column;justify-content:center;min-width:0}
.auth-heading{width:min(100%,520px);margin:0 auto clamp(24px,3vh,38px);position:relative;padding-top:18px}
.auth-heading-mark:before{content:"";position:absolute;left:0;top:0;width:54px;height:8px;opacity:.75;background:repeating-linear-gradient(90deg,#6e7479 0,#6e7479 10px,transparent 10px,transparent 15px);transform:skewX(-28deg);transform-origin:left center}
h1{font-size:clamp(30px,2.2vw,46px);margin:0 0 9px;letter-spacing:-.025em}h2{font-size:clamp(22px,1.45vw,30px);margin:0 0 8px}h3{margin:0 0 13px;font-size:clamp(17px,1vw,20px)}
.auth-heading p{margin:0;color:#aeb4b9;font-size:clamp(13px,.82vw,15px)}
.auth-form{width:min(100%,520px);margin:0 auto}.auth-form-login{width:min(100%,500px)}
label{display:block;margin:18px 0 8px;color:#d0d4d7;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:700}
input,select{width:100%;height:48px;padding:0 15px;background:#07090a;border:1px solid #343a40;color:#fff;outline:none;transition:.18s;border-radius:0;font-size:clamp(14px,.82vw,16px)}input:focus,select:focus{border-color:#666;box-shadow:inset 3px 0 0 var(--red)}
.password-field{position:relative}.password-field input{padding-right:50px}.eye{position:absolute;right:0;top:0;width:48px;height:48px;margin:0;padding:0;background:transparent;border:0;border-left:1px solid #343a40;color:#aeb4b9;font-size:18px;cursor:pointer;text-transform:none;letter-spacing:0}.eye:hover{color:#fff;background:#151719}
button,.action{margin-top:24px;min-height:46px;padding:0 22px;background:var(--red);border:0;color:#fff;font-weight:800;letter-spacing:.1em;cursor:pointer;text-transform:uppercase;transition:.18s;font-size:11px}button:hover,.action:hover{background:var(--red-hover)}
.auth-form>button{width:68%;display:block;margin-left:auto;margin-right:auto}.link{display:block;text-align:center;margin-top:20px;color:#d1d4d7;font-size:clamp(13px,.8vw,15px);font-weight:600;text-decoration:none}.link:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}footer{text-align:center;color:#9ba1a6;font-size:clamp(10px,.62vw,12px);letter-spacing:.18em;margin-top:32px;text-transform:uppercase;font-weight:700}
.alert,.success,.codebox{padding:14px 16px;margin:16px auto;border-left:3px solid var(--red);background:#1a1010;max-width:100%}.success{border-color:#5a8;background:#101a15}.codebox{background:#101214;border:1px solid var(--line);border-left:3px solid var(--red);line-height:1.8}.codebox code{background:#08090a;padding:3px 7px}.bigcode{font-size:22px;letter-spacing:2px;color:#fff}
.top{min-height:88px;padding:10px max(22px,3.5vw);display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(17,20,23,.99),rgba(10,12,14,.99));position:sticky;top:0;z-index:10;box-shadow:0 12px 34px rgba(0,0,0,.2)}.top:after{content:"";position:absolute;left:max(22px,3.5vw);bottom:-1px;width:clamp(82px,6vw,118px);height:3px;background:var(--red)}.top a{text-decoration:none}
.top-brand{display:flex;align-items:center;gap:14px;min-width:max-content;font-weight:900;letter-spacing:.13em}.top-brand img{width:clamp(54px,3.5vw,68px);height:clamp(54px,3.5vw,68px);object-fit:contain;border-radius:50%;filter:drop-shadow(0 5px 14px rgba(0,0,0,.45))}.top-brand span{font-size:clamp(12px,.85vw,16px)}
.top-nav{justify-self:center;display:flex;align-items:center;gap:24px}.top-nav a{position:relative;padding:12px 2px;text-decoration:none;color:#a6adb2;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.top-nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:4px;height:2px;background:var(--red);transition:.18s}.top-nav a:hover,.top-nav a.active{color:#fff}.top-nav a:hover:after,.top-nav a.active:after{left:0;right:0}
.top-right{justify-self:end;display:flex;align-items:center;gap:14px;color:#d0d4d7;font-size:13px}.top-right em{font-style:normal;color:#8d959b;margin-left:7px;text-transform:uppercase;font-size:10px;letter-spacing:.12em}.inline{display:inline}.small{width:auto;margin:0;min-height:36px;padding:0 14px;font-size:10px}.ghost{background:transparent;border:1px solid #343a40;color:#c7cbce}.ghost:hover{background:#171a1d;border-color:#555}
.dashboard{width:var(--content);margin:0 auto;padding:clamp(42px,5vw,78px) 0 70px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:clamp(30px,3vw,48px);padding-bottom:20px;border-bottom:1px solid var(--line)}.page-head .muted{margin:8px 0 0;font-size:clamp(13px,.78vw,15px)}
.section-title:before,.card .accent-line{content:"";display:block;width:clamp(44px,3.5vw,68px);height:3px;background:var(--red);margin-bottom:15px}.section-title h1{margin-bottom:6px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.5vw,28px)}.card{position:relative;min-height:clamp(180px,12vw,230px);border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0c0e10);padding:clamp(24px,2vw,34px);text-decoration:none;overflow:hidden;clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%)}.card p{color:#aab0b5;margin:0;line-height:1.55;font-size:clamp(13px,.78vw,15px)}.card.clickable:hover{border-color:#555;transform:translateY(-2px)}.card.disabled{opacity:.52}.card .accent-line{margin:0 0 25px;width:clamp(40px,3vw,58px)}
.admin-layout{display:grid;grid-template-columns:minmax(340px,500px) minmax(620px,1fr);gap:clamp(20px,2vw,34px);align-items:start}.adminbox{position:relative;background:linear-gradient(145deg,#121518,#0c0e10);border:1px solid var(--line);padding:clamp(24px,2.2vw,36px);clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%)}.adminbox .section-title h2{margin-bottom:4px}.adminbox .section-title p{margin:0 0 24px;color:var(--muted);font-size:13px;line-height:1.5}.invite-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.52fr);gap:0 16px;align-items:end}.invite-form .full{grid-column:1/-1}.invite-form button{width:auto;justify-self:end;min-width:210px;margin-top:24px}
.history{min-width:0}.history-head{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 14px}.history-head h2{margin:0}.history-head span{color:var(--muted);font-size:12px}.tablewrap{overflow:auto;border:1px solid var(--line);background:#0d0f11}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:15px 16px;border-bottom:1px solid var(--line);font-size:13px}th{color:#a2a9ae;font-size:10px;text-transform:uppercase;letter-spacing:.14em;background:#121518}tbody tr:hover{background:#121416}.badge{display:inline-block;font-size:10px;padding:5px 8px;border:1px solid #666;letter-spacing:.1em}.badge.on{border-color:#397;color:#9db}.badge.off{opacity:.62}
.access-result{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:22px 24px;margin-bottom:28px}.eyebrow{display:block;color:#b6bcc0;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px}.access-pair{display:flex;flex-wrap:wrap;gap:18px 42px}.access-pair span{display:flex;flex-direction:column;gap:5px}.access-pair small{color:#9aa1a6;font-size:10px;text-transform:uppercase;letter-spacing:.12em}.access-pair strong,.access-pair code{font-size:clamp(16px,1vw,20px)}.access-result p{margin:12px 0 0;color:#a2a9ae;font-size:12px}.copy-access{margin:0;min-width:180px;white-space:nowrap}.copy-access.copied{background:#245b3d}
.account-list{display:grid;gap:18px;max-width:1380px;margin:0 auto}.account-card{border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0c0e10);padding:clamp(22px,2vw,32px);clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%)}.account-main{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--line)}.account-main h2{margin:0 0 6px}.account-main p{margin:0;color:#b1b7bb;font-size:14px}.account-date{font-size:11px;color:#929aa0;text-transform:uppercase;letter-spacing:.08em}.account-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding-top:18px}.account-actions details{border:1px solid #292e32;background:#0b0d0f;padding:0 18px}.account-actions summary{cursor:pointer;padding:16px 0;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#d0d4d7}.account-actions details[open] summary{border-bottom:1px solid #24282c}.account-form{display:grid;grid-template-columns:minmax(180px,320px) minmax(180px,320px) auto;gap:14px;align-items:end;padding:4px 0 18px}.account-form button{margin:0;height:48px}.form-note,.danger-copy p{font-size:12px;color:#9ca4aa;line-height:1.55}.danger-zone{border-color:#4a2222!important}.danger-zone summary{color:#d7a0a0!important}.danger-copy{padding-top:15px}.danger-copy strong{color:#e4b0b0}.danger-copy p{margin:6px 0 0}.danger{background:var(--sfi-red)}.danger:hover{background:var(--sfi-red)}.self-account{border:1px solid #252a2e;padding:16px;color:#929aa0;font-size:12px;align-self:start}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:1800px){:root{--content:min(1640px,86vw)}.auth-card{width:min(1240px,70vw);min-height:min(700px,72vh)}.dashboard{padding-top:68px}.top{min-height:94px}.top-brand img{width:70px;height:70px}}
@media(max-width:1180px){:root{--content:92vw}.admin-layout{grid-template-columns:1fr}.invite-form{grid-template-columns:1fr 240px}.auth-card{width:min(980px,92vw)}.account-form{grid-template-columns:1fr 1fr}.account-form button{grid-column:1/-1;justify-self:start}}
@media(max-width:980px){.top{grid-template-columns:1fr auto;padding-bottom:12px}.top-nav{grid-column:1/-1;grid-row:2;justify-self:stretch;justify-content:center;margin:8px 0 2px}.access-result{align-items:flex-start;flex-direction:column}.copy-access{align-self:flex-start}.account-actions{grid-template-columns:1fr}}
@media(max-width:820px){.auth-card{grid-template-columns:1fr;width:min(620px,94vw);min-height:auto}.auth-brand{padding:30px 30px 24px;border-right:0;border-bottom:1px solid var(--line-soft)}.auth-logo{width:min(280px,72%)}.auth-brand p{display:none}.panel{padding:34px 30px}.cards{grid-template-columns:1fr}.card{min-height:160px}.page-head{align-items:flex-start;flex-direction:column}.top-right span{display:none}.invite-form{grid-template-columns:1fr}.invite-form button{justify-self:stretch;width:100%}}
@media(max-width:620px){.auth-form>button{width:100%}.top-brand span{display:none}.top-nav{overflow-x:auto;justify-content:flex-start;gap:20px}.access-pair{flex-direction:column;gap:12px}.copy-access{width:100%}.account-main{flex-direction:column}.account-form{grid-template-columns:1fr}.account-form button{grid-column:auto;width:100%}}
@media(max-width:560px){:root{--content:94vw}.shell{padding:14px}.auth-card{width:100%}.auth-brand{padding:24px 20px 20px}.auth-logo{width:min(250px,78%)}.panel{padding:30px 22px}.top{padding-left:16px;padding-right:16px}.top:after{left:16px}.top-brand img{width:48px;height:48px}.dashboard{padding-top:34px}.card,.adminbox{padding:22px}.history-head{align-items:flex-start;flex-direction:column;gap:6px}h1{font-size:30px}}

/* ===== V1.5 — passe graphique porte d'accès ===== */
:root{--content:min(1600px,88vw)}

/* Login : hiérarchie plus forte, sans ajouter de rouge */
.portal-sign{margin-top:38px;text-align:center;display:flex;flex-direction:column;gap:8px}
.portal-sign strong{font-size:clamp(16px,1.02vw,20px);letter-spacing:.2em;color:#eef0f1}
.portal-sign span{font-size:clamp(11px,.72vw,14px);letter-spacing:.22em;color:#9ea5aa;font-weight:700}
.auth-brand>p{display:none}
.panel footer{font-size:clamp(12px,.78vw,15px);color:#c4c9cc;letter-spacing:.2em;margin-top:34px;text-shadow:0 0 18px rgba(255,255,255,.035)}

/* Header : identité SFI, navigation volontairement secondaire */
.top{min-height:116px;padding:14px max(28px,4.5vw);grid-template-columns:minmax(360px,1fr) auto minmax(300px,1fr);background:linear-gradient(180deg,rgba(13,15,17,.985),rgba(8,10,11,.985));box-shadow:none}
.top:after{display:none}
.top-brand{gap:18px;letter-spacing:0}
.top-brand img{width:76px;height:76px}
.brand-copy{display:flex;flex-direction:column;gap:5px;line-height:1}
.brand-copy strong{font-size:clamp(20px,1.45vw,30px);letter-spacing:.045em;color:#f2f3f4;white-space:nowrap}
.brand-copy strong b{color:var(--red);font-weight:900}
.brand-copy small{font-size:9px;color:#8f969b;text-transform:uppercase;letter-spacing:.19em;font-weight:800;white-space:nowrap}
.top-nav{gap:30px}.top-nav a{font-size:11px;letter-spacing:.13em;color:#8f969b}.top-nav a:after{height:1px;bottom:3px}
.top-right{font-size:13px}.top-right .ghost{border-color:#2d3236;color:#adb3b7}

/* Pages : un peu plus de présence, sans transformer l'admin en sapin de Noël */
.dashboard{padding-top:clamp(48px,4vw,72px)}
.page-head{position:relative;overflow:hidden;padding:clamp(26px,2.2vw,38px) clamp(26px,2.4vw,42px);margin-bottom:clamp(30px,3vw,46px);border:1px solid #24282c;background:linear-gradient(100deg,rgba(176,4,9,.105) 0,rgba(176,4,9,.035) 18%,rgba(14,16,18,.96) 48%,rgba(10,12,14,.98) 100%);clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%)}
.page-head:after{content:"";position:absolute;left:0;top:0;width:4px;height:54%;background:linear-gradient(var(--red),transparent)}
.page-head .section-title:before{display:none}.page-head .section-title h1{font-size:clamp(34px,2.25vw,46px)}
.page-head .muted{font-size:clamp(14px,.84vw,16px);color:#aeb4b9}

.cards{gap:clamp(18px,1.6vw,30px)}
.card{min-height:210px;padding:clamp(26px,2.1vw,38px);background:linear-gradient(145deg,#121518,#0c0e10)}
.card h3{font-size:clamp(19px,1.08vw,23px)}.card p{font-size:clamp(14px,.84vw,16px)}
.card .accent-line{height:2px;width:48px;opacity:.85}

.admin-layout{grid-template-columns:minmax(460px,560px) minmax(680px,1fr);gap:clamp(28px,2.3vw,42px)}
.adminbox{padding:clamp(28px,2.2vw,40px)}
.adminbox .section-title h2,.history-head h2{font-size:clamp(25px,1.45vw,31px)}
.adminbox .section-title p{font-size:14px;color:#aeb4b9}
.invite-form{grid-template-columns:minmax(250px,1fr) minmax(210px,.72fr);gap:0 18px}
.invite-form button{min-width:220px}
label{font-size:12px;color:#d5d8da}
input,select{height:50px;font-size:clamp(15px,.88vw,17px)}
.history-head span{font-size:13px}
table{min-width:820px}th{font-size:11px}th,td{padding:16px 17px}td{font-size:14px}.badge{font-size:10px;padding:5px 9px}

.account-list{max-width:1500px;gap:22px}.account-card{padding:clamp(28px,2.2vw,38px)}
.account-main h2{font-size:clamp(25px,1.45vw,31px)}.account-main p{font-size:15px}.account-date{font-size:12px}
.account-actions{gap:18px}.account-actions summary{font-size:13px}.self-account{font-size:13px;padding:17px}.form-note,.danger-copy p{font-size:13px}

@media(min-width:1800px){:root{--content:min(1660px,84vw)}.top{padding-left:5vw;padding-right:5vw}.top-brand img{width:80px;height:80px}.dashboard{padding-top:64px}}
@media(max-width:1180px){:root{--content:92vw}.top{grid-template-columns:minmax(300px,1fr) auto}.top-nav{grid-column:1/-1;grid-row:2}.admin-layout{grid-template-columns:1fr}.invite-form{grid-template-columns:1fr minmax(220px,280px)}}
@media(max-width:980px){.top{min-height:104px}.brand-copy strong{font-size:22px}.top-brand img{width:66px;height:66px}}
@media(max-width:820px){.portal-sign{margin-top:24px}.page-head{padding:25px 24px}.invite-form{grid-template-columns:1fr}.top{grid-template-columns:1fr auto}.brand-copy small{display:none}}
@media(max-width:620px){.brand-copy strong{font-size:18px}.top-brand img{width:52px;height:52px}.top-nav{grid-column:1/-1}.page-head .section-title h1{font-size:31px}}


/* ===== V1.6 — finition porte d'accès ===== */
/* Le halo reste la signature des grands bandeaux ; pas de barre rouge verticale. */
.page-head:after{display:none!important}

/* Navigation du header : plus présente sans devenir une rangée de boutons. */
.top-nav{gap:clamp(34px,2.4vw,48px)}
.top-nav a{font-size:clamp(12px,.76vw,14px);letter-spacing:.14em;color:#aeb4b9;padding:14px 3px 13px}
.top-nav a:after{height:2px;bottom:5px;background:var(--red)}
.top-nav a:hover,.top-nav a.active{color:#f4f5f6}

/* Identité connectée : pseudo puis rôle, sans doublon. */
.top-right{gap:clamp(18px,1.4vw,28px)}
.user-identity{display:flex;flex-direction:column;align-items:flex-end;gap:4px;line-height:1}
.user-identity strong{font-size:clamp(13px,.8vw,15px);font-weight:700;color:#e1e4e6;letter-spacing:.02em;text-transform:none}
.user-identity em{margin:0;font-size:10px;color:#8f969b;letter-spacing:.15em;font-style:normal;text-transform:uppercase}

/* Déconnexion utilise le même langage vivant que la navigation, sans cadre de bouton. */
.header-action{position:relative;width:auto;min-height:0;margin:0;padding:14px 3px 13px;background:transparent;border:0;color:#aeb4b9;font-size:clamp(11px,.72vw,13px);font-weight:800;letter-spacing:.13em;text-transform:uppercase;cursor:pointer}
.header-action:after{content:"";position:absolute;left:50%;right:50%;bottom:5px;height:2px;background:var(--red);transition:.18s}
.header-action:hover{background:transparent;color:#fff}
.header-action:hover:after{left:0;right:0}

@media(max-width:820px){.user-identity{display:none}.top-right{gap:10px}}

/* ===== V1.7 — Fleet Manager complet ===== */
.fleet-page{padding-top:34px}.fleet-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px;border-bottom:1px solid var(--line)}.fleet-tabs a{padding:12px 15px;color:#9da4aa;text-decoration:none;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;border-bottom:2px solid transparent}.fleet-tabs a:hover{color:#fff;border-color:var(--red)}
.eyebrow{display:block;color:var(--red);font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;margin-bottom:12px}.fleet-hero{display:grid;grid-template-columns:1.35fr .65fr;gap:28px;padding:clamp(34px,3vw,54px);border:1px solid var(--line);background:linear-gradient(105deg,rgba(176,4,9,.11),rgba(18,21,24,.96) 27%,#0d0f11 78%);margin-bottom:28px}.fleet-hero h1{text-transform:uppercase;font-size:clamp(38px,3.4vw,68px);line-height:.96;max-width:760px}.fleet-hero p{max-width:760px;color:#aeb4b9;line-height:1.7;font-size:15px}.fleet-kpis{display:grid;align-content:center;gap:10px}.fleet-kpis div,.fleet-count{border:1px solid var(--line);background:#090b0d;padding:20px;text-align:center}.fleet-kpis strong,.fleet-count strong{display:block;font-size:clamp(30px,2.2vw,46px)}.fleet-kpis span,.fleet-count span{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#9ca4aa;font-weight:800}.fleet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.fleet-tile{min-height:230px;padding:30px;border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0b0d0f);text-decoration:none;display:flex;flex-direction:column;transition:.18s}.fleet-tile:before{content:"";width:48px;height:2px;background:var(--red);margin-bottom:26px}.fleet-tile>span{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#8e969c;font-weight:800}.fleet-tile h2{margin:14px 0}.fleet-tile p{color:#9fa6ab;line-height:1.55;flex:1}.fleet-tile b{font-size:11px;text-transform:uppercase;letter-spacing:.13em}.fleet-tile:hover{transform:translateY(-2px);border-color:#555}
.fleet-form{margin-bottom:30px}.fleet-form form{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:12px}.fleet-form button,.fleet-search button,.operation-create button,.assign-ship button,.crew-form button,.status-form button{margin:0}.fleet-list{margin-top:28px}.ship-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 20px;border:1px solid var(--line);border-bottom:0;background:#0e1012}.ship-row:last-child{border-bottom:1px solid var(--line)}.ship-row strong{display:block;font-size:16px}.ship-row span{display:block;margin-top:6px;color:#929aa0;font-size:13px}.ship-actions{display:flex;gap:8px;align-items:center}.ship-actions button{margin:0}.fleet-search{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:26px}.model-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.model-card{border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0c0e10);padding:25px}.model-card h2{margin:0 0 8px}.model-card>p{color:#959da2}.owners{display:grid;gap:7px;margin-top:20px}.owners>span{display:flex;justify-content:space-between;gap:15px;background:#090b0d;border:1px solid #25292d;padding:10px 12px}.owners small{color:#92999e}.mini-kpis{color:#9ea5aa}.empty-state{border:1px dashed #34393e;padding:28px;color:#949ca1;background:#0b0d0f}.operation-list{display:grid;gap:14px;margin:16px 0 36px}.operation-card{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px 26px;border:1px solid var(--line);border-top:2px solid var(--red);background:#111418;text-decoration:none}.operation-card span{font-size:11px;color:#aab0b5}.operation-card h2{margin:7px 0}.operation-card p{margin:0;color:#969ea3}.operation-card>b{font-size:11px;text-transform:uppercase;letter-spacing:.1em}.operation-card.subdued{border-top-color:#34393e}.history-title{margin-top:38px}
.brief-head{display:grid;grid-template-columns:1fr 360px;gap:18px;margin-bottom:30px}.brief-head>div,.brief-head aside{border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0c0e10);padding:30px}.brief-head>div{border-top:2px solid var(--red)}.brief-head p{color:#a4abb0;line-height:1.65}.brief-head aside{display:grid;grid-template-columns:1fr;align-content:center;gap:8px}.brief-head aside span{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#92999e}.brief-head aside strong{font-size:17px;margin-bottom:15px}.brief-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.brief-ship{position:relative;border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0c0e10);padding:25px;overflow:hidden}.brief-ship:after{content:"SFI";position:absolute;right:20px;top:8px;font-size:58px;font-weight:900;color:rgba(255,255,255,.025);pointer-events:none}.brief-ship>p,.ship-card-head p{color:#929aa0;font-size:13px}.crew{display:grid;gap:8px;margin-top:18px}.crew>div{display:flex;justify-content:space-between;align-items:center;padding:11px 13px;background:#15181b;border:1px solid #292e32}.crew span,.crew em{display:block}.crew span span,.crew em{color:var(--red);font-size:10px;font-style:normal;text-transform:uppercase;letter-spacing:.09em;margin-top:3px}.operation-create{margin-bottom:30px}.operation-create form{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.operation-create textarea{grid-column:1/-1;min-height:110px;padding:14px;background:#07090a;border:1px solid #343a40;color:#fff;resize:vertical}.operation-create button{justify-self:start}.assign-ship{margin-bottom:25px}.assign-ship form{display:grid;grid-template-columns:1.3fr 1fr auto;gap:12px}.status-form{display:flex;gap:8px}.status-form select{min-width:150px}.ship-card-head{display:flex;justify-content:space-between;gap:15px}.crew-x{margin:0;padding:0;width:28px;min-height:28px;background:transparent;border:1px solid #4a2222}.crew-form{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:8px;margin-top:16px}.crew-form input,.crew-form select{height:42px;font-size:13px}.crew-form button{min-height:42px}.manage-grid{margin-top:25px}
@media(max-width:1180px){.fleet-hero{grid-template-columns:1fr}.fleet-kpis{grid-template-columns:repeat(3,1fr)}.fleet-grid,.model-grid{grid-template-columns:1fr 1fr}.fleet-form form{grid-template-columns:1fr 1fr}.fleet-form button{justify-self:start}.brief-head{grid-template-columns:1fr}.brief-grid{grid-template-columns:1fr}.operation-create form{grid-template-columns:1fr 1fr}.crew-form{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.fleet-tabs{flex-wrap:nowrap;overflow-x:auto}.fleet-grid,.model-grid{grid-template-columns:1fr}.fleet-kpis{grid-template-columns:1fr}.fleet-form form,.operation-create form,.assign-ship form,.crew-form{grid-template-columns:1fr}.operation-card,.ship-row{align-items:flex-start;flex-direction:column}.brief-head aside{grid-template-columns:1fr}.status-form{flex-direction:column}.fleet-search{grid-template-columns:1fr}.ship-actions{flex-wrap:wrap}}

/* ===== V1.8 — accueil modules + profil header ===== */
.user-profile-link{text-decoration:none;position:relative;padding:10px 2px}.user-profile-link:after{content:"";position:absolute;left:50%;right:50%;bottom:2px;height:2px;background:var(--red);transition:.18s}.user-profile-link:hover:after,.user-profile-link.active:after{left:0;right:0}.user-profile-link:hover strong{color:#fff}
.home-modules{max-width:1540px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,1.6vw,30px)}.module-card{position:relative;display:grid;grid-template-rows:minmax(260px,1.2fr) auto;min-height:470px;border:1px solid var(--line);background:linear-gradient(145deg,#111418,#0a0c0e);text-decoration:none;overflow:hidden;clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%);transition:.2s}.module-card:hover{border-color:#555;transform:translateY(-2px)}.module-card:after{content:"";position:absolute;left:0;bottom:0;width:3px;height:92px;background:var(--red)}.module-visual{position:relative;display:grid;place-items:center;min-height:260px;color:#858d96;background:radial-gradient(circle at 22% 50%,rgba(176,4,9,.075),transparent 26%),linear-gradient(180deg,#101318,#0d1014);border-bottom:1px solid var(--line-soft);overflow:hidden}.module-visual:before{content:"";position:absolute;inset:0;opacity:.28;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:48px 48px}.module-visual svg{position:relative;width:min(88%,760px);height:auto;filter:drop-shadow(0 14px 24px rgba(0,0,0,.3))}.module-index{position:absolute;z-index:2;left:20px;top:18px;color:#777f86;font-size:10px;font-weight:900;letter-spacing:.16em}.module-copy{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding:clamp(25px,2vw,36px)}.module-copy h2{font-size:clamp(24px,1.55vw,32px);margin:0 0 10px}.module-copy p{max-width:700px;margin:0;color:#9fa6ab;line-height:1.6;font-size:clamp(13px,.78vw,15px)}.module-copy .eyebrow{margin-bottom:9px}.module-open{white-space:nowrap;color:#d9dcde;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;transition:.18s}.module-card:hover .module-open{color:#fff;transform:translateX(4px)}.profile-box{max-width:720px}.profile-lines{display:grid;gap:1px;margin-top:28px;background:var(--line)}.profile-lines>div{display:flex;justify-content:space-between;gap:30px;padding:17px 18px;background:#0b0d0f}.profile-lines span{color:#929aa0;font-size:11px;text-transform:uppercase;letter-spacing:.12em}.profile-lines strong{font-size:14px}
@media(max-width:1000px){.module-grid{grid-template-columns:1fr}.module-card{min-height:430px}}
@media(max-width:620px){.module-card{grid-template-rows:220px auto;min-height:0}.module-visual{min-height:220px}.module-copy{align-items:flex-start;flex-direction:column}.module-open{white-space:normal}}
/* Fleet Manager V2 */
textarea{width:100%;min-height:120px;padding:14px 15px;background:#07090a;border:1px solid #343a40;color:#fff;outline:none;resize:vertical;font:inherit}textarea:focus{border-color:#666;box-shadow:inset 3px 0 0 var(--red)}
.fleet-nav{display:flex;gap:clamp(12px,1.5vw,24px);align-items:center;flex-wrap:wrap;margin:-18px 0 34px;padding:0 0 16px;border-bottom:1px solid var(--line-soft)}.fleet-nav a{position:relative;color:#92999f;text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.11em;padding:7px 0}.fleet-nav a:hover{color:#fff}.fleet-nav a:hover:after{content:"";position:absolute;left:0;right:0;bottom:-17px;height:2px;background:var(--red)}
.ship-row>div:first-child{display:grid;gap:4px}.ship-row>div:first-child strong{font-size:18px}.model-top{display:flex;justify-content:space-between;gap:14px}.model-count{font-size:10px;color:#aeb4b9;text-transform:uppercase;letter-spacing:.1em}.owners span{display:flex;justify-content:space-between;gap:14px}.owners small{color:#8e969c}.ship-maker{margin:-6px 0 12px!important;color:#8f979d!important;text-transform:uppercase;letter-spacing:.1em;font-size:11px!important}.crew-me b{color:var(--red)!important;text-shadow:0 0 18px rgba(176,4,9,.25)}
.op-tabs{display:flex;gap:8px;margin:0 0 24px;border-bottom:1px solid var(--line)}.op-tabs a{padding:13px 18px;color:#92999f;text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.12em;border-bottom:2px solid transparent}.op-tabs a.active,.op-tabs a:hover{color:#fff;border-color:var(--red)}
.assign-ship{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(520px,1.3fr);gap:28px;align-items:end;margin-bottom:28px}.assign-ship form{display:grid;grid-template-columns:minmax(280px,1fr) minmax(180px,.55fr) auto;gap:12px;align-items:end}.assign-ship button{margin:0}.manage-ship h2{font-size:clamp(22px,1.6vw,30px);overflow-wrap:anywhere}.crew-form{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr auto!important;gap:8px!important}.crew-form button{margin:0}.crew-form input,.crew-form select{min-width:0}
.op-create form{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.op-create textarea{grid-column:1/-1}.op-create button{grid-column:1/-1;justify-self:end;margin-top:4px}.admin-op-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-op-card{border:1px solid var(--line);background:linear-gradient(145deg,#121518,#0c0e10);padding:26px;display:flex;flex-direction:column;justify-content:space-between;gap:22px;clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%)}.admin-op-card h2{font-size:25px;margin:7px 0 16px}.admin-op-card>div>p{color:#a6adb2;line-height:1.55}.op-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.op-meta span{padding:10px;background:#090b0c;border:1px solid var(--line-soft);font-size:12px;color:#d5d8da}.op-meta b{display:block;color:#7f878d;text-transform:uppercase;font-size:9px;letter-spacing:.12em;margin-bottom:5px}.op-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.op-actions .action,.op-actions button{margin:0;text-decoration:none;display:inline-flex;align-items:center}
.catalog-add form{display:grid;grid-template-columns:.6fr 1fr 1fr .6fr auto;gap:10px;align-items:end}.catalog-add button{margin:0}.catalog-list{display:grid;gap:8px}.catalog-row{border:1px solid var(--line);background:#0d0f11}.catalog-row summary{cursor:pointer;list-style:none;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:20px}.catalog-row summary::-webkit-details-marker{display:none}.catalog-row summary>span:first-child{display:grid;grid-template-columns:80px minmax(180px,1fr) minmax(180px,1fr);align-items:center;gap:14px}.catalog-row summary b{color:#858d93;font-size:10px;letter-spacing:.12em}.catalog-row summary strong{font-size:15px}.catalog-row summary small,.catalog-row summary>span:last-child{color:#8e969c;font-size:11px}.catalog-off{opacity:.58}.catalog-edit{padding:14px 18px 18px;border-top:1px solid var(--line-soft);display:grid;grid-template-columns:1fr auto;gap:10px}.catalog-edit>form:first-child{display:grid;grid-template-columns:.6fr 1fr 1fr .6fr auto;gap:8px}.catalog-edit button{margin:0}
@media(max-width:1100px){.assign-ship{grid-template-columns:1fr}.assign-ship form{grid-template-columns:1fr 1fr}.assign-ship form button{grid-column:1/-1}.crew-form{grid-template-columns:1fr 1fr!important}.crew-form button{grid-column:1/-1}.admin-op-grid{grid-template-columns:1fr}.catalog-add form,.catalog-edit>form:first-child{grid-template-columns:1fr 1fr}.catalog-add button,.catalog-edit>form:first-child button{grid-column:1/-1}.op-create form{grid-template-columns:1fr 1fr}.op-create input:first-child{grid-column:1/-1}}
@media(max-width:720px){.op-meta{grid-template-columns:1fr}.op-create form,.assign-ship form,.crew-form,.catalog-add form,.catalog-edit>form:first-child{grid-template-columns:1fr!important}.catalog-row summary{align-items:flex-start;flex-direction:column}.catalog-row summary>span:first-child{grid-template-columns:1fr}.catalog-edit{grid-template-columns:1fr}.top-nav{display:none}}

/* ===== V2.1 — passe graphique SFI Center / Fleet Manager ===== */
:root{--content:min(1500px,calc(100vw - clamp(40px,8vw,150px)));--panel3:#0d1012;--panel4:#111519}
body{background:radial-gradient(circle at 12% 12%,rgba(176,4,9,.025),transparent 24rem),linear-gradient(180deg,#090b0d,#060708 72%)}
.dashboard{padding-top:32px}.fleet-page{max-width:1500px}.fleet-nav{margin:0 0 32px;padding:0 2px 15px;gap:clamp(16px,1.7vw,28px)}
.fleet-nav a{font-size:9px;letter-spacing:.13em}.fleet-nav a:hover:after{bottom:-16px}
.eyebrow{color:var(--red);font-size:9px;letter-spacing:.18em}.page-head{min-height:150px;padding:30px 38px;background:linear-gradient(100deg,rgba(176,4,9,.09),rgba(176,4,9,.018) 24%,#0c0f11 58%,#0a0c0e);clip-path:none}.page-head:before{content:"";position:absolute;left:0;top:0;width:100%;height:1px;background:linear-gradient(90deg,var(--red),rgba(176,4,9,.1) 34%,transparent 65%)}

/* Accueil : sobre, une vraie porte d'entrée et uniquement les modules existants */
.center-shell{width:var(--content);max-width:1500px;margin:0 auto;padding:clamp(44px,5vw,76px) 0 90px}.center-intro-panel{position:relative;display:grid;grid-template-columns:1fr auto;align-items:end;gap:40px;padding:clamp(30px,3vw,48px) 0 34px;border-bottom:1px solid var(--line)}.center-intro-panel:before{content:"";position:absolute;left:0;bottom:-1px;width:110px;height:2px;background:var(--red)}.center-intro-panel h1{font-size:clamp(42px,4vw,68px);margin:0 0 10px;letter-spacing:-.045em}.center-intro-panel p{margin:0;color:#9da4a9;font-size:clamp(14px,.9vw,17px)}.center-signature{display:flex;align-items:center;gap:16px;color:#777f85;font-size:9px;letter-spacing:.22em;white-space:nowrap}.center-signature span{width:58px;height:1px;background:#4b1718}.center-tools{padding-top:42px}.center-tools-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:20px}.center-tools-head h2{font-size:clamp(25px,1.7vw,34px);margin:0}.center-tools-head p{margin:0;color:#7f878d;font-size:12px}.center-tool-card{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(360px,1.1fr) auto;align-items:stretch;max-width:1120px;min-height:250px;border:1px solid #292d31;background:linear-gradient(115deg,#111519,#0b0e10);text-decoration:none;overflow:hidden;transition:.18s}.center-tool-card:hover{border-color:#454b50;transform:translateY(-2px)}.tool-mark{position:relative;display:grid;place-items:center;min-height:250px;color:#747c83;border-right:1px solid #24282c;background:radial-gradient(circle at 20% 50%,rgba(176,4,9,.055),transparent 45%),#0d1013}.tool-mark span{position:absolute;left:18px;top:16px;color:#646c72;font-size:9px;font-weight:900;letter-spacing:.18em}.tool-mark svg{width:88%;max-width:500px}.tool-copy{padding:42px 36px;align-self:center}.tool-copy h3{font-size:clamp(28px,2vw,38px);margin:0 0 12px}.tool-copy p{max-width:520px;margin:0;color:#969ea4;line-height:1.65;font-size:14px}.tool-open{align-self:stretch;display:flex;align-items:center;gap:12px;padding:0 28px;border-left:1px solid #24282c;color:#d5d9db;text-transform:uppercase;font-size:9px;font-weight:900;letter-spacing:.13em}.tool-open span{color:var(--red);font-size:18px;transition:.18s}.center-tool-card:hover .tool-open span{transform:translateX(4px)}

/* Gestion / briefing opérationnel */
.op-command-head{display:grid;grid-template-columns:minmax(0,1fr) 220px 220px auto;gap:14px;margin-bottom:22px}.op-command-main,.op-fact,.op-state{border:1px solid #292e32;background:#101417;min-height:170px}.op-command-main{position:relative;padding:30px 34px;overflow:hidden;background:linear-gradient(105deg,rgba(176,4,9,.065),#111417 26%,#0e1113)}.op-command-main:before{content:"";position:absolute;left:0;top:0;width:100%;height:2px;background:linear-gradient(90deg,var(--red),rgba(176,4,9,.08) 55%,transparent)}.op-command-main h1{font-size:clamp(34px,2.6vw,50px);margin:0 0 13px}.op-command-main p{max-width:850px;margin:0;color:#a1a8ad;line-height:1.65;font-size:13px}.op-fact{position:relative;padding:28px 24px;display:flex;flex-direction:column;justify-content:space-between}.op-fact:after{content:"";position:absolute;left:24px;bottom:20px;width:54px;height:2px;background:var(--red)}.op-fact span{color:#7f878d;text-transform:uppercase;font-size:9px;font-weight:800;letter-spacing:.15em}.op-fact strong{font-size:15px;margin-bottom:24px}.op-state{min-width:120px;padding:20px 14px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}.status-chip{display:inline-flex;align-items:center;min-height:27px;padding:0 10px;border:1px solid #41474c;color:#cfd3d6;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.status-chip.planned{border-color:var(--sfi-red);color:#f0d3d3}.status-chip.completed{border-color:#365044;color:#b9d7c7}.status-chip.cancelled{opacity:.6}.op-state form button{margin:0}.briefing-view{grid-template-columns:minmax(0,1fr) 240px 240px}.briefing-view .op-command-main{min-height:190px}
.assign-panel{display:grid;grid-template-columns:minmax(280px,.65fr) minmax(540px,1.35fr);gap:30px;align-items:end;padding:26px 30px;margin-bottom:30px;border:1px solid #292e32;background:#0f1316}.assign-panel h2{font-size:24px;margin:0 0 6px}.assign-panel p{margin:0;color:#8f979d;font-size:12px;line-height:1.5}.assign-panel form{display:grid;grid-template-columns:minmax(300px,1fr) minmax(190px,.55fr) auto;gap:10px}.assign-panel button{margin:0}.composition-title{display:grid;grid-template-columns:1fr auto;align-items:end;margin:30px 0 16px}.composition-title .eyebrow{grid-column:1/-1;margin-bottom:5px}.composition-title h2{margin:0;font-size:24px}.composition-title>span:last-child{color:#727a80;text-transform:uppercase;font-size:9px;font-weight:800;letter-spacing:.12em}
.brief-grid{gap:14px}.brief-ship{padding:22px;background:#0f1316;border-color:#292e32}.brief-ship:after{font-size:54px;right:18px;top:10px;color:rgba(255,255,255,.018)}.brief-ship h2{position:relative;z-index:1;margin:0 0 7px;font-size:clamp(22px,1.55vw,30px);overflow-wrap:normal;word-break:normal}.brief-ship>p,.ship-card-head p{margin:4px 0;color:#8d959b}.ship-maker{margin:0 0 9px!important}.ship-card-head{position:relative;z-index:1}.crew-label{margin:20px 0 8px;color:#7d858b;text-transform:uppercase;font-size:8px;font-weight:900;letter-spacing:.15em}.crew{margin:0;gap:6px}.crew>div{min-height:48px;padding:9px 12px;background:#13171a;border-color:#282d31}.crew>div b{font-size:13px}.crew span span,.crew em{font-size:8px;margin-top:4px}.crew-form{grid-template-columns:1.05fr .9fr .85fr .9fr auto!important;padding-top:12px;margin-top:12px!important;border-top:1px solid #24282c}.crew-form input,.crew-form select{height:40px;font-size:11px}.crew-form button{height:40px;min-height:40px;padding:0 16px;font-size:9px}.crew-x{width:27px!important;height:27px!important;min-height:27px!important}.manage-grid{margin-top:0}

/* Gestion des opérations */
.op-create{padding:28px 30px;margin-bottom:34px}.form-head{margin-bottom:18px}.form-head h2{margin:0}.op-create form{grid-template-columns:1fr 1fr .72fr}.op-create textarea{min-height:100px}.op-create button{min-width:220px}.admin-op-grid{gap:14px}.admin-op-card{padding:24px;background:#0f1316;border-color:#292e32;clip-path:none}.op-card-top{display:flex;justify-content:space-between;align-items:center;color:#777f85;text-transform:uppercase;font-size:9px;letter-spacing:.1em}.admin-op-card h2{font-size:27px;margin:15px 0}.op-meta{grid-template-columns:1fr 1fr}.op-meta span{background:#0a0d0f;border-color:#24292d}.admin-op-card>div>p{min-height:42px}.op-actions{padding-top:14px;border-top:1px solid #24282c}.op-actions .action{min-height:36px;padding:0 15px;font-size:9px}.op-edit{position:relative}.op-edit summary{cursor:pointer;min-height:36px;display:flex;align-items:center;padding:0 14px;border:1px solid #343a40;color:#c7cbce;text-transform:uppercase;font-size:9px;font-weight:800;letter-spacing:.1em}.op-edit[open]{width:100%;margin-top:8px}.op-edit form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;background:#090c0e;border:1px solid #2a2f33}.op-edit textarea{grid-column:1/-1;min-height:80px}.op-edit button{grid-column:1/-1;justify-self:end;margin:0}

/* Programme / historique */
.op-tabs{gap:24px}.op-tabs a{padding:12px 2px}.operation-list{gap:10px}.operation-card{display:grid;grid-template-columns:110px minmax(0,1fr) auto;padding:0;border-top-width:1px;background:#0f1316;min-height:105px}.operation-date{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:18px;border-right:1px solid #292e32;background:#0b0e10}.operation-date span{font-size:10px}.operation-date strong{margin-top:7px;font-size:17px}.operation-copy{padding:18px 6px}.operation-copy .eyebrow{margin-bottom:4px}.operation-copy h2{margin:0 0 6px}.operation-card>b{padding-right:24px}.operation-card.subdued{opacity:.78}.operation-card:hover{border-color:#4a4f53}

/* Flotte globale / personnelle */
.model-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.model-card{background:#0f1316;border-color:#292e32;padding:22px}.model-card h2{font-size:22px}.owners>span{background:#0a0d0f;border-color:#252a2e}.ship-row{background:#0f1316;border-color:#292e32}.fleet-search input{height:46px}

@media(max-width:1280px){.op-command-head{grid-template-columns:minmax(0,1fr) 200px 200px}.op-state{grid-column:1/-1;min-height:auto;flex-direction:row;justify-content:flex-end}.briefing-view{grid-template-columns:minmax(0,1fr) 210px 210px}.assign-panel{grid-template-columns:1fr}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.center-tool-card{grid-template-columns:minmax(300px,.8fr) minmax(320px,1fr) auto}}
@media(max-width:900px){:root{--content:calc(100vw - 34px)}.center-intro-panel{grid-template-columns:1fr}.center-signature{display:none}.center-tools-head{align-items:flex-start;flex-direction:column}.center-tool-card{grid-template-columns:1fr}.tool-mark{border-right:0;border-bottom:1px solid #24282c;min-height:210px}.tool-open{min-height:64px;border-left:0;border-top:1px solid #24282c}.op-command-head,.briefing-view{grid-template-columns:1fr 1fr}.op-command-main{grid-column:1/-1}.op-state{grid-column:1/-1}.assign-panel form{grid-template-columns:1fr 1fr}.assign-panel form button{grid-column:1/-1}.brief-grid{grid-template-columns:1fr}.admin-op-grid,.model-grid{grid-template-columns:1fr}.op-create form{grid-template-columns:1fr 1fr}.op-create input:first-child{grid-column:1/-1}.crew-form{grid-template-columns:1fr 1fr!important}.crew-form button{grid-column:1/-1}.operation-card{grid-template-columns:95px minmax(0,1fr)}.operation-card>b{grid-column:2;padding:0 0 18px 6px}}
@media(max-width:620px){.op-command-head,.briefing-view{grid-template-columns:1fr}.op-command-main,.op-fact,.op-state{grid-column:1}.op-fact{min-height:110px}.assign-panel{padding:20px}.assign-panel form,.op-create form,.crew-form{grid-template-columns:1fr!important}.op-create input:first-child{grid-column:auto}.op-edit form{grid-template-columns:1fr}.operation-card{grid-template-columns:1fr}.operation-date{border-right:0;border-bottom:1px solid #292e32}.operation-card>b{grid-column:1;padding:0 18px 18px}.tool-copy{padding:28px 24px}.top-brand .brand-copy{display:none}}

/* V2.2 — fluid, controlled ultrawide layout; keep readable text widths */
:root{--content:min(94vw,2400px)}
.dashboard,.fleet-page,.center-shell{width:var(--content);max-width:none;margin-left:auto;margin-right:auto}
.center-shell{padding-top:clamp(34px,3vw,66px)}
.center-tool-card{max-width:none;grid-template-columns:minmax(260px,.7fr) minmax(340px,1.3fr) auto}
.center-tools{max-width:none}
.fleet-hero{grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr)}
.fleet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fleet-kpis{min-width:0}
.account-list{max-width:none}
/* Flexible columns never force horizontal overflow */
.fleet-hero>*,.fleet-grid>*,.center-tool-card>*,.op-command-head>*,.brief-grid>*,.model-grid>*,.admin-op-grid>*{min-width:0}
@media(min-width:2000px){:root{--content:min(94vw,2400px)}.fleet-hero{gap:clamp(26px,2vw,54px)}.fleet-grid{gap:clamp(20px,1.3vw,34px)}.fleet-tile{min-height:250px}.center-tool-card{min-height:300px}.tool-mark{min-height:300px}.center-tool-card .tool-copy{padding:clamp(34px,2.3vw,56px)}}
@media(max-width:1280px){:root{--content:calc(100vw - 64px)}.fleet-hero{grid-template-columns:1fr}.fleet-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.center-tool-card{grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr) auto}}
@media(max-width:900px){:root{--content:calc(100vw - 34px)}.center-tool-card{grid-template-columns:1fr}.fleet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.center-shell{padding-top:30px}}
@media(max-width:620px){:root{--content:calc(100vw - 24px)}.dashboard,.fleet-page,.center-shell{width:var(--content)}.fleet-grid,.fleet-kpis{grid-template-columns:1fr}.center-tool-card{grid-template-columns:1fr}.center-intro-panel h1{font-size:clamp(36px,10vw,56px)}.top{min-width:0}.top-right{min-width:0}}

/* V3 - modules transversaux */
.v3-wrap{width:min(94vw,1800px);margin:32px auto 70px}.v3-nav{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.v3-nav a{color:#ddd;border:1px solid #45454c;border-radius:9px;padding:10px 15px;text-decoration:none}.v3-nav a:hover{border-color:var(--sfi-red)}.v3-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.v3-panel{background:#17191e;border:1px solid #33363d;border-radius:14px;padding:24px;margin-bottom:18px}.v3-panel h2{margin-top:0}.v3-table{width:100%;border-collapse:collapse}.v3-table th,.v3-table td{text-align:left;padding:12px;border-bottom:1px solid #33363d;vertical-align:top}.v3-table th{color:#bbb}.v3-table-wrap{overflow:auto}.v3-form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.v3-form label{display:flex;flex-direction:column;gap:6px;flex:1 1 160px}.v3-form input,.v3-form select,.v3-form textarea{width:100%;min-width:0;padding:11px;background:#101116;color:#f2f2f2;border:1px solid #494c54;border-radius:8px}.v3-form button,.v3-btn{background:var(--sfi-red);color:white;border:0;border-radius:8px;padding:11px 16px;cursor:pointer;text-decoration:none}.v3-form button.secondary{background:#444}.v3-small{font-size:.84rem;color:#aaa}.v3-pill{display:inline-block;padding:4px 9px;background:#292d34;border-radius:16px;margin:2px}.v3-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;margin-top:18px}.v3-tools>a,.v3-future{display:flex;flex-direction:column;gap:10px;background:#191b20;border:1px solid #34373e;padding:25px;border-radius:14px;color:#fff;text-decoration:none}.v3-tools span{color:#aaa}.v3-future{opacity:.55}.v3-alert{padding:12px 16px;border-left:3px solid var(--sfi-red);background:#292026;margin-bottom:15px}.v3-stat{font-size:2rem;font-weight:700}.v3-panel details{margin-top:10px}.v3-panel summary{cursor:pointer}@media(max-width:700px){.v3-wrap{width:95vw}.v3-panel{padding:14px}.v3-table th,.v3-table td{padding:8px;font-size:.85rem}.top-nav{flex-wrap:wrap}}

/* SFI CENTER V3.1 / PREMIUM SYSTEM — quiet surfaces, strong hierarchy */
:root{--sfi-bg:#080a0d;--sfi-panel:#111419;--sfi-panel-hi:#15191e;--sfi-line:rgba(165,178,190,.085);--sfi-muted:#929ba5}
html{scroll-behavior:smooth}body{background:#080a0d;color:#eceff1}
.premium-module{background:radial-gradient(ellipse at 77% 0%,rgba(44,24,28,.13),transparent 45%),#080a0d;font-family:inherit}
.module-shell{width:min(94vw,2380px);min-height:100vh;margin:auto;display:grid;grid-template-columns:clamp(230px,15vw,292px) minmax(0,1fr);border-left:1px solid var(--sfi-line);border-right:1px solid var(--sfi-line)}
.module-sidebar{position:sticky;top:0;align-self:start;min-height:100vh;display:flex;flex-direction:column;background:#0b0e12;border-right:1px solid var(--sfi-line)}
.module-logo{display:flex;justify-content:center;align-items:center;padding:42px 28px 32px;min-height:170px}.module-logo img{width:min(100%,195px);max-height:145px;object-fit:contain}
.module-id{margin:0 25px 30px;padding-bottom:26px;border-bottom:1px solid var(--sfi-line);display:grid;gap:7px}.module-id span,.module-id small,.module-account span{font-size:10px;letter-spacing:.19em;color:#6d7781;font-weight:800}.module-id strong{font-size:clamp(17px,1.2vw,23px);line-height:1.15;text-transform:uppercase;letter-spacing:.02em}.module-id small{color:var(--sfi-red)}
.module-menu{display:flex;flex-direction:column}.module-menu a{display:flex;align-items:center;gap:15px;padding:20px 24px;color:#b5bec6;font-size:clamp(13px,.78vw,15px);font-weight:700;text-decoration:none;border-left:3px solid transparent;border-bottom:1px solid rgba(255,255,255,.025);transition:background .18s,color .18s}.module-menu a i{font-style:normal;color:#64717c;font-size:11px;letter-spacing:.08em}.module-menu a:hover{color:#fff;background:#15181d}.module-menu a.selected{color:#f4f5f6;background:linear-gradient(90deg,rgba(176,4,9,.22),rgba(176,4,9,.025));border-left-color:var(--sfi-red)}
.module-account{margin:auto 24px 0;padding:30px 0 28px;border-top:1px solid var(--sfi-line);display:flex;flex-direction:column;gap:7px}.module-account strong{font-size:19px;letter-spacing:.07em}.module-account small{font-size:10px;color:var(--sfi-red);letter-spacing:.16em;text-transform:uppercase;font-weight:800}.module-account form{margin-top:13px}.module-account button{width:100%;background:#151a20;color:#bfc7ce;border:1px solid var(--sfi-line);border-radius:5px;min-height:43px;font-size:12px;cursor:pointer}
.module-main{min-width:0}.module-topline{display:flex;align-items:center;gap:22px;margin:0 clamp(24px,2.4vw,52px);height:93px}.module-topline>span{height:1px;flex:1;background:linear-gradient(90deg,transparent,var(--sfi-red))}.module-topline>span:nth-of-type(2){background:linear-gradient(90deg,var(--sfi-red),transparent)}.module-topline b{font-size:clamp(10px,.68vw,13px);letter-spacing:.24em;color:#939ba5;white-space:nowrap}.module-topline a{margin-left:20px;white-space:nowrap;color:#b7c0c8;text-decoration:none;font-size:12px;padding:12px 17px;border:1px solid var(--sfi-line);border-radius:5px}
.premium-module .v3-wrap{width:auto;max-width:none;margin:0 clamp(24px,2.4vw,52px) 100px}.module-hero{min-height:285px;padding:clamp(32px,3vw,56px);display:flex;justify-content:space-between;align-items:center;gap:25px;background:radial-gradient(circle at 90% 30%,rgba(176,4,9,.13),transparent 42%),linear-gradient(125deg,#15191f,#111318 80%);border:1px solid var(--sfi-line);border-top:2px solid var(--sfi-red);border-radius:6px;margin-bottom:22px}.module-hero h1{font-size:clamp(38px,3.2vw,66px);letter-spacing:-.035em;line-height:.99;font-weight:900;margin:18px 0 21px;text-transform:uppercase}.module-hero h1 em{font-style:normal;color:var(--sfi-red)}.module-hero p{max-width:620px;font-size:clamp(14px,.85vw,17px);line-height:1.65;color:#a7b0b9;margin:0}.module-hero .eyebrow{font-size:10px;letter-spacing:.2em}.hero-insignia{text-align:center;min-width:165px;opacity:.65}.hero-insignia span{display:block;font-size:clamp(34px,3.4vw,66px);font-weight:900;letter-spacing:-.06em;color:var(--sfi-red)}.hero-insignia small{font-size:9px;letter-spacing:.19em;color:#78828d}
.module-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.module-kpi-strip>div{min-width:0;min-height:140px;padding:23px 24px;background:linear-gradient(155deg,#14171c,#101318);border:1px solid var(--sfi-line);border-radius:6px;display:flex;flex-direction:column;gap:9px}.module-kpi-strip span{font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:#aeb6bd;font-weight:800}.module-kpi-strip strong{font-size:clamp(29px,2.25vw,46px);line-height:1;color:#f2f3f4}.module-kpi-strip strong.kpi-word{font-size:clamp(17px,1.3vw,25px);letter-spacing:.05em;color:#d8dde1}.module-kpi-strip small{color:#7e8993;font-size:12px}
.premium-module .v3-panel{background:linear-gradient(155deg,#14171c,#111419);border:1px solid var(--sfi-line);border-radius:6px;padding:clamp(24px,2vw,38px);margin-bottom:16px;min-width:0}.premium-module .v3-panel h2{font-size:clamp(21px,1.25vw,27px);letter-spacing:-.015em;margin:0 0 22px;color:#e8eaec}.panel-subtitle{font-size:10px;color:#7b8791;letter-spacing:.13em;margin-left:8px}.premium-module .v3-grid{gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.premium-module .v3-grid>.v3-panel{height:100%}.premium-module .v3-panel p{color:#a7b0b8;line-height:1.6}.premium-module .v3-panel a{color:#d7dfe6}.premium-module .v3-stat{font-size:clamp(34px,2.3vw,47px);font-weight:850;line-height:1.1}
.premium-module .v3-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:19px;align-items:end}.premium-module .v3-form label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#a5afb8;font-weight:750;min-width:0}.premium-module .v3-form input,.premium-module .v3-form select,.premium-module .v3-form textarea,.premium-module input[type=file]{background:#0d1014;border:1px solid #293039;color:#e8ebee;border-radius:5px;min-height:47px;font-size:14px;letter-spacing:normal;text-transform:none;margin-top:8px}.premium-module .v3-form input:focus,.premium-module .v3-form select:focus{outline:1px solid var(--sfi-red);border-color:var(--sfi-red)}.premium-module .v3-form button,.premium-module .v3-btn{border-radius:5px;background:var(--sfi-red);font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;min-height:46px;padding:12px 18px}.premium-module .v3-form button:hover,.premium-module .v3-btn:hover{background:var(--sfi-red)}.premium-module .v3-form button:disabled{opacity:.35;cursor:not-allowed}.premium-module .v3-table{background:transparent}.premium-module .v3-table th{background:#0e1115;color:#8c98a3;letter-spacing:.12em;text-transform:uppercase;font-size:10px;border-color:var(--sfi-line)}.premium-module .v3-table td{color:#d1d7dc;font-size:13px;border-color:var(--sfi-line);padding:19px 16px}.premium-module .v3-table tr:hover td{background:rgba(255,255,255,.015)}.premium-module .v3-pill{background:#1c2229;color:#ccd3da;border-radius:4px;padding:6px 10px}.premium-module .v3-small{color:#8c97a1}.premium-module .v3-alert{background:#20151a;border-color:var(--sfi-red)}.premium-module details{margin-top:12px}.premium-module summary{color:#d1d7dd;cursor:pointer;font-weight:700}.premium-module #bp-import{display:flex;flex-wrap:wrap;gap:17px;align-items:center}.premium-module #bp-import input{flex:1;min-width:200px;padding:12px}.premium-module #bp-import button{background:var(--sfi-red);border:0;border-radius:5px;padding:15px 22px;color:#fff;cursor:pointer}.premium-module .v3-project-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.premium-module .v3-project-tabs a{padding:11px 15px;border:1px solid var(--sfi-line);color:#d3dbe2;text-decoration:none;border-radius:5px}
/* Portal: four equally weighted tools */
.premium-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-top:28px}.hub-module{min-height:345px;display:flex;flex-direction:column;position:relative;overflow:hidden;padding:clamp(30px,2.5vw,52px);background:radial-gradient(circle at 90% 12%,rgba(176,4,9,.10),transparent 45%),linear-gradient(130deg,#14181d,#0e1115);border:1px solid rgba(170,180,190,.09);border-radius:5px;color:#f0f2f4;text-decoration:none;transition:transform .2s,border-color .2s,background .2s}.hub-module:hover{transform:translateY(-3px);border-color:rgba(176,4,9,.42)}.hub-card-top,.hub-card-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.15em;font-weight:850;color:#8f9aa4}.hub-card-top b{font-size:23px;font-weight:400}.hub-symbol{margin:17px 0 10px;color:var(--sfi-red);font-size:clamp(54px,4vw,88px);line-height:1;opacity:.8}.hub-module h3{font-size:clamp(25px,1.8vw,36px);margin:5px 0 11px;letter-spacing:-.035em}.hub-module p{font-size:clamp(13px,.9vw,16px);line-height:1.55;max-width:520px;color:#9da7b0;margin:0 0 32px}.hub-card-foot{margin-top:auto;padding-top:20px;border-top:1px solid var(--sfi-line);color:#c2c9d0}.hub-card-foot span{font-size:21px;color:var(--sfi-red)}
/* Fleet typography and spatial hierarchy */
.premium-fleet-header .top-nav a{font-size:13px}.fleet-nav{gap:clamp(18px,1.7vw,36px)!important;padding:12px 0 17px!important}.fleet-nav a{font-size:clamp(12px,.8vw,15px)!important;letter-spacing:.09em!important;padding:13px 2px!important}.fleet-hero{min-height:360px}.fleet-hero h1{font-size:clamp(40px,3vw,68px)}.fleet-tile{padding:clamp(26px,2vw,44px);min-height:210px}.fleet-tile h2{font-size:clamp(24px,1.6vw,33px)}
@media(max-width:1150px){.module-shell{width:100%;grid-template-columns:215px minmax(0,1fr)}.module-topline{margin:0 24px}.premium-module .v3-wrap{margin-left:24px;margin-right:24px}.module-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-insignia{display:none}}
@media(max-width:760px){.module-shell{display:block}.module-sidebar{position:relative;min-height:0;border-bottom:1px solid var(--sfi-line)}.module-logo{min-height:0;padding:20px}.module-logo img{max-height:75px}.module-id{margin:0 18px 12px;padding-bottom:12px}.module-menu{flex-direction:row;overflow-x:auto}.module-menu a{flex:none;padding:14px 16px;white-space:nowrap;font-size:12px}.module-account{display:none}.module-topline{height:70px;gap:10px}.module-topline b{font-size:9px;letter-spacing:.07em}.module-topline a{margin-left:0;font-size:11px;padding:9px}.module-hero{min-height:220px;padding:25px}.module-hero h1{font-size:clamp(30px,8vw,48px)}.module-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-module .v3-grid{grid-template-columns:1fr}.premium-hub-grid{grid-template-columns:1fr}.hub-module{min-height:280px}}
@media(max-width:460px){.module-kpi-strip{gap:8px}.module-kpi-strip>div{padding:16px;min-height:115px}.module-kpi-strip span{font-size:9px}.module-kpi-strip strong{font-size:27px}.module-topline>span{display:none}.module-topline{justify-content:space-between}.premium-module .v3-wrap{margin-left:14px;margin-right:14px}.premium-module .v3-panel{padding:18px}.premium-module .v3-form{grid-template-columns:1fr}.hub-module{padding:25px}}

/* V3.3 module navigation and working views */
.premium-module .module-hero { min-height: unset; padding-block: clamp(1.1rem, 3vw, 2.25rem); }
.premium-module .module-hero h1 { font-size: clamp(1.8rem, 4.2vw, 3.35rem); }
.premium-module .v3-panel { margin-block: 1rem; }
.premium-module details.v3-panel > summary { cursor: pointer; font-weight: 700; }
.premium-module details.v3-panel[open] > summary { margin-bottom: 1rem; }
.premium-module .v3-form { align-items: end; }
.premium-module .v3-table td { vertical-align: top; }
.blueprint-dashboard > a { color: inherit; text-decoration: none; }
.blueprint-dashboard > a:hover, .blueprint-dashboard > a:focus-visible { border-color: var(--sfi-red); }

.dashboard.fleet-page { display: grid; grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.fleet-page > .fleet-nav { display: grid; grid-template-columns: 1fr; position: sticky; top: 1rem; margin: 0; }
.fleet-page > .fleet-content { min-width: 0; }
.fleet-nav a[aria-current="page"] { border-color: var(--sfi-red); color: var(--sfi-red); }
.fleet-content :is(.brief-grid, .admin-op-grid, .model-grid) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.fleet-content .crew .crew-me b, .module-account strong, .user-identity strong { color: var(--sfi-red); }
.op-command-main p { white-space: pre-wrap; }
.fleet-content .fleet-form summary { cursor: pointer; font-weight: 700; }
@media (max-width: 850px) {
  .dashboard.fleet-page { grid-template-columns: minmax(0, 1fr); }
  .fleet-page > .fleet-nav { display: flex; flex-wrap: wrap; position: static; }
}

/* SFI Center 3.4 */
:root {
  color-scheme: dark;
  --sfi-bg: #0e1013;
  --sfi-panel: #15181d;
  --sfi-panel-hi: #191d23;
  --sfi-line: #2c333c;
  --sfi-muted: #b2bac5;
  --sfi-accent: var(--sfi-red);
  --sfi-cyan: var(--sfi-medical);
  --red: var(--sfi-red);
  --red-hover: var(--sfi-red);
}
body, .premium-module { background: var(--sfi-bg); font-size: 16px; line-height: 1.5; }
:focus-visible { outline: 2px solid #e3e7eb !important; outline-offset: 3px; }
[hidden] { display: none !important; }
input:autofill, input:-webkit-autofill {
  -webkit-text-fill-color: #f3f4f6;
  box-shadow: 0 0 0 1000px #11151a inset;
  caret-color: #fff;
}
button, .action, .top-nav a, label, th, td, summary, .v3-small,
.premium-module .v3-form label, .premium-module .v3-form button,
.premium-module .v3-table td, .premium-module .v3-table th { font-size: 14px; letter-spacing: .01em; }
button:disabled { cursor: not-allowed; opacity: .5; }
.module-menu a { font-size: 16px; padding: 15px 19px; }
.module-menu a.selected { background: #241514; border-color: var(--sfi-red); }
.module-account strong { color: #eceff2; overflow-wrap: anywhere; }
.module-account small { color: var(--sfi-accent); }
.module-account form, .module-account button { margin-top: 0; }
.module-topline a, a.v34-link {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px;
  border: 1px solid #525c6a; border-radius: 5px; color: #f0f2f6; font-size: 15px;
  font-weight: 750; text-decoration: none; background: #171b21;
}
.module-topline a:hover, a.v34-link:hover, a.v34-link.active { border-color: var(--sfi-red); background: #351b19; }
.module-hero h1 em, .crew .crew-me b, .owners .owner-me b { color: var(--sfi-accent); }
.module-hero .hero-insignia { display: none; }
.premium-module .v3-table th { color: #c1c9d3; letter-spacing: .04em; text-transform: none; }
.v3-table-wrap, .tablewrap { max-width: 100%; min-width: 0; }
.v3-panel .v3-table { min-width: 520px; }
.v3-panel .v3-form input:not([type=hidden]), .v3-panel .v3-form select { margin: 0; }
.v3-panel .v3-form, .premium-module .v3-form, .premium-module #bp-import {
  display: flex; align-items: end; flex-wrap: wrap; gap: 12px; max-width: 1050px; margin-bottom: 14px;
}
.v3-form label, .premium-module .v3-form label, .v3-form .item-dynamic {
  flex: 0 1 220px; min-width: min(160px,100%); margin: 0; text-transform: none;
}
.v3-form .item-dynamic label { min-width: 0; }
.v3-form button, .premium-module .v3-form button, .premium-module #bp-import button { margin-top: 0; }
.v3-table td .v3-form { min-width: 185px; margin-top: 10px; }
.v3-table td .v3-form label { flex: 1 0 100%; }
.v3-table td .v3-form button { white-space: normal; }
.v3-panel details > summary { padding-block: 6px; }
.v3-panel .v3-small { color: var(--sfi-muted); }
.v34-pager { display:flex; flex-wrap:wrap; align-items:center; gap: 10px; margin-top: 14px; }
.premium-module .v3-grid.v34-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.premium-module .v3-grid.v34-stats .v3-panel h2 { font-size: 15px; margin-bottom: 12px; }
.premium-module .v3-grid.v34-dashboard { margin-top: 14px; grid-template-columns: 1.25fr 1fr; }
.bp-owners ul { padding-left: 20px; }
#bp-send { margin-top: 0; }
#bp-logs input, #bp-import input { height: auto; min-height: 44px; max-width: 100%; overflow: hidden; }
#bp-logs label { flex-basis: 290px; }
#bp-unresolved { max-height: 15rem; overflow: auto; }
.premium-hub-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.hub-module { min-height: 245px; padding: 25px; }
.hub-card-top { display: none; }
.hub-symbol { font-size: 44px; color: var(--sfi-accent); margin-top: 0; }
.hub-module.hub-medical { border-color: #2c5157; background: #111c21; }
.hub-module.hub-medical :is(.hub-symbol,.hub-card-foot) { color: var(--sfi-cyan); }
.hub-module.hub-medical:hover { transform: none; }
.wikelo-summary { border-top: 3px solid var(--sfi-red) !important; }
.wikelo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.wikelo-global { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wikelo-global h2 { margin-bottom: 0 !important; }
.wikelo-global p { margin: 4px 0; }
.wikelo-ring {
  display: grid; place-items: center; flex: 0 0 100px; height: 100px; border-radius: 50%;
  background: conic-gradient(var(--sfi-red) var(--progress), #353c47 0);
}
.wikelo-ring strong {
  display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%;
  background: var(--sfi-panel); font-size: 24px;
}
.wikelo-summary .module-kpi-strip { grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 0; }
.wikelo-summary .module-kpi-strip > div { min-height: 86px; padding: 13px; }
.wikelo-summary .module-kpi-strip span { font-size: 14px; letter-spacing: 0; text-transform: none; }
.wikelo-summary .module-kpi-strip strong { font-size: 26px; }
progress { width: 95px; accent-color: var(--sfi-red); }
.dashboard.fleet-page {
  width: min(94vw,2380px); min-height: 100vh; padding: 0;
  grid-template-columns: clamp(208px,14vw,270px) minmax(0,1fr); gap: 24px; border: 1px solid var(--sfi-line);
}
.fleet-content { padding: 0 24px 50px 0; }
.fleet-content .module-topline { margin-inline: 0; height: 78px; }
.fleet-content .model-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.fleet-content .brief-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.fleet-content .model-card { min-width: 0; }
.model-card .model-top { flex-wrap: wrap; gap: 4px; }
.model-card h2, .model-card span, .brief-ship h2, .crew b { overflow-wrap: anywhere; }
.model-card .owners > span, .model-card .owners details > span { display: block; white-space: normal; padding: 5px 7px; }
.model-card .owners b { overflow: visible; text-overflow: clip; white-space: normal; font-size: 14px; }
.fleet-content .brief-ship .crew > div { overflow-wrap: anywhere; }
.crew-me { border-color: var(--sfi-accent) !important; }
.crew-me b { color: var(--sfi-accent) !important; }
.fleet-content .fleet-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.fleet-content .fleet-tile { min-height: 180px; }
.account-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-toggle button { margin: 0; }
.account-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.account-actions .danger-zone { grid-column: 1/-1; }
.account-form { grid-template-columns: repeat(2,minmax(0,260px)); }
.account-form > button { grid-column: 1/-1; justify-self: start; }
@media (min-width: 2350px) { .fleet-content .model-grid { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 1420px) {
  .fleet-content .model-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fleet-content .fleet-hero { grid-template-columns: minmax(0,1fr); }
  .premium-module .v3-grid.v34-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .fleet-content .model-grid, .premium-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wikelo-summary .module-kpi-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .top-right .user-identity { display: none; }
}
@media (max-width: 850px) {
  .dashboard.fleet-page { grid-template-columns: minmax(0,1fr); gap: 0; }
  .fleet-page .module-sidebar { position: static; min-height: 0; }
  .fleet-page .module-logo { min-height: 0; padding: 14px; }
  .fleet-page .module-logo img { max-height: 75px; }
  .fleet-page .module-menu { flex-direction: row; overflow-x: auto; }
  .fleet-page .module-menu a { flex: none; }
  .fleet-page .module-account { display: none; }
  .fleet-content { padding: 0 14px 30px; }
}
@media (max-width: 720px) {
  .fleet-content :is(.model-grid,.brief-grid,.fleet-grid,.op-command-head), .premium-hub-grid,
  .premium-module .v3-grid.v34-dashboard, .account-actions { grid-template-columns: minmax(0,1fr); }
  .top { grid-template-columns: minmax(0,1fr) auto; }
  .module-topline b, .module-topline>span { display: none; }
  .module-topline a { margin-left: auto; }
  .module-menu a { font-size: 15px; }
  .premium-module .v3-form label, .v3-form label, .v3-form .item-dynamic { max-width: 100%; }
}
@media (max-width: 480px) {
  .premium-module .v3-grid.v34-stats, .account-form { grid-template-columns: minmax(0,1fr); }
  .module-hero h1 { overflow-wrap: anywhere; }
  .premium-module #bp-import input { min-width: 0; }
  .v3-panel .v3-table { min-width: 450px; }
}

body, .premium-module, button, input, select, textarea { font-family: Arial, Helvetica, sans-serif; }
.module-logo { padding-block: 30px 24px; }
.module-logo img { width: min(100%, 200px); max-height: 155px; }
.module-id { margin-bottom: 12px; padding-bottom: 15px; }
.manufacturer-logo { display: inline-block; width: 33px; height: 27px; object-fit: contain; vertical-align: middle; margin-inline-end: 8px; }
.hub-module h3 { font-size: clamp(23px,1.65vw,34px); }
.center-home .center-shell { padding-top: 30px; }
.center-home .center-intro-panel { min-height: 145px; padding-block: 28px; }
.wikelo-summary + .v3-panel { padding-block: 15px; }
.ship-edit, .crew-edit { padding: 8px 0; }
.account-form .eye { min-height: 0; }
.module-hero h1 em { color: var(--sfi-red); }
progress::-webkit-progress-bar { background: #303741; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--sfi-red); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--sfi-red); border-radius: 4px; }

:root {
  --sfi-red: #B00409;
  --sfi-medical: #00ADB5;
  --sfi-text: #f3eee8;
  --sfi-muted: #bec3ca;
  --sfi-panel: #17191d;
  --sfi-outline: #3b4047;
  --sfi-radius: 8px;
}
body { color: var(--sfi-text); overflow-wrap: anywhere; }
:where(input, select, textarea, button) { max-width: 100%; }
:is(input, select, textarea, button, a, summary):focus-visible { outline: 2px solid #e3e7eb; outline-offset: 3px; }
:is(.v3-panel, .module-hero, .hub-module, .brief-ship, .account-card, .module-menu a) { border-radius: var(--sfi-radius); }
:is(.eyebrow, .module-topline b, .hub-card-top, .module-id small) { letter-spacing: .055em; }
:is(.brand-copy b, .module-hero h1 em, .hub-card-foot, .v3-stat, .module-kpi-strip strong, .v34-link, .hub-card-top b) { color: var(--sfi-text); }
.module-menu :is(a:hover, a.selected), button:hover { color: var(--sfi-text); }
.module-hero { border-left: 4px solid var(--sfi-red); }
.center-intro-panel { border-top: 4px solid var(--sfi-red); }
.hub-module { border-top: 3px solid var(--sfi-red); }
.hub-module.hub-medical { border-top-color: var(--sfi-medical); }
.hub-medical :is(.hub-symbol, h3), .medical-cross, .medical-module :is(h1, .module-id strong) { color: var(--sfi-medical); }
.medical-module .module-menu a.selected, .medical-assigned { border: 1px solid var(--sfi-medical); }
.extension-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%),1fr)); gap: 12px; }
.extension-record { display: grid; gap: 8px; padding: 16px; margin-block: 8px; border: 1px solid var(--sfi-outline); border-radius: var(--sfi-radius); background: var(--sfi-panel); }
.extension-record form { margin: 0; }
.record-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); }
.record-fields dt { color: var(--sfi-muted); }
.record-fields dd { margin: 4px 0 0; white-space: pre-wrap; }
.project-image { width: min(100%, 430px); max-height: 210px; object-fit: contain; object-position: left center; }
.empty-v35 { min-height: 120px; padding: 20px; background: url('/img/sfi-round.png') no-repeat right 20px center / 75px; background-blend-mode: soft-light; background-color: #191b1e; }
.request-tabs { display: flex; flex-wrap: wrap; gap: 14px; }
.request-tabs a { border: 1px solid var(--sfi-outline); border-radius: var(--sfi-radius); padding: 8px 12px; }
.fleet-content .brief-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 720px) {
 .fleet-content .brief-grid { grid-template-columns: minmax(0,1fr); }
 .fleet-search { flex-wrap: wrap; }
}

:is(.module-account strong, .user-identity strong, .fleet-content .crew .crew-me b, .fleet-nav a[aria-current="page"]) { color: var(--sfi-text); }
.premium-module .v3-form label { font-size: 14px; letter-spacing: normal; text-transform: none; }
.fleet-content .catalog-list .v3-table { min-width: min(520px,100%); }
.account-card { clip-path: none; }

.logistics-module .module-hero, .center-home .center-intro-panel {
  background: linear-gradient(90deg,#101216 10%,rgba(16,18,22,.91) 42%,rgba(16,18,22,.18) 100%),
    #121518 url('/img/sfi-industrial-hangar.png') right 48% / cover no-repeat;
}
.logistics-module .module-hero :is(h1,h1 em) { color: var(--sfi-text); }
.module-hero .eyebrow, .module-account small { color: var(--sfi-muted); }
.logistics-module .module-menu a { padding-block: 14px; gap: 9px; }
.nav-order { color: var(--sfi-muted); font-variant-numeric: tabular-nums; }
.depot-overview { display: grid; gap: 16px; grid-template-columns: 1.2fr 1fr; margin-top: 16px; }
.depot-overview > section { min-width: 0; }
.logistics-module .v34-stats > .v3-panel { padding-block: 20px; min-height: 125px; border-top: 2px solid var(--sfi-red); }
@media (max-width: 850px) {
 .depot-overview { grid-template-columns: minmax(0,1fr); }
}
.doctrine-item { padding-inline-start: 1.1rem; }
.doctrine-item::before { content: '• '; }
.extension-record figure { margin: 0; }
.project-image[hidden] { display: none; }

/* Shared controls, compact page headers and dashboard layouts. */
:root {
  --control-border: #626a74;
  --surface-raised: #20242a;
}
:is(input, select, textarea, button, .action, .model-card, .fleet-hero, .fleet-tile, .adminbox,
    .operation-card, .admin-op-card, .assign-panel, .auth-card, .request-tabs a, .center-intro-panel) {
  border-radius: var(--sfi-radius);
}
:is(input, select, textarea) {
  border-color: var(--control-border);
  color: var(--sfi-text);
  font-size: 16px;
}
:is(button, .action, .v34-link, .module-topline a, .v3-table, .v3-small, .eyebrow, .v3-btn, .module-kpi-strip span) {
  font-size: 14px;
  letter-spacing: normal;
}
button { min-height: 36px; }
button:disabled { opacity: .65; cursor: default; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid #e3e7eb; outline-offset: 3px; }
.module-logo, .fleet-page .module-logo { min-height: unset; padding-block: 18px; }
.module-logo img { max-height: 120px; }
.module-topline, .fleet-content .module-topline { height: 54px; }
.module-topline b { color: var(--sfi-muted); }
.module-topline a { white-space: nowrap; }
.module-page-head { margin: 0 0 16px; padding: 16px 20px; background: var(--sfi-panel); border: 1px solid var(--sfi-outline); border-left: 4px solid var(--sfi-red); border-radius: var(--sfi-radius); }
.module-page-head h1 { margin: 0; font-size: clamp(1.65rem, 2vw, 2.3rem); }
.module-page-head .eyebrow { margin-bottom: 5px; color: var(--sfi-muted); }
.premium-module .v3-panel { padding: clamp(14px, 1.25vw, 24px); }
.premium-module .v3-form { gap: 12px; }
.premium-module .v3-form :is(input, select, textarea) { min-height: 42px; font-size: 16px; border-radius: var(--sfi-radius); }
.premium-module .v3-form button { align-self: end; }
.v3-table th { color: var(--sfi-muted); }
.v3-table :is(th, td) { padding: 10px 12px; }
.v3-table-wrap { max-width: 100%; overflow: auto; }
.module-kpi-strip { margin-block: 14px; }
.module-kpi-strip > div { min-height: 80px; padding: 14px; border-radius: var(--sfi-radius); }
.module-kpi-strip span { color: var(--sfi-muted); }
.module-kpi-strip strong { font-size: 26px; }
.request-tabs { margin-block: 14px; }
.request-tabs a { font-size: 15px; text-decoration: none; }
.request-tabs a[aria-current=page], .op-tabs a.active { background: var(--surface-raised); border-color: #aab2bc; color: var(--sfi-text); }
.fleet-content .fleet-hero { min-height: unset; padding: 24px; }
.fleet-content .fleet-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fleet-content .fleet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fleet-content .fleet-tile { min-height: 150px; }
.fleet-content .brief-grid { align-items: start; }
.op-tabs { gap: 12px; flex-wrap: wrap; }
.op-tabs a { font-size: 15px; padding: 10px 14px; letter-spacing: normal; border: 1px solid var(--sfi-outline); border-radius: var(--sfi-radius); }
.operation-date, .operation-date :is(strong, span, b) { color: var(--sfi-text); }
.ship-maker { color: var(--sfi-muted); }
.manufacturer-logo { width: 56px; height: 34px; object-fit: contain; border-radius: 0; }
.crew-add { margin-top: 12px; }
.crew-add summary { margin-bottom: 8px; }
:is(.empty-v35, .empty-state) { position: relative; isolation: isolate; min-height: 100px; background: var(--sfi-panel); }
:is(.empty-v35, .empty-state)::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background: url('/img/sfi-logo.png') no-repeat right 18px center / 90px;
}
.center-home .hub-banner { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.hub-banner img { width: 100%; height: 104px; object-fit: contain; }
.hub-banner h1 { margin: 0; }
.hub-account { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; }
.hub-account form { margin: 0; }
.premium-hub-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hub-module { min-height: 242px; padding: 18px; }
.hub-module h2 { font-size: clamp(1.2rem, 1.45vw, 1.7rem); margin: 6px 0; color: var(--sfi-text); }
.hub-module p { font-size: 15px; margin: 8px 0 15px; }
.hub-module .hub-card-foot { font-size: 14px; letter-spacing: normal; }
.hub-module .hub-symbol { line-height: 1.2; color: var(--sfi-text); margin-bottom: 30px; }
.hub-module, .hub-module.hub-medical {
  background: linear-gradient(180deg, #10131850 0%, #101318c7 52%, #101318 85%), var(--hub-art) center top / cover no-repeat, #101318;
}
.hub-fleet { --hub-art: url('/img/modules/fleet.webp'); }
.hub-logistics { --hub-art: url('/img/sfi-industrial-hangar.png'); }
.hub-blueprints { --hub-art: url('/img/modules/blueprints.webp'); }
.hub-inventory { --hub-art: url('/img/modules/inventory.webp'); }
.hub-medical { --hub-art: url('/img/modules/medical.webp'); }
.hub-module.hub-medical .hub-symbol { color: var(--sfi-medical); }
.collective-card { padding: 0 0 14px; overflow: hidden; text-decoration: none; }
.collective-card > :not(.project-art) { margin-inline: 14px; }
.project-art { height: 110px; background: #20242a url('/img/sfi-logo.png') no-repeat center / 66px; }
.project-art:has(img) { background-image: none; }
.project-art .project-image { width: 100%; height: 100%; object-position: center; display: block; }
.wikelo-banner { align-items: center; }
.wikelo-banner > :first-child { flex: 1 1 340px; }
.wikelo-banner .project-image { max-height: 118px; float: right; width: min(30%, 220px); object-position: center; }
.wikelo-ring { flex-basis: 115px; height: 115px; }
.wikelo-ring strong { width: 97px; height: 97px; }
.wikelo-summary .v34-pager { gap: 10px; }
.medical-module .module-menu a:is(.selected, :hover) { background: #10282b; color: var(--sfi-text); border-color: var(--sfi-medical); }
.medical-module .module-topline > span { background: var(--sfi-medical); opacity: .6; }
.medical-module .v3-panel > h2 { color: var(--sfi-medical); }
.medical-access .extension-record { align-content: center; min-height: 100px; border-top: 2px solid var(--sfi-medical); }
.medical-access strong { font-size: 19px; }
.medical-access span { color: var(--sfi-medical); font-size: 24px; }
@media (max-width: 1200px) {
  .premium-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .center-home .hub-banner { grid-template-columns: 70px minmax(0, 1fr); }
  .hub-account { grid-column: 1/-1; justify-content: flex-start; }
  .module-logo img, .fleet-page .module-logo img { max-height: 65px; }
}
@media (max-width: 720px) {
  .premium-hub-grid, .fleet-content .fleet-grid { grid-template-columns: minmax(0, 1fr); }
  .fleet-content .fleet-kpis { grid-template-columns: minmax(0, 1fr); }
  .hub-module { min-height: auto; }
  .wikelo-banner .project-image { float: none; width: 100%; }
}

/* Preserve the SVG color and place dark manufacturer marks on a readable surface. */
.manufacturer-logo { width: 64px; height: 42px; padding: 4px; background: #e7e9eb; border-radius: 3px; }
.fleet-content .model-top { align-items: start; }
.fleet-content .model-top .eyebrow, .fleet-content .section-title .eyebrow,
.fleet-content .fleet-hero .eyebrow, .fleet-content .owners .owner-me b { color: var(--sfi-text); }
.fleet-content .model-count { color: var(--sfi-muted); font-size: 13px; }
.fleet-content .model-top .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.fleet-content .model-top .manufacturer-logo { margin: 0; }
.fleet-content .fleet-kpis > div { padding-inline: 16px; }
.fleet-content .fleet-kpis span { letter-spacing: normal; font-size: 14px; line-height: 1.35; text-transform: none; }
.fleet-content .fleet-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.medical-access { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.medical-access .extension-record { text-decoration: none; }
.medical-access .extension-record:hover, .collective-card:hover { border-color: #aab2bc; }
@media (max-width: 1000px) {
  .fleet-content .fleet-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .medical-access { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.request-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--sfi-outline); border-radius: var(--sfi-radius); color: var(--sfi-text); }
.request-status-pending { background: #3a3019; }
.request-status-reserved { background: #203649; }
.request-status-distributed { background: #1c3a2d; }
.request-status-refused { background: #421d20; }
