/*
 * Espace vendeurs — Marty Saran
 * Feuille de style commune (app vendeurs, administration, pages légales)
 * Auteur : Néo Mouradi
 */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
:root {
  --red: #E30613;
  --red-hi: #FF2A36;
  --red-deep: #B0000D;
  --red-edge: #7C0009;
  --ink: #1B1C20;
  --ink-2: #3A3D45;
  --muted: #6B7079;
  --line: #DFE2E7;
  --bg: #ECEEF2;
  --surface: #FFFFFF;
  --surface-2: #F6F7F9;
  --ok: #0F9D58;
  --warn: #F29900;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;

  --sh-card:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(24,26,33,.06),
    0 6px 14px -6px rgba(24,26,33,.14),
    0 22px 40px -18px rgba(24,26,33,.22);
  --sh-float:
    0 2px 4px rgba(24,26,33,.08),
    0 18px 44px -12px rgba(24,26,33,.35);
  --sh-red:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 4px 0 var(--red-edge),
    0 12px 24px -8px rgba(176,0,13,.55);

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Thème : clair (défaut), sombre ; « auto » suit le réglage du téléphone (voir assets/theme.js) */
:root {
  --surface-hi: #fff;
  --mix: #fff;
  --hi: #fff;
  --edge: #D6D9DF;
  --solid-dark: #1B1C20;
  --amber-soft: #FFF7EA;
  --amber-line: #F6DDB3;
  --amber-text: #A66A00;
  --red-soft: #FFEDEE;
  --red-line: #FFC9CD;
  --green-soft: #E9F7EF;
  --green-line: #BFE6CF;
  --green-text: #0B7A45;
  --neutral-soft: #EEF0F3;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0E0F12;
  --surface: #191B20;
  --surface-2: #22252C;
  --surface-hi: #272B32;
  --mix: #191B20;
  --hi: rgba(255,255,255,.05);
  --edge: #07080A;
  --line: #31353D;
  --ink: #F1F2F4;
  --ink-2: #C9CCD2;
  --muted: #9299A4;
  --solid-dark: #2E323A;
  --amber-soft: #2A2217;
  --amber-line: #4B3B22;
  --amber-text: #F3B95C;
  --red-soft: #321719;
  --red-line: #5E2329;
  --green-soft: #15271D;
  --green-line: #245239;
  --green-text: #52D18D;
  --neutral-soft: #2B2F36;
  --t-travail: #464B55;
  --t-absence: #6E7580;
  --sh-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 4px rgba(0,0,0,.4), 0 18px 36px -18px rgba(0,0,0,.8);
  --sh-float: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px -12px rgba(0,0,0,.85);
  color-scheme: dark;
}
html[data-theme="dark"] .file-snippet mark { color: #1B1C20; }
html[data-theme="dark"] .input::placeholder { color: #6B717C; }
html[data-theme="dark"] .tabbar { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -10px rgba(0,0,0,.9); }
html[data-theme="dark"] .hero { background: linear-gradient(170deg, #D0101C 0%, #A5000C 55%, #6E0008 100%); }
html[data-theme="dark"] .login { background: radial-gradient(120% 60% at 50% 0%, #D0101C 0%, #A5000C 40%, #5A0007 80%, #2A0003 100%); }
html[data-theme="dark"] .badge { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 3px 0 #000, 0 26px 50px -18px rgba(0,0,0,.9); }
html[data-theme="dark"] .mcell.t-vide, html[data-theme="dark"] .pcell.t-vide { background: var(--surface-2); }
html[data-theme="dark"] .bob-shadow { fill: rgba(0,0,0,.45); }
html[data-theme="dark"] .alert { background: var(--red-soft); border-color: var(--red-line); color: #FF8A92; }
html[data-theme="dark"] .p-avant, html[data-theme="dark"] .p-parti { color: var(--muted); }
html[data-theme="dark"] .notif-card { background: linear-gradient(135deg, var(--surface), var(--red-soft)); }
html[data-theme="dark"] .bob-search { background: linear-gradient(160deg, var(--surface) 0%, var(--amber-soft) 100%); }
html[data-theme="dark"] img.avatar, html[data-theme="dark"] .album-item, html[data-theme="dark"] .home-photo { background: var(--surface-2); }

/* Sélecteur d'apparence */
.theme-seg { margin: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; touch-action: manipulation; }
body {
  margin: 0; min-height: 100%;
  overflow-x: clip;
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(227,6,19,.45); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-cond); font-weight: 700; line-height: 1.05;
  margin: 0; letter-spacing: -.005em;
}
h1 { font-size: clamp(30px, 6vw, 40px); }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Boutons */
.btn {
  --b: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-sm);
  font-weight: 700; font-size: 16px;
  background: var(--b);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--edge), 0 8px 18px -8px rgba(24,26,33,.3);
  transition: transform .08s ease, box-shadow .08s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--hi), 0 0 0 var(--edge), 0 3px 8px -4px rgba(24,26,33,.3); }
.btn-red {
  color: #fff;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 45%, var(--red-deep) 100%);
  box-shadow: var(--sh-red);
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.btn-red:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 var(--red-edge), 0 4px 10px -4px rgba(176,0,13,.5); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Champs */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 2px 4px rgba(24,26,33,.06);
  font-size: 17px; /* 16px min. : évite le zoom automatique sur iOS */
  transition: border-color .15s, background .15s;
}
.input::placeholder { color: #B4B8C0; }
.input:focus { outline: none; border-color: var(--red); background: var(--surface-hi); box-shadow: inset 0 2px 4px rgba(24,26,33,.04), 0 0 0 4px rgba(227,6,19,.12); }
textarea.input { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 4px 0 18px; user-select: none; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }

.alert {
  padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  background: var(--red-soft); color: var(--red-deep); border: 1px solid var(--red-line); margin-bottom: 14px;
}

/* Cartes */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* Écran de connexion ---------------------------------------------------- */
.login {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--red-hi) 0%, var(--red) 38%, var(--red-deep) 78%, #6E0008 100%);
}
.login-top {
  padding: calc(var(--safe-t) + 44px) 24px 90px;
  color: #fff; text-align: center;
}
.login-top h1 { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.login-top p { margin: 8px 0 0; opacity: .88; }
.login-panel {
  width: min(440px, calc(100% - 32px));
  margin: -64px auto calc(var(--safe-b) + 32px);
  align-self: start;
  background: var(--surface); border-radius: 26px;
  box-shadow: var(--sh-float);
  padding: 28px 24px 24px;
}
.login-panel h2 { margin-bottom: 4px; }
.login-panel .lead { margin: 0 0 22px; color: var(--muted); }
.code-input {
  font-family: var(--font-cond); font-weight: 700; font-size: 34px;
  letter-spacing: .18em; text-align: center; min-height: 66px;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; margin-bottom: 16px; }

/* Application vendeur --------------------------------------------------- */
.app { min-height: 100vh; min-height: 100dvh; }

.hero {
  position: relative;
  background: linear-gradient(170deg, var(--red-hi) 0%, var(--red) 40%, var(--red-deep) 100%);
  color: #fff;
  padding: calc(var(--safe-t) + 22px) 20px 92px;
  box-shadow: inset 0 -30px 60px -30px rgba(0,0,0,.35);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 85% -10%, rgba(255,255,255,.22), transparent 60%);
  pointer-events: none;
}
.hero-row { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.hero-hello { font-size: 15px; opacity: .9; }
.hero h1 { color: #fff; margin-top: 2px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.hero-date { font-size: 14px; opacity: .85; margin-top: 4px; text-transform: capitalize; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px -4px rgba(0,0,0,.3);
}
.icon-btn svg { width: 22px; height: 22px; }

.main {
  position: relative; z-index: 2;
  max-width: 1080px; margin: -70px auto 0;
  padding: 0 16px calc(var(--safe-b) + 110px);
}

/* Badge vendeur */
.badge {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(155deg, #26282E 0%, #1B1C20 55%, #121316 100%);
  color: #fff;
  padding: 22px 22px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 3px 0 #000,
    0 26px 50px -18px rgba(0,0,0,.55);
  transform-style: preserve-3d;
  transition: transform .25s ease;
}
.badge::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 7px; border-radius: 6px;
  background: var(--bg); box-shadow: inset 0 2px 3px rgba(0,0,0,.35);
}
.badge::after {
  content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 140px;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  transform: skewX(-14deg);
  box-shadow: -8px 0 24px rgba(0,0,0,.35);
}
.badge-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-cond); font-weight: 800; font-size: 28px;
  color: var(--red);
  background: linear-gradient(160deg, var(--surface-hi), #E9EAEE);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 6px 14px -4px rgba(0,0,0,.5);
}
.badge-name { font-family: var(--font-cond); font-weight: 700; font-size: 26px; line-height: 1.05; }
.badge-poste { color: #B9BCC4; font-size: 15px; margin-top: 2px; }
.badge-code {
  margin-left: auto; text-align: right;
  font-family: var(--font-cond); font-weight: 800; font-size: 38px; line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.badge-code small { display: block; font-size: 13px; font-weight: 600; opacity: .85; font-family: var(--font); }
.badge-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; color: #9EA2AB; }

/* Grille accueil */
.grid { display: grid; gap: 16px; margin-top: 18px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px; border: 0; text-align: left;
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-card);
  transition: transform .1s;
}
.quick-tile:active { transform: scale(.98); }
.quick-tile .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  box-shadow: 0 3px 0 var(--red-edge), 0 8px 14px -6px rgba(176,0,13,.6);
}
.quick-tile .ic svg { width: 22px; height: 22px; }
.quick-tile b { font-size: 16px; }
.quick-tile span { font-size: 13px; color: var(--muted); }

/* Annonces */
.annonce { padding: 16px 0; border-top: 1px solid var(--line); }
.annonce:first-of-type { border-top: 0; padding-top: 4px; }
.annonce h3 { font-size: 20px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.annonce p { margin: 0; white-space: pre-wrap; color: var(--ink-2); }
.annonce time { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font); font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-deep);
}
.tag-pin { background: var(--neutral-soft); color: var(--ink-2); }
.annonce.is-important { position: relative; }
.annonce.is-important::before {
  content: ''; position: absolute; left: -20px; top: 16px; bottom: 16px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--red);
}

.empty { text-align: center; color: var(--muted); padding: 26px 10px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--safe-t) - 220px); min-height: 380px; padding: 0; overflow: hidden; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); overscroll-behavior: contain; }
.msg { max-width: 80%; display: flex; flex-direction: column; align-items: flex-start; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--muted); margin: 8px 0 3px 10px; }
.bubble {
  padding: 10px 14px; border-radius: 18px 18px 18px 6px;
  background: var(--surface-hi); box-shadow: 0 1px 0 var(--edge), 0 4px 10px -6px rgba(24,26,33,.2);
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
}
.msg time { font-size: 11px; color: var(--muted); margin: 3px 10px 0; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble {
  color: #fff; border-radius: 18px 18px 6px 18px;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 60%, var(--red-deep));
  box-shadow: 0 2px 0 var(--red-edge), 0 8px 16px -8px rgba(176,0,13,.6);
}
.msg.admin .bubble { background: var(--solid-dark); color: #fff; box-shadow: 0 2px 0 #000; }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--neutral-soft); padding: 4px 12px; border-radius: 999px; margin: 10px 0; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface-hi); }
.chat-form .input { min-height: 46px; border-radius: 999px; padding: 10px 18px; }
.send-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: #fff; background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  box-shadow: 0 3px 0 var(--red-edge), 0 8px 16px -6px rgba(176,0,13,.6);
}
.send-btn:active { transform: translateY(3px); box-shadow: none; }
.send-btn svg { width: 22px; height: 22px; }

/* Équipe / profil */
.team { display: grid; gap: 10px; }
.member { display: flex; align-items: center; gap: 12px; }
.member .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; box-shadow: 0 3px 8px -3px rgba(0,0,0,.3); background: var(--surface-2); }
.member small { display: block; color: var(--muted); }

