/* Styles propres aux écrans Profil, Classement, Succès, Roue et Administration */

/* ═══ Profil ═════════════════════════════════════════════════════ */
.pf-hero { align-items: center; }
.pf-hero::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 28%, transparent), transparent 70%); pointer-events: none; }
.pf-av { position: relative; }
.pf-av::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--c1), transparent 30%, var(--c1) 60%, transparent 85%, var(--c1)); opacity: .35; filter: blur(10px);
  animation: spin 14s linear infinite; }
.pf-av .avatar.lg { width: 112px; height: 112px; }
.pf-id { flex: 1 1 260px; min-width: 0; display: grid; gap: 6px; }
.pf-name { font-size: clamp(30px, 5vw, 48px); overflow-wrap: anywhere; }
.pf-since { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pf-bio { max-width: 60ch; padding: 10px 14px; margin-top: 4px; border-radius: 4px 16px 16px 16px; background: var(--surface-2);
  border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); width: fit-content; }
.pf-bio.is-empty { color: var(--ink-3); font-style: italic; }
.pf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pf-pill-friend { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: flex-start; }
.pf-like[aria-pressed='true'] { --c: #fff; border-color: transparent; background: linear-gradient(135deg, #ff5a8a, var(--coral)); box-shadow: 0 10px 26px -10px #ff5a8aaa; }
.pf-like[aria-pressed='true'] .icon { fill: currentColor; }
.pf-like.pop .icon { animation: pf-pop .5s var(--spring); }
@keyframes pf-pop { 40% { transform: scale(1.5) rotate(-10deg); } }
.pf-like-n { padding: 1px 8px; border-radius: 999px; background: #0000001a; font-size: 12px; font-variant-numeric: tabular-nums; }

.pf-dex { display: grid; gap: 12px; position: relative; overflow: hidden; }
.pf-dex-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.pf-dex h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pf-dex-of { font-size: .5em; color: var(--ink-3); font-weight: 700; }
.pf-dex-pct { font: 800 clamp(22px, 3vw, 30px)/1 var(--display); background: linear-gradient(90deg, var(--coral), var(--citrine)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-progress { height: 14px; border-radius: 8px; }
.pf-progress > i { background: linear-gradient(90deg, var(--coral), #ff3d7f 35%, var(--violet) 70%, var(--sky)); box-shadow: 0 0 18px -2px #ff5a4e88; position: relative; overflow: hidden; }
.pf-progress > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fff6 50%, transparent 70%); background-size: 200% 100%; animation: pf-sheen 2.6s linear infinite; }
@keyframes pf-sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.pf-stat, .adm-stat { position: relative; overflow: hidden; display: grid; gap: 2px; transition: transform .25s var(--spring), border-color .25s; }
.pf-stat:hover, .adm-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
.pf-stat::after, .adm-stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%); pointer-events: none; }
.pf-stat-ico, .adm-stat-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 6px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.pf-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-loss { font-size: .6em; color: var(--ink-3); font-weight: 700; }

.pf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.pf-sec-head .muted { font-size: 14px; }
.pf-showcase .card { width: 100%; height: 100%; }
.pf-slot { aspect-ratio: 160 / 236; height: auto; border-radius: 18px; cursor: default; transition: border-color .2s, background .2s, transform .25s var(--spring); }
button.pf-slot { cursor: pointer; }
button.pf-slot:hover { border-color: var(--coral); color: var(--coral); background: color-mix(in srgb, var(--coral) 6%, var(--surface-2)); transform: translateY(-3px); }
.pf-slot-in { display: grid; justify-items: center; gap: 6px; font-weight: 800; font-size: 12px; }
.pf-slot.is-empty { opacity: .55; }
.pf-badges { gap: 14px 18px; }
.pf-badge { display: grid; justify-items: center; gap: 6px; width: 66px; text-align: center; }
.pf-badge .badge-medal { width: 54px; height: 54px; position: relative; transition: transform .3s var(--spring); }
.pf-badge:not(.is-off) .badge-medal::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid #ffffff55; }
.pf-badge:not(.is-off):hover .badge-medal { transform: rotate(-12deg) scale(1.08); }
.pf-badge small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); line-height: 1.15; }
.pf-badge:not(.is-off) small { color: var(--ink-2); }

