/* ============================================================
   ELF SERVICES — Design System
   Ethereal Glass · OLED black · copper accent
   ============================================================ */

:root{
  /* Surfaces */
  --bg:            #08090B;
  --bg-soft:       #0D0F12;
  --surface:       rgba(255,255,255,.042);
  --surface-2:     rgba(255,255,255,.065);
  --surface-3:     rgba(255,255,255,.09);
  --line:          rgba(255,255,255,.09);
  --line-strong:   rgba(255,255,255,.16);

  /* Text */
  --text:          #F3F0EB;
  --text-2:        #B9B7B2;
  --muted:         #7E7E88;
  --faint:         #78787F;   /* 4.55:1 sur le fond — assez atténué, encore lisible */

  /* Accent — copper */
  --accent:        #E09A5E;
  --accent-strong: #F0AE72;
  --accent-dim:    rgba(224,154,94,.14);
  --accent-line:   rgba(224,154,94,.34);

  /* Semantic */
  --ok:            #5FBF8F;
  --ok-dim:        rgba(95,191,143,.13);
  --warn:          #E0B45E;
  --warn-dim:      rgba(224,180,94,.13);
  --danger:        #E07070;
  --danger-dim:    rgba(224,112,112,.13);
  --info:          #6FA8DC;
  --info-dim:      rgba(111,168,220,.13);

  /* Type */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Space */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Radius */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* Motion */
  --ease: cubic-bezier(.32,.72,0,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .42s;

  /* Shadow */
  --shadow-float: 0 18px 50px -12px rgba(0,0,0,.75);
  --shadow-card:  0 2px 20px -6px rgba(0,0,0,.5);

  --sidebar-w: 248px;
  --topbar-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }

/* L'attribut hidden doit gagner sur les display:grid/flex des composants */
[hidden]{ display:none !important; }

html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

h1,h2,h3,h4{ margin:0; font-weight:600; letter-spacing:-.02em; line-height:1.15; }
p{ margin:0; }
button{ font-family:inherit; font-size:inherit; color:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:inherit; color:inherit; }
a{ color:var(--accent); text-decoration:none; }
::selection{ background:var(--accent-dim); color:var(--accent-strong); }

/* ---------- Backdrop ---------- */
.backdrop{ position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.orb{ position:absolute; border-radius:50%; filter:blur(100px); opacity:.55; }
.orb-a{ width:60vw; height:60vw; top:-20vw; left:-12vw;
  background:radial-gradient(circle, rgba(224,154,94,.34), transparent 66%); }
.orb-b{ width:56vw; height:56vw; bottom:-20vw; right:-12vw;
  background:radial-gradient(circle, rgba(90,120,190,.26), transparent 68%); }
.orb-c{ width:40vw; height:40vw; top:34%; left:48%;
  background:radial-gradient(circle, rgba(150,90,160,.16), transparent 70%); }
.orb-d{ width:44vw; height:44vw; top:52%; left:6%;
  background:radial-gradient(circle, rgba(240,174,114,.13), transparent 70%); }
.grain{ position:absolute; inset:0; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Glass primitive ---------- */
.glass{
  background:linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.035) 60%);
  backdrop-filter:blur(26px) saturate(160%);
  -webkit-backdrop-filter:blur(26px) saturate(160%);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:var(--shadow-float),
             inset 0 1px 0 rgba(255,255,255,.18),
             inset 0 -1px 0 rgba(0,0,0,.28);
}

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-size:10px; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted); margin:0 0 6px;
}
.serif{ font-family:var(--font-serif); font-weight:400; letter-spacing:-.01em; }
.muted{ color:var(--muted); }
.small{ font-size:12.5px; }
.mono{ font-variant-numeric:tabular-nums; font-feature-settings:"tnum"; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen{
  position:relative; z-index:2; min-height:100dvh;
  display:grid; place-items:center; padding:24px;
}
.login-card{
  width:100%; max-width:420px; border-radius:var(--r-xl);
  padding:clamp(28px,5vw,44px);
  animation:rise .8s var(--ease-out) both;
}
@keyframes rise{ from{ opacity:0; transform:translateY(24px) scale(.985); filter:blur(6px);} to{ opacity:1; transform:none; filter:none;} }

.login-brand{ display:flex; gap:16px; align-items:flex-start; margin-bottom:34px; }
.brand-mark{
  width:46px; height:46px; flex:none; border-radius:14px;
  display:grid; place-items:center; color:var(--accent);
  background:linear-gradient(150deg, rgba(224,154,94,.20), rgba(224,154,94,.05));
  border:1px solid var(--accent-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.brand-mark svg{ width:26px; height:26px; }
.brand-mark.small{ width:38px; height:38px; border-radius:11px; }
.brand-mark.small svg{ width:21px; height:21px; }

.login-title{
  font-family:var(--font-serif); font-weight:400; font-size:clamp(30px,7vw,38px);
  line-height:1.02; letter-spacing:-.02em;
}
.login-title em{ font-style:italic; color:var(--accent); }

.field{ display:block; margin-bottom:16px; }
.field-label{
  display:block; font-size:11px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted); margin-bottom:8px;
}
.field input, .field textarea, .field select{
  width:100%; padding:13px 15px; border-radius:var(--r-md);
  background:rgba(0,0,0,.28); border:1px solid var(--line);
  color:var(--text); outline:none;
  transition:border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder{ color:var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus{
  border-color:var(--accent-line); background:rgba(0,0,0,.4);
  box-shadow:0 0 0 3px var(--accent-dim);
}
.field-pw{ position:relative; }
.field-pw input{ padding-right:48px; }
.pw-toggle{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border:0; background:transparent; border-radius:9px;
  display:grid; place-items:center; color:var(--muted);
  transition:color .2s, background .2s;
}
.pw-toggle:hover{ color:var(--text); background:var(--surface-2); }
.pw-toggle svg{ width:19px; height:19px; }

.login-error{
  color:var(--danger); font-size:13px; margin:-4px 0 14px;
  padding:10px 13px; border-radius:var(--r-sm);
  background:var(--danger-dim); border:1px solid rgba(224,112,112,.25);
}
.login-foot{
  text-align:center; font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--faint); margin-top:26px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:11px 18px; border-radius:var(--r-full); border:1px solid transparent;
  font-weight:600; font-size:14px; letter-spacing:-.01em;
  transition:transform .3s var(--ease), background .3s var(--ease),
             border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  white-space:nowrap; user-select:none;
}
.btn:active{ transform:scale(.975); }
.btn svg{ width:17px; height:17px; flex:none; }

.btn-primary{
  background:linear-gradient(160deg, var(--accent-strong), var(--accent));
  color:#1A1208; border-color:rgba(255,255,255,.18);
  box-shadow:0 8px 24px -8px rgba(224,154,94,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover{ box-shadow:0 12px 32px -8px rgba(224,154,94,.7), inset 0 1px 0 rgba(255,255,255,.45); }

.btn-ghost{
  background:var(--surface); border-color:var(--line); color:var(--text-2);
}
.btn-ghost:hover{ background:var(--surface-2); border-color:var(--line-strong); color:var(--text); }

.btn-danger{ background:var(--danger-dim); border-color:rgba(224,112,112,.3); color:var(--danger); }
.btn-danger:hover{ background:rgba(224,112,112,.2); }

.btn-sm{ padding:8px 13px; font-size:12.5px; }
.btn-sm svg{ width:15px; height:15px; }
.btn-block{ width:100%; padding:14px 18px; }
.btn-icon{
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  background:rgba(0,0,0,.14); margin-right:-6px;
  transition:transform .35s var(--ease-out);
}
.btn-primary:hover .btn-icon{ transform:translateX(3px); }
.btn-icon svg{ width:15px; height:15px; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app{ position:relative; z-index:2; min-height:100dvh; display:flex; }

/* ---------- Sidebar ---------- */
.sidebar{
  position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-w); z-index:40;
  display:flex; flex-direction:column; padding:22px 16px;
  padding-top:max(22px, env(safe-area-inset-top));
  border-radius:0; border-left:0; border-top:0; border-bottom:0;
  background:rgba(10,11,14,.72);
}
.sidebar-head{ display:flex; align-items:center; gap:11px; padding:0 6px 26px; }
.sidebar-brand{ display:flex; flex-direction:column; line-height:1.2; }
.sidebar-brand strong{ font-size:14.5px; letter-spacing:-.01em; }
.sidebar-brand span{ font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); }

.nav{ display:flex; flex-direction:column; gap:3px; flex:1; min-height:0; overflow-y:auto; scrollbar-gutter:stable; }
.nav-item{
  display:flex; align-items:center; gap:12px; width:100%;
  padding:11px 13px; border-radius:var(--r-md); border:1px solid transparent;
  background:transparent; color:var(--text-2); font-weight:500; font-size:14px;
  text-align:left; transition:background .25s var(--ease), color .25s, border-color .25s;
}
.nav-item svg{ width:19px; height:19px; flex:none; opacity:.8; }
.nav-item:hover{ background:var(--surface); color:var(--text); }
.nav-item.active{
  background:linear-gradient(100deg, var(--accent-dim), transparent 85%);
  border-color:var(--accent-line); color:var(--accent-strong);
}
.nav-item.active svg{ opacity:1; }

.sidebar-foot{ display:flex; flex-direction:column; gap:6px; padding-top:16px; border-top:1px solid var(--line); flex:none; }
.sidebar-foot .btn{ justify-content:flex-start; }

/* Indicateur de synchronisation */
.sync-status{
  display:flex; align-items:center; gap:8px; padding:7px 10px;
  border-radius:var(--r-sm); background:var(--surface); border:1px solid var(--line);
  margin-bottom:4px;
}
.sync-dot{ width:8px; height:8px; border-radius:50%; background:var(--muted); flex:none; }
.sync-dot.idle{ background:var(--ok); }
.sync-dot.syncing{ background:var(--accent); animation:pulse 1.1s ease-in-out infinite; }
.sync-dot.offline{ background:var(--warn); }
.sync-dot.error,
.sync-dot.unauthenticated{ background:var(--danger); }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.sync-label{ flex:1; font-size:11.5px; color:var(--text-2); }
.sync-btn{ width:26px; height:26px; border:0; background:transparent; }
.sync-btn:disabled{ opacity:.35; cursor:default; }
.sync-btn svg{ width:14px; height:14px; }

/* Point de synchronisation compact (mobile : la barre latérale est masquée) */
.topbar-right{ display:flex; align-items:center; gap:10px; }
.sync-mini{ display:none; }
@media (max-width: 860px){
  .sync-mini{
    display:grid; place-items:center; width:36px; height:36px; flex:none;
    border-radius:50%; border:1px solid var(--line); background:var(--surface);
  }
  .sync-mini .sync-dot{ width:9px; height:9px; }
}

/* ---------- Main ---------- */
.main{
  flex:1; min-width:0; margin-left:var(--sidebar-w);
  display:flex; flex-direction:column; min-height:100dvh;
}
.topbar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px clamp(20px,3vw,40px);
  padding-top:max(18px, env(safe-area-inset-top));
  background:linear-gradient(180deg, rgba(8,9,11,.92), rgba(8,9,11,.55) 70%, transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.topbar-title h2{ font-family:var(--font-serif); font-weight:400; font-size:clamp(24px,3vw,32px); }
.topbar-actions{ display:flex; gap:9px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

.view{ padding:6px clamp(20px,3vw,40px) 120px; flex:1; }
.view-enter{ animation:viewIn .5s var(--ease-out) both; }

/* ---------- Défilement : fine pilule, jamais de barre « moche » ---------- */
*{ scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16); border-radius:99px;
  border:2px solid transparent; background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.3); background-clip:padding-box; }
::-webkit-scrollbar-corner{ background:transparent; }
/* Rangées horizontales : aucune barre visible (glissement tactile/trackpad) */
.tabs, .qs-table-wrap{ scrollbar-width:none; -ms-overflow-style:none; }
.tabs::-webkit-scrollbar, .qs-table-wrap::-webkit-scrollbar{ display:none; }
@keyframes viewIn{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:none;} }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav{ display:none; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Section header */
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:8px 0 18px; flex-wrap:wrap; }
.section-head h3{ font-size:17px; font-weight:600; }
.section-head p{ font-size:13px; color:var(--muted); margin-top:3px; }

/* Card */
.card{
  position:relative;
  background:linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03) 60%);
  border:1px solid rgba(255,255,255,.12); border-radius:var(--r-lg);
  padding:20px;
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  box-shadow:0 12px 36px -20px rgba(0,0,0,.75),
             inset 0 1px 0 rgba(255,255,255,.14),
             inset 0 -1px 0 rgba(0,0,0,.22);
  transition:border-color .3s var(--ease), background .3s var(--ease),
             transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card.hoverable{ cursor:pointer; }
.card.hoverable:hover{ border-color:var(--line-strong); background:var(--surface-2); transform:translateY(-2px); }

/* Grid */
.grid{ display:grid; gap:14px; }
.grid-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-auto{ grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }

/* Stat */
.stat{ display:flex; flex-direction:column; gap:4px; }
.stat-value{ font-family:var(--font-serif); font-size:34px; line-height:1; letter-spacing:-.02em; }
.stat-label{ font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }

/* Badge */
.badge{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:var(--r-full);
  font-size:11px; font-weight:600; letter-spacing:.02em;
  background:var(--surface-2); border:1px solid var(--line); color:var(--text-2);
}
.badge.ok{ background:var(--ok-dim); border-color:rgba(95,191,143,.28); color:var(--ok); }
.badge.warn{ background:var(--warn-dim); border-color:rgba(224,180,94,.28); color:var(--warn); }
.badge.danger{ background:var(--danger-dim); border-color:rgba(224,112,112,.28); color:var(--danger); }
.badge.info{ background:var(--info-dim); border-color:rgba(111,168,220,.28); color:var(--info); }
.badge.accent{ background:var(--accent-dim); border-color:var(--accent-line); color:var(--accent-strong); }

/* Empty state */
.empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; padding:64px 24px; text-align:center;
  border:1px dashed var(--line-strong); border-radius:var(--r-lg);
  color:var(--muted);
}
.empty svg{ width:38px; height:38px; opacity:.4; }
.empty h4{ font-size:15px; color:var(--text-2); font-weight:600; }
.empty p{ font-size:13px; max-width:340px; }

/* List row */
.row{
  display:flex; align-items:center; gap:14px; padding:14px 16px;
  border-radius:var(--r-md); border:1px solid var(--line); background:var(--surface);
  transition:background .25s var(--ease), border-color .25s;
}
.row:hover{ background:var(--surface-2); border-color:var(--line-strong); }
.row-main{ flex:1; min-width:0; }
.row-title{ font-weight:600; font-size:14.5px; }
.row-sub{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.row-actions{ display:flex; gap:6px; flex:none; }

/* Icon button */
.icon-btn{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  background:var(--surface); display:grid; place-items:center; color:var(--text-2);
  line-height:0;
  transition:background .2s, color .2s, border-color .2s;
}
.icon-btn:hover{ background:var(--surface-3); color:var(--text); border-color:var(--line-strong); }
.icon-btn svg{ width:16px; height:16px; }
.icon-btn.danger:hover{ color:var(--danger); border-color:rgba(224,112,112,.35); background:var(--danger-dim); }

/* Tabs */
.tabs{ display:flex; gap:4px; padding:4px; border-radius:var(--r-full); background:var(--surface); border:1px solid var(--line); width:max-content; max-width:100%; overflow-x:auto; }
.tab{
  padding:8px 16px; border-radius:var(--r-full); border:0; background:transparent;
  color:var(--muted); font-size:13px; font-weight:600; white-space:nowrap;
  transition:background .25s var(--ease), color .25s;
}
.tab:hover{ color:var(--text-2); }
.tab.active{ background:var(--surface-3); color:var(--text); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }

/* ============================================================
   REPORTS
   ============================================================ */
.template-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.template-card{
  position:relative; overflow:hidden; border-radius:var(--r-lg);
  border:1px solid var(--line); background:var(--surface);
  padding:22px; cursor:pointer; text-align:left;
  transition:transform .35s var(--ease), border-color .35s, background .35s;
}
.template-card:hover{ transform:translateY(-3px); border-color:var(--accent-line); background:var(--surface-2); }
.template-card::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 90% at 100% 0%, var(--tpl-tint, rgba(224,154,94,.16)), transparent 60%);
  opacity:.9;
}
.template-swatch{ width:34px; height:34px; border-radius:10px; margin-bottom:16px; border:1px solid rgba(255,255,255,.14); }
.template-card h4{ font-size:15.5px; margin-bottom:5px; position:relative; z-index:1; }
.template-card p{ font-size:12.5px; color:var(--muted); position:relative; z-index:1; }
.template-meta{ display:flex; gap:6px; margin-top:14px; position:relative; z-index:1; }
.tpl-edit{
  position:absolute; top:14px; right:14px; z-index:2;
  width:30px; height:30px; opacity:.55;
  transition:opacity .25s var(--ease), background .25s, color .25s;
}
.template-card:hover .tpl-edit{ opacity:1; }
.tpl-edit:hover{ background:rgba(255,255,255,.16); }