/* Navigation basse (mobile) */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); z-index: 20;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(27,28,32,.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 22px; padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -10px rgba(0,0,0,.55);
}
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: none; color: #9EA2AB; padding: 8px 0 6px; border-radius: 16px;
  font-size: 12px; font-weight: 600;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 var(--red-edge);
}
.dot {
  position: absolute; top: 5px; right: calc(50% - 20px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #fff; color: var(--red); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.view { display: none; }
.view.active { display: block; animation: viewIn .22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 100px); transform: translateX(-50%) translateY(20px);
  background: var(--solid-dark); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
  box-shadow: var(--sh-float); opacity: 0; transition: .25s; z-index: 50; pointer-events: none; max-width: calc(100% - 40px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Bannière installation */
.install {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface-hi); border: 1px dashed var(--red-line); border-radius: var(--r-md); padding: 14px; margin-top: 16px;
  font-size: 14px;
}
.install b { display: block; font-size: 15px; }

/* Ordinateur ------------------------------------------------------------ */
@media (min-width: 900px) {
  .hero { padding: 34px 32px 110px; }
  .main { padding: 0 32px 60px; margin-top: -84px; max-width: 1144px; }
  .tabbar {
    left: 50%; right: auto; transform: translateX(-50%); width: 660px;
    top: 26px; bottom: auto; background: rgba(0,0,0,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  }
  .tab { flex-direction: row; justify-content: center; gap: 8px; font-size: 14px; padding: 10px 0; color: rgba(255,255,255,.8); }
  .tab svg { width: 20px; height: 20px; }
  .tab[aria-current="page"] { background: #fff; color: var(--red); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
  .dot { top: -4px; right: 6px; }
  .home-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
  .home-grid > .grid { margin-top: 0; }
  .chat { height: calc(100vh - 200px); }
  .days { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
  .badge:hover { transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-2px); }
  .toast { bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Pied de page et crédits */
.site-foot {
  text-align: center; font-size: 13px; color: rgba(255,255,255,.72);
  padding: 0 20px calc(var(--safe-b) + 28px);
}
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 6px; }
.app-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 26px 0 0; }
.app-foot a { color: var(--muted); }
.app-foot nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 6px; }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 28px) 20px 60px; }
.legal-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.legal-top a { color: var(--muted); font-weight: 600; text-decoration: none; margin-left: auto; }
.legal .card { padding: 28px 24px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 22px; margin: 30px 0 8px; }
.legal h3 { font-size: 18px; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* Planning ---------------------------------------------------------------- */
:root {
  --t-travail: #1B1C20;
  --t-repos: #0B94A3;
  --t-cours: #1E8E4A;
  --t-formation: #6A4FD6;
  --t-absence: #8A8F98;
  --t-autre: #D07A00;
}
.t-travail { --tone: var(--t-travail); }
.t-repos { --tone: var(--t-repos); }
.t-cours { --tone: var(--t-cours); }
.t-formation { --tone: var(--t-formation); }
.t-absence { --tone: var(--t-absence); }
.t-autre { --tone: var(--t-autre); }
.t-vide { --tone: #C3C7CE; }

.ptag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
  color: #fff; background: var(--tone);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 rgba(0,0,0,.18);
  white-space: nowrap;
}

.week-card { padding: 18px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.week-nav h2 { font-size: 24px; text-align: center; }
.week-nav .week-total { display: block; text-align: center; color: var(--muted); font-size: 14px; margin-top: 2px; }
.nav-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0;
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
  background: var(--surface-2); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--edge);
}
.nav-arrow:active { transform: translateY(3px); box-shadow: none; }
.week-today { display: block; margin: 12px auto 0; }

.week-stats { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.week-stats:empty { display: none; }
.stat-chip {
  flex: 1 0 auto; min-width: 80px;
  padding: 10px 12px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--tone, var(--red)) 9%, var(--surface-hi));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--red)) 22%, var(--mix));
}
.stat-chip b { display: block; font-family: var(--font-cond); font-size: 22px; line-height: 1; color: var(--tone, var(--red)); }
.stat-chip span { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Aujourd'hui */
.hero-day {
  position: relative; overflow: hidden;
  color: #fff; border-radius: 24px; padding: 20px 20px 18px; margin-bottom: 16px;
  background: linear-gradient(150deg, #2A2C33 0%, #1B1C20 60%, #111215 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 #000, 0 24px 44px -18px rgba(0,0,0,.6);
}
.hero-day:not(.t-travail) {
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 85%, var(--surface-hi)) 0%, var(--tone) 55%, color-mix(in srgb, var(--tone) 70%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 color-mix(in srgb, var(--tone) 60%, #000), 0 24px 44px -18px rgba(0,0,0,.45);
}
.hd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; opacity: .85; }
.hd-date { font-weight: 500; text-transform: capitalize; }
.hd-hours { font-family: var(--font-cond); font-weight: 800; font-size: 46px; line-height: 1; margin: 12px 0 6px; letter-spacing: -.01em; }
.hd-status { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; opacity: .95; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,.08); } }
.hd-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 14px; }
.hd-progress span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--red-hi), var(--red)); box-shadow: 0 0 12px rgba(255,42,54,.6); }
.hd-foot { display: flex; justify-content: space-between; font-size: 13px; opacity: .75; margin-top: 8px; }
.hd-note { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(106,79,214,.35); font-size: 14px; font-weight: 600; }
.hero-day .tl { margin-top: 16px; }
.hero-day .tl-track { background: rgba(255,255,255,.08); box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.hero-day .tl-scale span { color: rgba(255,255,255,.55); }
.hero-day:not(.t-travail) .tl-block { background: rgba(255,255,255,.9); box-shadow: none; }

/* Barre horaire */
.tl { width: 100%; }
.tl-track {
  position: relative; height: 14px; border-radius: 7px;
  background: repeating-linear-gradient(90deg, var(--neutral-soft) 0 calc(100% / 11 - 1px), var(--neutral-soft) calc(100% / 11 - 1px) calc(100% / 11));
  box-shadow: inset 0 1px 2px rgba(24,26,33,.08);
}
.tl-block {
  position: absolute; top: 0; bottom: 0; border-radius: 7px;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 60%, var(--red-deep));
  box-shadow: 0 2px 6px -1px rgba(176,0,13,.45);
}
.tl-block.is-done { background: linear-gradient(180deg, #8C9099, #6B7079); box-shadow: none; }
.tl-block.is-live { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255,42,54,.7); }
.tl-now { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: #3DDC84; box-shadow: 0 0 8px #3DDC84; }
.tl-scale { position: relative; height: 16px; margin-top: 5px; }
.tl-scale span { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--muted); }
.tl-scale span:first-child { transform: none; }
.tl-scale span:last-child { transform: translateX(-100%); }

/* Jours */
.days { display: grid; gap: 12px; margin-top: 16px; }
.day {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: 20px;
  box-shadow: var(--sh-card);
}
.day:not(.t-travail):not(.t-vide) { background: linear-gradient(100deg, color-mix(in srgb, var(--tone) 13%, var(--surface-hi)) 0%, var(--surface-hi) 70%); }
.day::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tone); }
.day.t-travail::before { background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); }
.day.t-vide::before { background: var(--edge); }
.day.is-today { box-shadow: 0 0 0 2px var(--red), 0 18px 34px -16px rgba(227,6,19,.45); }
.day.is-past { opacity: .55; }
.day-main {
  width: 100%; display: flex; align-items: stretch; gap: 14px;
  padding: 16px 16px 16px 20px; border: 0; background: none; text-align: left;
}
.day-date {
  flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px; padding: 8px 0; line-height: 1;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-cond);
}
.day-date span { font-size: 13px; font-weight: 700; color: var(--muted); }
.day-date b { font-size: 28px; font-weight: 800; margin-top: 3px; }
.day-date em { font-style: normal; font-family: var(--font); font-size: 10px; font-weight: 700; color: #fff; background: var(--red); border-radius: 6px; padding: 2px 5px; margin-top: 5px; }
.day.is-today .day-date { background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); box-shadow: 0 3px 0 var(--red-edge); }
.day.is-today .day-date span, .day.is-today .day-date b { color: #fff; }
.day.is-today .day-date em { background: var(--surface-hi); color: var(--red); }
.day-body { flex: 1; min-width: 0; display: grid; gap: 10px; align-content: center; }
.day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.day-hours { font-family: var(--font-cond); font-weight: 800; font-size: 26px; line-height: 1; }
.day-kind { font-family: var(--font-cond); font-weight: 800; font-size: 26px; line-height: 1; color: var(--tone); }
.day-dur { flex: none; font-weight: 700; font-size: 14px; color: var(--ink-2); background: var(--surface-2); padding: 4px 9px; border-radius: 8px; }
.day-sub { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.day-note { font-size: 13px; color: var(--t-formation); font-weight: 700; }

/* Équipe du jour */
.day-team { border-top: 1px solid var(--line); padding: 14px 16px 16px 20px; background: var(--surface-2); }
.day-team h3 { margin: 0 0 10px; font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 700; }
.gantt { display: grid; gap: 10px; }
.gantt-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
.gantt-name { line-height: 1.15; padding-top: 0; }
.gantt-name b { display: block; font-size: 14px; }
.gantt-name small { font-size: 11px; color: var(--muted); font-weight: 600; }
.gantt .tl-track { height: 12px; margin-top: 3px; }
.gantt-row.is-me .gantt-name b { color: var(--red); }
.gantt-row:not(.is-me) .tl-block { background: linear-gradient(180deg, #3A3D45, #1B1C20); box-shadow: none; }
.absent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.absent {
  display: inline-flex; flex-direction: column; padding: 7px 11px; border-radius: 12px; font-size: 12px; font-weight: 600;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 11%, var(--surface-hi)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 25%, var(--mix));
}
.absent b { color: var(--ink); font-size: 13px; }

/* Grille d'édition (administration) */
.pgrid-wrap { overflow-x: auto; margin: 0 -20px; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch; }
.pgrid { display: grid; gap: 6px; min-width: max-content; }
.pgrid-row { display: grid; grid-template-columns: 190px repeat(var(--cols), 144px); gap: 6px; align-items: stretch; }
.pgrid-head > div { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.pgrid-head > div.is-monday { color: var(--ink); }
.pgrid-name {
  position: sticky; left: 0; z-index: 2;
  background: var(--surface); padding: 8px 10px 8px 0;
  display: grid; gap: 6px; align-content: center;
}
.pgrid-name b { font-size: 14px; line-height: 1.2; }
.pgrid-name small { color: var(--muted); font-size: 12px; }
.pgrid-name select { font-size: 13px; min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.pgrid-name select.is-missing { border-color: var(--warn); background: var(--amber-soft); }
.pcell {
  position: relative; border: 0; text-align: left; cursor: pointer;
  min-height: 74px; padding: 8px 8px 8px 11px; border-radius: 10px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 4px; align-content: start; font-size: 12px;
}
.pcell::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tone); }
.pcell:hover { box-shadow: inset 0 0 0 2px var(--red); }
.pcell .ptag { font-size: 11px; padding: 4px 8px; justify-self: start; }
.pcell .slots { font-size: 12px; font-weight: 600; }
.pcell .tl-track { height: 6px; border-radius: 3px; }
.pcell .tl-block { border-radius: 3px; box-shadow: none; }
.pcell.t-vide { color: var(--muted); place-content: center; text-align: center; }
.pcell.t-vide::before { display: none; }
.pcell.is-monday { margin-left: 6px; }
.pgrid-head > div.is-monday { margin-left: 6px; }
.pgrid-row.is-ignored .pcell { opacity: .35; }

.slot-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.slot-row .input { min-height: 44px; }
.slot-row span { color: var(--muted); }
.icon-x { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--muted); font-size: 18px; }
.warn-list { margin: 0 0 14px; padding: 12px 14px 12px 32px; border-radius: var(--r-sm); background: var(--amber-soft); color: var(--amber-text); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.toolbar .field { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }

/* Formulaires : mentions et consentement */
.check-top { align-items: flex-start; }
.check-top input { margin-top: 2px; flex: none; }
.form-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.form-legal a { color: var(--muted); }
.form-legal.center { text-align: center; margin-top: 10px; }
.app-foot nav, .site-foot nav { flex-wrap: wrap; row-gap: 4px; }

/* Acceptation des conditions d'utilisation */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(15,16,20,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gate-card { width: min(440px, 100%); background: var(--surface-hi); border-radius: 24px; padding: 26px 22px 22px; box-shadow: var(--sh-float); }
.gate-card h2 { margin-bottom: 10px; }
.gate-card p { color: var(--ink-2); margin: 0 0 16px; }

/* Textes longs (URL, mots sans espace) : retour à la ligne au lieu de déborder */
.annonce h3, .annonce p, .item-body, .item-body p, .item-body h3, .bubble, .badge-name, .member b, .gantt-name b, .absent b {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.annonce h3 { flex-wrap: wrap; }
.card, .grid, .home-grid > *, .day-body, .item-body { min-width: 0; }

/* Petits écrans (iPhone SE, anciens Android) */
@media (max-width: 360px) {
  .badge { padding: 20px 16px 16px; }
  .badge-inner { gap: 12px; }
  .avatar { width: 52px; height: 52px; font-size: 22px; border-radius: 15px; }
  .badge-name { font-size: 22px; }
  .badge-code { font-size: 30px; }
  .hd-hours { font-size: 38px; }
  .day-hours, .day-kind { font-size: 22px; }
  .quick-tile { padding: 14px 12px; }
}

/* Horaires : Arrivée · Pause · Retour · Départ */
.steps { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 6px; }
.step {
  position: relative; display: grid; gap: 2px; align-content: start; justify-items: center; text-align: center;
  padding: 9px 4px 8px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.step.is-span { grid-column: span 2; }
.step-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.step-time { font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1.05; color: var(--ink); }
.step-sub { font-size: 11px; font-weight: 600; color: var(--muted); }
.step-arrivee, .step-depart { background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--edge); }
.step-pause, .step-retour { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); }
.step-pause .step-label, .step-retour .step-label { color: var(--amber-text); }
.step.is-span .step-time { font-size: 16px; color: var(--muted); }
.step.is-done { opacity: .5; }
.step.is-next { background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); box-shadow: 0 3px 0 var(--red-edge), 0 10px 18px -8px rgba(176,0,13,.6); }
.step.is-next .step-label, .step.is-next .step-time, .step.is-next .step-sub { color: #fff; }

.hero-day .steps { margin-top: 16px; }
.hero-day .step { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.hero-day .step-time { color: #fff; font-size: 26px; }
.hero-day .step-label, .hero-day .step-sub { color: rgba(255,255,255,.65); }
.hero-day .step-pause, .hero-day .step-retour { background: rgba(255,178,62,.14); box-shadow: inset 0 0 0 1px rgba(255,178,62,.3); }
.hero-day .step-pause .step-label, .hero-day .step-retour .step-label { color: #FFC266; }
.hero-day .step.is-next { background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); box-shadow: 0 3px 0 var(--red-edge); }
.hero-day .step.is-next .step-label, .hero-day .step.is-next .step-sub { color: rgba(255,255,255,.9); }

/* Équipe du jour : tableau */
.team-table { display: grid; gap: 4px; }
.tt-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 6px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
}
.tt-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-head { background: none; box-shadow: none; padding-top: 0; padding-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tt-row.is-me { box-shadow: inset 0 0 0 2px var(--red); }
.tt-row.is-me .tt-name b { color: var(--red); }
.tt-name { display: grid; gap: 2px; min-width: 0; }
.tt-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-time { font-family: var(--font-cond); font-weight: 800; font-size: 18px; }
.tt-pause { font-weight: 700; font-size: 13px; color: var(--amber-text); line-height: 1.3; }
.presence { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.presence::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-present { color: #0F9D58; }
.p-pause { color: #D07A00; }
.p-avant, .p-parti { color: var(--muted); }

/* Cases de l'administration */
.cell-steps { display: grid; grid-template-columns: auto 1fr; gap: 1px 6px; margin: 2px 0 0; font-size: 12px; }
.cell-steps dt { color: var(--muted); font-weight: 600; }
.cell-steps dd { margin: 0; font-weight: 700; white-space: nowrap; }
.cell-steps dd.is-pause { color: var(--amber-text); }
.cell-dur { font-size: 11px; color: var(--muted); font-weight: 600; }

@media (max-width: 360px) {
  .step-time { font-size: 19px; }
  .hero-day .step-time { font-size: 22px; }
  .step-label { font-size: 10px; }
  .tt-row { padding: 8px; gap: 4px; font-size: 13px; }
  .tt-time { font-size: 16px; }
  .tt-pause { font-size: 12px; }
  .tt-head { font-size: 9px; letter-spacing: 0; }
  .tt-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, .8fr); }
  .step { padding: 7px 2px 6px; border-radius: 10px; }
  .step-label { letter-spacing: 0; font-size: 9px; }
  .steps { gap: 4px; }
  .day-main { gap: 10px; padding: 14px 12px 14px 16px; }
  .day-date { width: 42px; }
  .day-date b { font-size: 24px; }
}

/* Choix Jour / Semaine / Mois */
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; margin-bottom: 14px; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 1px 3px rgba(24,26,33,.1);
}
.seg button {
  border: 0; background: none; min-height: 38px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--muted);
}
.seg button[aria-selected="true"], .seg button[aria-checked="true"] {
  color: #fff; background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 var(--red-edge);
}

/* Vue mois */
.days.is-month { display: block; }
.month { padding: 12px; }
.month-head, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-head span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; }
.mcell {
  position: relative; min-height: 70px; border: 0; border-radius: 10px; padding: 6px 4px 5px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px; overflow: hidden;
}
.mcell::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tone); }
.mcell.t-travail::after { background: var(--red); }
.mcell.t-vide::after { display: none; }
.mcell:not(.t-travail):not(.t-vide) { background: color-mix(in srgb, var(--tone) 12%, var(--surface-hi)); }
.mnum { font-family: var(--font-cond); font-weight: 800; font-size: 17px; line-height: 1.1; }
.mh { font-weight: 700; font-size: 11px; line-height: 1.25; }
.mtag { font-weight: 700; font-size: 10px; color: var(--tone); line-height: 1.2; overflow-wrap: anywhere; }
.mcell.is-out { opacity: .35; }
.mcell.is-past:not(.is-out) { opacity: .6; }
.mcell.is-today { box-shadow: inset 0 0 0 2px var(--red); }
.mcell.is-today .mnum { color: var(--red); }
@media (min-width: 700px) {
  .mcell { min-height: 92px; padding: 8px 6px; font-size: 12px; }
  .mnum { font-size: 20px; }
  .mh { font-size: 13px; }
  .mtag { font-size: 12px; }
}

/* Tâches */
.task-count {
  font-family: var(--font-cond); font-weight: 800; font-size: 16px;
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
}
.task-count.is-complete { background: var(--green-soft); color: var(--green-text); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.task label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; flex: 1; min-width: 0; }
.task input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.task-box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--surface-hi); box-shadow: inset 0 0 0 2px #C3C7CE;
  display: grid; place-items: center; transition: background .15s;
}
.task input:focus-visible + .task-box { outline: 3px solid rgba(227,6,19,.45); outline-offset: 2px; }
.task input:checked + .task-box { background: linear-gradient(180deg, #19B866, #0B8A4A); box-shadow: 0 2px 0 #086B39; }
.task input:checked + .task-box::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.task-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.task-text b { font-size: 15px; }
.task-text small { color: var(--muted); font-size: 13px; }
.task.is-done .task-text b { text-decoration: line-through; color: var(--muted); }
.task time { flex: none; font-size: 12px; font-weight: 700; color: var(--green-text); }
.task-off {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--tone, var(--muted)) 11%, var(--surface-hi));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--muted)) 25%, var(--mix));
}
.task-off b { font-family: var(--font-cond); font-size: 22px; color: var(--tone, var(--ink)); }
.task-off span { font-size: 14px; color: var(--muted); }