.pf-slot-modal { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.pf-edit-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-edit-preview .avatar.lg { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line-2); }
.pf-edit-preview b { display: block; font: 800 18px/1.1 var(--display); }
.pf-av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 38dvh; overflow-y: auto; padding: 4px; }
.pf-av-opt { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform .2s var(--spring), border-color .2s; min-width: 0; }
.pf-av-opt:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pf-av-opt[aria-selected='true'] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.pf-av-opt small { font-size: 11px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-av-more { grid-column: 1 / -1; text-align: center; font-size: 12px; }

@media (max-width: 760px) {
  .pf-showcase .card { padding: 6px; gap: 5px; border-radius: 13px; }
  .pf-showcase .card-name { font-size: 11.5px; }
  .pf-showcase .rarity-gem { display: none; }
}
@media (max-width: 560px) {
  .pf-hero { flex-direction: column; text-align: center; gap: 16px; }
  .pf-id { justify-items: center; flex-basis: auto; }
  .pf-pills, .pf-actions { justify-content: center; align-self: center; }
  .pf-bio { border-radius: 16px; }
  .pf-av .avatar.lg { width: 96px; height: 96px; }
  .pf-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pf-stat { padding: 12px 14px; }
  .pf-stat b { font-size: 22px; }
  .pf-badges { justify-content: center; gap: 10px; }
  .pf-badge { width: calc(25% - 8px); }
  .pf-badge .badge-medal { width: 48px; height: 48px; }
  .pf-slot-modal { grid-template-columns: 1fr; }
  .pf-slot-card { width: 180px; margin: 0 auto; }
  .pf-av-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ Classement ═════════════════════════════════════════════════ */
.lb-search { position: relative; max-width: 460px; width: 100%; }
.lb-results:not([hidden]) { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); display: grid; gap: 4px; padding: 6px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .25s var(--spring); max-height: 360px; overflow-y: auto; }
.lb-hit { text-decoration: none; border-color: transparent; padding: 8px 10px; }
.lb-hit:hover { background: var(--surface-2); }
.lb-hit .icon { color: var(--ink-3); }
.lb-none { padding: 14px; text-align: center; font-size: 14px; }
.lb-body { transition: opacity .2s; }
.lb-body.is-loading { opacity: .5; pointer-events: none; }

.lb-podium { align-items: end; max-width: 760px; width: 100%; margin: 0 auto; padding-top: 22px; }
.lb-step { position: relative; overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--spring), box-shadow .3s;
  animation: lb-rise .6s var(--spring) backwards; }
.lb-step:hover { transform: translateY(-5px); }
.lb-step.is-empty { min-height: 140px; border-style: dashed; background: transparent; box-shadow: none; animation: none; }
.lb-step-2 { animation-delay: .12s; --mc: #c8d0e0; }
.lb-step-1 { animation-delay: 0s; --mc: var(--r-legendary); overflow: visible; padding-bottom: 26px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--r-legendary) 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--r-legendary) 45%, transparent); }
.lb-step-3 { animation-delay: .22s; --mc: #e39b5b; }
@keyframes lb-rise { from { opacity: 0; transform: translateY(40px) scale(.95); } }
.lb-step::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mc); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.lb-crown { position: absolute; top: -18px; left: 50%; translate: -50% 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #2a1d00; background: linear-gradient(135deg, #ffe17a, #ffb21f); box-shadow: 0 8px 20px -6px #ffb21f, 0 0 0 4px var(--bg); animation: bob 1.6s var(--ease) infinite alternate; }
.lb-av { position: relative; }
.avatar.lb-md { width: 64px; height: 64px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--mc, var(--line-2)); }
.lb-step-1 .avatar.lg { box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--r-legendary), 0 20px 40px -14px var(--r-legendary); }
.lb-medal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display);
  background: var(--mc); color: #1b1f30; box-shadow: 0 0 0 3px var(--surface); position: relative; z-index: 1; margin-top: -20px; }
