:root {
  --bg: #f4f3f9;
  --card: #ffffff;
  --line: #e7e5f0;
  --line2: #f0eef6;
  --ink: #1f1d33;
  --muted: #706d88;
  --side: #17142b;
  --side2: #221e3d;
  --primary: #5b3fd1;
  --primary2: #7c5cff;
  --primary-soft: #efebff;
  --ok: #1f9d6b;
  --ok-soft: #e3f6ee;
  --warn: #c97a1c;
  --warn-soft: #fdf1df;
  --danger: #d0384b;
  --danger-soft: #fde8eb;
  --gold: #b88a10;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(25, 18, 70, .06), 0 6px 20px rgba(25, 18, 70, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88em; }
.nowrap { white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: #cfcae6; background: #faf9ff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #4d33c0; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger.soft { background: var(--danger-soft); color: var(--danger); border-color: #f6c9cf; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; justify-content: center; padding: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 1.05rem; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--line2); }

/* ---------- Formulaires ---------- */
label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.input, input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none; font-size: .92rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--primary2); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 70px; }
input[type=color] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; vertical-align: middle; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fields .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.help { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- Connexion ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 15% 15%, #3b2a8a 0, transparent 45%), radial-gradient(circle at 85% 85%, #6a2a6e 0, transparent 40%), var(--side); }
.login-card { width: min(380px, 100%); background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; }
.login-card .brand { color: var(--ink); }
.error { color: var(--danger); min-height: 1.2em; margin: 0; font-size: .88rem; text-align: center; }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #d8d4f0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; padding: 18px 18px 10px; color: #fff; }
.brand small { margin-left: auto; font-size: .65rem; background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 99px; letter-spacing: .05em; text-transform: uppercase; }
.brand.big { font-size: 1.4rem; padding: 0; }
.side nav { padding: 4px 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #7f7aa3; margin: 14px 10px 4px; font-weight: 700; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #d8d4f0; font-weight: 500; }
.side nav a i { font-style: normal; width: 20px; text-align: center; }
.side nav a:hover { background: var(--side2); color: #fff; }
.side nav a.active { background: var(--primary); color: #fff; }
.side-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid #2b2650; }
.side-foot a { color: #b9b2e6; font-weight: 600; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(244, 243, 249, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 1.25rem; margin: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-weight: 600; color: var(--muted); font-size: .88rem; }
.menu-btn { display: none; }
.page { padding: 20px 24px 40px; max-width: 1500px; width: 100%; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 6, 30, .4); }
  .menu-btn { display: inline-grid; }
  .top { padding: 10px 14px; }
  .page { padding: 14px; }
  .who { display: none; }
}

/* ---------- Cartes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .right { margin-left: auto; }
.card h3 { font-size: .92rem; margin: 16px 0 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 > .card + .card, .grid3 > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.kpi b { font-size: 1.6rem; display: block; margin-top: 2px; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi.accent { background: linear-gradient(135deg, var(--primary), #9a5cff); color: #fff; border: 0; }
.kpi.accent small, .kpi.accent span { color: rgba(255, 255, 255, .8); }

/* ---------- Tableaux ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; margin: 0; }
.toolbar select { width: auto; margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf9fd; position: sticky; top: 0; font-weight: 700; white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #faf8ff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-user { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cell-user canvas { flex: none; border-radius: 10px; background: linear-gradient(#efebff, #fff); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.badge.gold { background: #fff3cf; color: var(--gold); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #cbc8d8; flex: none; }
.dot.on { background: #22c07f; box-shadow: 0 0 0 3px rgba(34, 192, 127, .18); }
.type-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--line2); color: var(--muted); }
.type-tag.buy { background: #e6f0ff; color: #2d63c8; }
.type-tag.work, .type-tag.daily { background: var(--ok-soft); color: var(--ok); }
.type-tag.chat { background: #f1eefc; color: #6b55c9; }
.type-tag.rp { background: #fde9f6; color: #b2348a; }
.type-tag.mod, .type-tag.admin { background: var(--danger-soft); color: var(--danger); }
.type-tag.login, .type-tag.logout, .type-tag.register { background: #eef4f1; color: #3d7a5f; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.chip.sel { background: var(--primary-soft); border-color: #cfc3ff; color: var(--primary); }

/* ---------- Joueur ---------- */
.player-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.player-head canvas { border-radius: 16px; background: radial-gradient(circle at 50% 70%, #fff, #e8e3ff); flex: none; }
.player-head h2 { font-size: 1.5rem; margin: 0 0 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fact { background: #faf9fd; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; }
.fact small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.fact b { font-size: .98rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Catalogue ---------- */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.item-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.item-card:hover { border-color: #cdc3ff; transform: translateY(-1px); }
.item-card .pv { height: 110px; border-radius: 10px; background: linear-gradient(#f3f0ff, #fff); display: grid; place-items: center; font-size: 2.6rem; overflow: hidden; }
.item-card .pv img { max-width: 90%; max-height: 90%; }
.item-card .nm { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.item-card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--muted); }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(#f3f0ff, #fff); display: inline-grid; place-items: center; font-size: 1.4rem; overflow: hidden; vertical-align: middle; flex: none; }
.thumb img, .thumb canvas { max-width: 100%; max-height: 100%; }
.preview-box { background: radial-gradient(circle at 50% 70%, #fff, #ebe6ff); border-radius: 14px; padding: 10px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.editor-2col { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
@media (max-width: 760px) { .editor-2col { grid-template-columns: 1fr; } }

/* ---------- Images ---------- */
.tpl-card { display: flex; flex-direction: column; gap: 8px; }
.tpl-card canvas { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: repeating-conic-gradient(#f2f1f7 0 25%, #fff 0 50%) 50% / 16px 16px; }
.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.upload { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; font-size: .75rem; display: flex; flex-direction: column; gap: 6px; }
.upload .img { height: 90px; display: grid; place-items: center; background: repeating-conic-gradient(#f2f1f7 0 25%, #fff 0 50%) 50% / 12px 12px; border-radius: 8px; overflow: hidden; }
.upload img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.drop { border: 2px dashed #cfc8ee; border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); background: #fbfaff; cursor: pointer; }
.drop.over { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- Éditeur de carte ---------- */
.map-editor { display: grid; grid-template-columns: 230px 1fr 280px; gap: 12px; height: calc(100vh - 150px); min-height: 520px; }
.me-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow-y: auto; box-shadow: var(--shadow); }
.me-panel h3 { margin: 4px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.me-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.me-tools button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 4px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.me-tools button.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.me-palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.me-palette button { border: 2px solid var(--line); background: #fff; border-radius: 9px; padding: 3px; font-size: .68rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.1; }
.me-palette button.sel { border-color: var(--primary); background: var(--primary-soft); }
.me-canvas { background: #1a1a22; border-radius: var(--radius); overflow: auto; position: relative; border: 1px solid var(--line); }
.me-canvas canvas { display: block; cursor: crosshair; }
.me-status { position: sticky; left: 0; bottom: 0; background: rgba(20, 16, 40, .75); color: #fff; font-size: .78rem; padding: 4px 10px; display: inline-block; border-top-right-radius: 8px; }
.me-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.me-bar .dirty { color: var(--warn); font-weight: 700; font-size: .85rem; }
@media (max-width: 1200px) { .map-editor { grid-template-columns: 200px 1fr; } .map-editor .me-props { grid-column: 1 / -1; } }
@media (max-width: 760px) { .map-editor { grid-template-columns: 1fr; height: auto; } .me-canvas { height: 60vh; } }

/* ---------- Graphiques ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--primary2), var(--primary)); min-height: 2px; position: relative; }
.bars .b i.alt { background: linear-gradient(#5fd3a5, var(--ok)); }
.bars .b span { font-size: .65rem; color: var(--muted); }
.bars .b em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--ink); }
.feed { display: flex; flex-direction: column; }
.feed .ev { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: .86rem; }
.feed .ev:last-child { border-bottom: 0; }
.feed .ev time { color: var(--muted); font-size: .75rem; white-space: nowrap; width: 46px; flex: none; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-list .it { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; cursor: pointer; }
.mini-list .it:hover { background: #faf8ff; }
.mini-list .it b { font-size: .9rem; }
.mini-list .it small { display: block; color: var(--muted); font-size: .76rem; }
.mini-list .it .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Modale ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 10, 35, .5); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal { background: #fff; width: min(860px, 100%); max-height: calc(100vh - 32px); border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal.small { width: min(460px, 100%); }
.modal.wide { width: min(1100px, 100%); }
.modal header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal footer:empty { display: none; }
.modal footer .left { margin-right: auto; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; max-width: 380px; animation: tin .2s ease-out; }
.toast.ok { background: var(--ok); }
.toast.error { background: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Divers ---------- */
.swatch-list { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.swatch-item button { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: .75rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pick { border: 2px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; font-size: .78rem; font-weight: 600; cursor: pointer; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pick.sel { border-color: var(--primary); background: var(--primary-soft); }
.lines-list { display: flex; flex-direction: column; gap: 6px; }
.callout { background: var(--primary-soft); border: 1px solid #ddd3ff; color: #3e2a9e; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; }
.callout.warn { background: var(--warn-soft); border-color: #f4dcb6; color: #7a4b0c; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .88rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.map-thumb { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); image-rendering: pixelated; }

/* ===== Couleurs Cité Bulle (logo) ===== */
:root { --primary: #1f7fd6; --primary2: #3fa7ff; --primary-soft: #e3f1ff; --side: #1d2433; --side2: #2a3448; }
.brand img { flex: none; }
.login { background: linear-gradient(#8fd6ff, #2f8fe0) !important; }
.login-card { border: 4px solid #1d2433; box-shadow: 0 8px 0 #1d2433, 0 24px 60px rgba(10, 40, 90, .35) !important; }
.login-logo { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.side nav a.active { background: linear-gradient(#ffd84a, #ffb20f); color: #1d2433; font-weight: 700; }
.btn.primary { background: linear-gradient(#4fb3ff, #1f7fd6); border-color: #1a6cb8; }
.kpi.accent { background: linear-gradient(135deg, #1f7fd6, #3fa7ff); }

/* courbes */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e9edf5; stroke-width: 1; }
.chart .today { stroke: #c9d3e3; stroke-dasharray: 3 3; }
.chart .axis { fill: #8a93a8; font-size: 10px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.proj { stroke-dasharray: 6 5; opacity: .7; }
.chart .area { stroke: none; opacity: .1; }
.chart .dot { stroke: #fff; stroke-width: 1.5; }
.chart .hit { fill: transparent; }
.chart .c0 { stroke: #1f7fd6; fill: #1f7fd6; } .chart .line.c0 { fill: none; }
.chart .c1 { stroke: #ff9f0a; fill: #ff9f0a; } .chart .line.c1 { fill: none; }
.chart .c2 { stroke: #3aaa35; fill: #3aaa35; } .chart .line.c2 { fill: none; }
.chart .c3 { stroke: #e8423a; fill: #e8423a; } .chart .line.c3 { fill: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.legend i.c0 { background: #1f7fd6; } .legend i.c1 { background: #ff9f0a; } .legend i.c2 { background: #3aaa35; } .legend i.c3 { background: #e8423a; }
.spark { display: flex; align-items: flex-end; gap: 1px; height: 26px; width: 120px; }
.spark i { flex: 1; background: #9cc9f2; border-radius: 1px; min-height: 2px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.badge.gold { background: #fff1b8; color: #6b4a00; }
