:root{
  color-scheme:dark;
  --shell-bg:#090b0f;
  --shell-panel:#111720;
  --shell-panel-soft:#161e29;
  --shell-line:#2b3746;
  --shell-text:#f7f9fc;
  --shell-muted:#a9b5c4;
  --shell-accent:#f5c760;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
.backstage-home{min-height:100vh;margin:0;background:radial-gradient(circle at 90% 0,#1f3550 0,transparent 34%),var(--shell-bg);color:var(--shell-text)}
.home-shell{width:min(920px,100%);margin:auto;padding:calc(28px + env(safe-area-inset-top)) 18px calc(38px + env(safe-area-inset-bottom))}
.home-header{position:relative;margin-bottom:28px;padding-right:64px}
.beta-pill{display:inline-flex;margin-bottom:18px;padding:6px 10px;border:1px solid #f5c76070;border-radius:999px;background:#f5c76020;color:#ffe59a;font-size:11px;font-weight:900;letter-spacing:.12em}
.eyebrow{margin:0 0 5px;color:var(--shell-muted);font-size:13px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.home-header h1{margin:0;font-size:clamp(38px,9vw,68px);line-height:1}
.home-intro{max-width:570px;margin:13px 0 0;color:#c5cfdb;font-size:16px;line-height:1.55}
.home-summary{margin:0 0 22px;padding:18px;border:1px solid #ffffff20;border-radius:22px;background:linear-gradient(145deg,#17212e,#10161f);box-shadow:0 18px 45px #00000035}
.home-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.home-summary-heading .eyebrow{margin-bottom:3px;color:#87e2a5}
.home-summary-heading h2{margin:0;font-size:24px}
.home-summary-heading button{width:42px;height:42px;border:1px solid #ffffff26;border-radius:13px;background:#ffffff0c;color:#fff;font-size:23px;cursor:pointer}
.home-summary-heading button:disabled{opacity:.55}
.home-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-summary-grid a{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;min-height:88px;padding:13px;border:1px solid #ffffff14;border-radius:16px;background:#ffffff08;color:var(--shell-text);text-decoration:none}
.home-summary-grid a>span{grid-row:1/3;font-size:22px}
.home-summary-grid strong{font-size:25px;line-height:1}
.home-summary-grid small{color:var(--shell-muted);font-size:12px;line-height:1.25}
.home-summary-grid a.has-items{border-color:#f5c76066;background:#f5c7600c}
.home-summary-grid a.has-items strong{color:#ffe08a}
.home-summary-status{min-height:18px;margin:10px 2px 0;color:var(--shell-muted);font-size:12px}
.home-summary-status.error{color:#ff9b9b}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.module-card{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:132px;padding:20px;border:1px solid var(--shell-line);border-radius:22px;background:linear-gradient(145deg,#182230,#10161f);box-shadow:0 18px 45px #00000035;color:var(--shell-text);text-decoration:none;overflow:hidden;transition:transform .15s ease,border-color .15s ease}
.module-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--card-accent,#5b8dff)}
.module-card:active{transform:scale(.985)}
.module-card:focus-visible{outline:3px solid #8db1ff;outline-offset:3px}
.module-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:color-mix(in srgb,var(--card-accent,#5b8dff) 18%,transparent);font-size:26px}
.module-copy{display:grid;gap:7px;min-width:0}
.module-copy strong{font-size:21px}
.module-copy small{color:var(--shell-muted);font-size:13px;line-height:1.4}
.module-arrow{font-size:38px;color:#dce5ef}
.module-spaces{--card-accent:#68e18f}.module-paddocks{--card-accent:#5b8dff}.module-notifications{--card-accent:#c68cff}.module-hours{--card-accent:#5bd4e8}.module-alerts{--card-accent:#f5c760}.module-users{--card-accent:#8490a0}
.module-liberte{--card-accent:#74dc92}.module-billing{--card-accent:#f0b85b}.module-themes{--card-accent:#d68cff}
.module-card.is-disabled{opacity:.62}
.coming-soon{padding:5px 8px;border-radius:999px;background:#ffffff10;color:#cbd3df;font-size:10px;font-weight:800;white-space:nowrap}

.backstage-menu-button{position:fixed;z-index:1001;top:calc(16px + env(safe-area-inset-top));right:16px;display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;border:1px solid #ffffff32;border-radius:15px;background:#111720ed;color:#fff;box-shadow:0 12px 30px #0008;font-size:23px;cursor:pointer}
.backstage-menu-overlay{position:fixed;z-index:999;inset:0;background:#02060bb8;backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:opacity .2s ease}
.backstage-menu{position:fixed;z-index:1000;top:0;right:0;width:min(330px,88vw);height:100dvh;padding:calc(82px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));border-left:1px solid #ffffff25;background:#0d141ded;box-shadow:-28px 0 70px #0009;transform:translateX(105%);transition:transform .22s ease;overflow-y:auto}
.backstage-menu.is-open{transform:translateX(0)}
.backstage-menu-overlay.is-open{opacity:1;pointer-events:auto}
.backstage-menu-title{margin:0 0 16px;color:#9eacbd;font-size:11px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.backstage-menu nav{display:grid;gap:8px}
.backstage-menu a{display:flex;align-items:center;gap:12px;min-height:50px;padding:12px 14px;border:1px solid transparent;border-radius:14px;color:#eef4fa;text-decoration:none;font-weight:750}
.backstage-menu a:hover,.backstage-menu a.is-current{border-color:#ffffff22;background:#ffffff0d}
.backstage-menu a.is-disabled{opacity:.45;pointer-events:none}
body.menu-open{overflow:hidden}

@media(max-width:620px){
  .home-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .module-grid{grid-template-columns:1fr}
  .module-card{min-height:112px;padding:16px}
  .home-intro{font-size:15px}
}

/* Interface compacte validée le 2026-07-28. */
.backstage-home .home-shell{padding-top:calc(18px + env(safe-area-inset-top))}
.backstage-home .home-header{margin-bottom:10px}
.backstage-home .home-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.backstage-home .home-title-row h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.05}
.backstage-home .home-title-row .beta-pill{flex:0 0 auto;margin:0}
.backstage-home .home-intro{margin-top:6px;font-size:13px;line-height:1.4}
.backstage-home .home-summary{margin-bottom:10px;padding:13px;border-radius:16px;box-shadow:0 10px 28px #0003}
.backstage-home .home-summary-heading{margin-bottom:8px}
.backstage-home .home-summary-heading h2{font-size:18px}
.backstage-home .home-summary-heading button{width:38px;height:38px;border-radius:10px;font-size:20px}
.backstage-home .home-summary-grid{gap:6px}
.backstage-home .home-summary-grid a{min-height:64px;padding:9px;border-radius:11px}
.backstage-home .home-summary-grid a>span{font-size:18px}
.backstage-home .home-summary-grid strong{font-size:20px}
.backstage-home .home-summary-grid small{font-size:10px}
.backstage-home .home-summary-status{min-height:15px;margin-top:6px;font-size:10px}
.backstage-home .module-grid{gap:7px}
.backstage-home .module-card{grid-template-columns:42px minmax(0,1fr) auto;gap:10px;min-height:86px;padding:11px 13px;border-radius:14px;box-shadow:0 9px 24px #0003}
.backstage-home .module-card::before{width:3px}
.backstage-home .module-icon{width:42px;height:42px;border-radius:12px;font-size:21px}
.backstage-home .module-copy{gap:3px}
.backstage-home .module-copy strong{font-size:16px}
.backstage-home .module-copy small{font-size:11px;line-height:1.3}
.backstage-home .module-arrow{font-size:27px}
@media(max-width:620px){
  .backstage-home .home-shell{padding-inline:11px}
  .backstage-home .home-header{padding-right:58px}
  .backstage-home .home-title-row{display:block}
  .backstage-home .home-title-row .beta-pill{position:absolute;top:0;right:64px}
  .backstage-home .home-summary{padding:11px}
  .backstage-home .module-card{min-height:76px;padding:9px 11px}
}