.edit-row{ display:flex; gap:6px; align-items:center; }
.edit-row input{ flex:1; min-width:0; }
.edit-row .icon-btn{ width:31px; height:31px; flex:none; }

/* ---------- Pièces utilisées (rapport) ---------- */
.part-row{ display:grid; grid-template-columns:1fr 76px 34px; gap:8px; align-items:center; margin-bottom:6px; }
.part-row select.rs-input{
  background:#fff; border:1px solid rgba(0,0,0,.14); color:#1A1A1A;
  padding:8px 10px; font-size:13px; border-radius:8px;
}
.part-row input.rs-input{ text-align:center; }
.part-applied{
  font-size:11px; color:#7A9E5B; margin:-2px 0 8px 2px; font-weight:600;
}

/* Report editor */
.report-sheet{
  background:#FBFAF7; color:#1A1A1A; border-radius:var(--r-lg);
  padding:clamp(24px,4vw,48px); max-width:820px; margin:0 auto;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.8);
}
.report-sheet .rs-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; border-bottom:2px solid var(--rs-accent,#C87941); padding-bottom:18px; margin-bottom:24px; }
.report-sheet .rs-brand{ font-family:var(--font-serif); font-size:26px; line-height:1; }
.report-sheet .rs-brand img{ display:block; width:84px; height:auto; }
.report-sheet .rs-brand small{ display:block; font-family:var(--font-sans); font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:#8A8A8A; margin-top:6px; }
.report-sheet .rs-meta{ text-align:right; font-size:12px; color:#6A6A6A; line-height:1.7; }
.report-sheet h3{ font-family:var(--font-serif); font-size:22px; margin:0 0 18px; color:#1A1A1A; }

.rs-field{ margin-bottom:14px; }
.rs-label{ font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:#8A8A8A; margin-bottom:4px; display:block; }
.rs-input{
  width:100%; border:1px solid transparent; background:transparent; border-radius:8px;
  padding:7px 9px; font-size:14px; color:#1A1A1A; outline:none;
  transition:background .2s, border-color .2s;
}
.rs-input:hover{ background:rgba(0,0,0,.035); border-color:rgba(0,0,0,.08); }
.rs-input:focus{ background:#fff; border-color:var(--rs-accent,#C87941); box-shadow:0 0 0 3px rgba(200,121,65,.14); }
.rs-input[readonly]{ cursor:default; }
textarea.rs-input{ resize:vertical; min-height:64px; line-height:1.6; }

.rs-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.rs-section{ margin:26px 0 14px; padding-top:16px; border-top:1px solid rgba(0,0,0,.1); }
.rs-section h4{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#8A8A8A; font-weight:700; }

.rs-check{ display:flex; align-items:flex-start; gap:10px; padding:7px 9px; border-radius:8px; cursor:pointer; transition:background .2s; }
.rs-check:hover{ background:rgba(0,0,0,.035); }
.rs-check input{ margin-top:3px; accent-color:var(--rs-accent,#C87941); width:16px; height:16px; flex:none; }
.rs-check span{ font-size:13.5px; }

/* Grille VGP : même direction artistique ELF, sans bandeau bleu */
.vgp-grid-head, .vgp-check-row{
  display:grid; grid-template-columns:minmax(240px,1fr) 42px 42px 42px 42px minmax(110px,.5fr);
  gap:6px; align-items:center;
}
.vgp-grid-head{ margin-top:12px; padding:8px 10px; background:rgba(0,0,0,.045); color:#777; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; text-align:center; }
.vgp-grid-head span:first-child{ text-align:left; }
.vgp-section-title{ margin-top:12px; padding:7px 10px; background:rgba(200,121,65,.12); color:#8a5a37; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.vgp-check-row{ min-height:38px; padding:5px 10px; border-bottom:1px solid rgba(0,0,0,.07); }
.vgp-question{ font-size:12px; color:#333; }
.vgp-choice{ display:flex; justify-content:center; cursor:pointer; }
.vgp-choice input{ position:absolute; opacity:0; pointer-events:none; }
.vgp-choice span{ width:17px; height:17px; border:1px solid #c9c5bf; border-radius:50%; background:#fff; display:block; }
.vgp-choice input:checked + span{ background:#C87941; border-color:#C87941; box-shadow:inset 0 0 0 4px #fff; }
.vgp-choice:nth-child(3) input:checked + span{ background:#D9534F; border-color:#D9534F; }
.vgp-choice:nth-child(4) input:checked + span{ background:#999; border-color:#999; }
.vgp-choice:nth-child(5) input:checked + span{ background:#C9A227; border-color:#C9A227; }
.vgp-remark{ min-width:0; width:100%; border:0; border-bottom:1px solid #ddd; background:transparent; font-size:11px; padding:4px; }
.vgp-conclusion{ background:rgba(200,121,65,.06); padding:14px; border-radius:10px; }

.rs-check span{ font-size:13.5px; }

.rs-sign{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:26px; }
.sign-box{ border:1px dashed rgba(0,0,0,.25); border-radius:10px; padding:10px; background:#fff; }
.sign-box .rs-label{ margin-bottom:6px; }
.sign-canvas{ width:100%; height:110px; display:block; touch-action:none; border-radius:6px; background:#fff; cursor:crosshair; }
.sign-clear{ margin-top:6px; font-size:11px; color:#8A8A8A; background:none; border:0; padding:0; text-decoration:underline; }

.rs-photos{ display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; margin-top:10px; }
.rs-photo{ position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; border:1px solid rgba(0,0,0,.12); background:#eee; }
.rs-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.rs-photo button{ position:absolute; top:5px; right:5px; width:24px; height:24px; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff; display:grid; place-items:center; line-height:0; }
.rs-photo button svg{ width:12px; height:12px; }
.rs-add-photo{
  aspect-ratio:1; border-radius:10px; border:1px dashed rgba(0,0,0,.25);
  background:rgba(0,0,0,.02); display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; color:#8A8A8A; font-size:11px; cursor:pointer; transition:background .2s, border-color .2s;
}
.rs-add-photo:hover{ background:rgba(0,0,0,.05); border-color:var(--rs-accent,#C87941); }
.rs-add-photo svg{ width:22px; height:22px; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-layout{ display:grid; grid-template-columns:1fr 340px; gap:18px; align-items:start; }
.cal{ border-radius:var(--r-lg); border:1px solid var(--line); background:var(--surface); padding:18px; }
.cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal-title{ font-family:var(--font-serif); font-size:20px; text-transform:capitalize; }
.cal-nav{ display:flex; gap:6px; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-dow{ text-align:center; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding:6px 0; }
.cal-day{
  position:relative; aspect-ratio:1; border-radius:10px; border:1px solid transparent;
  background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:13px; color:var(--text-2); transition:background .2s, border-color .2s, color .2s;
}
.cal-day:hover{ background:var(--surface-2); }
.cal-day.out{ color:var(--faint); }
.cal-day.today{ border-color:var(--accent-line); color:var(--accent-strong); font-weight:700; }
.cal-day.sel{ background:var(--accent-dim); border-color:var(--accent-line); color:var(--accent-strong); }
.cal-day .dot{ position:absolute; bottom:6px; width:4px; height:4px; border-radius:50%; background:var(--accent); }
.cal-day .dot.multi{ box-shadow:7px 0 0 var(--accent), -7px 0 0 var(--accent); }

.agenda-side{ display:flex; flex-direction:column; gap:14px; }
.agenda-day-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.agenda-day-head h4{ font-size:14px; }
.event{
  display:flex; gap:12px; padding:12px; border-radius:var(--r-md);
  border:1px solid var(--line); background:var(--surface); margin-bottom:8px;
  transition:background .2s, border-color .2s;
}
.event:hover{ background:var(--surface-2); border-color:var(--line-strong); }
.event-time{ font-size:12px; font-weight:700; color:var(--accent); min-width:44px; font-variant-numeric:tabular-nums; }
.event-body{ flex:1; min-width:0; }
.event-title{ font-size:13.5px; font-weight:600; }
.event-sub{ font-size:12px; color:var(--muted); margin-top:2px; }
.event-attach{ display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--info); margin-top:5px; }
.event-attach svg{ width:12px; height:12px; }

/* ============================================================
   STOCK
   ============================================================ */
.stock-toolbar{ display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.search{
  flex:1; min-width:200px; position:relative;
}
.search input{
  width:100%; padding:11px 14px 11px 40px; border-radius:var(--r-full);
  background:var(--surface); border:1px solid var(--line); color:var(--text); outline:none;
  transition:border-color .25s, background .25s;
}
.search input:focus{ border-color:var(--accent-line); background:var(--surface-2); }
.search svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--muted); }

.table-wrap{ border-radius:var(--r-lg); border:1px solid var(--line); overflow:hidden; background:var(--surface); }
table{ width:100%; border-collapse:collapse; }
thead th{
  text-align:left; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); font-weight:600; padding:12px 16px; border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.2); white-space:nowrap;
}
tbody td{ padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.045); font-size:13.5px; }
tbody tr:last-child td{ border-bottom:0; }
tbody tr{ transition:background .2s; }
tbody tr:hover{ background:var(--surface-2); }
.qty{ font-variant-numeric:tabular-nums; font-weight:700; }
.qty.low{ color:var(--warn); }
.qty.zero{ color:var(--danger); }
.qty-ctrl{ display:flex; align-items:center; gap:6px; }
.qty-ctrl button{
  width:26px; height:26px; border-radius:8px; border:1px solid var(--line);
  background:var(--surface-2); display:grid; place-items:center; color:var(--text-2);
  transition:background .2s, color .2s;
}
.qty-ctrl button:hover{ background:var(--surface-3); color:var(--text); }
.qty-ctrl span{ min-width:38px; text-align:center; font-variant-numeric:tabular-nums; font-weight:600; }

/* ============================================================
   FILES
   ============================================================ */
.folder-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.folder{
  display:flex; align-items:center; gap:13px; padding:16px; border-radius:var(--r-md);
  border:1px solid var(--line); background:var(--surface); cursor:pointer; text-align:left;
  transition:background .25s, border-color .25s, transform .25s;
}
.folder:hover{ background:var(--surface-2); border-color:var(--line-strong); transform:translateY(-2px); }
.folder-icon{ width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--accent-dim); color:var(--accent); flex:none; }
.folder-icon svg{ width:20px; height:20px; }
.folder-name{ font-size:13.5px; font-weight:600; }
.folder-count{ font-size:11.5px; color:var(--muted); }

.file-item{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--surface); }
.file-thumb{ width:38px; height:38px; border-radius:9px; object-fit:cover; flex:none; background:var(--surface-3); display:grid; place-items:center; color:var(--muted); }
.file-thumb svg{ width:18px; height:18px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay{
  position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px;
  background:rgba(4,5,7,.72); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  animation:fadeIn .3s var(--ease) both;
}
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
.modal{
  width:100%; max-width:560px; max-height:88dvh; overflow-y:auto;
  border-radius:var(--r-xl); padding:clamp(22px,4vw,32px);
  background:rgba(16,18,22,.94); border:1px solid var(--line-strong);
  box-shadow:0 40px 100px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  animation:modalIn .45s var(--ease-out) both;
}
.modal.wide{ max-width:760px; }
@keyframes modalIn{ from{ opacity:0; transform:translateY(20px) scale(.97);} to{ opacity:1; transform:none;} }
.modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.modal-head h3{ font-family:var(--font-serif); font-weight:400; font-size:24px; }
.modal-head p{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.modal-close{ width:34px; height:34px; border-radius:10px; border:1px solid var(--line); background:var(--surface); display:grid; place-items:center; color:var(--muted); flex:none; }
.modal-close:hover{ color:var(--text); background:var(--surface-2); }
.modal-close svg{ width:16px; height:16px; }
.modal-foot{ display:flex; gap:10px; justify-content:flex-end; margin-top:24px; flex-wrap:wrap; }

/* Color picker row */
.color-row{ display:flex; gap:8px; flex-wrap:wrap; }
.color-dot{
  width:32px; height:32px; border-radius:50%; border:2px solid transparent; cursor:pointer;
  transition:transform .2s, border-color .2s;
}
.color-dot:hover{ transform:scale(1.1); }
.color-dot.sel{ border-color:#fff; box-shadow:0 0 0 2px rgba(0,0,0,.5); }

/* Toast */
.toast-root{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:200; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.toast{
  padding:11px 18px; border-radius:var(--r-full); font-size:13px; font-weight:500;
  background:rgba(20,22,26,.96); border:1px solid var(--line-strong); color:var(--text);
  box-shadow:var(--shadow-float); animation:toastIn .4s var(--ease-out) both;
  display:flex; align-items:center; gap:8px;
}
.toast.ok{ border-color:rgba(95,191,143,.4); }
.toast.err{ border-color:rgba(224,112,112,.4); }
@keyframes toastIn{ from{ opacity:0; transform:translateY(14px) scale(.95);} to{ opacity:1; transform:none;} }

/* ============================================================
   MAIL
   ============================================================ */
.mail-layout{ display:grid; grid-template-columns:1fr 340px; gap:18px; align-items:start; }
.mail-composer{ display:flex; flex-direction:column; }
.mail-status{
  font-size:12px; padding:8px 12px; border-radius:var(--r-sm); margin-bottom:18px;
  border:1px solid var(--line); background:var(--surface-2); color:var(--text-2);
}
.mail-status.good{ border-color:rgba(95,191,143,.3); background:var(--ok-dim); color:var(--ok); }
.mail-status.warn{ border-color:rgba(224,180,94,.3); background:var(--warn-dim); color:var(--warn); }
.mail-status.bad{ border-color:rgba(224,112,112,.3); background:var(--danger-dim); color:var(--danger); }

.mail-to-row{ display:grid; grid-template-columns:1fr 190px; gap:8px; }
.mail-to-row select{
  padding:13px 12px; border-radius:var(--r-md); background:rgba(0,0,0,.28);
  border:1px solid var(--line); color:var(--text); outline:none; font-size:13px;
}
.mail-to-row select:focus{ border-color:var(--accent-line); }
.mail-composer textarea{ resize:vertical; min-height:200px; line-height:1.65; }
.mail-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:6px; }

.mail-history{ max-height:70vh; overflow-y:auto; }
.mail-item{
  padding:12px; border-radius:var(--r-md); border:1px solid var(--line);
  background:var(--surface); margin-bottom:8px; cursor:pointer;
  transition:background .2s, border-color .2s;
}
.mail-item:hover{ background:var(--surface-2); border-color:var(--line-strong); }
.mail-item-head{ display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.mail-item-to{ font-size:12.5px; font-weight:600; color:var(--accent); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mail-item-date{ font-size:11px; color:var(--muted); flex:none; }
.mail-item-subject{ font-size:13.5px; font-weight:600; margin-top:3px; }
.mail-item-preview{ font-size:12px; color:var(--muted); margin-top:3px; line-height:1.5; }
.mail-read{ font-size:14px; line-height:1.7; color:var(--text-2); }

/* ============================================================
   NOTES
   ============================================================ */
.note-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.note-card{
  display:flex; flex-direction:column; padding:18px; border-radius:var(--r-lg);
  border:1px solid var(--line); background:var(--surface); cursor:pointer;
  transition:transform .3s var(--ease), border-color .3s, background .3s;
  min-height:150px;
}
.note-card:hover{ transform:translateY(-2px); border-color:var(--accent-line); background:var(--surface-2); }
.note-card-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.note-card-head h4{ font-size:14.5px; line-height:1.35; }
.note-card-body{ font-size:12.5px; color:var(--muted); line-height:1.6; margin-top:8px; flex:1; }
.note-card-foot{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:14px; }
.note-card-date{ font-size:11px; color:var(--faint); margin-left:auto; }

.note-events{ display:flex; flex-direction:column; gap:4px; max-height:220px; overflow-y:auto; padding-right:4px; }
.note-ev{
  display:flex; align-items:flex-start; gap:10px; padding:8px 10px;
  border-radius:var(--r-sm); cursor:pointer; transition:background .2s;
}
.note-ev:hover{ background:var(--surface-2); }
.note-ev input{ margin-top:3px; accent-color:var(--accent); width:15px; height:15px; flex:none; }
.note-ev span{ font-size:13px; display:flex; flex-direction:column; gap:1px; }
.note-ev em{ font-style:normal; font-size:11px; color:var(--muted); }

/* ============================================================
   FEUILLE « PLUS » (mobile)
   ============================================================ */
.more-sheet{ display:flex; flex-direction:column; gap:8px; }
.more-item{
  display:flex; align-items:center; gap:14px; padding:14px;
  border-radius:var(--r-md); border:1px solid var(--line); background:var(--surface);
  text-align:left; transition:background .2s, border-color .2s;
}
.more-item:hover{ background:var(--surface-2); border-color:var(--line-strong); }
.more-icon{
  width:40px; height:40px; border-radius:11px; flex:none; display:grid; place-items:center;
  background:var(--accent-dim); color:var(--accent);
}
.more-icon svg{ width:20px; height:20px; }
.more-text{ flex:1; display:flex; flex-direction:column; gap:2px; }
.more-text strong{ font-size:14px; font-weight:600; }
.more-text em{ font-style:normal; font-size:12px; color:var(--muted); }
.more-arrow{ width:16px; height:16px; color:var(--muted); flex:none; }

@media (max-width: 1024px){
  .mail-layout{ grid-template-columns:1fr; }
  .mail-history{ max-height:none; }
}
@media (max-width: 560px){
  .mail-to-row{ grid-template-columns:1fr; }
  .note-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   BOÎTE DE RÉCEPTION
   ============================================================ */
.tab-badge{
  display:inline-block; min-width:17px; padding:1px 5px; margin-left:5px;
  border-radius:999px; background:var(--accent); color:#1A1208;
  font-size:10px; font-weight:700; line-height:1.5; text-align:center;
}
.inbox-list{ display:flex; flex-direction:column; gap:6px; }
.inbox-item{
  display:flex; gap:12px; padding:14px 16px; border-radius:var(--r-md);
  border:1px solid var(--line); background:var(--surface); cursor:pointer;
  transition:background .2s, border-color .2s;
}
.inbox-item:hover{ background:var(--surface-2); border-color:var(--line-strong); }
.inbox-item.unread{ background:var(--surface-2); border-color:var(--accent-line); }
.inbox-dot{
  width:7px; height:7px; border-radius:50%; flex:none; margin-top:7px;
  background:transparent; border:1px solid var(--line-strong);
}
.inbox-item.unread .inbox-dot{ background:var(--accent); border-color:var(--accent); }
.inbox-dot.sent{ background:var(--ok); border-color:var(--ok); }
.inbox-main{ flex:1; min-width:0; }
.inbox-head{ display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.inbox-from{ font-size:13px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inbox-item.unread .inbox-from{ color:var(--accent-strong); }
.inbox-date{ font-size:11px; color:var(--muted); flex:none; }
.inbox-subject{ font-size:13.5px; font-weight:600; margin-top:3px; }
.inbox-preview{ font-size:12px; color:var(--muted); margin-top:3px; line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

.mail-meta{
  display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--muted);
  padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--line);
}
.mail-meta strong{ color:var(--text-2); font-weight:600; margin-right:6px; }
.mail-tabs{ display:flex; gap:4px; margin-bottom:10px; }
.mail-tab{
  padding:5px 12px; border-radius:999px; border:1px solid var(--line);
  background:transparent; color:var(--muted); font-size:12px; font-weight:600;
}
.mail-tab.active{ background:var(--surface-3); color:var(--text); }
.mail-frame{
  width:100%; height:420px; border:1px solid var(--line); border-radius:var(--r-md);
  background:#fff;
}
.mail-text{
  font-family:var(--font-sans); font-size:13.5px; line-height:1.7; color:var(--text-2);
  white-space:pre-wrap; word-break:break-word; margin:0;
  max-height:420px; overflow-y:auto;
}

/* ============================================================
   ÉDITEUR DE NOTES PLEIN ÉCRAN
   ============================================================ */
.note-workspace{
  display:grid; grid-template-columns:220px minmax(0,1fr) 280px;
  gap:16px; align-items:start;
  min-height:calc(100dvh - 190px);
}

/* Rail des notes */
.note-rail{
  border-radius:var(--r-lg); border:1px solid var(--line); background:var(--surface);
  padding:12px; align-self:stretch; max-height:calc(100dvh - 190px);
  display:flex; flex-direction:column;
}
.note-rail-head{
  display:flex; align-items:center; justify-content:space-between;
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted); font-weight:600; padding:2px 4px 10px;
}
.note-rail-list{ overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.note-rail-item{
  display:flex; flex-direction:column; gap:2px; padding:9px 10px;
  border-radius:var(--r-sm); border:0; background:transparent; text-align:left;
  transition:background .2s;
}
.note-rail-item:hover{ background:var(--surface-2); }
.note-rail-title{ font-size:12.5px; font-weight:600; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-rail-date{ font-size:10.5px; color:var(--faint); }

/* Feuille */
.note-sheet{
  border-radius:var(--r-lg); border:1px solid var(--line); background:var(--surface);
  padding:0; overflow:hidden; display:flex; flex-direction:column;
  min-height:calc(100dvh - 190px);
}
.note-toolbar{
  display:flex; align-items:center; gap:2px; flex-wrap:wrap;
  padding:8px 12px; border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.18); position:sticky; top:0; z-index:2;
}
.tb{
  min-width:30px; height:30px; padding:0 7px; border-radius:7px; border:0;
  background:transparent; color:var(--text-2); font-size:13px; font-weight:600;
  display:grid; place-items:center; transition:background .15s, color .15s;
}
.tb:hover{ background:var(--surface-3); color:var(--text); }
.tb-sep{ width:1px; height:18px; background:var(--line); margin:0 5px; }
.tb-status{
  margin-left:auto; font-size:11px; color:var(--muted);
  transition:color .2s;
}
.tb-status.dirty{ color:var(--warn); }

.note-title{
  width:100%; border:0; background:transparent; outline:none;
  font-family:var(--font-serif); font-size:clamp(24px,3vw,32px); font-weight:400;
  color:var(--text); padding:22px 28px 6px; letter-spacing:-.01em;
}
.note-title::placeholder{ color:var(--faint); }

.note-body{
  flex:1; padding:8px 28px 40px; outline:none;
  font-size:15px; line-height:1.75; color:var(--text-2);
  min-height:340px; overflow-y:auto;
}
.note-body:empty::before{
  content:attr(data-placeholder); color:var(--faint); pointer-events:none;
}
.note-body h2{ font-family:var(--font-serif); font-size:24px; color:var(--text); margin:22px 0 8px; font-weight:400; }
.note-body h3{ font-size:17px; color:var(--text); margin:18px 0 6px; font-weight:600; }
.note-body p{ margin:0 0 12px; }
.note-body ul, .note-body ol{ margin:0 0 12px; padding-left:22px; }
.note-body li{ margin-bottom:4px; }
.note-body blockquote{
  margin:14px 0; padding:8px 16px; border-left:2px solid var(--accent-line);
  color:var(--muted); font-style:italic;
}
.note-body a{ color:var(--accent); }
.note-body strong{ color:var(--text); }

/* Panneau latéral */
.note-side{ display:flex; flex-direction:column; gap:14px; position:sticky; top:96px; }
.note-side-block{
  border-radius:var(--r-lg); border:1px solid var(--line); background:var(--surface);
  padding:14px;
}
.note-side-block h5{
  margin:0 0 10px; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted); font-weight:600;
}
.note-files{ display:flex; flex-direction:column; gap:6px; }
.note-file{
  display:flex; align-items:center; gap:8px; padding:7px 8px;
  border-radius:var(--r-sm); border:1px solid var(--line); background:var(--surface-2);
}
.note-file-thumb{ width:30px; height:30px; border-radius:6px; object-fit:cover; flex:none; }
.note-file-icon{
  width:30px; height:30px; border-radius:6px; flex:none; display:grid; place-items:center;
  background:var(--surface-3); color:var(--muted);
}
.note-file-icon svg{ width:15px; height:15px; }
.note-file-meta{ flex:1; min-width:0; display:flex; flex-direction:column; }
.note-file-meta strong{ font-size:11.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-file-meta em{ font-style:normal; font-size:10.5px; color:var(--muted); }
.note-file .icon-btn{ width:26px; height:26px; flex:none; }
.note-file .icon-btn svg{ width:13px; height:13px; }

@media (max-width: 1200px){
  .note-workspace{ grid-template-columns:190px minmax(0,1fr); }
  .note-side{ grid-column:1 / -1; position:static; flex-direction:row; flex-wrap:wrap; }
  .note-side-block{ flex:1; min-width:240px; }
}
@media (max-width: 860px){
  .note-workspace{ grid-template-columns:1fr; min-height:auto; }
  .note-rail{ max-height:180px; }
  .note-sheet{ min-height:60dvh; }
  .note-title{ padding:18px 18px 4px; }
  .note-body{ padding:6px 18px 30px; }
  .note-side{ flex-direction:column; }
}

/* ============================================================
   MODE D'EMPLOI
   ============================================================ */
.help-layout{ display:grid; grid-template-columns:210px minmax(0,1fr); gap:28px; align-items:start; }
.help-intro{
  max-width:760px; margin-bottom:22px; padding:14px 18px;
  border-radius:var(--r-md); background:var(--accent-dim);
  border:1px solid var(--accent-line);
  font-size:13px; line-height:1.65; color:var(--text-2);
}
.help-intro strong{ color:var(--accent-strong); }
.help-toc{
  position:sticky; top:96px; display:flex; flex-direction:column; gap:2px;
  padding:10px; border-radius:var(--r-lg); border:1px solid var(--line); background:var(--surface);
}
.help-toc-item{
  display:flex; align-items:center; gap:10px; padding:9px 10px;
  border-radius:var(--r-sm); border:0; background:transparent;
  color:var(--text-2); font-size:12.5px; font-weight:600; text-align:left;
  transition:background .2s, color .2s;
}
.help-toc-item:hover{ background:var(--surface-2); color:var(--text); }
.help-toc-item.active{ background:var(--accent-dim); color:var(--accent-strong); }
.help-toc-icon{ display:grid; place-items:center; width:18px; flex:none; }
.help-toc-icon svg{ width:16px; height:16px; }

.help-body{ max-width:760px; }
.help-section{
  padding-bottom:34px; margin-bottom:34px; border-bottom:1px solid var(--line);
  scroll-margin-top:100px;
}
.help-section:last-of-type{ border-bottom:0; }
.help-head{ position:relative; margin-bottom:20px; }
.help-num{
  font-family:var(--font-serif); font-size:13px; color:var(--accent);
  display:block; margin-bottom:6px; letter-spacing:.08em;
}
.help-head h3{
  font-family:var(--font-serif); font-weight:400; font-size:clamp(22px,2.6vw,28px);
  color:var(--text); margin:0 0 6px;
}
.help-head p{ font-size:13.5px; color:var(--muted); line-height:1.6; }

.help-steps{ list-style:none; counter-reset:step; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.help-steps li{
  counter-increment:step; position:relative; padding:12px 0 12px 44px;
  border-bottom:1px solid rgba(255,255,255,.045);
}
.help-steps li:last-child{ border-bottom:0; }
.help-steps li::before{
  content:counter(step); position:absolute; left:0; top:12px;
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  font-size:11.5px; font-weight:700; color:var(--accent-strong);
  background:var(--accent-dim); border:1px solid var(--accent-line);
}
.help-steps li strong{ display:block; font-size:13.5px; color:var(--text); margin-bottom:3px; }
.help-steps li span{ display:block; font-size:13px; color:var(--text-2); line-height:1.65; }
.help-steps code{
  font-size:12px; padding:2px 6px; border-radius:5px;
  background:var(--surface-3); border:1px solid var(--line); color:var(--accent-strong);
}

.help-note, .help-tip{
  margin-top:16px; padding:12px 15px; border-radius:var(--r-md);
  font-size:12.5px; line-height:1.65; color:var(--text-2);
}
.help-note{ background:var(--surface); border:1px solid var(--line); border-left:2px solid var(--muted); }
.help-tip{ background:var(--accent-dim); border:1px solid var(--accent-line); }
.help-tip strong{ color:var(--accent-strong); }

.help-faq{ display:flex; flex-direction:column; gap:2px; }
.help-faq details{ border-bottom:1px solid rgba(255,255,255,.045); }
.help-faq details:last-child{ border-bottom:0; }
.help-faq summary{
  cursor:pointer; padding:13px 0; font-size:13.5px; font-weight:600; color:var(--text);
  list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.help-faq summary::-webkit-details-marker{ display:none; }
.help-faq summary::after{
  content:'+'; font-size:17px; color:var(--muted); font-weight:400; flex:none;
  transition:transform .25s var(--ease);
}
.help-faq details[open] summary::after{ transform:rotate(45deg); }
.help-faq p{ font-size:13px; color:var(--text-2); line-height:1.7; padding:0 0 14px; margin:0; }

.help-foot{
  text-align:center; font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--faint); padding:20px 0 10px;
}

@media (max-width: 1024px){
  .help-layout{ grid-template-columns:1fr; gap:18px; }
  .help-toc{
    position:static; flex-direction:row; flex-wrap:wrap; gap:4px;
  }
  .help-toc-item{ font-size:11.5px; padding:7px 9px; }
}

/* ============================================================
   VISITE GUIDÉE
   ============================================================ */
.tour-root{ position:fixed; inset:0; z-index:400; }

/* Capte tous les clics : l'interface reste visible mais figée */
.tour-blocker{ position:absolute; inset:0; background:transparent; cursor:default; }

/* Découpe lumineuse : le box-shadow assombrit tout le reste */
.tour-spot{
  position:fixed; pointer-events:none; border-radius:12px;
  box-shadow:
    0 0 0 9999px rgba(4,5,7,.84),
    0 0 0 1px var(--accent-line),
    0 0 32px 4px rgba(224,154,94,.22);
  transition:top .32s var(--ease), left .32s var(--ease),
             width .32s var(--ease), height .32s var(--ease);
}

.tour-card{
  position:fixed; z-index:2;
  background:rgba(18,20,24,.97);
  border:1px solid var(--line-strong);
  border-radius:var(--r-lg);
  padding:20px 20px 16px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07);
  animation:tourCardIn .34s var(--ease-out) both;
  max-height:calc(100dvh - 32px);
  overflow-y:auto;
}
@keyframes tourCardIn{
  from{ opacity:0; transform:translateY(10px) scale(.98); }
  to{ opacity:1; transform:none; }
}
.tour-card.centered{ animation:tourCenterIn .4s var(--ease-out) both; }
@keyframes tourCenterIn{
  from{ opacity:0; transform:translate(-50%,-50%) scale(.96); }
  to{ opacity:1; transform:translate(-50%,-50%); }
}

.tour-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.tour-count{
  font-size:10.5px; font-weight:700; letter-spacing:.16em;
  color:var(--accent); font-variant-numeric:tabular-nums;
}
.tour-skip{
  border:0; background:transparent; padding:2px 0;
  font-size:11.5px; color:var(--muted); text-decoration:underline;
  transition:color .2s;
}
.tour-skip:hover{ color:var(--text-2); }

.tour-title{
  font-family:var(--font-serif); font-weight:400; font-size:21px;
  color:var(--text); margin:0 0 8px; line-height:1.2;
}
.tour-text{ font-size:13.5px; line-height:1.65; color:var(--text-2); margin:0 0 18px; }

.tour-actions{ display:flex; justify-content:flex-end; gap:8px; }

/* Flèche : carré pivoté, posé sur le bord de la carte, qui pointe vers la cible */
.tour-arrow{
  position:absolute; width:16px; height:16px;
  background:rgba(18,20,24,.97);
  border:1px solid var(--accent-line);
  box-shadow:0 0 14px rgba(224,154,94,.45);
}
.tour-arrow.side-left{
  border-right:0; border-top:0;
  transform:translateY(-50%) rotate(45deg);
}
.tour-arrow.side-right{
  border-left:0; border-bottom:0;
  transform:translateY(-50%) rotate(45deg);
}
.tour-arrow.side-top{
  border-right:0; border-bottom:0;
  transform:translateX(-50%) rotate(45deg);
}
.tour-arrow.side-bottom{
  border-left:0; border-top:0;
  transform:translateX(-50%) rotate(45deg);
}

@media (max-width: 860px){
  .tour-card{ padding:18px 16px 14px; }
  .tour-title{ font-size:19px; }
  .tour-text{ font-size:13px; }
}

@media (prefers-reduced-motion: reduce){
  .tour-spot{ transition:none; }
  .tour-card{ animation:none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px){
  .agenda-layout{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px){
  :root{ --sidebar-w:0px; }
  .sidebar{ display:none; }
  .main{ margin-left:0; }
  .bottom-nav{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:50;
    padding:8px 6px calc(8px + env(safe-area-inset-bottom));
    background:rgba(10,11,14,.86); border-top:1px solid var(--line);
    border-radius:0; justify-content:space-around;
  }
  .bnav-item{
    flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:7px 2px; border:0; background:transparent; color:var(--muted);
    font-size:10px; font-weight:600; border-radius:12px;
    transition:color .2s, background .2s;
  }
  .bnav-item svg{ width:21px; height:21px; }
  .bnav-item.active{ color:var(--accent-strong); background:var(--accent-dim); }
  .view{ padding-bottom:110px; }
  .topbar{ padding:14px 18px; }
  .view{ padding-left:18px; padding-right:18px; }
  .grid-2, .grid-3{ grid-template-columns:1fr; }
  .rs-grid{ grid-template-columns:1fr; }
  .rs-sign{ grid-template-columns:1fr; }
  .report-sheet{ padding:22px 18px; border-radius:var(--r-md); }
  .modal{ max-height:92dvh; }
  .toast-root{ bottom:88px; }
}

@media (max-width: 480px){
  .topbar-actions .btn span{ display:none; }
  .topbar-actions .btn{ padding:10px; }
  .template-grid{ grid-template-columns:1fr; }
  .stat-value{ font-size:28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* Reduced transparency */
@media (prefers-reduced-transparency: reduce){
  .glass, .sidebar, .bottom-nav, .topbar, .modal-overlay, .modal{
    backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
    background:#101216 !important;
  }
}

/* Print — report only */
@media print{
  .backdrop, .sidebar, .topbar, .bottom-nav, .modal-overlay, .toast-root, .no-print{ display:none !important; }
  body{ background:#fff; }
  .main{ margin:0; }
  .view{ padding:0; }
  .report-sheet{ box-shadow:none; max-width:none; border-radius:0; padding:0; }
  .rs-input{ border:0 !important; background:transparent !important; }
  .sign-clear, .rs-add-photo, .rs-photo button{ display:none !important; }
}

/* ============================================================
   ACCUEIL — liquid glass
   ------------------------------------------------------------
   Verre dépoli « liquid glass » : gel translucide, bord
   spéculaire éclairé par le haut, ombre flottante, balayage
   lumineux lent sur le bandeau. Chaque panneau est une surface,
   pas une boîte. Chute sur fond opaque quand le système le
   demande.
   ============================================================ */

/* Focus clavier visible sur tous les contrôles (absent jusqu'ici) */
:where(button, a, input, textarea, select, [tabindex]):focus-visible{
  outline:2px solid var(--accent-strong);
  outline-offset:2px;
}

.hm{ display:flex; flex-direction:column; gap:16px; }

/* ---------- Salutation ---------- */
.hm-greet{ margin:2px 0 2px; }
.hm-hello{
  font-family:var(--font-serif); font-weight:400;
  font-size:clamp(24px,3.4vw,34px); letter-spacing:-.02em; line-height:1.1;
}
.hm-hello em{ font-style:italic; color:var(--accent); }

/* ---------- Bandeau : verre liquide ---------- */
.hm-banner{
  position:relative; overflow:hidden;
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center;
  padding:clamp(22px,3vw,32px) clamp(22px,3vw,34px);
  border-radius:28px;
  background:
    radial-gradient(140% 120% at 88% -10%, rgba(240,174,114,.34), transparent 55%),
    radial-gradient(120% 130% at -10% 110%, rgba(111,168,220,.16), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 45%, rgba(0,0,0,.14));
  backdrop-filter:blur(28px) saturate(170%);
  -webkit-backdrop-filter:blur(28px) saturate(170%);
  color:var(--text);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 24px 60px -28px rgba(0,0,0,.85),
             inset 0 1px 0 rgba(255,255,255,.22),
             inset 0 -1px 0 rgba(0,0,0,.35);
}
.hm-banner::before{
  /* arête éclairée : le haut du verre capte la lumière */
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 22%),
    radial-gradient(80% 60% at 15% 0%, rgba(255,255,255,.14), transparent 60%);
  opacity:.7;
}
.hm-banner::after{
  /* balayage spéculaire lent, comme un reflet qui traverse la vitre */
  content:""; position:absolute; inset:-40% 0; pointer-events:none; opacity:.55;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 48%, transparent 66%);
  transform:translateX(-120%) skewX(-12deg);
  animation:hmSweep 9s var(--ease) infinite;
}
@keyframes hmSweep{ 0%{transform:translateX(-130%) skewX(-12deg);} 55%,100%{transform:translateX(130%) skewX(-12deg);} }
.hm-banner-main{ position:relative; z-index:1; min-width:0; }
.hm-banner h4{
  font-family:var(--font-serif); font-weight:400;
  font-size:clamp(19px,2.4vw,26px); line-height:1.22; letter-spacing:-.01em;
  color:var(--text);
}
.hm-banner p{ font-size:13.5px; margin-top:7px; color:var(--text-2); }
.hm-banner-actions{ display:flex; gap:9px; flex-wrap:wrap; margin-top:18px; }

.hm-btn-light{
  background:linear-gradient(160deg, var(--accent-strong), var(--accent));
  color:#1A1208; border-color:rgba(255,255,255,.18);
  box-shadow:0 8px 24px -8px rgba(224,154,94,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.hm-btn-light:hover{ box-shadow:0 12px 32px -8px rgba(224,154,94,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.hm-arrow{
  width:22px; height:22px; border-radius:50%; display:grid; place-items:center;
  background:rgba(26,18,8,.14); margin-right:-4px;
  transition:transform .35s var(--ease-out);
}
.hm-btn-light:hover .hm-arrow{ transform:translateX(3px); }
.hm-arrow svg{ width:13px; height:13px; }
.hm-btn-outline{
  background:rgba(255,255,255,.08); color:var(--text); border-color:rgba(255,255,255,.2);
}
.hm-btn-outline:hover{ background:rgba(255,255,255,.16); }

/* ---------- Jauge ---------- */
.hm-gauge{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:9px; }
.hm-ring{
  --pct:0;
  width:104px; height:104px; border-radius:50%; display:grid; place-items:center;
  background:conic-gradient(var(--accent-strong) calc(var(--pct) * 1%), rgba(255,255,255,.1) 0);
  position:relative;
}
.hm-ring::before{
  content:""; position:absolute; inset:9px; border-radius:50%;
  background:rgba(10,11,15,.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.hm-ring span{ position:relative; font-family:var(--font-serif); font-size:26px; line-height:1; color:var(--text); }
.hm-ring span i{ font-style:normal; font-size:14px; }
.hm-ring-empty{ background:conic-gradient(rgba(255,255,255,.1) 0 100%); }
.hm-ring-empty span{ color:var(--muted); }
.hm-gauge-label{
  font-size:11px; line-height:1.4; text-align:center;
  color:var(--text-2); letter-spacing:.02em;
}

/* ---------- Indicateurs : cartes de verre ---------- */
.hm-kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.hm-kpi{
  position:relative;
  display:flex; flex-direction:column; gap:3px; text-align:left;
  padding:16px 18px; border-radius:20px;
  border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03) 60%);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 12px 36px -18px rgba(0,0,0,.8),
             inset 0 1px 0 rgba(255,255,255,.16);
  transition:transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
}
.hm-kpi:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 18px 46px -18px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.26);
}
.hm-kpi-label{
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
}
.hm-kpi-value{
  font-family:var(--font-serif); font-size:32px; line-height:1.05; letter-spacing:-.02em;
  color:var(--text); margin-top:2px;
}
.hm-kpi-foot{ font-size:12px; color:var(--muted); }
.hm-kpi-warn .hm-kpi-value{ color:var(--warn); }

/* ---------- Colonnes ---------- */
.hm-cols{ display:grid; grid-template-columns:1.15fr 1fr; gap:14px; align-items:start; }
.hm-panel{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:12px; }
.hm-panel-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.hm-panel-head h4{ font-size:15.5px; text-transform:capitalize; }
.hm-panel-head .eyebrow{ margin-bottom:4px; }
.hm-daynum{
  font-family:var(--font-serif); font-size:34px; line-height:.9;
  color:var(--accent); opacity:.5;
}
.hm-sub{ margin-top:6px; }

.hm-events{ display:flex; flex-direction:column; gap:5px; }
.hm-event{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  padding:10px 12px; border-radius:var(--r-sm);
  border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02);
  transition:background .24s var(--ease), border-color .24s var(--ease);
}
.hm-event:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); }
.hm-event-time{
  font-size:12px; font-weight:700; color:var(--accent); flex:none;
  min-width:42px; font-variant-numeric:tabular-nums;
}
.hm-event-body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.hm-event-body strong{ font-size:13.5px; font-weight:600; color:var(--text); }
.hm-event-body em{ font-style:normal; font-size:12px; color:var(--muted); }
.hm-swatch{ width:4px; height:30px; border-radius:3px; flex:none; }

.hm-empty{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:6px 0 2px; }
.hm-empty p{ font-size:13px; color:var(--muted); }

/* ---------- Raccourcis ---------- */
.hm-shortcuts{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.hm-shortcut{
  position:relative;
  display:flex; align-items:center; gap:10px; padding:12px 14px;
  border-radius:var(--r-md);
  border:1px solid rgba(255,255,255,.11);
  background:linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 60%);
  backdrop-filter:blur(14px) saturate(150%);
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  box-shadow:0 8px 24px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14);
  font-size:13.5px; font-weight:500; color:var(--text-2);
  transition:background .24s var(--ease), color .24s, border-color .24s, transform .3s var(--ease);
}
.hm-shortcut:hover{
  background:rgba(255,255,255,.1); border-color:var(--accent-line); color:var(--text);
  transform:translateY(-2px);
}
.hm-shortcut svg{ width:18px; height:18px; color:var(--accent); flex:none; }

/* ---------- Adaptations ---------- */
@media (max-width: 1100px){
  .hm-cols{ grid-template-columns:1fr; }
  .hm-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px){
  .hm-banner{ grid-template-columns:1fr; gap:18px; padding:22px 20px; }
  .hm-gauge{ flex-direction:row; justify-content:flex-start; gap:14px; }
  .hm-gauge-label{ text-align:left; }
  .hm-ring{ width:84px; height:84px; }
  .hm-ring span{ font-size:22px; }
  .hm-shortcuts{ grid-template-columns:1fr; }
  /* Cibles tactiles : 44 px minimum */
  .hm-event{ min-height:52px; }
  .hm-shortcut{ min-height:48px; }
  .hm-kpi{ padding:14px 16px; }
}
@media (max-width: 420px){
  .hm-kpis{ grid-template-columns:1fr; }
  .hm-kpi-value{ font-size:28px; }
}

/* Le verre n'est pas une information : chute sur une surface opaque */
@media (prefers-reduced-transparency: reduce){
  .glass, .card, .hm-banner, .hm-kpi, .hm-shortcut{
    backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
    background:#14161B !important;
  }
  .hm-banner::after{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .hm-banner::after{ animation:none; }
}


/* ============================================================
   DEVIS — feuille imprimable
   ------------------------------------------------------------
   Même papier que les rapports (.report-sheet) : blanc cassé,
   serif pour le titre, filets fins. Les colonnes chiffrées sont
   alignées à droite en chiffres tabulaires, comme sur un devis
   papier — c'est ce qui rend les montants comparables d'un coup
   d'œil.
   ============================================================ */

.quote-sheet{ max-width:860px; }

.qs-top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:24px;
  border-bottom:2px solid var(--rs-accent,#C87941); padding-bottom:18px; margin-bottom:22px;
}
.qs-title{
  font-family:var(--font-serif); font-weight:400; font-size:clamp(34px,5vw,46px);
  line-height:.95; letter-spacing:-.02em; color:#1A1A1A; margin:0 0 14px;
}
.qs-meta{ font-size:12.5px; color:#4A4A4A; line-height:1.85; }
.qs-meta strong{ color:#1A1A1A; font-weight:600; }

.qs-brand{ text-align:right; flex:none; }
.qs-brand-logo{ display:block; margin-left:auto; }
.qs-brand-lines{ font-size:11.5px; color:#6A6A6A; line-height:1.7; margin-top:8px; }

/* Bloc véhicule / hayon (factures et devis) */
.qs-vehicle-block{
  margin:16px 0 4px; padding:12px 14px; border:1px solid rgba(0,0,0,.08);
  border-radius:10px; background:rgba(0,0,0,.018);
}
.qs-vehicle-block .rs-label{ display:block; margin-bottom:8px; }
.qs-vehicle-block .qs-inline{ grid-template-columns:1fr 1fr 1fr; gap:8px; }

/* Tampon PAYÉ (facture acquittée) */
.qs-stamp{
  position:absolute; top:210px; right:56px; transform:rotate(-8deg);
  border:3px solid #D0021B; color:#D0021B; font-family:var(--font-serif);
  font-size:40px; font-weight:700; letter-spacing:.08em; padding:6px 18px;
  border-radius:8px; opacity:.92; pointer-events:none;
}
.quote-sheet{ position:relative; }

.qs-parties{
  display:grid; grid-template-columns:1fr 1fr; gap:26px;
  padding-bottom:20px; margin-bottom:6px; border-bottom:1px solid rgba(0,0,0,.1);
}
.qs-party strong{ display:block; font-size:14px; color:#1A1A1A; margin-bottom:4px; }
.qs-party p{ font-size:12.5px; color:#4A4A4A; line-height:1.7; }
.qs-inline{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }

/* Champs dans la feuille : discrets au repos, nets à la saisie */
.qs-in{ padding:4px 6px; font-size:12.5px; }
.qs-in-strong{ font-weight:600; font-size:14px; }

/* ---------- Tableau ---------- */
.qs-table-wrap{ margin:18px 0 0; overflow-x:auto; }
.qs-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.qs-table thead th{
  background:#F1EFEA; color:#3A3A3A; font-weight:600; font-size:10.5px;
  letter-spacing:.1em; text-transform:uppercase; text-align:left;
  padding:9px 10px; border-bottom:1px solid rgba(0,0,0,.14); white-space:nowrap;
}
.qs-table thead th.qs-num{ text-align:right; }
.qs-table tbody td{
  padding:7px 10px; border-bottom:1px solid rgba(0,0,0,.08); vertical-align:top;
}
.qs-table td.qs-num{ text-align:right; white-space:nowrap; }
.qs-table .qs-desc{ width:auto; min-width:220px; }
.qs-table .qs-num{ width:1%; min-width:56px; }
/* Pas de flèches d'incrément dans une feuille imprimée : elles rognaient le chiffre */
.qs-table input[type=number]::-webkit-outer-spin-button,
.qs-table input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.qs-table input[type=number]{ -moz-appearance:textfield; }
.qs-table .qs-act{ width:34px; }
.qs-table .qs-calc{ font-variant-numeric:tabular-nums; color:#3A3A3A; padding-top:12px; }
.qs-table .qs-strong{ font-weight:600; color:#1A1A1A; }
.qs-table .qs-sub{ font-size:11.5px; color:#6A6A6A; }
.qs-table input.qs-n{ text-align:right; font-variant-numeric:tabular-nums; }

.qs-del{
  width:24px; height:24px; border-radius:50%; border:1px solid rgba(0,0,0,.12);
  background:transparent; color:#8A8A8A;
  display:grid; place-items:center; line-height:0; cursor:pointer;
}
.qs-del svg{ width:12px; height:12px; }
.qs-del:hover{ background:rgba(200,60,60,.1); border-color:rgba(200,60,60,.35); color:#B33; }

.qs-addrow td{ border-bottom:0; padding-top:10px; }
.qs-add{
  background:none; border:1px dashed rgba(0,0,0,.22); border-radius:8px;
  padding:6px 11px; font-size:12px; color:#5A5A5A; cursor:pointer; margin-right:8px;
}
.qs-add:hover{ border-color:var(--rs-accent,#C87941); color:#1A1A1A; background:rgba(0,0,0,.02); }

/* ---------- Bas de feuille ---------- */
.qs-foot{
  display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:24px;
  align-items:start; margin-top:22px;
}
.qs-objet .rs-label{ margin-bottom:6px; }

.qs-totals{
  background:#F1EFEA; border-radius:10px; padding:12px 14px;
  font-size:12.5px; color:#3A3A3A;
}
.qs-total-row{ display:flex; justify-content:space-between; gap:14px; padding:3px 0; }
.qs-total-row .mono{ font-variant-numeric:tabular-nums; }
.qs-total-ttc{
  margin-top:6px; padding-top:8px; border-top:1px solid rgba(0,0,0,.16);
  font-weight:700; color:#1A1A1A; font-size:13.5px;
}

.qs-status{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-top:22px; padding-top:14px; border-top:1px solid rgba(0,0,0,.1);
}
.qs-chip{
  border:1px solid rgba(0,0,0,.14); background:transparent; border-radius:999px;
  padding:5px 12px; font-size:11.5px; color:#5A5A5A; cursor:pointer;
}
.qs-chip:hover{ background:rgba(0,0,0,.04); }
.qs-chip.on{ background:#1A1A1A; border-color:#1A1A1A; color:#FBFAF7; }

.qs-legal{
  margin-top:20px; padding-top:12px; border-top:1px solid rgba(0,0,0,.1);
  font-size:9.5px; line-height:1.6; color:#7A7A7A;
}
.qs-page{ text-align:right; font-size:10px; color:#9A9A9A; margin-top:6px; }

@media screen and (max-width: 860px){
  .qs-top{ flex-direction:column; gap:14px; }
  .qs-brand{ text-align:left; }
  .qs-parties{ grid-template-columns:1fr; gap:16px; }
  .qs-foot{ grid-template-columns:1fr; }
  .qs-totals{ max-width:100%; }
  .qs-table{ font-size:12px; }
  .qs-table .qs-desc{ min-width:170px; }
}

/* À l'impression : la feuille seule, sans les contrôles d'édition */
@media print{
  .quote-sheet{ box-shadow:none; max-width:none; border-radius:0; padding:0; }
  .qs-status, .qs-addrow, .qs-act, .qs-del{ display:none !important; }
  .qs-table thead th{ background:#F1EFEA !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .qs-totals{ background:#F1EFEA !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .qs-in{ border:0 !important; background:transparent !important; padding-left:0; }
}

/* ---------- Conditions et bon pour accord ---------- */
.qs-terms{
  display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:24px;
  margin-top:22px; padding-top:16px; border-top:1px solid rgba(0,0,0,.1);
}
.qs-terms-col .rs-label{ margin-bottom:4px; }
.qs-terms textarea.qs-in{ font-size:11.5px; line-height:1.55; color:#4A4A4A; }
.qs-sign p{ font-size:10.5px; color:#7A7A7A; line-height:1.5; margin:2px 0 8px; }
.qs-sign-box{
  height:74px; border:1px dashed rgba(0,0,0,.28); border-radius:8px; background:#fff;
}
@media screen and (max-width: 860px){
  .qs-terms{ grid-template-columns:1fr; gap:16px; }
}
@media print{
  .qs-terms{ break-inside:avoid; }
  .qs-sign-box{ background:#fff !important; }
}

/* Compactage à l'impression : un devis de cinq lignes doit tenir sur une page A4 */
@media print{
  .qs-top{ padding-bottom:12px; margin-bottom:14px; }
  .qs-title{ font-size:34px; margin-bottom:10px; }
  .qs-meta{ font-size:11.5px; line-height:1.6; }
  .qs-parties{ padding-bottom:12px; gap:20px; }
  .qs-table thead th{ padding:6px 8px; }
  .qs-table tbody td{ padding:4px 8px; }
  .qs-table .qs-calc{ padding-top:8px; }
  .qs-foot{ margin-top:14px; }
  .qs-totals{ padding:9px 12px; }
  .qs-terms{ margin-top:14px; padding-top:10px; }
  .qs-sign-box{ height:58px; }
  .qs-legal{ margin-top:12px; padding-top:8px; }
  .qs-page{ margin-top:2px; }
}

/* Point neutre de la page de connexion (aucune marque) */
.brand-mark-dot{
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--accent-strong), var(--accent));
  box-shadow:0 0 20px rgba(224,154,94,.55);
}

/* Bouton recherche (topbar) */
.search-trigger{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  background:var(--surface); color:var(--text-2);
  display:grid; place-items:center; line-height:0; cursor:pointer;
}
.search-trigger:hover{ background:var(--surface-2); color:var(--text); }
.search-trigger svg{ width:17px; height:17px; }

/* Barre de recherche visible (topbar) */
.search-bar{
  display:inline-flex; align-items:center; gap:8px;
  height:34px; padding:0 10px 0 12px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface);
  color:var(--muted); font-size:12.5px; cursor:pointer;
  transition:background .2s, border-color .2s, color .2s;
}
.search-bar:hover{ background:var(--surface-2); border-color:var(--line-strong); color:var(--text-2); }
.search-bar svg{ width:15px; height:15px; flex:none; }
.search-bar kbd{
  font-family:var(--font-sans); font-size:10.5px; letter-spacing:.04em;
  padding:2px 6px; border-radius:6px; border:1px solid var(--line);
  background:rgba(255,255,255,.04); color:var(--muted);
}
@media (max-width: 860px){
  .search-bar span, .search-bar kbd{ display:none; }
  .search-bar{ width:34px; padding:0; justify-content:center; }
}

/* ---------- Signature du bon pour accord (devis) ---------- */
.qs-sign-pad{ background:#fff; border:1px dashed rgba(0,0,0,.28); border-radius:8px; padding:4px; }
.qs-sign-canvas{ width:100%; height:96px; display:block; touch-action:none; cursor:crosshair; border-radius:5px; }
.qs-sign-actions{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 4px 2px; }
.qs-sign-clear{
  font:inherit; font-size:10.5px; color:#7A7A7A; background:none; border:0;
  padding:2px 0; cursor:pointer; text-decoration:underline; text-underline-offset:2px;
}
.qs-sign-hint{ font-size:10.5px; color:#9A9A9A; }
@media print{
  .qs-sign-actions{ display:none; }
  .qs-sign-canvas{ height:74px; }
}


/* ---------- Pilotage (accueil) ---------- */
.pilot{ margin-top:18px; }
.pilot-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:14px 0 18px; }
.pilot-stat{ padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); }
.pilot-label{ display:block; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.pilot-value{ display:block; font-size:22px; font-weight:600; letter-spacing:-.01em; }
.pilot-foot{ display:block; margin-top:4px; font-size:11px; color:var(--muted); }
.pilot-cols{ display:grid; grid-template-columns:1.4fr 1fr; gap:22px; }
.pilot-bars{ display:flex; align-items:flex-end; gap:8px; height:96px; margin-top:10px; }
.pilot-bar-wrap{ flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:100%; gap:6px; }
.pilot-bar{ width:100%; max-width:34px; border-radius:4px 4px 2px 2px; background:linear-gradient(180deg,var(--accent),rgba(224,154,94,.35)); min-height:2px; }
.pilot-bar-label{ font-size:10px; color:var(--muted); text-transform:capitalize; }
.pilot-client{ display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--line); font-size:13px; }
.pilot-client:last-child{ border-bottom:0; }
.pilot-rank{ width:18px; color:var(--muted); font-size:11px; }
.pilot-client-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 900px){
  .pilot-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pilot-cols{ grid-template-columns:1fr; gap:16px; }
}

/* ---------- Envois en attente ---------- */
.upload-badge{
  font-size:10px; letter-spacing:.02em; color:var(--warn);
  border:1px solid rgba(224,154,94,.35); border-radius:999px;
  padding:1px 7px; white-space:nowrap;
}
.rs-photo{ position:relative; }
.rs-photo-pending{
  position:absolute; top:6px; right:6px; width:9px; height:9px; border-radius:50%;
  background:var(--warn); box-shadow:0 0 0 3px rgba(0,0,0,.35);
  animation:pulse-pending 1.6s ease-in-out infinite;
}
@keyframes pulse-pending{ 0%,100%{ opacity:.45 } 50%{ opacity:1 } }

/* ============================================================
   iOS & mobile — feuilles rapport / devis
   ------------------------------------------------------------
   - Safari iOS zoome dans tout champ < 16 px au focus → on
     remonte la police à 16 px sur écrans ≤ 860 px.
   - Les feuilles papier calent leur padding sur l'encoche et la
     barre d'accueil (safe-area).
   - Cibles tactiles agrandies pour le doigt.
   ============================================================ */
@media (max-width: 860px){
  .rs-input, .qs-in, .qs-table input, .qs-table textarea{ font-size:16px; }
  .report-sheet, .quote-sheet{
    padding-left:max(18px, env(safe-area-inset-left));
    padding-right:max(18px, env(safe-area-inset-right));
  }
  .qs-del{ width:32px; height:32px; }
  .rs-check input{ width:18px; height:18px; }
}

/* ============================================================
   Centre de notifications
   ============================================================ */

.notif-btn{ position:relative; }

.notif-dot{
  position:absolute; top:-3px; right:-3px;
  min-width:16px; height:16px; padding:0 4px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:#1a1208;
  font-size:10px; font-weight:700; line-height:1;
  border-radius:999px;
  border:2px solid var(--bg);
  box-shadow:0 0 0 1px var(--accent-line);
}

.notif-panel{
  position:fixed; top:calc(var(--topbar-h) + 10px); right:16px;
  width:min(400px, calc(100vw - 24px));
  max-height:min(620px, calc(100dvh - var(--topbar-h) - 28px));
  display:flex; flex-direction:column;
  /* Fond opaque : un panneau flottant ne doit pas laisser lire la page dessous */
  background:#0F1116;
  border:1px solid var(--line-strong);
  border-radius:var(--r-md, 14px);
  box-shadow:var(--shadow-float);
  z-index:70;
  opacity:0; transform:translateY(-8px);
  transition:opacity var(--dur,180ms) var(--ease-out,ease), transform var(--dur,180ms) var(--ease-out,ease);
  overflow:hidden;
}
.notif-panel.open{ opacity:1; transform:translateY(0); }

.notif-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:16px 16px 12px;
  border-bottom:1px solid var(--line);
}
.notif-head h3{ margin:2px 0 0; font-size:17px; font-family:var(--font-serif); font-weight:500; }
.notif-head-actions{ display:flex; align-items:center; gap:6px; flex-shrink:0; }

.notif-list{ overflow-y:auto; padding:6px; padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px)); }

.notif-item{
  width:100%; display:flex; gap:10px; align-items:flex-start;
  padding:11px 10px; text-align:left;
  background:transparent; border:0; border-radius:10px;
  color:inherit; font:inherit; cursor:pointer;
  transition:background 140ms ease;
}
.notif-item:hover{ background:var(--bg-soft); }

.notif-mark{
  width:7px; height:7px; border-radius:50%; flex-shrink:0; margin-top:6px;
  background:transparent;
}
.notif-item.unread .notif-mark{ background:var(--accent); box-shadow:0 0 0 3px var(--accent-dim); }

.notif-body{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.notif-title{ font-size:13.5px; font-weight:500; color:var(--text); }
.notif-item.unread .notif-title{ color:var(--text); }
.notif-text{ font-size:12.5px; color:var(--muted); line-height:1.45; }

.notif-meta{
  display:flex; align-items:center; gap:10px;
  font-size:11.5px; color:var(--faint); margin-top:2px;
}
.notif-open{
  display:inline-flex; align-items:center; gap:2px;
  color:var(--accent); font-weight:500;
}
.notif-open svg{ width:12px; height:12px; }

.notif-empty{ padding:34px 20px; text-align:center; }
.notif-empty p{ margin:0 0 4px; font-size:13.5px; color:var(--text); }
.notif-empty span{ font-size:12px; color:var(--faint); line-height:1.5; }

/* Onglet « Signés » */
.qsigned-row{ cursor:pointer; }
.qsigned-sign{
  display:flex; align-items:center; gap:8px;
  font-size:12.5px; color:var(--muted);
}
.qsigned-sign img{
  height:26px; width:auto; max-width:90px;
  background:#fff; border-radius:4px; padding:2px 4px;
  border:1px solid var(--line);
}

@media (max-width: 860px){
  .notif-panel{
    top:auto; bottom:0; left:0; right:0;
    width:100%; max-height:82dvh;
    border-radius:16px 16px 0 0;
    transform:translateY(14px);
  }
  .notif-panel.open{ transform:translateY(0); }
}

/* ---------- Interventions : liste + assistant 5 étapes ---------- */
.inv-th{ text-align:left; padding:12px 16px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); border-bottom:1px solid var(--line); }
.inv-td{ padding:12px 16px; }

.inv-wizard{ max-width:900px; margin:0 auto; }
.inv-stepper{ display:flex; align-items:center; gap:6px; overflow-x:auto; padding:4px 2px 16px; scrollbar-width:none; }
.inv-stepper::-webkit-scrollbar{ display:none; }
.inv-step{ display:flex; align-items:center; gap:8px; padding:7px 12px; border-radius:99px; font-size:12px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--line); white-space:nowrap; flex:none; }
.inv-step.active{ background:var(--accent); color:#1A1208; border-color:var(--accent); }
.inv-step.done{ color:var(--ok, #7BC48F); border-color:rgba(123,196,143,.4); }
.inv-step-dot{ display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:rgba(255,255,255,.08); font-size:11px; }
.inv-step.active .inv-step-dot{ background:rgba(0,0,0,.18); }
.inv-step-label{ display:inline; }
.inv-step-sep{ width:14px; height:1px; background:var(--line); flex:none; }
.inv-panel{ padding:22px; }
.inv-wizard-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
.inv-h2{ font-family:var(--font-serif); font-size:20px; font-weight:400; margin:0 0 14px; }
.inv-hint{ font-size:12px; color:var(--muted); margin-top:6px; }
.inv-step-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.inv-count{ font-size:11px; font-weight:600; padding:4px 10px; border-radius:99px; background:rgba(224,154,94,.14); color:var(--accent); }

.inv-materials{ display:flex; flex-direction:column; gap:8px; }
.inv-mat{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:12px 14px; border-radius:12px; border:2px solid var(--line); background:var(--surface); cursor:pointer; transition:border-color .2s, background .2s; }
.inv-mat:hover{ border-color:var(--line-strong); }
.inv-mat.on{ border-color:var(--accent); background:rgba(224,154,94,.08); }
.inv-mat-radio{ width:20px; height:20px; border-radius:50%; border:2px solid var(--line-strong); flex:none; }
.inv-mat.on .inv-mat-radio{ border-color:var(--accent); background:radial-gradient(circle, var(--accent) 42%, transparent 46%); }
.inv-mat-text{ display:flex; flex-direction:column; min-width:0; }
.inv-mat-text strong{ font-size:14px; }
.inv-mat-text small{ font-size:12px; color:var(--muted); }

.inv-check{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text-2); margin:12px 0; cursor:pointer; }
.inv-check input{ width:16px; height:16px; accent-color:var(--accent); }

.inv-qgrid{ display:flex; flex-direction:column; }
.inv-sec{ margin:16px 0 6px; padding:7px 10px; background:rgba(224,154,94,.12); color:#c98a52; font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; border-radius:6px; }
.inv-q{ display:grid; grid-template-columns:1fr auto auto auto; gap:8px; align-items:center; padding:8px 4px; border-bottom:1px solid var(--line); }
.inv-q-label{ font-size:13px; color:var(--text-2); }
.inv-choice{ font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:99px; border:1px solid var(--line-strong); color:var(--muted); cursor:pointer; user-select:none; }
.inv-choice.on{ background:var(--accent); color:#1A1208; border-color:var(--accent); }
.inv-remark{ width:100%; min-width:0; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); font-size:12px; padding:4px; grid-column:1 / -1; }

.inv-decision{ margin-top:18px; padding:14px 16px; border-radius:12px; background:rgba(224,154,94,.06); border:1px solid var(--line); }
.inv-decision h3{ font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:6px; }

.inv-recap{ display:grid; grid-template-columns:1fr 1fr; gap:2px 24px; }
.inv-recap > div{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.inv-recap span{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.inv-recap strong{ font-size:13.5px; text-align:right; }

@media (max-width: 700px){
  .inv-recap{ grid-template-columns:1fr; }
  .inv-step-label{ display:none; }
  /* Ligne de question : libellé pleine largeur à gauche, réponses dessous, remarque en bas */
  .inv-q{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:10px 2px; }
  .inv-q-label{ flex:1 1 100%; font-size:13.5px; }
  .inv-remark{ flex:1 1 100%; }
  .inv-choice{ padding:7px 16px; font-size:12px; }
  /* Signatures empilées */
  .rs-sign{ grid-template-columns:1fr; }
  .inv-panel{ padding:16px 16px 22px; }
  /* Tableau liste : largeur mini + défilement horizontal discret */
  .inv-table{ min-width:660px; }
  .inv-card-scroll{ overflow-x:auto; scrollbar-width:none; }
  .inv-card-scroll::-webkit-scrollbar{ display:none; }
  /* Rapport (papier) sur mobile : grille VGP compacte, sans débordement */
  .rs-grid{ grid-template-columns:1fr; }
  .vgp-grid-head, .vgp-check-row{ grid-template-columns:minmax(0,1fr) 30px 30px 30px 30px 54px; gap:4px; }
  .vgp-grid-head span{ font-size:8px; }
  .vgp-question{ font-size:10.5px; line-height:1.35; }
  .vgp-remark{ font-size:10px; padding:2px; }
  .report-sheet{ padding-left:14px !important; padding-right:14px !important; }
  .rs-head{ flex-wrap:wrap; gap:10px; }
}