/* Messages épinglés */
.pin-bar {
  display: flex; align-items: stretch; gap: 8px; padding: 8px 10px;
  background: var(--amber-soft); border-bottom: 1px solid var(--amber-line);
}
.pin-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 2px; }
.pin-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #F2A93B, #D07A00); box-shadow: 0 2px 0 #9A5B00; transform: rotate(-12deg); }
.pin-ic svg { width: 18px; height: 18px; }
.pin-body { min-width: 0; display: grid; }
.pin-body small { font-size: 11px; font-weight: 700; color: var(--amber-text); }
.pin-body span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-all { flex: none; border: 0; border-radius: 10px; padding: 0 12px; font-size: 13px; font-weight: 700; background: var(--surface-hi); color: var(--amber-text); box-shadow: inset 0 0 0 1px var(--amber-line); }
.pin-panel { border-bottom: 1px solid var(--line); background: var(--surface-hi); max-height: 50%; overflow-y: auto; padding: 12px; }
.pin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pin-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--amber-soft); cursor: pointer; }
.pin-item + .pin-item { margin-top: 6px; }
.pin-item-body { flex: 1; min-width: 0; }
.pin-item-body small { font-size: 11px; font-weight: 700; color: var(--amber-text); }
.pin-item-body p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }

.msg-meta { display: flex; align-items: center; gap: 8px; margin: 3px 10px 0; }
.msg-meta time { margin: 0; }
.msg.me .msg-meta { flex-direction: row-reverse; }
.msg-pin {
  display: none; border: 0; background: none; padding: 0; font-size: 11px; font-weight: 700; color: var(--amber-text); cursor: pointer;
}
.msg.show-actions .msg-pin { display: inline; }
@media (hover: hover) { .msg:hover .msg-pin { display: inline; } }
.pin-flag { display: none; }
.msg.is-pinned .pin-flag { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; color: #D07A00; }
.msg.me.is-pinned .pin-flag { color: #FFE2A8; }
.pin-flag svg { width: 14px; height: 14px; }
.msg.is-pinned .bubble { box-shadow: 0 0 0 2px #F2A93B, 0 4px 10px -6px rgba(24,26,33,.2); }
.msg.is-flash .bubble { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(242,169,59,.8); } 100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); } }
.chat { position: relative; }
@media (max-width: 360px) {
  .mcell { padding: 5px 2px 4px; min-height: 62px; }
  .mtag { font-size: 9px; overflow-wrap: normal; letter-spacing: -.02em; }
  .mh { font-size: 10px; }
  .month { padding: 8px; }
  .month-head, .month-grid { gap: 3px; }
}

