/* Eye web : connexion, administration, réinitialisation, écran d'attente et barre de /app.
   Uniquement des classes préfixées ew- (aucune balise nue : la feuille est aussi chargée par /app). */

@font-face { font-family: "Geist"; src: url("/_blob/0e885010ac5be100fe854eefdd447df4") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Newsreader (OFL, licence dans /type/) : serif de la page de connexion seulement (.ew-login) */
@font-face { font-family: "Newsreader"; src: url("/type/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

.ew-page, .ew-gate {
  --ew-fg: #0a0a0a;
  --ew-fg-2: #525252;
  --ew-fg-3: #737373;
  --ew-line: #e5e5e5;
  --ew-line-2: #d4d4d4;
  --ew-bg: #ffffff;
  --ew-soft: #f5f5f5;
  --ew-mint: #10b981;
  --ew-bad: #dc2626;
  --ew-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ew-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ew-page {
  margin: 0;
  min-height: 100vh;
  background: var(--ew-bg);
  color: var(--ew-fg);
  font-family: var(--ew-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.ew-page *, .ew-page *::before, .ew-page *::after { box-sizing: border-box; }

/* Pas d'affichage avant la vérification de la session (/app, /admin) */
.ew-locked #dash-root, .ew-locked .ew-bar, .ew-locked .ew-admin-wrap { visibility: hidden; }

/* ---------- Commun ---------- */
.ew-brandrow { display: flex; align-items: center; }
.ew-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ew-logo { display: block; }
.ew-wordmark { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.ew-title { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ew-title:focus { outline: none; }
.ew-sub { margin: 0 0 20px; color: var(--ew-fg-2); }
.ew-who { margin: 0 0 20px; color: var(--ew-fg-3); font-size: 13px; }
.ew-code { font-family: var(--ew-mono); font-weight: 600; }
.ew-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ew-form { display: flex; flex-direction: column; }
.ew-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 500; color: var(--ew-fg-2); }
.ew-form > .ew-label:first-child { margin-top: 0; }
.ew-input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--ew-line-2); border-radius: 8px;
  background: #fff; color: var(--ew-fg); font: inherit; font-size: 15px;
}
.ew-input:focus { outline: none; border-color: var(--ew-fg); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.ew-help { margin: 6px 0 0; font-size: 12px; color: var(--ew-fg-3); }
.ew-msg { min-height: 1.5em; margin: 12px 0 8px; font-size: 13px; }
.ew-msg:empty { min-height: 0; margin: 6px 0; }
.ew-msg-err { color: var(--ew-bad); }
.ew-msg-ok { color: var(--ew-fg-2); }

.ew-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.ew-btn:focus-visible, .ew-link:focus-visible { outline: 2px solid var(--ew-fg); outline-offset: 2px; }
.ew-btn-solid { background: var(--ew-fg); color: #fff; }
.ew-btn-solid:hover:not(:disabled) { background: #262626; }
.ew-btn-solid:disabled { background: #e5e5e5; color: #a3a3a3; cursor: not-allowed; }
.ew-btn-line { background: transparent; color: var(--ew-fg); border-color: var(--ew-fg); }
.ew-btn-line:hover:not(:disabled) { background: var(--ew-soft); }
.ew-btn-line:disabled { opacity: .5; cursor: not-allowed; }
.ew-btn-wide { width: 100%; }
.ew-btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.ew-link {
  padding: 0; border: 0; background: none; color: var(--ew-fg); font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.ew-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ew-back { margin-top: 18px; align-self: flex-start; color: var(--ew-fg-2); font-weight: 400; }

/* ---------- Connexion (split-screen) ---------- */
.ew-split { display: grid; grid-template-columns: minmax(400px, 1fr) 2fr; min-height: 100vh; }
.ew-left { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; padding: 32px 48px 24px; background: #fff; color: var(--ew-fg); }
.ew-center { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 40px 0; }
.ew-view { display: flex; flex-direction: column; min-width: 0; }
.ew-view[hidden] { display: none; }
.ew-tag {
  margin: 0 0 28px; font-family: var(--ew-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ew-fg-2);
}
.ew-tag-dot { color: var(--ew-mint); margin-right: 4px; }
.ew-biglabel { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--ew-fg-2); }
.ew-bigfield {
  display: flex; align-items: baseline; gap: 2px; border-bottom: 1px solid var(--ew-line-2);
  font-size: 40px; font-weight: 500; letter-spacing: .04em; line-height: 1.25; transition: border-color .15s;
}
.ew-bigfield:focus-within { border-color: var(--ew-fg); }
.ew-bigprefix { color: #a3a3a3; font-family: var(--ew-mono); user-select: none; }
.ew-biginput {
  flex: 1 1 0; width: 0; min-width: 0; padding: 6px 0; border: 0; outline: none; background: transparent; color: #737373;
  font-family: var(--ew-mono); font-size: inherit; font-weight: inherit; letter-spacing: inherit; caret-color: var(--ew-fg);
  text-transform: uppercase;
}
.ew-biginput::placeholder { color: #d4d4d4; }
.ew-form > .ew-btn { margin-top: 8px; }
.ew-sep { width: 100%; height: 1px; margin: 24px 0; border: 0; background: var(--ew-line); }
.ew-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ew-row-tight { margin-top: 16px; }
.ew-row-text { color: var(--ew-fg-2); }
.ew-foot { font-size: 12px; color: var(--ew-fg-3); }

/* ---------- Connexion : thème papier (limité à .ew-login) ---------- */
.ew-login {
  --ew-paper: #F0EEE6;
  --ew-ink: #141413;
  --ew-ink-2: #5E5D59;
  --ew-ink-3: #87867F;
  --ew-rule: #D9D6CA;
  --ew-coral: #D4654A;
  --ew-err: #B53A26;
  --ew-serif: "Newsreader", Georgia, "Times New Roman", serif;
  /* jetons communs, repris par les règles de base ci-dessus (texte AA sur le papier : encre 2 au minimum) */
  --ew-fg: var(--ew-ink);
  --ew-fg-2: var(--ew-ink-2);
  --ew-fg-3: var(--ew-ink-2);
  --ew-line: var(--ew-rule);
  --ew-line-2: var(--ew-rule);
  --ew-bg: var(--ew-paper);
  --ew-soft: rgba(20, 20, 19, .05);
  --ew-bad: var(--ew-err);
  background: var(--ew-paper);
}
/* papier millimétré : trait fin tous les 24px, un trait sur cinq plus marqué, grain très léger */
.ew-login .ew-left {
  background-color: var(--ew-paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .08 0 0 0 0 .07 0 0 0 .26 -.085'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(to right, rgba(20, 20, 19, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 19, .075) 1px, transparent 1px),
    linear-gradient(to right, rgba(20, 20, 19, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 19, .045) 1px, transparent 1px);
  background-size: 180px 180px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ew-ink);
}
.ew-login .ew-wordmark { font-family: var(--ew-serif); font-size: 28px; font-weight: 500; letter-spacing: -0.015em; }
.ew-login .ew-title { margin-bottom: 12px; font-family: var(--ew-serif); font-size: 36px; font-weight: 450; letter-spacing: -0.015em; line-height: 1.1; }
.ew-login .ew-biglabel { margin-bottom: 10px; font-family: var(--ew-serif); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; color: var(--ew-ink); }
.ew-login .ew-help { font-family: var(--ew-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ew-ink-2); }

.ew-login .ew-left .ew-input { background: rgba(255, 255, 255, .55); border-color: var(--ew-ink-3); border-radius: 6px; color: var(--ew-ink); }
.ew-login .ew-left .ew-input:focus { border-color: var(--ew-ink); box-shadow: 0 0 0 3px rgba(212, 101, 74, .2); }
.ew-login .ew-left .ew-btn { border-radius: 6px; }
.ew-login .ew-left .ew-btn-solid { background: var(--ew-ink); color: var(--ew-paper); }
.ew-login .ew-left .ew-btn-solid:hover:not(:disabled) { background: #2B2A27; }
.ew-login .ew-left .ew-btn-solid:disabled { background: #DEDACD; color: #A3A094; }
.ew-login .ew-left .ew-btn-line { background: transparent; color: var(--ew-ink); border-color: var(--ew-ink); }
.ew-login .ew-left .ew-btn-line:hover:not(:disabled) { background: rgba(20, 20, 19, .05); }

/* tag : point corail qui pulse */
.ew-login .ew-tag-dot {
  position: relative; display: inline-block; width: 7px; height: 7px; margin: 0 7px 0 1px; border-radius: 50%;
  background: var(--ew-coral); color: transparent; font-size: 0; vertical-align: middle;
}

/* grand champ : préfixe, saisie et code fantôme dans la même grille (le fantôme recouvre exactement la saisie) */
.ew-bigfield { position: relative; }
.ew-login .ew-bigfield {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 2px; border-bottom-color: var(--ew-ink-3);
}
.ew-login .ew-bigfield:focus-within { border-bottom-color: var(--ew-ink); }
.ew-login .ew-bigprefix { grid-column: 1; grid-row: 1; color: var(--ew-ink-3); }
.ew-login .ew-biginput { grid-column: 2; grid-row: 1; width: 100%; line-height: 1.25; color: var(--ew-ink); caret-color: var(--ew-coral); }
.ew-ghost {
  grid-column: 2; grid-row: 1; min-width: 0; padding: 6px 0; overflow: hidden; white-space: pre; pointer-events: none; user-select: none;
  font-family: var(--ew-mono); font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: 1.25; color: #BDB9AB;
}
/* masqué dès que le champ a une valeur, sans dépendre de fx.js (placeholder « espace » dans le HTML) */
.ew-biginput:not(:placeholder-shown) + .ew-ghost { display: none; }
.ew-ghost-cur { display: none; width: 2px; height: .82em; margin-left: 1px; vertical-align: -0.06em; background: var(--ew-coral); }
.ew-ghost.ew-ghost-live { color: var(--ew-coral); }
.ew-ghost.ew-ghost-live .ew-ghost-cur { display: inline-block; }
/* soulignement corail qui se déploie au focus */
.ew-login .ew-bigfield::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ew-coral);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.ew-login .ew-bigfield:focus-within::after { transform: scaleX(1); }

.ew-login .ew-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ew-status { font-family: var(--ew-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ew-ink-2); white-space: nowrap; }
.ew-status[hidden] { display: none; }
.ew-status-dot { color: var(--ew-coral); }
/* bouton pause / lecture de la bobine : lien mono discret */
.ew-login .ew-motion { font-family: var(--ew-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; color: var(--ew-ink-2); white-space: nowrap; }
.ew-login .ew-motion[hidden] { display: none; }

/* animations (fx.js ne fait rien en mouvement réduit ; ces règles non plus) */
@media (prefers-reduced-motion: no-preference) {
  .ew-login .ew-tag-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ew-coral);
    animation: ew-pulse 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
  }
  .ew-ghost.ew-ghost-live .ew-ghost-cur { animation: ew-blink 1s steps(1) infinite; }
  .ew-login .ew-bigfield::after { transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
  .ew-login .ew-link > span[aria-hidden="true"] { display: inline-block; transition: transform .2s ease; }
  .ew-login .ew-link:hover > span[aria-hidden="true"], .ew-login .ew-link:focus-visible > span[aria-hidden="true"] { transform: translateX(3px); }
  /* entrée d'une vue : enfants directs en cascade (45 ms par enfant, plafonné au 8e) */
  .ew-login .ew-view.ew-in > * { animation: ew-rise .32s cubic-bezier(.2, .7, .2, 1) both; }
  .ew-login .ew-view.ew-in > :nth-child(2) { animation-delay: 45ms; }
  .ew-login .ew-view.ew-in > :nth-child(3) { animation-delay: 90ms; }
  .ew-login .ew-view.ew-in > :nth-child(4) { animation-delay: 135ms; }
  .ew-login .ew-view.ew-in > :nth-child(5) { animation-delay: 180ms; }
  .ew-login .ew-view.ew-in > :nth-child(6) { animation-delay: 225ms; }
  .ew-login .ew-view.ew-in > :nth-child(7) { animation-delay: 270ms; }
  .ew-login .ew-view.ew-in > :nth-child(n+8) { animation-delay: 315ms; }
}
@keyframes ew-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
@keyframes ew-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ew-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Connexion : bobine d'images (panneau droit, décor) ---------- */
.ew-right { position: relative; overflow: hidden; isolation: isolate; min-width: 0; background: #141413; }
.ew-reel-img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  visibility: hidden; will-change: transform;
}
.ew-reel-img.is-on { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .ew-reel-img { transform: scale(1.03); }
}
/* carton corail quadrillé */
.ew-reel-card {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-color: #D4654A;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center center;
}
.ew-reel-card[hidden] { display: none; }
.ew-reel-word {
  color: #fff; font-family: "Newsreader", Georgia, "Times New Roman", serif; font-size: min(9vw, 148px); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1;
}
/* vignettage doux + grain de pellicule */
.ew-reel-fx {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .34) 100%);
}
.ew-reel-fx::before {
  content: ""; position: absolute; inset: -64px; opacity: .8; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .ew-reel-fx::before { animation: ew-grain 1.2s steps(6) infinite; }
}
@keyframes ew-grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-31px, 17px); } 33% { transform: translate(23px, -29px); }
  50% { transform: translate(-13px, -41px); } 67% { transform: translate(37px, 11px); } 83% { transform: translate(-43px, 29px); }
  100% { transform: translate(0, 0); }
}
/* légende centrée \ Libellé \ */
.ew-reel-cap {
  position: absolute; left: 24px; right: 24px; top: 50%; margin: 0; transform: translateY(-50%);
  color: #fff; font-family: var(--ew-mono); font-size: 12.5px; letter-spacing: .04em; line-height: 1.4; text-align: center; white-space: pre;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 14px rgba(0, 0, 0, .35);
}
.ew-reel-cap[hidden] { display: none; }
/* habillage « données » : lisible sur clair comme sur sombre (difference) */
.ew-reel-hud {
  position: absolute; inset: 0; pointer-events: none; color: rgba(255, 255, 255, .75);
  font-family: var(--ew-mono); font-size: 10.5px; letter-spacing: .1em; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.ew-reel-hud > * { position: absolute; mix-blend-mode: difference; }
.ew-reel-tl { top: 26px; left: 30px; }
.ew-reel-tr { top: 26px; right: 30px; font-variant-numeric: tabular-nums; }
.ew-reel-bl { bottom: 34px; left: 30px; }
.ew-reel-br { bottom: 34px; right: 30px; font-variant-numeric: tabular-nums; }
.ew-reel-c { width: 14px; height: 14px; border: 0 solid rgba(255, 255, 255, .75); }
.ew-reel-c-tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.ew-reel-c-tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.ew-reel-c-bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.ew-reel-c-br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
/* règle graduée : un trait tous les 8px, un plus long tous les 5 */
.ew-reel-ruler {
  left: 30px; right: 30px; bottom: 14px; height: 8px; background-repeat: no-repeat; background-position: left bottom;
  background-image:
    repeating-linear-gradient(to right, rgba(255, 255, 255, .75) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to right, rgba(255, 255, 255, .75) 0 1px, transparent 1px 8px);
  background-size: 100% 8px, 100% 4px;
}

@media (max-width: 900px) {
  .ew-split { grid-template-columns: minmax(0, 1fr); }
  /* bandeau en haut de page ; la partie gauche complète la hauteur de l'écran */
  .ew-right { order: -1; height: 30vh; min-height: 180px; max-height: 280px; }
  .ew-left { min-height: calc(100vh - clamp(180px, 30vh, 280px)); padding: 24px; }
  .ew-bigfield { font-size: 32px; }
  .ew-reel-tl, .ew-reel-bl, .ew-reel-br, .ew-reel-ruler { display: none; }
  .ew-reel-tr { top: 18px; right: 20px; }
  .ew-reel-c-tl, .ew-reel-c-tr { top: 8px; }
  .ew-reel-c-bl, .ew-reel-c-br { bottom: 8px; }
  .ew-reel-c-tl, .ew-reel-c-bl { left: 8px; }
  .ew-reel-c-tr, .ew-reel-c-br { right: 8px; }
}
@media (max-width: 380px) {
  .ew-bigfield { font-size: 26px; }
  .ew-login .ew-biglabel { font-size: 26px; }
}

/* ---------- Réinitialisation ---------- */
.ew-solo { display: flex; flex-direction: column; min-height: 100vh; max-width: 520px; margin: 0 auto; padding: 32px 24px 24px; }

/* ---------- Écran d'attente (pending / revoked / erreur) ---------- */
.ew-gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: #fff; color: #0a0a0a; font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  visibility: visible;
}
.ew-gate-card { width: 100%; max-width: 420px; }
.ew-gate-brand { margin-bottom: 32px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ew-gate-title { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.ew-gate-text { margin: 0 0 12px; color: #525252; }
.ew-gate-who { margin: 0 0 24px; color: #737373; font-size: 13px; }
.ew-gate-actions { display: flex; gap: 12px; }
.ew-gate .ew-btn { box-sizing: border-box; }
.ew-gate .ew-btn-solid { background: #0a0a0a; color: #fff; }
.ew-gate .ew-btn-line { background: transparent; color: #0a0a0a; border-color: #0a0a0a; }

/* ---------- Barre de /app ---------- */
.ew-bar {
  display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 16px; box-sizing: border-box;
  background: #0b0b0c; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #8f8f8f;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 12px; line-height: 1;
}
.ew-bar-brand { color: #fafafa; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 13px; }
.ew-bar-sp { flex: 1; }
.ew-bar-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.ew-bar-link {
  padding: 0; border: 0; background: none; color: #d4d4d4; font: inherit; cursor: pointer; text-decoration: none;
}
.ew-bar-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ew-bar-link:focus-visible, .ew-bar-brand:focus-visible { outline: 2px solid #31d495; outline-offset: 2px; }
.ew-bar-link[hidden] { display: none; }
@media (max-width: 480px) { .ew-bar-email { display: none; } }
/* Mode clair de la page Eye (classe ew-theme-light posée par app-shell.js d'après eye.theme) : fond papier, barre claire */
.ew-theme-light, .ew-theme-light .ew-appbody { background: #F0EEE6; color-scheme: light; }
.ew-theme-light .ew-bar { background: #FAF9F5; border-bottom-color: rgba(20, 20, 19, .10); color: #5E5D59; }
.ew-theme-light .ew-bar-brand { color: #141413; }
.ew-theme-light .ew-bar-link { color: #3D3D3A; }
.ew-theme-light .ew-bar-link:hover { color: #141413; }
.ew-theme-light .ew-bar-link:focus-visible, .ew-theme-light .ew-bar-brand:focus-visible { outline-color: #0A7450; }

/* ---------- Administration ---------- */
.ew-admin-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.ew-admin-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ew-line); flex-wrap: wrap; }
.ew-admin-badge { font-family: var(--ew-mono); font-size: 11px; letter-spacing: .14em; color: var(--ew-fg-3); border: 1px solid var(--ew-line-2); border-radius: 4px; padding: 2px 6px; }
.ew-admin-sp { flex: 1; }
.ew-admin-email { color: var(--ew-fg-3); font-size: 13px; }
.ew-admin-msg { margin: 16px 0 0; }
.ew-panel { margin-top: 32px; }
.ew-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ew-h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ew-count { font-family: var(--ew-mono); font-size: 12px; color: var(--ew-fg-3); }
.ew-tablewrap { overflow-x: auto; border: 1px solid var(--ew-line); border-radius: 10px; }
.ew-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ew-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ew-fg-3); background: #fafafa; padding: 10px 12px; border-bottom: 1px solid var(--ew-line); white-space: nowrap; }
.ew-table td { padding: 10px 12px; border-bottom: 1px solid var(--ew-line); vertical-align: middle; }
.ew-table tr:last-child td { border-bottom: 0; }
.ew-mono { font-family: var(--ew-mono); font-size: 13px; }
.ew-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ew-actions { white-space: nowrap; text-align: right; }
.ew-actions .ew-btn + .ew-btn { margin-left: 6px; }
.ew-empty { margin: 12px 0 0; color: var(--ew-fg-3); font-size: 14px; }
.ew-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ew-pill-approved { background: #dcfce7; color: #166534; }
.ew-pill-pending { background: #fef3c7; color: #92400e; }
.ew-pill-revoked { background: #fee2e2; color: #991b1b; }
.ew-invform { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ew-field { flex: 1 1 200px; }
.ew-field-sm { flex: 0 0 110px; }
.ew-field .ew-label { margin-top: 0; }
.ew-newcode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--ew-line-2); border-radius: 10px; background: var(--ew-soft); }
.ew-newcode[hidden] { display: none; }
.ew-newcode-label { font-size: 13px; color: var(--ew-fg-2); }
.ew-newcode-code { font-family: var(--ew-mono); font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.ew-newcode-ok { font-size: 13px; color: var(--ew-fg-2); }

/* ---------- Dépôts (/depots) ---------- */
.ew-dep-help { margin: 0 0 14px; max-width: 72ch; font-size: 14px; color: var(--ew-fg-2); }
.ew-dep-file { height: auto; min-height: 44px; padding: 9px 12px; font-size: 14px; cursor: pointer; }
.ew-dep-name { max-width: 360px; overflow-wrap: anywhere; }
.ew-dep-reason { display: block; margin-top: 4px; font-size: 12px; color: var(--ew-fg-3); max-width: 280px; }
