:root{color-scheme:dark;--bg:#090f0e;--sidebar:#0d1815;--card:#15251f;--card2:#111d19;--text:#faf4e6;--muted:#bacabf;--line:#c9dbc12b;--accent:#dfbe77;--green:#9be0bb;--red:#ffb7b0;--violet:#c9d7ce;font-family:"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;color:var(--text);background:radial-gradient(ellipse at 95% 0%,#183229 0%,transparent 46%),var(--bg);min-height:100vh} a{color:inherit;text-decoration:none} button,input,select{font:inherit} button,.button,select,input{min-height:44px;border-radius:10px} button,.button{border:1px solid var(--line);background:#233a30;color:var(--text);padding:8px 13px;cursor:pointer;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:.4em} button:hover,.button:hover{background:#304b3e} .primary{background:var(--accent);color:#261b09;border-color:transparent}.primary:hover{background:#ffe09b}.danger{background:#752d44}.quiet{background:transparent}.link{color:var(--accent);font-weight:650}.link:hover{text-decoration:underline} button:disabled{opacity:.6;cursor:wait} :focus-visible{outline:3px solid #ffdb81;outline-offset:3px} :is(input,select){border:1px solid #557465;background:#0e1a16;color:var(--text);padding:8px 10px;max-width:100%} input[type=checkbox]{min-height:auto;accent-color:var(--accent)} label{color:var(--muted);display:grid;gap:5px;font-size:.86rem} p{line-height:1.55} h1,h2,h3,p{margin-top:0} h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.07;letter-spacing:-.045em;margin-bottom:9px} h2{font-size:1.24rem;line-height:1.25;letter-spacing:-.02em;margin-bottom:12px} h3{font-size:1.06rem;margin-bottom:.35rem} small,.muted{color:var(--muted)} .positive{color:var(--green)} .negative{color:var(--red)}
.skip{position:fixed;top:4px;left:4px;z-index:20;padding:12px;background:var(--card);transform:translateY(-130%)}.skip:focus{transform:none} aside{position:fixed;inset:0 auto 0 0;width:240px;background:var(--sidebar);border-right:1px solid var(--line);padding:30px 19px;display:flex;flex-direction:column;z-index:2} .brand{display:flex;align-items:center;gap:11px;font-size:1.45rem;font-weight:800;margin:0 7px 35px}.brand small,.session small{display:block;font-size:.69rem;letter-spacing:.08em}.mark{width:42px;height:42px;display:inline-grid;place-items:center;border-radius:13px;background:var(--accent);color:#151f35;font-size:28px;flex:none}nav{display:grid;gap:5px}.nav{display:flex;gap:12px;align-items:center;min-height:45px;border-radius:11px;padding:8px 12px;color:var(--muted);font-size:.93rem}.nav span{font-size:1.1rem;width:20px;text-align:center}.nav:hover,.nav[aria-current=page]{background:#23382f;color:var(--accent)}.session{display:flex;gap:9px;align-items:center;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:.87rem}.session button{margin-left:auto;background:transparent;padding:5px 9px}.identity{background:#294838;border-radius:50%;display:grid;place-items:center;width:34px;height:34px;font-weight:700;flex:none}
main{margin-left:240px;padding:0 clamp(18px,4vw,56px);max-width:1700px} body:has(#sidebar[hidden]) main{margin:auto}.top,.section-head,.title-line,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.top,.section-head{justify-content:space-between}.top{min-height:72px;border-bottom:1px solid var(--line);color:var(--muted);font-weight:650}.top em{color:#9ab29f;margin:0 6px}.heading{margin:28px 0 21px}.heading p{color:var(--muted);margin-bottom:0}.section-head{margin-bottom:12px}.section-head h2{margin:0}.panel,.metric,.profile-card{min-width:0;background:linear-gradient(145deg,var(--card),var(--card2));border:1px solid var(--line);border-radius:19px;padding:clamp(14px,2vw,23px)}.panel+.panel{margin-top:14px}.grid{display:grid;gap:14px}.grid>.panel{margin-top:0}.split{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 14px}.metric strong{display:block;font-size:clamp(1.15rem,2vw,1.65rem);margin:6px 0;letter-spacing:-.035em;overflow-wrap:anywhere}.metric span{color:var(--muted);font-size:.86rem}.hero{background:linear-gradient(110deg,#214637,#10241c);border-color:#3f6453;margin-bottom:14px}.hero .amount{font-size:clamp(2rem,5vw,3.4rem);font-weight:800;letter-spacing:-.04em;margin:.12em 0}.pill{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;font-size:.76rem;font-weight:700;background:#aacbb223;color:#dfede3;max-width:100%}.pill.amber{background:#dfbe7720;color:#ffdc89}.pill.live{background:#9be0bb21;color:var(--green)}.pill.dim{background:#c9d7ce20;color:var(--violet)}.avatars{grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr))}.avatar{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#41628e,#23324f);border:1px solid #b4caff44;color:#ffe3a5;font-size:1.26rem;font-weight:800;flex:none}.avatar.sophie,.avatar.lea{background:linear-gradient(145deg,#63458e,#352754)}.avatar.claire,.avatar.thomas{background:linear-gradient(145deg,#367374,#223e50)}.avatar.alexandre,.avatar.bernard{background:linear-gradient(145deg,#774c57,#3e2d48)}.profile-card{display:flex;flex-direction:column;gap:10px}.profile-card p{color:var(--muted);margin:0}.profile-card .button{margin-top:auto;align-self:flex-start}.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:5px 0}.facts dt{font-size:.75rem;color:var(--muted)}.facts dd{margin:3px 0 0;font-weight:700;overflow-wrap:anywhere}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:15px}.filters label{flex:1 1 122px}.filters .wide{flex:2 1 205px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.chips label{display:flex;align-items:center;min-height:35px;padding:5px 9px;background:#233a30;border-radius:10px}
table{border-collapse:collapse;width:100%;font-size:.88rem;text-align:left} th,td{padding:10px 9px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere} th{color:var(--muted);font-size:.76rem} tr:last-child td{border:0} .table-wrap{overflow:auto}.empty,.item{border:1px dashed var(--line);border-radius:12px;padding:13px;color:var(--muted)}.items{display:grid;gap:8px}.item{border-style:solid;color:var(--text)}.item strong,.item small{display:block}.chart{display:block;width:100%;max-height:234px;color:var(--accent)}.chart-legend{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.83rem}.chart circle{fill:var(--accent);stroke:#15251f;stroke-width:1.5}.bar{background:#182f25;border-radius:8px;width:100%;height:18px;color:var(--accent)}.bar rect{fill:currentColor}.banner{padding:12px 14px;border:1px solid #dfbe7760;border-radius:12px;background:#dfbe7714;margin-bottom:14px}.stack{margin-top:14px}.notice{margin-top:12px;border:1px solid var(--line);padding:10px 12px;border-radius:12px;background:#23382f}.notice.error{border-color:#ffb7b088;color:var(--red)}details{margin-top:12px} summary{cursor:pointer;color:var(--accent);min-height:36px;padding:6px 0} pre{white-space:pre-wrap;overflow-wrap:anywhere} footer{color:var(--muted);font-size:.78rem;margin:22px 0;padding-bottom:14px}.login{max-width:460px;margin:12vh auto}.login .mark{margin-bottom:14px}.login form{display:grid;gap:10px} dialog{color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:17px;padding:20px;max-width:min(440px,92vw)} dialog::backdrop{background:#020b07bb}
@media(max-width:1000px){aside{width:198px;padding-inline:12px}main{margin-left:198px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px),(max-height:540px){aside{width:auto;inset:auto 0 0;display:block;padding:4px 4px calc(5px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:#0d1815}.brand,.session,.nav.secondary-nav{display:none}nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.nav{flex-direction:column;justify-content:center;gap:1px;font-size:.7rem;padding:2px;min-height:52px}.nav span{line-height:1.3}.nav[data-page=more]{display:flex}main{margin:0;padding:0 12px 72px}.top{min-height:56px}.top .quiet span{display:none}.heading{margin:20px 0 16px}.heading p{font-size:.9rem}.panel,.metric,.profile-card{border-radius:14px}.table-wrap{overflow:visible} table,thead,tbody,tr,th,td{display:block} thead{position:absolute;height:1px;width:1px;overflow:hidden;clip-path:inset(50%)} tr{border:1px solid var(--line);border-radius:12px;margin:0 0 8px;padding:4px 7px} td{display:grid;grid-template-columns:minmax(87px,35%) minmax(0,1fr);gap:8px;padding:7px 3px} td::before{content:attr(data-label);color:var(--muted);font-size:.77rem}td:last-child{border:0}.actions{gap:6px}.facts{gap:5px}}
@media(min-width:701px) and (min-height:541px){.nav[data-page=more]{display:none}}
@media(prefers-reduced-motion:no-preference){button,.nav,.button{transition:background-color .15s,color .15s}}
.heading h1:focus{outline:0}
.profile-card .title-line{flex-wrap:nowrap;align-items:flex-start}
.profile-card h2{margin-bottom:5px}
.profile-card .pill{font-size:.71rem}
.profile-card .avatar{width:43px;height:43px;border-radius:12px}
.profile-card .facts dd{font-size:.91rem;white-space:nowrap}
@media(min-width:701px) and (max-width:1150px){.profile-card .facts dd{font-size:.85rem}}
@media(max-width:370px){.profile-card .facts dd{font-size:.83rem}}

/* Premium Écurie components. The host application supplies its own styles. */
.heading h1,.observation-hero h2,.profile-copy h2{
  font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em
}
.heading h1{font-size:clamp(2.35rem,5vw,4rem)}
.panel,.metric,.profile-card{box-shadow:0 8px 26px #04090530}
.profile-card{padding:0;gap:0;overflow:hidden}
.profile-cover{display:block}
.portrait{position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 40% 25%,#315241,#0e2119 74%);color:var(--accent)}
.portrait span{font:500 clamp(2.5rem,8vw,5.5rem)/1 Georgia,serif;opacity:.7}
.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%}
.profile-cover .portrait{aspect-ratio:5/4}
.profile-copy{display:flex;flex-direction:column;flex:1;gap:10px;padding:17px}
.profile-copy .title-line{flex-wrap:wrap;align-items:center;justify-content:space-between}
.profile-copy h2{font-size:clamp(1.55rem,3vw,2.15rem);margin:0}
.profile-copy .button{margin-top:auto}
.specialty,.profile-card .specialty{color:var(--accent);font-weight:650}
.profile-hero,.observation-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;gap:clamp(16px,4vw,45px)}
.profile-hero .portrait,.observation-hero .portrait{aspect-ratio:4/5;border-radius:14px;max-height:350px}
.profile-facts{display:grid;gap:10px;margin-bottom:0}
.profile-facts dt{color:var(--muted);font-size:.79rem}
.profile-facts dd{margin:2px 0 0;font-weight:650}
.observation-hero{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.observation-hero h2{font-size:clamp(1.9rem,4vw,3.4rem);margin:.25em 0}
.observation-hero p{color:var(--muted);max-width:40ch}
.empty{background:#0b171256;line-height:1.5}
@media(max-width:700px){
  .avatars{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .profile-copy{padding:12px}
  .profile-copy .pill{white-space:normal}
  .profile-copy .facts{grid-template-columns:1fr}
  .profile-copy .button{width:100%;font-size:.8rem;text-align:center}
  .profile-copy p{font-size:.88rem}
}
@media(max-width:480px){
  .observation-hero{grid-template-columns:minmax(0,1fr)}
  .observation-hero .portrait{display:none}
  .profile-hero{grid-template-columns:minmax(0,1fr)}
  .profile-hero .portrait{max-height:260px;aspect-ratio:4/3}
}
@media(prefers-reduced-motion:no-preference){
  .profile-cover img{transition:transform .22s ease-out}
  .profile-card:hover img,.profile-card:focus-within img{transform:scale(1.04)}
}

.top-brand{display:inline-flex;align-items:center;gap:9px;color:var(--text)}
#login-panel{padding:clamp(20px,5vw,38px)}
#login-panel img{display:block;margin-bottom:16px}
#login-panel h1{font:500 clamp(2.35rem,6vw,4rem)/1 Georgia,serif}
.folio-form{display:grid;gap:14px;margin:10px 0}
.folio-form fieldset{display:grid;gap:12px}
fieldset{border:1px solid var(--line);border-radius:13px;min-width:0;margin:0;padding:12px}
fieldset legend{color:var(--accent);padding-inline:6px}
fieldset:disabled{opacity:.65}
.checked,.allocation-row{display:flex;align-items:center;gap:10px;min-height:44px}
.checked input{inline-size:20px;block-size:20px;flex:none}
.allocation-row span:first-child{flex:1}
.allocation-row input{width:94px}
.allocation-unit{width:34px}
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:4px 10px}
.folio-detail{align-items:start;margin-bottom:14px}
.chart-explorer{color:var(--muted);font-size:.86rem}
.chart-explorer input{width:100%;accent-color:var(--accent)}
.chart-explorer output{display:block;color:var(--text);margin-top:4px}
@media(max-width:700px){body:has(#sidebar[hidden]) main{padding:0 12px 20px}}