/* Avatars (photo ou initiales) */
img.avatar { object-fit: cover; padding: 0; background: var(--surface-2); }
.avatar-xs { width: 26px !important; height: 26px !important; border-radius: 9px !important; font-size: 11px !important; flex: none; box-shadow: none !important; }
.avatar-sm { width: 38px !important; height: 38px !important; border-radius: 12px !important; font-size: 15px !important; flex: none; }
.avatar-xl { width: 96px !important; height: 96px !important; border-radius: 28px !important; font-size: 38px !important; flex: none; }
.member img.avatar { width: 42px; height: 42px; border-radius: 12px; }
.badge img.avatar { box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(0,0,0,.5); }
.profile-photo { display: flex; align-items: center; gap: 18px; }
.profile-photo b { display: block; font-size: 18px; }
.profile-photo small { display: block; color: var(--muted); margin-bottom: 10px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-actions label { cursor: pointer; }
.tt-name { display: flex !important; align-items: center; gap: 8px; }
.tt-who { display: grid; gap: 2px; min-width: 0; }
.tt-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Chat : photos et avatars */
.msg .who { display: flex; align-items: center; gap: 6px; }
.msg-img { display: block; max-width: min(260px, 100%); max-height: 320px; width: auto; border-radius: 12px; cursor: zoom-in; margin: -4px -8px 0; }
.msg.has-img .bubble { padding: 8px; }
.msg-text { display: block; padding: 6px 4px 0; }
.photo-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--edge);
}
.photo-btn svg { width: 22px; height: 22px; }

/* Album */
.album-head .card-head { margin-bottom: 12px; }
.album-add { cursor: pointer; }
.album-add svg { width: 18px; height: 18px; }
.album-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.album-filters .field { margin: 0; }
.album-filters .input { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.album-grid { columns: 2; column-gap: 10px; margin-top: 14px; }
.album-item {
  display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; break-inside: avoid;
  position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  background: var(--surface); box-shadow: var(--sh-card);
}
.album-item img { display: block; width: 100%; height: auto; transition: transform .3s; }
.album-item:hover img { transform: scale(1.03); }
.album-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
  padding: 22px 10px 8px; color: #fff; font-size: 13px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}
.album-meta b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-com { font-weight: 700; font-size: 12px; }
.album-empty { column-span: all; }
@media (min-width: 700px) { .album-grid { columns: 3; column-gap: 14px; } .album-item { margin-bottom: 14px; } }
@media (min-width: 1100px) { .album-grid { columns: 4; } }
.upload-card { max-height: 92dvh; overflow-y: auto; }
.upload-preview { display: block; width: 100%; max-height: 42vh; object-fit: contain; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }

/* Visionneuse */
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(10,10,12,.96); color: #fff;
  padding: var(--safe-t) 0 var(--safe-b);
}
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.lb-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-author span { display: grid; }
.lb-author small { color: rgba(255,255,255,.6); font-size: 12px; }
.lb-close { width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; line-height: 1; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; overflow: hidden; padding: 0 8px 10px; }
.lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-panel { background: var(--surface-hi); color: var(--ink); border-radius: 22px 22px 0 0; padding: 14px 16px 12px; max-height: 42dvh; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.lightbox.is-simple .lb-panel { display: none; }
.lb-legend { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lb-actions { display: flex; justify-content: flex-end; gap: 8px; }
.lb-actions .btn { min-height: 32px; }
.lb-comments { overflow-y: auto; min-height: 0; display: grid; gap: 10px; align-content: start; }
.lb-com { display: flex; gap: 8px; align-items: flex-start; }
.lb-com-body { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.lb-com-body small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.lb-com-body button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.lb-form { display: flex; gap: 8px; }
.lb-form .input { min-height: 42px; border-radius: 999px; padding: 8px 14px; }
@media (min-width: 900px) {
  .lightbox { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); }
  .lb-top { grid-column: 1 / -1; }
  .lb-panel { grid-row: 2; grid-column: 2; max-height: none; border-radius: 22px 0 0 0; }
  .lightbox.is-simple { grid-template-columns: 1fr; }
}

/* Bandeau en direct */
.live-strip {
  position: sticky; top: calc(var(--safe-t) + 8px); z-index: 15;
  display: flex; gap: 8px; margin-bottom: 14px; padding: 8px;
  border-radius: 18px; background: rgba(27,28,32,.94); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.55);
}
.live-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; text-align: left; padding: 4px 6px; }
.live-text { display: grid; min-width: 0; }
.live-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-text small { font-size: 12px; opacity: .7; }
.live-strip.is-pause .live-dot { background: #FFB23E; box-shadow: 0 0 0 4px rgba(255,178,62,.25); }
.live-strip.is-before .live-dot { background: #8AB4FF; box-shadow: 0 0 0 4px rgba(138,180,255,.25); }
.live-strip.is-ended .live-dot { background: #9EA2AB; box-shadow: none; animation: none; }
.live-tasks { flex: none; border: 0; border-radius: 12px; padding: 0 12px; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); box-shadow: 0 2px 0 var(--red-edge); }
.live-tasks.is-done { background: linear-gradient(180deg, #19B866, #0B8A4A); box-shadow: 0 2px 0 #086B39; }

/* Notifications */
.notif-card { display: flex; align-items: center; gap: 14px; justify-content: space-between; background: linear-gradient(135deg, var(--surface-hi), var(--red-soft)); box-shadow: inset 0 0 0 1px var(--red-line), var(--sh-card); }
.notif-card b { display: block; }
.notif-card span { font-size: 13px; color: var(--muted); }
.notif-on { display: flex; align-items: center; gap: 10px; }
.notif-on b { flex: 1; }

@media (max-width: 360px) {
  .tab { font-size: 11px; }
  .tab svg { width: 22px; height: 22px; }
  .album-filters { grid-template-columns: 1fr; }
  .profile-photo { gap: 12px; }
  .avatar-xl { width: 76px !important; height: 76px !important; }
}
/* Tablettes paysage / petits écrans d'ordinateur : le titre passe sous la navigation */
@media (min-width: 900px) and (max-width: 1260px) {
  .hero { padding-top: 96px; }
}

/* Bob, la mascotte ---------------------------------------------------------- */
.bob { display: inline-block; flex: none; line-height: 0; }
.bob-sm { width: 54px; }
.bob-md { width: 92px; }
.bob-lg { width: 140px; }
.bob-svg { width: 100%; height: auto; overflow: visible; }
.bob-shadow { fill: rgba(0,0,0,.14); }
.bob-body, .bob-eyes, .bob-arm, .bob-pencil, .bob-flap { transform-box: fill-box; }
.bob-eyes { transform-origin: center; animation: bob-blink 4.5s infinite; }
.bob-arm-left { transform-origin: 90% 10%; }
.bob-arm-right { transform-origin: 10% 10%; }
.bob-flap-l { transform-origin: 100% 100%; }
.bob-flap-r { transform-origin: 0% 100%; }
.bob-mouth, .bob-pad, .bob-confetti { display: none; }
.bob[data-state="idle"] .bob-mouth-idle,
.bob[data-state="wave"] .bob-mouth-happy,
.bob[data-state="writing"] .bob-mouth-o,
.bob[data-state="happy"] .bob-mouth-happy,
.bob[data-state="party"] .bob-mouth-happy,
.bob[data-state="sad"] .bob-mouth-sad { display: inline; }

.bob[data-state="idle"] .bob-body { animation: bob-breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }

.bob[data-state="wave"] .bob-arm-right { animation: bob-wave 1.1s ease-in-out infinite; }
.bob[data-state="wave"] .bob-body { animation: bob-breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }

.bob[data-state="writing"] .bob-pad { display: inline; }
.bob[data-state="writing"] .bob-scribble { stroke-dasharray: 90; animation: bob-scribble 1.2s linear infinite; }
.bob[data-state="writing"] .bob-arm-right { animation: bob-write .28s ease-in-out infinite alternate; }
.bob[data-state="writing"] .bob-arm-left { animation: bob-hold 1.2s ease-in-out infinite alternate; }
.bob[data-state="writing"] .bob-pupil { transform: translate(4px, 5px); }
.bob[data-state="writing"] .bob-brows { transform: translateY(2px); }

.bob[data-state="happy"] .bob-body, .bob[data-state="party"] .bob-body { animation: bob-jump .7s ease-in-out infinite; transform-origin: 50% 100%; }
.bob[data-state="happy"] .bob-arm-left, .bob[data-state="party"] .bob-arm-left { transform: rotate(60deg); }
.bob[data-state="happy"] .bob-arm-right, .bob[data-state="party"] .bob-arm-right { transform: rotate(-60deg); }
.bob[data-state="happy"] .bob-flap-l, .bob[data-state="party"] .bob-flap-l { animation: bob-flap-l .7s ease-in-out infinite; }
.bob[data-state="happy"] .bob-flap-r, .bob[data-state="party"] .bob-flap-r { animation: bob-flap-r .7s ease-in-out infinite; }
.bob[data-state="party"] .bob-confetti { display: inline; animation: bob-confetti 1.4s ease-in-out infinite; }

.bob[data-state="sad"] .bob-body { transform: translateY(3px) rotate(-3deg); transform-origin: 50% 100%; }
.bob[data-state="sad"] .bob-brow-l { transform: rotate(14deg) translate(0, 2px); transform-box: fill-box; transform-origin: center; }
.bob[data-state="sad"] .bob-brow-r { transform: rotate(-14deg) translate(0, 2px); transform-box: fill-box; transform-origin: center; }
.bob[data-state="sad"] .bob-arm-left { transform: rotate(-25deg); }
.bob[data-state="sad"] .bob-arm-right { transform: rotate(25deg); }
.bob[data-state="sad"] .bob-pupil { transform: translateY(3px); }

@keyframes bob-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes bob-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes bob-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-38deg); } }
@keyframes bob-write { from { transform: rotate(-6deg) translate(-2px, 0); } to { transform: rotate(8deg) translate(2px, 2px); } }
@keyframes bob-hold { from { transform: rotate(-4deg); } to { transform: rotate(3deg); } }
@keyframes bob-scribble { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
@keyframes bob-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px) scaleY(1.03); } }
@keyframes bob-flap-l { 50% { transform: rotate(-14deg); } }
@keyframes bob-flap-r { 50% { transform: rotate(14deg); } }
@keyframes bob-confetti { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .bob * { animation: none !important; } }

