:root {
  --ink: #14283A; --ink-2: #1F3A52; --text: #1D2530; --muted: #5E6B7A; --line: #DDE2E8; --line-2: #EDF0F3; --paper: #F1F4F8; --surface: #fff;
  --accent: #2563A6; --accent-soft: #E6EEF7; --gold: #F2B544;
  --ok: #2F7D55; --ok-bg: #E3F2EA; --warn: #A86A12; --warn-bg: #FCF0DC; --ko: #B03A2E; --ko-bg: #F8E3E0; --off: #79838F; --off-bg: #EDEFF2;
  --r: 10px; --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; } html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; } h1 { font-size: 24px; } h2 { font-size: 16px; } h3 { font-size: 14.5px; }
p { margin: 0 0 .6em; } a { color: var(--accent); } .muted { color: var(--muted); } .small { font-size: 13px; } .num { font-variant-numeric: tabular-nums; } .hidden { display: none !important; }
code { background: var(--paper); border: 1px solid var(--line-2); padding: 0 5px; border-radius: 4px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #CBD3DD; position: sticky; top: 0; height: 100vh; padding: 18px 12px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 2px 8px 20px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; background: #2C3A4B; display: grid; place-items: center; flex: none; }
.brand b { display: block; font-size: 14.5px; line-height: 1.2; } .brand span { font-size: 12px; color: var(--gold); }
.nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: #CBD3DD; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: var(--ink-2); color: #fff; } .nav a.on { background: #fff; color: var(--ink); }
.nav svg { width: 18px; height: 18px; flex: none; } .nav .sep { font-size: 12px; color: #8995A3; padding: 16px 10px 6px; }
.nav .pill { margin-left: auto; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 99px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--ink-2); padding: 12px 8px 0; font-size: 13px; } .side-foot b { color: #fff; display: block; } .side-foot span { color: #8995A3; }
.main { min-width: 0; } .top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 22px 30px 16px; } .top h1 { flex: 1; } .top .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.page { padding: 0 30px 50px; }

.btn { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 7px 13px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #FAFBFC; border-color: #C6CDD5; } .btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: #1D5290; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.ko { color: var(--ko); border-color: #E8C2BD; } .btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 4px 9px; font-size: 13px; } .btn[disabled] { opacity: .5; cursor: not-allowed; } .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; } label.f .h { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
input, select, textarea { font: inherit; font-weight: 400; font-size: 14.5px; width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: auto; margin: 0; accent-color: var(--accent); } input[type=color] { padding: 2px; height: 36px; width: 56px; }
textarea { min-height: 70px; resize: vertical; } .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; cursor: pointer; } .check input { margin-top: 3px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; } .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.panel > header { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); } .panel > header h2 { flex: 1; }
.panel .body { padding: 16px 18px; } .cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.kpi { background: #fff; padding: 16px 18px; } .kpi .n { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; } .kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; } .kpi.warn .n { color: var(--warn); } .kpi.ko .n { color: var(--ko); }

.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--ok); background: var(--ok-bg); } .st.warn { color: var(--warn); background: var(--warn-bg); } .st.ko { color: var(--ko); background: var(--ko-bg); } .st.off { color: var(--off); background: var(--off-bg); } .st.info { color: var(--accent); background: var(--accent-soft); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; } table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; } table.t tr:last-child td { border-bottom: 0; } table.t .r { text-align: right; } table.t tr.click { cursor: pointer; } table.t tr.click:hover { background: #F8FAFB; }
.table-wrap { overflow-x: auto; } .toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .toolbar input, .toolbar select { width: auto; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; } .seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--muted); } .seg button + button { border-left: 1px solid var(--line); } .seg button.on { background: var(--ink); color: #fff; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; } .tabs button { font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 13px; margin-bottom: -1px; cursor: pointer; white-space: nowrap; } .tabs button.on { color: var(--ink); border-color: var(--accent); }
.note { background: var(--accent-soft); color: #22405F; padding: 12px 14px; border-radius: 8px; font-size: 14px; } .note.warn { background: var(--warn-bg); color: #6D4610; } .note.ko { background: var(--ko-bg); color: #6E2A21; } .note.ok { background: var(--ok-bg); color: #1F5138; } .note ul { margin: 4px 0 0; padding-left: 18px; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: 14px; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; }
pre.code { background: #111A24; color: #D6E2EE; padding: 12px; border-radius: 8px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; max-height: 280px; overflow: auto; margin: 0; }

/* Éditeur de document */
.lines input, .lines select { margin: 0; padding: 5px 7px; font-size: 14px; } .lines td { padding: 5px 6px; vertical-align: middle; } .lines .lab { min-width: 260px; } .lines .det { margin-top: 4px; font-size: 13px; color: var(--muted); }
.totals { margin-left: auto; width: 320px; font-size: 14.5px; } .totals div { display: flex; justify-content: space-between; padding: 4px 0; } .totals .big { font-weight: 750; font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.docbar { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.locked { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }

/* Connexion */
.auth { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 20px; }
.auth-card { width: min(420px, 100%); background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.auth-card h1 { font-size: 21px; margin-bottom: 4px; } .auth-card .lead { color: var(--muted); margin-bottom: 20px; font-size: 14px; } .auth-card .btn.primary { width: 100%; justify-content: center; padding: 10px; margin-top: 4px; }
.auth-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font-weight: 700; color: var(--ink); } .err { color: var(--ko); font-size: 14px; min-height: 1.2em; margin-bottom: 8px; white-space: pre-line; }
.otp { font-size: 22px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; } .secret { font: 600 16px ui-monospace, Consolas, monospace; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 10px; text-align: center; letter-spacing: .08em; word-break: break-all; }

.overlay { position: fixed; inset: 0; background: rgba(20, 28, 38, .5); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: min(620px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 24px 60px -12px rgba(0,0,0,.45); } .modal.wide { width: min(880px, 100%); } .modal.narrow { width: min(440px, 100%); }
.modal > header { padding: 18px 22px 10px; display: flex; gap: 10px; } .modal > header h2 { flex: 1; font-size: 18px; } .modal .content { padding: 4px 22px 16px; overflow-y: auto; } .modal > footer { padding: 12px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; } .modal footer .left { margin-right: auto; }
.x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px; } .x svg { width: 20px; height: 20px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 80; } .toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 14px; max-width: 420px; white-space: pre-line; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); } .toast.bad { background: var(--ko); }
@media (max-width: 980px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .cols, .g2, .g3, .g4, .kpis { grid-template-columns: 1fr; } .page, .top { padding-left: 16px; padding-right: 16px; } .totals { width: 100%; } }

/* ================= Habillage 2 ================= */
body { background: var(--paper); }
.side { background: linear-gradient(180deg, #14283A 0%, #0F1F2E 100%); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g stroke='%239CC3E0' stroke-opacity='.13' stroke-width='1.4'><line x1='210.0' y1='200.0' x2='400.0' y2='200.0'/><line x1='219.8' y1='202.6' x2='398.3' y2='226.1'/><line x1='209.7' y1='202.6' x2='393.2' y2='251.8'/><line x1='218.5' y1='207.7' x2='384.8' y2='276.5'/><line x1='208.7' y1='205.0' x2='373.2' y2='300.0'/><line x1='215.9' y1='212.2' x2='358.7' y2='321.8'/><line x1='207.1' y1='207.1' x2='341.4' y2='341.4'/><line x1='212.2' y1='215.9' x2='321.8' y2='358.7'/><line x1='205.0' y1='208.7' x2='300.0' y2='373.2'/><line x1='207.7' y1='218.5' x2='276.5' y2='384.8'/><line x1='202.6' y1='209.7' x2='251.8' y2='393.2'/><line x1='202.6' y1='219.8' x2='226.1' y2='398.3'/><line x1='200.0' y1='210.0' x2='200.0' y2='400.0'/><line x1='197.4' y1='219.8' x2='173.9' y2='398.3'/><line x1='197.4' y1='209.7' x2='148.2' y2='393.2'/><line x1='192.3' y1='218.5' x2='123.5' y2='384.8'/><line x1='195.0' y1='208.7' x2='100.0' y2='373.2'/><line x1='187.8' y1='215.9' x2='78.2' y2='358.7'/><line x1='192.9' y1='207.1' x2='58.6' y2='341.4'/><line x1='184.1' y1='212.2' x2='41.3' y2='321.8'/><line x1='191.3' y1='205.0' x2='26.8' y2='300.0'/><line x1='181.5' y1='207.7' x2='15.2' y2='276.5'/><line x1='190.3' y1='202.6' x2='6.8' y2='251.8'/><line x1='180.2' y1='202.6' x2='1.7' y2='226.1'/><line x1='190.0' y1='200.0' x2='0.0' y2='200.0'/><line x1='180.2' y1='197.4' x2='1.7' y2='173.9'/><line x1='190.3' y1='197.4' x2='6.8' y2='148.2'/><line x1='181.5' y1='192.3' x2='15.2' y2='123.5'/><line x1='191.3' y1='195.0' x2='26.8' y2='100.0'/><line x1='184.1' y1='187.8' x2='41.3' y2='78.2'/><line x1='192.9' y1='192.9' x2='58.6' y2='58.6'/><line x1='187.8' y1='184.1' x2='78.2' y2='41.3'/><line x1='195.0' y1='191.3' x2='100.0' y2='26.8'/><line x1='192.3' y1='181.5' x2='123.5' y2='15.2'/><line x1='197.4' y1='190.3' x2='148.2' y2='6.8'/><line x1='197.4' y1='180.2' x2='173.9' y2='1.7'/><line x1='200.0' y1='190.0' x2='200.0' y2='0.0'/><line x1='202.6' y1='180.2' x2='226.1' y2='1.7'/><line x1='202.6' y1='190.3' x2='251.8' y2='6.8'/><line x1='207.7' y1='181.5' x2='276.5' y2='15.2'/><line x1='205.0' y1='191.3' x2='300.0' y2='26.8'/><line x1='212.2' y1='184.1' x2='321.8' y2='41.3'/><line x1='207.1' y1='192.9' x2='341.4' y2='58.6'/><line x1='215.9' y1='187.8' x2='358.7' y2='78.2'/><line x1='208.7' y1='195.0' x2='373.2' y2='100.0'/><line x1='218.5' y1='192.3' x2='384.8' y2='123.5'/><line x1='209.7' y1='197.4' x2='393.2' y2='148.2'/><line x1='219.8' y1='197.4' x2='398.3' y2='173.9'/></g><g fill='none' stroke='%239CC3E0' stroke-opacity='.1'><circle cx='200' cy='200' r='60'/><circle cx='200' cy='200' r='120'/><circle cx='200' cy='200' r='180'/></g><circle cx='200' cy='200' r='7' fill='%23F0B03E' fill-opacity='.8'/></svg>"), linear-gradient(180deg, #14283A 0%, #0F1F2E 100%); background-repeat: no-repeat; background-size: 380px 380px, auto; background-position: -150px calc(100% + 120px), 0 0; }
.nav a { position: relative; border-radius: 10px; margin: 1px 0; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.nav a.on svg { color: var(--gold); }
.brand-logo { background: transparent; }
.top h1 { font-size: 27px; letter-spacing: -.01em; }
.panel { border: 1px solid #E3E8EE; border-radius: 14px; box-shadow: 0 1px 2px rgba(16,32,48,.04), 0 10px 28px -18px rgba(16,32,48,.22); }
.panel > header h2 { display: flex; align-items: center; gap: 8px; }
.panel > header h2 svg { width: 18px; height: 18px; color: var(--accent); }
.btn { border-radius: 9px; }
.btn.primary { background: linear-gradient(180deg, #2468A6, #1D5C8F); border-color: #1D5C8F; box-shadow: 0 1px 2px rgba(16,32,48,.12); }
table.t tr.click:hover { background: #F5F8FC; }

/* Indicateurs */
.kpis { background: none; border: 0; gap: 14px; overflow: visible; }
.kpi { border: 1px solid #E3E8EE; border-radius: 14px; box-shadow: 0 10px 28px -20px rgba(16,32,48,.3); display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; }
.kpi .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi .ic svg { width: 22px; height: 22px; }
.kpi.gold .ic { background: #FDF2DC; color: #9A6510; } .kpi.okk .ic { background: var(--ok-bg); color: var(--ok); } .kpi.ko .ic { background: var(--ko-bg); color: var(--ko); }
.kpi .n { font-size: 24px; }
.kpi .l { margin-top: 0; }

/* Graphiques */
.chart { padding: 8px 18px 16px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); padding: 0 18px 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 16px 18px; }
.donut-wrap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.donut-wrap li { display: flex; align-items: center; gap: 8px; } .donut-wrap li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.donut-wrap li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Pastille de commune */
.avatar { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; font-weight: 750; font-size: 13px; letter-spacing: .02em; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.who { display: flex; gap: 12px; align-items: center; }

/* ================= Atelier de charte ================= */
.studio { display: grid; grid-template-columns: 420px 1fr; gap: 20px; align-items: start; }
.studio-side { position: sticky; top: 12px; }
.pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pal-b { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 6px 6px; cursor: pointer; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.pal-b span { height: 18px; border-radius: 4px; } .pal-b em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 3px; }
.pal-b:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cpick label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; cursor: pointer; }
.cpick input[type=color] { width: 42px; height: 42px; border: 0; border-radius: 10px; padding: 0; margin: 0; background: none; cursor: pointer; }
.cpick span { display: flex; flex-direction: column; line-height: 1.25; } .cpick small { color: var(--muted); font-size: 12px; } .cpick code { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); margin-top: 2px; }
.asset { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; margin-bottom: 16px; }
.asset-th { height: 84px; border: 1px dashed #C9D3DD; border-radius: 10px; display: grid; place-items: center; background: repeating-conic-gradient(#F1F4F8 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; }
.asset-th img { max-width: 100%; max-height: 100%; object-fit: contain; } .asset-th.fond img { width: 100%; height: 100%; object-fit: cover; }
.studio-save { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.studio-preview { --primary: #1F5C7A; --dark: #17313B; --accent: #7A8B4F; --paper: #F3F5F2; display: grid; gap: 18px; background: #E9EEF3; border-radius: 16px; padding: 22px; }
.studio-preview figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.studio-preview figcaption { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pv-row { display: grid; grid-template-columns: 1fr 170px; gap: 18px; align-items: start; }
.pv-login { display: grid !important; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px -16px rgba(16,32,48,.45); }
.pv-login figcaption { grid-column: 1 / -1; background: #E9EEF3; padding-top: 8px; }
.pv-art { background-color: var(--dark); background-position: center; min-height: 230px; display: flex; align-items: flex-end; padding: 18px; color: #fff; }
.pv-art-copy { display: flex; flex-direction: column; gap: 6px; } .pv-art-copy b { font-size: 18px; line-height: 1.15; } .pv-art-copy small { opacity: .8; font-size: 11px; }
.pv-form { background: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 9px; justify-content: center; } .pv-form b { font-size: 15px; color: var(--dark); }
.pv-form i { height: 22px; border: 1px solid #DCE3EA; border-radius: 6px; }
.pv-btn { font-style: normal; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 6px; text-align: center; }
.pv-mark { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; } .pv-mark.sm { width: 26px; height: 26px; border-radius: 7px; }
.pv-mark img { max-width: 86%; max-height: 86%; object-fit: contain; } .pv-mark .mono { width: 100%; height: 100%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 11px; }
.pv-ph { background: #0E1621; border-radius: 22px; padding: 7px; box-shadow: 0 12px 30px -14px rgba(16,32,48,.5); }
.pv-ph-top { background: var(--dark); color: #fff; border-radius: 16px 16px 0 0; padding: 10px; display: flex; gap: 8px; align-items: center; font-size: 11px; }
.pv-ph-body { background: var(--paper); border-radius: 0 0 16px 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; } .pv-ph-body > b { font-size: 13px; color: var(--dark); }
.pv-card { background: #fff; border-radius: 8px; border-top: 3px solid var(--accent); padding: 8px; display: grid; gap: 5px; } .pv-card span { height: 6px; border-radius: 3px; background: #E3E8EE; } .pv-card span:last-child { width: 60%; }
.pv-card.big { padding: 12px; gap: 8px; } .pv-card a { color: var(--primary); font-size: 11.5px; font-weight: 700; }
.pv-appw { display: grid; grid-template-columns: 150px 1fr; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px -16px rgba(16,32,48,.45); min-height: 230px; }
.pv-side { background: var(--dark); padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.pv-brand { display: flex; gap: 8px; align-items: center; color: #fff; margin-bottom: 6px; } .pv-brand span:last-child { display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; min-width: 0; } .pv-brand small { opacity: .7; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-side i { height: 9px; border-radius: 4px; background: rgba(255,255,255,.16); } .pv-side i.on { background: #fff; }
.pv-main { background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pv-title { display: flex; justify-content: space-between; align-items: center; font-weight: 750; color: var(--dark); font-size: 14px; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pv-kpis div { background: #fff; border-radius: 8px; padding: 8px; } .pv-kpis b { display: block; font-size: 16px; color: var(--dark); } .pv-kpis small { font-size: 10px; color: #6B7785; }
.pv-kpis div:first-child b { color: var(--accent); }
.pv-mail { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px -16px rgba(16,32,48,.45); max-width: 560px; }
.pv-mail-head { background: var(--dark); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; } .pv-mail-head span:first-child { display: flex; flex-direction: column; } .pv-mail-head small { opacity: .75; font-size: 11px; }
.pv-mail-logo { display: grid; place-items: center; } .pv-mail-logo img { height: 42px; max-width: 90px; object-fit: contain; background: #fff; border-radius: 8px; padding: 5px; }
.pv-mail-bar { height: 4px; background: var(--accent); } .pv-mail-body { padding: 14px 18px; display: grid; gap: 7px; } .pv-mail-body b { color: var(--dark); } .pv-mail-body span { height: 7px; border-radius: 4px; background: #E3E8EE; }
@media (max-width: 1200px) { .studio { grid-template-columns: 1fr; } .studio-side { position: static; } }
.locked svg { width: 14px; height: 14px; flex: none; }

/* Mails envoyés */
.mail-meta { margin-bottom: 14px; } .mail-meta dl.kv { grid-template-columns: 140px 1fr; }
.mail-body { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 18px; font-size: 14.5px; line-height: 1.55; max-height: 340px; overflow: auto; }
.att { display: inline-flex; gap: 5px; align-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 8px; font-size: 13px; font-weight: 600; margin: 0 4px 4px 0; }
.att svg { width: 14px; height: 14px; }
.resend { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; } .resend summary { cursor: pointer; font-weight: 700; } .resend[open] summary { margin-bottom: 10px; }