.lb-pseudo { font: 800 16px/1.15 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-step-1 .lb-pseudo { font-size: 19px; }
.lb-score { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.lb-score b { display: inline; font: 800 16px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.lb-step .lb-score b { font-size: 22px; }
.lb-step.is-me, .lb-row.is-me { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }

.lb-me-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; color: var(--ink-2); max-width: 760px; width: 100%; margin: 0 auto; box-shadow: none; }
.lb-me-note .icon { color: var(--coral); }
.lb-list { max-width: 760px; width: 100%; margin: 0 auto; }
.lb-row { text-decoration: none; color: inherit; transition: transform .2s var(--spring), background .2s; animation: page-in .4s var(--ease) backwards; }
.lb-row:hover { transform: translateX(4px); background: var(--surface-2); }
.lb-row.is-me { background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.lb-name { min-width: 0; }
.lb-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { color: var(--coral); font-weight: 700; font-size: 12px; }
@media (max-width: 560px) {
  .lb-podium { gap: 6px; }
  .lb-step { padding: 14px 4px; gap: 6px; }
  .lb-step-1 { padding-top: 26px; }
  .avatar.lb-md { width: 48px; height: 48px; }
  .lb-step-1 .avatar.lg { width: 68px; height: 68px; }
  .lb-pseudo { font-size: 13px; }
  .lb-step-1 .lb-pseudo { font-size: 15px; }
  .lb-step .lb-score b { font-size: 17px; }
  .lb-score { font-size: 11px; }
  .lb-row { padding: 10px; gap: 10px; }
  .lb-row .rank { width: 24px; font-size: 14px; }
}

/* ═══ Succès ═════════════════════════════════════════════════════ */
.rw-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.rw-summary::after { content: ''; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #ffc53133, transparent 70%); pointer-events: none; }
.rw-ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--citrine) calc(var(--p) * 1%), var(--surface-3) 0); }
.rw-ring b { font: 800 20px/1 var(--display); }
.rw-sum-main { display: grid; gap: 10px; flex: 1 1 240px; }
.rw-sum-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-pill-ready { color: #8a6200; background: #ffc53126; border-color: #ffc53166; }
[data-theme='dark'] .rw-pill-ready { color: var(--citrine); }

.rw-group-head { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.rw-group-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.rw-group-head .btn { margin-left: auto; }
.rw-count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--surface-3); font: 800 13px/1 var(--font); color: var(--ink-2); }
.rw-ach { transition: transform .25s var(--spring); }
.rw-ach:hover { transform: translateY(-2px); }
.rw-ach-main { display: grid; gap: 3px; min-width: 0; }
.rw-ach-name { font: 800 16px/1.2 var(--display); }
.rw-ach-desc { font-size: 13px; }
.rw-ach-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rw-ach-prog .progress { flex: 1; height: 8px; max-width: 320px; }
.rw-ach-prog small { font-size: 12px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-ach.ready { background: linear-gradient(120deg, color-mix(in srgb, var(--citrine) 12%, var(--surface)), var(--surface) 60%); }
.rw-ach.ready .medal { color: #2a1d00; background: linear-gradient(135deg, #fff0a8, var(--citrine)); animation: rw-glow 1.8s ease-in-out infinite; }
@keyframes rw-glow { 50% { box-shadow: 0 0 0 6px #ffc53133, 0 0 24px #ffc53166; transform: rotate(-8deg) scale(1.05); } }
.rw-ach.done { opacity: .82; }
.rw-ach.done .rw-ach-name { color: var(--ink-2); }
.ach-when { display: grid; justify-items: end; gap: 2px; }
.ach-when b { font: 800 15px/1 var(--display); color: var(--mint); }
.ach-when small { color: var(--ink-3); font-size: 12px; }
.ach-reward { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .rw-ach .btn { width: 100%; }
  .ach-when { justify-items: start; grid-auto-flow: column; gap: 10px; align-items: baseline; }
  .rw-ach > .ach-reward { justify-self: start; }
  .rw-summary { gap: 14px; }
  .rw-ring { width: 72px; height: 72px; }
}

/* ═══ Roue du jour ═══════════════════════════════════════════════ */
.rw-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(18px, 4vw, 44px); position: relative; overflow: hidden; }
.rw-stage::before { content: ''; position: absolute; left: -10%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #a35cff26, transparent 65%); }
.rw-wrap { width: min(420px, 78vw); }
.rw-wrap .wheel-pin { top: -18px; border-top-color: var(--coral); filter: drop-shadow(0 4px 8px #ff5a4e88); }
.rw-wheel { display: block; overflow: visible; will-change: transform; }
.rw-rim { fill: #1b1f30; stroke: #ffffff20; stroke-width: 1; }
.rw-seg { stroke: #0003; stroke-width: .4; }
.rw-seg-label { font-family: var(--display); letter-spacing: -.02em; pointer-events: none; }
.rw-lamp { fill: #fff; opacity: .9; animation: rw-lamp 1.2s steps(2, jump-none) infinite; }
.rw-lamp-b { fill: #ffe17a; animation-delay: .6s; }
@keyframes rw-lamp { 50% { opacity: .25; } }
.rw-hub { border: 0; padding: 0; color: var(--coral); z-index: 1; transition: transform .25s var(--spring), color .2s;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface) 60%, transparent), var(--shadow); }
.rw-hub:not(:disabled):hover { transform: scale(1.08) rotate(20deg); }
.rw-hub:disabled { cursor: default; color: var(--ink-3); }
.rw-wrap.is-ready .rw-hub { animation: rw-hub 1.6s ease-in-out infinite; color: var(--coral); }
@keyframes rw-hub { 50% { box-shadow: 0 0 0 10px #ff5a4e22, var(--shadow); } }
.rw-side { display: grid; gap: 16px; justify-items: start; position: relative; }
.rw-status { display: grid; gap: 2px; min-height: 30px; }
.rw-count-label { font-size: 13px; font-weight: 700; }
.rw-countdown { font: 800 clamp(34px, 5vw, 48px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rw-spin { min-width: 240px; }
.rw-result:empty { display: none; }
.rw-win { display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--wc) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--wc) 20%, var(--surface)), var(--surface)); animation: pop .5s var(--spring);
  box-shadow: 0 20px 50px -24px var(--wc); }
.rw-win b { font: 800 clamp(30px, 4vw, 40px)/1.05 var(--display); color: var(--ink); }
.rw-prizes { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-prize { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); }
.rw-prize::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--wc); }
@media (max-width: 860px) {
  .rw-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rw-side { justify-items: center; width: 100%; }
  .rw-prizes { justify-content: center; }
}
@media (max-width: 560px) {
  .rw-wrap { width: min(340px, 82vw); }
  .rw-spin { width: 100%; min-width: 0; }
}

/* ═══ Administration ═════════════════════════════════════════════ */
.adm-toolbar { box-shadow: none; }
.adm-toolbar .search { flex: 1 1 260px; }
.adm-count { font-size: 13px; font-weight: 700; padding: 0 6px; }
.adm-table-panel { overflow: hidden; transition: opacity .2s; }
.adm-table-panel.is-loading { opacity: .55; }
.adm-table td { vertical-align: middle; }
.adm-table tbody tr { transition: background .15s; }
.adm-table tbody tr:hover { background: var(--surface-2); }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tr.is-admin td:first-child { box-shadow: inset 3px 0 0 var(--violet); }
.adm-user { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.adm-user:hover b { color: var(--coral); }
.adm-user small { color: var(--ink-3); font-weight: 700; font-size: 12px; }
.adm-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.adm-mail { color: var(--ink-2); max-width: 240px; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.adm-num { font-variant-numeric: tabular-nums; }
.adm-actions .row { gap: 6px; justify-content: flex-end; }
.adm-grant { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-chips { gap: 6px; }
.adm-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-amt.is-pos { color: var(--mint); }
.adm-amt.is-neg { color: #ff6b6b; }
[data-theme='light'] .adm-amt.is-pos { color: #0f9d6e; }
[data-theme='light'] .adm-amt.is-neg { color: #d83b3b; }
.adm-reason { white-space: normal !important; min-width: 180px; }
.adm-ledger { display: grid; gap: 10px; }

@media (max-width: 760px) {
  .adm-grant { grid-template-columns: 1fr; }
  /* Le tableau devient une pile de fiches lisibles sur mobile */
  .adm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tbody { display: grid; gap: 0; }
  .adm-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .adm-table tbody tr:last-child { border-bottom: 0; }
  .adm-table td { border: 0; padding: 4px 0; white-space: normal; display: grid; gap: 1px; min-width: 0; }
  .adm-table td[data-label]::before { content: attr(data-label); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .adm-table td:first-child, .adm-table td[data-label='E-mail'], .adm-table .adm-actions, .adm-ledger-table td[data-label='Motif'] { grid-column: 1 / -1; }
  .adm-table td:first-child::before { display: none; }
  .adm-table tr.is-admin td:first-child { box-shadow: none; }
  .adm-table tr.is-admin { box-shadow: inset 3px 0 0 var(--violet); }
  .adm-mail { max-width: 100%; }
  .adm-actions .row { justify-content: flex-start; flex-wrap: wrap; padding-top: 6px; }
  .adm-actions .btn { flex: 1 1 auto; }
  .adm-ledger-table tr { grid-template-columns: 1fr 1fr 1fr; }
  .adm-ledger-table td[data-label='Date'] { grid-column: 1 / -1; }
  .adm-ledger-table td:first-child::before { display: block; }
}
@media (max-width: 560px) {
  .adm-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .adm-stat { padding: 12px 14px; }
  .adm-stat b { font-size: 22px; }
}
@media (min-width: 761px) and (max-width: 1440px) {
  .adm-act .adm-lbl { display: none; }
  .adm-act { width: 34px; padding: 0; }
}
@media (min-width: 761px) and (max-width: 1320px) {
  .adm-table .adm-opt { display: none; }
  .adm-table th, .adm-table td { padding: 10px 9px; }
  .adm-mail { max-width: 190px; }
}
/* Boutique */
.shop-wallet { display: grid; gap: 8px; min-width: 185px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.shop-wallet span { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.shop-wallet span:first-child { color: var(--citrine); }
.shop-wallet b { color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-section { display: grid; gap: 16px; margin-bottom: 18px; }
.shop-section-head h2 { margin: 3px 0 0; }
.shop-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.shop-product { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; }
.shop-product-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--citrine); background: color-mix(in srgb, var(--citrine) 12%, var(--surface)); }
.shop-product-copy { min-width: 0; }
.shop-product-copy h3 { margin: 0 0 4px; font-size: 15px; }
.shop-product-copy p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.shop-stock { display: block; margin-top: 6px; color: var(--mint); font-weight: 800; }
.shop-product-action { display: grid; justify-items: stretch; gap: 6px; }
.shop-product-capacity { border-color: color-mix(in srgb, var(--mint) 34%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--mint) 7%, var(--surface)), var(--surface)); }
.shop-product-capacity .shop-product-icon { color: var(--mint); background: color-mix(in srgb, var(--mint) 13%, var(--surface)); }
.shop-capacity-meta { display: grid; gap: 6px; margin-top: 9px; color: var(--mint); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-capacity-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.shop-capacity-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--sky)); transition: width .35s var(--ease); }
@media (max-width: 560px) {
  .shop-wallet { width: 100%; grid-template-columns: 1fr 1fr; align-content: center; }
  .shop-product { grid-template-columns: 38px minmax(0,1fr); }
  .shop-product-icon { width: 38px; height: 38px; }
  .shop-product-action { grid-column: 2; display: flex; flex-wrap: wrap; }
}