.bob-say { display: flex; align-items: flex-end; gap: 12px; }
.bob-say-left { flex-direction: row-reverse; }
.bob-bubble {
  position: relative; flex: 1; min-width: 0;
  padding: 12px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -8px rgba(24,26,33,.3);
  font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.bob-bubble b { color: var(--ink); }
.bob-say-left .bob-bubble { border-radius: 16px 16px 4px 16px; }
.empty-bob { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 10px; color: var(--muted); }
.login-bob { display: flex; justify-content: center; margin: -8px 0 10px; }

/* En-tête : accès au profil */
.hero-actions { display: flex; align-items: center; gap: 10px; }
.hero-avatar { padding: 0; border: 0; background: none; border-radius: 13px; line-height: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 6px 14px -6px rgba(0,0,0,.5); }
.hero-avatar .avatar { width: 44px !important; height: 44px !important; border-radius: 13px !important; font-size: 17px !important; }

/* Bob sur l'accueil */
.bob-tip { padding: 14px 16px; }
.bob-tip .bob-bubble { background: var(--surface-2); box-shadow: none; }
.tasks-done { margin-bottom: 10px; }
.tasks-done .bob-bubble { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); }

/* Album sur l'accueil */
.home-album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.home-album-grid.is-empty { display: block; }
.home-photo { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); cursor: zoom-in; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.home-photo:hover img { transform: scale(1.06); }

/* Banque de fichiers */
.bob-search { background: linear-gradient(160deg, var(--surface-hi) 0%, var(--amber-soft) 100%); box-shadow: inset 0 0 0 1px var(--amber-line), var(--sh-card); }
.bob-search-top { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.bob-search-text { flex: 1; min-width: 0; }
.bob-search-text h2 { font-size: 24px; }
.bob-search-text p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 56px; border-radius: 18px;
  background: var(--surface-hi); box-shadow: inset 0 0 0 2px var(--amber-line), 0 8px 18px -12px rgba(185,122,62,.6);
}
.search-box:focus-within { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px rgba(227,6,19,.12); }
.search-box svg { width: 22px; height: 22px; color: #B97A3E; flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; min-height: 52px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.folder {
  display: grid; gap: 2px; justify-items: start; text-align: left; padding: 14px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--edge);
}
.folder svg { width: 34px; height: 34px; fill: #E9B878; stroke: #B97A3E; stroke-width: 1.4; margin-bottom: 4px; }
.folder b { font-size: 15px; overflow-wrap: anywhere; }
.folder small { color: var(--muted); font-size: 12px; }
.folder.is-open { background: var(--amber-soft); box-shadow: inset 0 0 0 2px #E9B878; }
.files { display: grid; gap: 10px; }
.file { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.file-ic {
  flex: none; width: 48px; height: 58px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-cond); font-weight: 800; font-size: 15px; color: #fff; background: #6B7079;
  box-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.ext-pdf { background: #E30613; } .ext-doc, .ext-docx { background: #2B5FD9; } .ext-xls, .ext-xlsx, .ext-csv { background: #1E8E4A; }
.ext-ppt, .ext-pptx { background: #D2521E; } .ext-mp4 { background: #6A4FD6; } .ext-txt { background: #3A3D45; }
.file-thumb { flex: none; width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--surface-hi); }
.file-body { flex: 1; min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.file-body b { font-size: 15px; }
.file-body small { color: var(--muted); font-size: 12px; }
.file-desc { font-size: 13px; color: var(--ink-2); }
.file-snippet { font-size: 13px; color: var(--ink-2); background: var(--surface-hi); border-radius: 8px; padding: 6px 8px; box-shadow: inset 0 0 0 1px var(--line); }
.file-snippet mark { background: #FFE08A; color: inherit; border-radius: 3px; padding: 0 2px; }
.file-pages { font-size: 12px; font-weight: 700; color: #B97A3E; }
.file-actions { flex: none; display: grid; gap: 6px; }
.file-actions .btn { min-height: 36px; }
@media (max-width: 520px) {
  .file { flex-wrap: wrap; }
  .file-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .bob-search-top .bob-md { width: 76px; }
}
html[data-theme="dark"] div.avatar, html[data-theme="dark"] span.v-avatar { background: linear-gradient(160deg, #3A3F48, #262A31); color: #FF4B55; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px -4px rgba(0,0,0,.6); }

/* Comportement « application » : pas de sélection accidentelle ni de surbrillance au toucher */
@media (hover: none) {
  .tab, .btn, .quick-tile, .day-main, .mcell, .album-item, .home-photo, .folder, .file, .seg button, .nav-arrow { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

/* Visionneuse de fichiers */
.viewer {
  position: fixed; inset: 0; z-index: 75; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg); padding: var(--safe-t) 0 var(--safe-b);
}
.viewer-top {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 10px 20px -16px rgba(0,0,0,.4);
}
.viewer-top .lb-close { background: var(--surface-2); color: var(--ink); flex: none; }
.viewer-title { flex: 1; min-width: 0; display: grid; }
.viewer-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title small { color: var(--muted); font-size: 12px; }
.viewer-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.vw-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 22px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.vw-btn[hidden] { display: none; }
.viewer-body { position: relative; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px; display: grid; justify-items: center; align-content: start; gap: 12px; }
.viewer-body > img, .viewer-body > video { max-width: 100%; max-height: calc(100dvh - 110px); border-radius: 12px; box-shadow: var(--sh-card); background: #000; }
.vw-page { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--sh-card); flex: none; }
.vw-num { position: absolute; top: 6px; left: 6px; z-index: 1; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.vw-text { width: 100%; max-width: 900px; margin: 0; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-card); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.vw-loading { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; color: var(--muted); text-align: center; }
@media (max-width: 420px) { .viewer-tools .btn { padding: 0 10px; } }

/* Les échecs de Bob ----------------------------------------------------------- */
.chess-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  background: linear-gradient(145deg, var(--surface) 0%, var(--amber-soft) 100%);
  box-shadow: inset 0 0 0 1px var(--amber-line), var(--sh-card);
}
.chess-hero-bob { position: relative; width: 104px; height: 92px; }
.chess-hero-bob svg { position: absolute; width: 70px; height: 70px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.chess-hero-bob svg:first-child { left: 0; top: 0; animation: hero-bob 3s ease-in-out infinite; }
.chess-hero-bob svg:last-child { right: 0; bottom: 0; animation: hero-bob 3s ease-in-out -1.5s infinite; }
@keyframes hero-bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.chess-hero-text h2 { font-size: 26px; }
.chess-hero-text p { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; }
.chess-me { display: flex; gap: 8px; flex-wrap: wrap; }
.chess-me span { display: grid; min-width: 64px; padding: 6px 10px; border-radius: 12px; background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.chess-me b { font-family: var(--font-cond); font-size: 20px; line-height: 1.1; }
.chess-me sup { font-size: 11px; }
.chess-me small { font-size: 11px; color: var(--muted); font-weight: 600; }
.chess-cta { grid-column: 1 / -1; margin-top: 8px; }

.chess-invites { box-shadow: inset 0 0 0 2px var(--red-line), var(--sh-card); }
.invite { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.invite:first-of-type { border-top: 0; }
.invite-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.invite-body small { color: var(--muted); font-size: 12px; }
.invite-timer { font-size: 12px; font-weight: 700; color: var(--red); }
.invite-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.cg-list { display: grid; gap: 8px; }
.cg-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; text-align: left; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.cg-card.is-turn { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-soft); }
.cg-info { flex: 1; min-width: 0; display: grid; }
.cg-info small { color: var(--muted); font-size: 12px; }
.cg-status { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.cg-card.is-turn .cg-status { color: var(--red); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 6px 0 16px; }
.podium-step { display: grid; justify-items: center; gap: 3px; text-align: center; }
.podium-step b { font-size: 14px; }
.podium-step small { font-size: 12px; color: var(--muted); font-weight: 700; }
.podium-medal { font-size: 22px; line-height: 1; }
.podium-block {
  width: 100%; display: grid; place-items: center; margin-top: 6px; border-radius: 12px 12px 4px 4px;
  font-family: var(--font-cond); font-weight: 800; font-size: 26px; color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); box-shadow: 0 4px 0 var(--red-edge);
}
.step-1 .podium-block { height: 74px; background: linear-gradient(180deg, #F7CD4B, #D39B12); box-shadow: 0 4px 0 #9C7208; }
.step-2 .podium-block { height: 54px; background: linear-gradient(180deg, #D3D7DE, #9EA4AE); box-shadow: 0 4px 0 #737A85; }
.step-3 .podium-block { height: 40px; background: linear-gradient(180deg, #E5A36C, #B86C33); box-shadow: 0 4px 0 #8A4E22; }
.rank-list { display: grid; gap: 4px; }
.rank-row { display: grid; grid-template-columns: 28px 26px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.rank-row:nth-child(odd) { background: var(--surface-2); }
.rank-row.is-me { box-shadow: inset 0 0 0 2px var(--red); }
.rank-pos { grid-row: span 2; font-family: var(--font-cond); font-weight: 800; font-size: 18px; color: var(--muted); text-align: center; }
.rank-row .avatar { grid-row: span 2; }
.rank-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row small { grid-column: 3; font-size: 11px; color: var(--muted); }
.rank-elo { grid-row: 1 / span 2; grid-column: 4; font-family: var(--font-cond); font-weight: 800; font-size: 20px; }

.history { display: grid; gap: 6px; }
.hist-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: var(--surface-2); text-align: left; cursor: pointer; }
.hist-tag { flex: none; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; color: #fff; }
.hist-tag.is-win { background: #17A659; } .hist-tag.is-loss { background: var(--red); } .hist-tag.is-draw { background: #7B8390; } .hist-tag.is-void { background: var(--neutral-soft); color: var(--muted); }
.hist-body { flex: 1; min-width: 0; display: grid; }
.hist-body small { font-size: 12px; color: var(--muted); }
.hist-delta { font-family: var(--font-cond); font-weight: 800; font-size: 18px; }
.hist-delta.up, .end-delta.up { color: #17A659; } .hist-delta.down, .end-delta.down { color: var(--red); }

.challenge-card { max-height: 92dvh; overflow-y: auto; }
.opp-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; padding: 2px; }
.opp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.opp input { accent-color: var(--red); width: 18px; height: 18px; }
.opp span { display: grid; }
.opp small { font-size: 12px; color: var(--muted); }
.opp:has(input:checked) { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-soft); }
.seg-wrap { grid-template-columns: repeat(5, 1fr); }

/* Bandeau de défi */
.chess-banner {
  position: fixed; left: 12px; right: 12px; top: calc(var(--safe-t) + 10px); z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; max-width: 560px; margin: 0 auto;
  border-radius: 18px; background: var(--solid-dark); color: #fff;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.6); animation: banner-in .4s cubic-bezier(.2,1.4,.4,1);
}
@keyframes banner-in { from { transform: translateY(-120%); } }
.cb-piece { width: 42px; height: 42px; flex: none; animation: hero-bob 1.6s ease-in-out infinite; }
.cb-piece svg { width: 100%; height: 100%; }
.cb-text { flex: 1; min-width: 0; display: grid; }
.cb-text b { font-size: 14px; }
.cb-text small { font-size: 12px; opacity: .75; }
.cb-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; }

/* Partie */
.chess-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.game-switch { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.gs-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-card); font-weight: 700; font-size: 13px; color: var(--ink); }
.gs-chip.is-turn { box-shadow: inset 0 0 0 2px var(--red), var(--sh-card); }
.gs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.chess-layout { display: grid; gap: 14px; }
.chess-main { display: grid; gap: 8px; }

.pbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-card); }
.pbar.is-turn { box-shadow: inset 0 0 0 2px var(--red), var(--sh-card); }
.pbar-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pbar-info b { font-size: 15px; }
.pbar-info b small { color: var(--muted); font-weight: 700; font-size: 12px; margin-left: 4px; }
.pbar-caps { display: flex; align-items: center; flex-wrap: wrap; min-height: 18px; }
.pbar-caps i { width: 18px; height: 18px; margin-right: -5px; }
.pbar-caps i svg { width: 100%; height: 100%; }
.pbar-caps em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 10px; }
.clock {
  flex: none; min-width: 84px; text-align: center; padding: 6px 10px; border-radius: 12px;
  font-family: var(--font-cond); font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
}
.clock.is-running { background: var(--solid-dark); color: #fff; box-shadow: 0 3px 0 #000; }
.clock.is-low.is-running { background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); animation: clock-pulse 1s ease-in-out infinite; }
@keyframes clock-pulse { 50% { transform: scale(1.05); } }

.board-frame {
  position: relative; padding: 10px; border-radius: 22px;
  background: linear-gradient(160deg, #8E5A2F, #5E3A1D); box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.3), 0 20px 40px -18px rgba(0,0,0,.7);
}
.board {
  position: relative; display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1;
  border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.sq { position: relative; }
.sq-l { background: #F3EBDD; }
.sq-d { background: #C9565C; }
.sq.is-last::after { content: ''; position: absolute; inset: 0; background: rgba(255, 214, 64, .45); }
.sq.is-sel::after { content: ''; position: absolute; inset: 0; background: rgba(43, 107, 255, .35); }
.sq.is-check { background: radial-gradient(circle, #FF3B3B 0%, #E30613 40%, transparent 75%), var(--sqbg, #C9565C); }
.sq-l.is-check { --sqbg: #F3EBDD; }
.sq.is-move::before { content: ''; position: absolute; z-index: 3; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(27,28,32,.35); pointer-events: none; }
.sq.is-capture::before { content: ''; position: absolute; z-index: 3; inset: 6%; border-radius: 50%; border: 5px solid rgba(27,28,32,.35); pointer-events: none; }
.coord { position: absolute; font-size: 10px; font-weight: 800; opacity: .75; pointer-events: none; }
.coord-r { left: 3px; top: 2px; }
.coord-f { right: 4px; bottom: 1px; }
.sq-l .coord { color: #C9565C; } .sq-d .coord { color: #F3EBDD; }
.pieces { position: absolute; inset: 0; pointer-events: none; }
.pc { position: absolute; width: 12.5%; height: 12.5%; display: grid; place-items: center; transition: transform .28s cubic-bezier(.3,.9,.3,1), left .22s ease, top .22s ease; z-index: 2; }
.pc svg { width: 94%; height: 94%; filter: drop-shadow(0 3px 2px rgba(0,0,0,.28)); pointer-events: none; }
.pc.is-mine { pointer-events: auto; cursor: grab; }
.pc.is-moving, .pc.is-drag { z-index: 5; }
.pc.is-drag { transition: none; cursor: grabbing; }
.pc.is-drag svg { filter: drop-shadow(0 12px 10px rgba(0,0,0,.35)); }
.poof { position: absolute; width: 12.5%; height: 12.5%; z-index: 6; pointer-events: none; }
.poof i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #E9B878; animation: poof .6s ease-out forwards; }
.poof i:nth-child(1) { --dx: -26px; --dy: -22px; } .poof i:nth-child(2) { --dx: 24px; --dy: -24px; background: var(--red); }
.poof i:nth-child(3) { --dx: 28px; --dy: 16px; } .poof i:nth-child(4) { --dx: -24px; --dy: 22px; background: #FFC53D; }
.poof i:nth-child(5) { --dx: 0; --dy: -32px; background: #fff; } .poof i:nth-child(6) { --dx: 0; --dy: 30px; }
@keyframes poof { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; } }

.board-overlay { position: absolute; inset: 10px; z-index: 10; display: grid; place-items: center; border-radius: 10px; background: rgba(15,16,20,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.board-overlay.is-count { background: rgba(15,16,20,.25); backdrop-filter: none; -webkit-backdrop-filter: none; }
.end-card, .promo-card { display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 86%; padding: 18px 20px; border-radius: 22px; background: var(--surface-hi); color: var(--ink); box-shadow: var(--sh-float); }
.end-card h3 { font-size: 28px; }
.end-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.end-delta { font-family: var(--font-cond); font-weight: 800; font-size: 24px; }
.is-win .end-card { box-shadow: 0 0 0 3px #17A659, var(--sh-float); }
.is-loss .end-card { box-shadow: 0 0 0 3px var(--red), var(--sh-float); }
.ready-row { display: flex; gap: 8px; margin: 4px 0; }
.ready-row span { padding: 5px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.ready-row span.ok { background: #17A659; color: #fff; }
.count { font-family: var(--font-cond); font-weight: 800; font-size: 120px; color: #fff; text-shadow: 0 6px 0 var(--red-deep), 0 20px 40px rgba(0,0,0,.5); }
.count.pop { animation: count-pop .9s ease-out; }
@keyframes count-pop { from { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { transform: scale(.9); opacity: .9; } }
.promo-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0; }
.promo-list button { width: 64px; height: 64px; padding: 4px; border: 0; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.promo-list button:hover { box-shadow: inset 0 0 0 2px var(--red); }
.promo-list svg { width: 100%; height: 100%; }

.chess-side { display: grid; gap: 12px; align-content: start; }
.chess-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.chess-actions .btn { padding: 0 8px; }
.chess-actions .danger { color: var(--red); }
.draw-offer { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); font-size: 14px; flex-wrap: wrap; }
.draw-offer span { flex: 1; min-width: 120px; }
.moves-card { padding: 14px 16px; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 2px 10px; max-height: 180px; overflow-y: auto; font-size: 14px; }
.moves li { display: grid; grid-template-columns: 26px 1fr 1fr; gap: 4px; }
.moves li span { color: var(--muted); }

@media (min-width: 980px) {
  .chess-layout { grid-template-columns: minmax(0, 620px) minmax(260px, 1fr); align-items: start; }
  .moves { max-height: 420px; }
}
@media (max-width: 380px) {
  .clock { min-width: 70px; font-size: 22px; }
  .chess-actions .btn { font-size: 13px; }
  .board-frame { padding: 6px; border-radius: 16px; }
  .board-overlay { inset: 6px; }
  .count { font-size: 90px; }
  .promo-list button { width: 54px; height: 54px; }
}
html[data-theme="dark"] .board-frame { background: linear-gradient(160deg, #5A3A1F, #2E1D0F); }

@media (max-width: 420px) {
  .tabbar { left: 8px; right: 8px; padding: 5px; }
  .tab { font-size: 10.5px; gap: 2px; }
  .tab svg { width: 22px; height: 22px; }
}
@media (max-width: 340px) { .tab { font-size: 9.5px; letter-spacing: -.01em; } }

@media (min-width: 900px) {
  .chess-banner { top: auto; bottom: 24px; left: auto; right: 24px; margin: 0; width: 420px; }
}

/* Bob tient une pancarte */
.bob[data-state="hold"] .bob-mouth-happy { display: inline; }
.bob[data-state="hold"] .bob-body { animation: bob-breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.bob[data-state="hold"] .bob-arm-left { transform: rotate(72deg); }
.bob[data-state="hold"] .bob-arm-right { transform: rotate(-72deg); }
.bob[data-state="hold"] .bob-pencil { display: none; }
.bob[data-state="hold"] .bob-pupil { transform: translateY(-3px); }

/* Bandeau d'événement */
.event-bar { position: relative; z-index: 16; margin-bottom: 10px; }
.eb-main {
  position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
  color: #fff; background: linear-gradient(100deg, #FF6A00 0%, #E30613 55%, #A5000C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 var(--red-edge), 0 12px 24px -12px rgba(227,6,19,.7);
  overflow: hidden;
}
.eb-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); animation: eb-shine 4s ease-in-out infinite; pointer-events: none; border-radius: 14px; }
@keyframes eb-shine { 60%, 100% { transform: translateX(100%); } }
.event-bar.is-normal .eb-main { background: linear-gradient(100deg, #2B2E35, #1B1C20); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 20px -12px rgba(0,0,0,.6); }
.event-bar.is-soon .eb-main { background: linear-gradient(100deg, var(--amber-soft), var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--amber-line), var(--sh-card); }
.event-bar.is-soon .eb-main::after { display: none; }
.eb-main.is-slide .eb-text { animation: eb-slide .45s ease; }
@keyframes eb-slide { from { opacity: 0; transform: translateY(8px); } }
.eb-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.2); }
.event-bar.is-soon .eb-ic { background: #F2A93B; color: #fff; }
.eb-ic .warn-ic { width: 18px; height: 18px; color: #FFD23F; }
.event-bar.is-now.is-important .eb-ic { animation: eb-pulse 1.6s ease-in-out infinite; }
.event-bar.is-soon .eb-ic .warn-ic { color: #fff; }
@keyframes eb-pulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,210,63,.25); } }
.eb-text { flex: 1; min-width: 0; display: grid; }
.eb-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-text small { font-size: 12px; opacity: .85; }
.eb-count { flex: none; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 8px; background: rgba(255,255,255,.2); }
.event-bar.is-soon .eb-count { background: var(--amber-line); }
.event-card .event-card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: 6px; }
.event-card .eb-ic { background: linear-gradient(180deg, #FF6A00, #E30613); }
.event-card .event-dates { color: var(--muted); font-weight: 600; }
.event-card .bob-say { margin: 14px 0 4px; }

/* Étiquettes réunion / événement dans le planning */
.xtags { display: flex; flex-wrap: wrap; gap: 6px; }
.xtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.xtag .warn-ic { width: 12px; height: 12px; }
.xtag.is-reunion { background: #2B4BFF; color: #fff; box-shadow: 0 2px 0 #1A2FA8; }
.xtag.is-event { background: var(--amber-soft); color: var(--amber-text); box-shadow: inset 0 0 0 1px var(--amber-line); }
.xtag.is-event .warn-ic { color: #F2A93B; }
.xtag.is-event.is-important { background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.xtag.is-event.is-important .warn-ic { color: var(--red); }
.hd-reunion { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: #2B4BFF; color: #fff; }
.mcell.has-event::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #F2A93B; }
.mcell.has-event.is-important::before { background: linear-gradient(90deg, #FF6A00, #E30613); }
.mreu { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 3px; border-radius: 4px; background: #2B4BFF; color: #fff; font-style: normal; font-size: 9px; font-family: var(--font); vertical-align: 3px; }

/* Challenges */
.home-challenges { background: linear-gradient(165deg, var(--surface) 0%, var(--surface) 55%, var(--red-soft) 100%); }
.ch { position: relative; padding: 14px; border-radius: 18px; background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -12px rgba(0,0,0,.4); }
.ch + .ch { margin-top: 12px; }
.ch.is-done { box-shadow: inset 0 0 0 2px #F5C242, 0 10px 24px -10px rgba(245,194,66,.6); }
.ch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ch-type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 8px; color: #fff; background: var(--red); }
.t-individuel .ch-type { background: #2B4BFF; }
.t-paliers .ch-type { background: #6A4FD6; }
.ch-days { font-size: 12px; font-weight: 700; color: var(--muted); }
.ch-main { display: flex; gap: 10px; align-items: flex-end; margin: 6px 0 10px; }
.ch-body { flex: 1; min-width: 0; }
.ch-body h3 { font-size: 21px; }
.ch-desc { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.ch-bob { flex: none; display: grid; justify-items: center; gap: 2px; width: 74px; text-align: center; }
.ch-cheer { font-size: 10px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.ch-bar { position: relative; height: 18px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 2px 4px rgba(0,0,0,.12); }
.ch-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--red-hi), var(--red));
  background-size: 22px 22px, 100% 100%; box-shadow: 0 2px 8px -2px rgba(227,6,19,.6);
  transition: width 1.2s cubic-bezier(.2,.9,.2,1); animation: ch-stripes 1s linear infinite;
}
.ch-fill.is-in { width: var(--w); }
@keyframes ch-stripes { to { background-position: 22px 0, 0 0; } }
.t-individuel .ch-fill { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px), linear-gradient(90deg, #5B7BFF, #2B4BFF); box-shadow: 0 2px 8px -2px rgba(43,75,255,.6); }
.t-paliers .ch-fill { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px), linear-gradient(90deg, #8E73F0, #6A4FD6); box-shadow: 0 2px 8px -2px rgba(106,79,214,.6); }
.ch.is-done .ch-fill { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px), linear-gradient(90deg, #F7CD4B, #E0A40E); }
.ch-mark { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); opacity: .5; }
.ch-mark::after { content: ''; position: absolute; top: -7px; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-hi); box-shadow: inset 0 0 0 2px var(--ink-2); }
.ch-mark.is-on { background: #F5C242; opacity: 1; }
.ch-mark.is-on::after { background: #F5C242; box-shadow: 0 0 0 2px #fff, 0 0 10px #F5C242; }
.ch-nums { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.ch-nums b { font-family: var(--font-cond); font-size: 22px; color: var(--ink); }
.ch-nums em { font-style: normal; font-family: var(--font-cond); font-weight: 800; font-size: 20px; color: var(--red); }
.t-individuel .ch-nums em { color: #2B4BFF; } .t-paliers .ch-nums em { color: #6A4FD6; }
.ch-rank { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ch-place { font-size: 14px; }
.ch-place b { font-family: var(--font-cond); font-size: 20px; color: #2B4BFF; }
.ch-top { display: flex; gap: 6px; }
.ch-top-item { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 999px; background: var(--surface-2); font-size: 12px; }
.ch-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ch-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 10px; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.ch-step b { font-family: var(--font-cond); font-size: 15px; color: var(--ink-2); }
.ch-step.is-on { background: #FFF4D1; color: #8A6400; box-shadow: inset 0 0 0 1px #F5C242; }
html[data-theme="dark"] .ch-step.is-on { background: #3A3016; color: #F5C242; }
.ch-next { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.ch-reward { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); }
.ch-reached { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--green-text); }

/* Primes */
.icon-ghost { width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.icon-ghost svg { width: 20px; height: 20px; }
.icon-ghost.is-off { color: var(--red); }
.icon-ghost.is-off svg path { opacity: .35; }
.prime-stage { position: relative; display: grid; justify-items: center; padding: 6px 0 0; }
.prime-sign {
  position: relative; z-index: 2; display: grid; justify-items: center; gap: 2px; min-width: 220px; padding: 14px 22px 16px;
  border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, #F3D9A8, #E3BA78); color: #5A3A1C;
  border: 3px solid #B97A3E;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.08), 0 10px 20px -10px rgba(90,58,28,.6);
  transform: rotate(-2deg); animation: sign-sway 4s ease-in-out infinite;
}
@keyframes sign-sway { 50% { transform: rotate(1.5deg) translateY(-2px); } }
.prime-sign::before, .prime-sign::after { content: ''; position: absolute; bottom: -68px; width: 7px; height: 68px; border-radius: 3px; background: linear-gradient(90deg, #8A5A2B, #B97A3E); z-index: -1; }
.prime-sign::before { left: calc(50% - 50px); }
.prime-sign::after { right: calc(50% - 50px); }
.prime-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.prime-amount { font-family: var(--font-cond); font-weight: 800; font-size: 44px; line-height: 1.05; color: #E30613; text-shadow: 0 2px 0 rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.prime-note { font-size: 12px; font-weight: 600; opacity: .8; }
.prime-stage.is-hidden .prime-amount { filter: blur(0); letter-spacing: .1em; color: #B97A3E; }
.prime-bob { margin-top: 2px; position: relative; z-index: 3; }
.prime-bob .bob-md { width: 104px; }
.prime-months { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.prime-months button { flex: none; display: grid; gap: 1px; padding: 7px 12px; border: 0; border-radius: 12px; font-weight: 700; font-size: 13px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.prime-months button small { font-size: 11px; color: var(--muted); font-weight: 700; }
.prime-months button[aria-selected="true"] { background: linear-gradient(180deg, #F3D9A8, #E3BA78); color: #5A3A1C; box-shadow: inset 0 0 0 2px #B97A3E; }
.prime-months button[aria-selected="true"] small { color: #8A5A2B; }
@media (max-width: 360px) { .prime-amount { font-size: 36px; } .prime-sign { min-width: 190px; } .ch-bob { width: 60px; } .ch-body h3 { font-size: 19px; } }

/* Bob brandit un panneau d'alerte (événements) */
.bob-warnsign { display: none; transform-box: fill-box; transform-origin: 50% 100%; }
.bob[data-state="warn"] .bob-warnsign { display: inline; animation: bob-sign-wave 1.8s ease-in-out infinite; }
.bob[data-state="warn"] .bob-pencil { display: none; }
.bob[data-state="warn"] .bob-mouth-o { display: inline; }
.bob[data-state="warn"] .bob-body { animation: bob-breathe 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.bob[data-state="warn"] .bob-brows { transform: translateY(-2px); }
@keyframes bob-sign-wave { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
.bob-xs { width: 40px; }

/* Bandeau d'événement : Bob au panneau */
.eb-bob { flex: none; width: 40px; height: 38px; margin: -6px 0 -4px -4px; display: grid; place-items: end center; }
.eb-bob .bob { width: 40px; }
.event-bar.is-now.is-important .eb-bob { animation: eb-pulse 1.6s ease-in-out infinite; }
.ec-bob { width: 56px; margin: -8px 0 -6px -6px; }
.ec-bob .bob { width: 56px; }
.warn-ic { width: 14px; height: 14px; flex: none; vertical-align: -2px; }

/* Challenge « prime à l'unité » (vendeur) */
.ch.t-unite .ch-type { background: linear-gradient(180deg, #19B866, #0B8A4A); }
.svc-list { display: grid; gap: 10px; margin-top: 12px; }
.svc { padding: 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.svc.is-on { background: var(--green-soft); box-shadow: inset 0 0 0 1.5px var(--green-line); }
.svc .svc-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.svc .svc-top b { font-family: var(--font-cond); font-size: 20px; }
.svc-rate { font-size: 13px; font-weight: 700; color: var(--muted); }
.svc-lock { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); }
.svc.is-on .svc-lock { color: var(--green-text); }
.svc .ch-bar { margin: 0 0 8px; }
.svc.is-on .ch-fill { background: linear-gradient(90deg, #19B866, #0B8A4A); }
.svc-nums { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.svc-gain { color: var(--green-text); font-size: 15px; }
.svc-pot { color: var(--muted); font-weight: 700; }
.svc-total {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #F3D9A8, #E3BA78); color: #5A3A1C; box-shadow: inset 0 0 0 1.5px #C49256;
}
.svc-total span { font-weight: 700; font-size: 14px; }
.svc-total b { font-family: var(--font-cond); font-weight: 800; font-size: 26px; color: #E30613; }
.key-input { font-size: 28px; letter-spacing: .12em; }

/* Logo Marty Saran (Bob en tuile) */
.brand-logo { display: block; width: 78px; height: 78px; border-radius: 23%; margin: 0 auto 16px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 0 rgba(0,0,0,.18), 0 20px 40px -10px rgba(0,0,0,.45); }
.brand-logo-md { width: 60px; height: 60px; margin: 0 0 14px; }
.brand-logo-sm { width: 48px; height: 48px; margin: 0; box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgba(0,0,0,.35); }
.brand-logo-xs { width: 44px; height: 44px; margin: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 3px 0 rgba(0,0,0,.4); }

/* Espaces : vente / pôle service */
html[data-equipe="service"] [data-vente-only] { display: none !important; }
html:not([data-equipe="service"]) [data-service-only] { display: none !important; }
html[data-equipe="service"] .tabbar { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 900px) { html[data-equipe="service"] .tabbar { width: 480px; } }

/* Tâches : importance et auteur */
.task.is-pinned { box-shadow: inset 0 0 0 2px var(--red-line); background: var(--red-soft); border-radius: 14px; }
.task-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.task-tag.is-imp { background: var(--red); color: #fff; }
.task-tag.is-by { background: var(--neutral-soft); color: var(--ink-2); }
.task-del { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 4px 6px; cursor: pointer; }
.give-task { margin-left: auto; }
.given-tasks:empty { display: none; }
.given-tasks { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.given-tasks h3 { font-size: 16px; margin: 0 0 8px; }
.given-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.given-row .g-body { flex: 1; min-width: 0; }
.given-row .g-body small { display: block; color: var(--muted); font-size: 12px; }
.g-state { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--neutral-soft); color: var(--muted); white-space: nowrap; }
.g-state.ok { background: var(--green-soft); color: var(--green-text); }
.give-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.give-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.give-opt input { width: 18px; height: 18px; accent-color: var(--red); }
.give-opt small { color: var(--muted); font-size: 12px; margin-left: auto; }
.give-opt.is-off { opacity: .45; cursor: not-allowed; }
.give-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-soft); }

/* Cahier de passation */
.pass-compose textarea { min-height: 88px; resize: vertical; }
.pass-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pass-row select { flex: 1 1 180px; min-height: 48px; }
.pass-row .btn { flex: 0 0 auto; }
.pass-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.pass-item:first-child { border-top: 0; }
.pass-item.is-done .pass-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.pass-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pass-meta b { color: var(--ink); font-size: 13px; }
.pass-for { font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); }
.pass-text { margin: 4px 0 8px; font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.pass-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pass-check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 0; font-weight: 800; font-size: 13px; cursor: pointer; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pass-check.is-on { background: var(--green-soft); color: var(--green-text); box-shadow: inset 0 0 0 1.5px var(--green-line); }
.pass-by { font-size: 12px; color: var(--green-text); font-weight: 700; }
.home-pass .pass-item { padding: 8px 0; }
.task-tag { width: fit-content; align-self: flex-start; }

/* Fonctions masquées par le vendeur (Mes paramètres) */
html.hide-taches [data-feature~="taches"],
html.hide-equipe [data-feature~="equipe"],
html.hide-live [data-feature~="live"],
html.hide-evenements [data-feature~="evenements"],
html.hide-challenges [data-feature~="challenges"],
html.hide-primes [data-feature~="primes"],
html.hide-album [data-feature~="album"],
html.hide-chat [data-feature~="chat"],
html.hide-jeu [data-feature~="jeu"],
html.hide-fichiers [data-feature~="fichiers"],
html.hide-astuces [data-feature~="astuces"],
html.hide-passation [data-feature~="passation"] { display: none !important; }
html.hide-equipe .day-team, html.hide-jeu #chessBanner { display: none !important; }

/* Mes paramètres */
.prefs-title { margin: 14px 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prefs { display: grid; gap: 6px; }
.pref { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.pref-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-hi); font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.pref-text { flex: 1; min-width: 0; display: grid; }
.pref-text b { font-size: 15px; }
.pref-text small { color: var(--muted); font-size: 12px; }
.switch { position: relative; flex: none; width: 50px; height: 30px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #C9CDD4; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: linear-gradient(180deg, #19B866, #0B8A4A); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
html[data-theme="dark"] .switch span { background: #4A4F59; }

/* Tâches : legs */
.task-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.task-tag.is-leg { background: var(--amber-soft); color: var(--amber-text); }
.task-mot { display: block; font-size: 12px; color: var(--ink-2); font-style: italic; margin-top: 3px; }
.task-leg { flex: none; align-self: center; border: 0; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 800; background: var(--surface-hi); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.task { position: relative; }
.task-row { display: flex; align-items: flex-start; gap: 8px; }
.task-row > label { flex: 1; min-width: 0; }

/* Tâches avec photo de preuve */
.task-tag.is-photo { background: #E7F0FF; color: #1F4FD1; }
html[data-theme="dark"] .task-tag.is-photo { background: #1B2A4A; color: #8DB2FF; }
.proof-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; min-height: 44px; border: 0; border-radius: 12px;
  font-weight: 800; font-size: 14px; cursor: pointer; color: #fff; background: linear-gradient(180deg, #3B74FF, #1F4FD1); box-shadow: 0 3px 0 #163A9C; }
.proof-btn svg { width: 20px; height: 20px; }
.task-proof { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line); }
.proof-thumb { flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-state { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; }
.proof-state small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.proof-state.is-ok { color: var(--green-text); }
.proof-state.is-wait { color: var(--amber-text); }
.proof-redo { flex: none; border: 0; border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.proof-refused { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-soft); }
/* Tâche : ligne principale puis preuve photo et heure en dessous */
.task { flex-wrap: wrap; }
.task > .task-row { flex: 1 1 100%; min-width: 0; }
.task > .task-proof, .task > .proof-btn, .task > .proof-refused { flex: 1 1 100%; margin-left: 38px; }
.task > time { flex: 1 1 100%; margin-left: 38px; }
.task-row .task-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) { .task > .task-proof, .task > .proof-btn, .task > .proof-refused, .task > time { margin-left: 0; } }
