:root {
  color-scheme: dark;
  --bg: #06060a;
  --surface: rgba(255,255,255,.025);
  --surface-2: rgba(255,255,255,.045);
  --border: rgba(255,255,255,.08);
  --border-hi: rgba(255,255,255,.15);
  --fg: #f5f6f8;
  --fg-2: #b4b4bc;
  --fg-3: #92929e;
  --red: #910c00;
  --red-hi: #b0130a;
  --red-deep: #5a0800;
  --red-soft: rgba(145,12,0,.18);
  --red-accent: #f28073;
  --green: #22c55e;
  --green-soft: rgba(34,197,94,.14);
  --amber: #f5b14c;
  --amber-soft: rgba(245,177,76,.14);
  --danger: #ff6b5f;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: linear-gradient(118deg,#180907 0,var(--bg) 34%,var(--bg) 79%,#090920 100%) fixed; color: var(--fg); font-family: Inter,system-ui,sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; font-size: 13px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.muted { color: var(--fg-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre de navigation */
.nav { position: sticky; top: 16px; z-index: 20; width: min(1240px,calc(100% - 32px)); min-height: 50px; margin: 16px auto 0; padding: 7px 10px 7px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: 100px; background: rgba(10,10,18,.86); backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; font-weight: 500; white-space: nowrap; }
.brand img { display: block; width: 30px; height: 30px; }
.brand strong { font-weight: 700; }
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; --nav-wave-base: #8a8580; }
.nav-links a { position: relative; padding: 6px 14px; color: var(--fg-2); border: 1px solid transparent; border-radius: 100px; font-size: 12px; font-weight: 600; transition: color .25s, text-shadow .25s, background .25s; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.35); }
.nav-links a.active { color: #ffe9c7; background: radial-gradient(ellipse at 50% 60%,rgba(255,176,102,.16),rgba(145,12,0,.12) 55%,transparent 75%); text-shadow: 0 0 12px rgba(255,190,120,.45); }
.nav-links a .count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px; border-radius: 100px; background: var(--red-hi); color: #fff; font-size: 10px; }
.nav-wire { position: absolute; left: -28px; right: -28px; top: calc(100% - 11px); height: 32px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent); mask-image: linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent); }
.nav-wire svg { display: block; width: 100%; height: 32px; overflow: visible; }
.nav-wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-wire-base { stroke-width: 1; }
.nav-wire-glow { stroke-width: 4; opacity: .55; }
.nav-wire-fringe-a, .nav-wire-fringe-b { stroke-width: 1.2; opacity: .8; mix-blend-mode: screen; }
.nav-wire-core { stroke-width: 1.4; }
.user-menu { position: relative; justify-self: end; }
.user-pill { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border: 1px solid var(--border); border-radius: 100px; font-size: 12px; background: var(--surface); color: var(--fg-2); cursor: pointer; }
.user-pill:hover, .user-pill[aria-expanded="true"] { border-color: var(--border-hi); color: var(--fg); }
.user-pill img { width: 26px; height: 26px; border-radius: 50%; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border: 1px solid var(--border-hi); border-radius: 14px; background: #0d0c13; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head strong { display: block; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--fg-2); text-align: left; }
.menu button:hover { background: var(--surface-2); color: var(--fg); }

main { width: min(1120px,calc(100% - 48px)); margin: 18px auto 0; padding-bottom: 48px; }
.page-heading { display: flex; align-items: center; gap: 14px; padding: 26px 0 22px; }
.heading-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(145,12,0,.4); border-radius: 12px; background: var(--red-soft); color: var(--red-accent); font-size: 17px; }
.page-heading h1 { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 600; }
.page-heading p { margin: 4px 0 0; font-size: 12px; color: var(--fg-3); }
.page-heading .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--fg-3); }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 7px 14px; border: 1px solid var(--border-hi); border-radius: 10px; background: var(--surface-2); color: var(--fg); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, opacity .2s; }
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(180deg,var(--red-hi),var(--red)); border-color: rgba(255,90,70,.45); color: #fff; box-shadow: 0 6px 20px rgba(145,12,0,.25); }
.btn.primary:hover { background: linear-gradient(180deg,#c9190e,var(--red-hi)); }
.btn.danger { color: var(--danger); border-color: rgba(255,107,95,.35); background: rgba(255,107,95,.06); }
.btn.danger:hover { background: rgba(255,107,95,.14); }
.btn.ghost { background: none; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn.icon { width: 34px; padding: 0; }
.btn.small { min-height: 28px; padding: 4px 10px; font-size: 11px; border-radius: 8px; }
.btn.small.icon { width: 28px; padding: 0; }
.btn.discord { min-height: 44px; padding: 10px 22px; font-size: 14px; background: #5865f2; border-color: #6d78f5; color: #fff; box-shadow: 0 10px 30px rgba(88,101,242,.3); }
.btn.discord:hover { background: #4752c4; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--fg-2); }
.field small { color: var(--fg-3); font-size: 11.5px; line-height: 1.45; }
.input, select.input, textarea.input { width: 100%; min-height: 36px; padding: 8px 11px; border: 1px solid var(--border-hi); border-radius: 10px; background: rgba(0,0,0,.35); color: var(--fg); outline: none; }
.input:focus { border-color: rgba(242,128,115,.65); box-shadow: 0 0 0 3px rgba(145,12,0,.25); }
.input.mono { font-family: var(--mono); font-size: 12px; }
.input-suffix { display: flex; align-items: stretch; border: 1px solid var(--border-hi); border-radius: 10px; background: rgba(0,0,0,.35); overflow: hidden; }
.input-suffix:focus-within { border-color: rgba(242,128,115,.65); box-shadow: 0 0 0 3px rgba(145,12,0,.25); }
.input-suffix .input { border: 0; border-radius: 0; background: none; box-shadow: none; }
.input-suffix span { display: flex; align-items: center; padding: 0 12px; color: var(--fg-3); background: var(--surface-2); border-left: 1px solid var(--border); white-space: nowrap; }
.kind-picker { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.kind-picker label { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 1px solid var(--border-hi); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--fg-2); text-align: center; }
.kind-picker label i { font-size: 18px; }
.kind-picker input { position: absolute; opacity: 0; pointer-events: none; }
.kind-picker label:has(input:checked) { border-color: rgba(242,128,115,.7); background: var(--red-soft); color: #fff; }
.kind-picker label:has(input:focus-visible) { outline: 2px solid var(--red-accent); outline-offset: 2px; }
.hint { display: flex; gap: 10px; padding: 10px 12px; margin: -2px 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg-2); font-size: 12px; }
.hint i { color: var(--red-accent); margin-top: 2px; }
.hint code, .program code, .card code { font-family: var(--mono); font-size: 11.5px; }
.rule { margin: -4px 0 0; font-size: 11.5px; }

/* Jauges d'utilisation */
.usage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.meter { padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--fg-3); }
.meter-top b { font-size: 12px; text-transform: none; color: var(--fg); font-weight: 600; }
.bar { height: 6px; margin-top: 10px; border-radius: 100px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,var(--red),var(--red-accent)); transition: width .5s; }
.bar.warn > i { background: linear-gradient(90deg,#b8741b,var(--amber)); }
.bar.full > i { background: linear-gradient(90deg,#c0150a,#ff5a4f); }

/* Cartes */
.card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 46px 24px; text-align: center; color: var(--fg-3); }
.empty i.big { font-size: 28px; color: var(--red-accent); opacity: .8; }
.empty h2 { color: var(--fg); }
.programs { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 14px; }
.program { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.program-head { display: flex; align-items: flex-start; gap: 12px; }
.kind-badge { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; border: 1px solid var(--border-hi); background: var(--surface-2); font-size: 16px; color: var(--fg-2); }
.kind-badge.python { color: #ffd862; }
.kind-badge.node { color: #7fd27a; }
.kind-badge.site { color: #7cc4ff; }
.kind-badge.custom { color: #d6b4ff; }
.program-title { min-width: 0; flex: 1; }
.program-title h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-title p { margin: 2px 0 0; font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid var(--border-hi); color: var(--fg-2); background: rgba(255,255,255,.03); }
.state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.state.en_marche { color: #9df0b9; border-color: rgba(34,197,94,.4); background: var(--green-soft); }
.state.en_marche .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
.state.demarrage, .state.redemarrage, .state.arret { color: #ffd59a; border-color: rgba(245,177,76,.4); background: var(--amber-soft); }
.state.demarrage .dot, .state.redemarrage .dot, .state.arret .dot { background: var(--amber); }
.state.echec { color: #ffb4ac; border-color: rgba(255,107,95,.45); background: rgba(255,107,95,.1); }
.state.echec .dot { background: var(--danger); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.command { display: block; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.35); color: #ffd9cf; font-family: var(--mono); font-size: 11.5px; overflow-x: auto; white-space: nowrap; }
.program-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--fg-3); }
.program-meta span, .program-meta a { display: inline-flex; align-items: center; gap: 6px; }
.program-meta a { color: #9fd0ff; }
.program-meta a:hover { text-decoration: underline; }
.program-meta .warn { color: var(--amber); }
.program-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.program-actions .end { margin-left: auto; display: flex; gap: 6px; }

/* Fichiers */
.files-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; flex: 1; font-size: 13px; }
.crumbs button { padding: 4px 7px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); cursor: pointer; }
.crumbs button:hover { background: var(--surface-2); color: var(--fg); }
.crumbs button:last-child { color: var(--fg); font-weight: 600; }
.crumbs .sep { color: var(--fg-3); font-size: 10px; }
.files-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.selection-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--red-soft); font-size: 12px; }
.selection-bar .grow { flex: 1; }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th { padding: 9px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--border); }
.file-table td { padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.file-table tr:last-child td { border-bottom: 0; }
.file-table tbody tr:hover { background: rgba(255,255,255,.025); }
.file-table tr.selected { background: rgba(145,12,0,.12); }
.file-table .check { width: 36px; }
.file-table .size, .file-table .date { width: 130px; color: var(--fg-3); white-space: nowrap; }
.file-table .row-actions { width: 120px; text-align: right; white-space: nowrap; }
.file-table .row-actions .btn { opacity: 0; }
.file-table tr:hover .row-actions .btn, .file-table tr:focus-within .row-actions .btn { opacity: 1; }
.file-name { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--fg); cursor: pointer; text-align: left; }
.file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:hover span { text-decoration: underline; }
.file-name i { width: 16px; text-align: center; color: var(--fg-3); }
.file-name i.fa-folder { color: #f5c26b; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--red-hi); cursor: pointer; }
.files-card { position: relative; overflow: hidden; }
.dropzone { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border: 2px dashed rgba(242,128,115,.7); border-radius: 16px; background: rgba(20,6,8,.88); font-size: 15px; font-weight: 600; pointer-events: none; }
.uploads { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: min(360px,calc(100% - 36px)); max-height: 50vh; overflow: auto; padding: 12px; border: 1px solid var(--border-hi); border-radius: 14px; background: #0d0c13; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.uploads h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 12px; }
.upload-item { padding: 6px 0; font-size: 12px; }
.upload-item .name { display: flex; justify-content: space-between; gap: 8px; }
.upload-item .name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item.error .name span:last-child { color: var(--danger); }
.upload-item.done .name span:last-child { color: var(--green); }

/* Fenêtres */
dialog { width: min(560px,calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-hi); border-radius: 18px; background: #0d0c13; color: var(--fg); box-shadow: 0 30px 80px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(3,3,6,.72); backdrop-filter: blur(4px); }
dialog.wide { width: min(980px,calc(100% - 32px)); }
.dialog-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-body { padding: 18px; overflow: auto; max-height: calc(100vh - 190px); }
.dialog-body p { margin: 0 0 12px; color: var(--fg-2); }
.dialog-body.flush { padding: 0; max-height: none; overflow: hidden; }
[data-run] { display: contents; }
.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.dialog-foot .left { margin-right: auto; display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: 12px; }
.logs { margin: 0; min-height: 320px; max-height: calc(100vh - 220px); overflow: auto; padding: 14px; border-radius: 0; background: #050508; color: #d8d8e0; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.editor { display: block; width: 100%; height: calc(100vh - 230px); min-height: 300px; margin: 0; padding: 14px; border: 0; background: #050508; color: #e8e8ee; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; resize: none; outline: none; tab-size: 4; white-space: pre; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-2); cursor: pointer; }

/* Comptes (admin) */
.requests { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 12px; }
.request { display: flex; align-items: center; gap: 12px; padding: 14px; }
.request .who { flex: 1; min-width: 0; }
.request .who strong, .request .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request .who span { color: var(--fg-3); font-size: 12px; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--surface-2); }
.avatar.small { width: 28px; height: 28px; flex-basis: 28px; }
.table-wrap { overflow-x: auto; }
.accounts { width: 100%; border-collapse: collapse; min-width: 760px; }
.accounts th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--border); }
.accounts td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.accounts tr:last-child td { border-bottom: 0; }
.accounts .person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.accounts .person div { min-width: 0; }
.accounts .person strong, .accounts .person span { display: block; white-space: nowrap; }
.accounts .person span { color: var(--fg-3); font-size: 11.5px; }
.accounts .acts { text-align: right; white-space: nowrap; }
.mini-bar { width: 110px; height: 5px; margin-top: 5px; border-radius: 100px; background: rgba(255,255,255,.07); overflow: hidden; }
.mini-bar > i { display: block; height: 100%; width: 0; background: var(--red-accent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 10.5px; font-weight: 700; border: 1px solid var(--border-hi); border-radius: 100px; background: rgba(255,255,255,.03); white-space: nowrap; }
.badge.actif { color: #9df0b9; border-color: rgba(34,197,94,.4); }
.badge.attente { color: #ffd59a; border-color: rgba(245,177,76,.4); }
.badge.suspendu, .badge.refuse { color: #ffb4ac; border-color: rgba(255,107,95,.45); }
.badge.admin { color: #ffe9c7; border-color: rgba(255,176,102,.4); background: var(--red-soft); }
.limits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

/* Écrans d'accueil */
.welcome { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.welcome-card { width: min(460px,100%); padding: 34px 30px 28px; border: 1px solid var(--border); border-radius: 22px; background: rgba(10,10,18,.8); backdrop-filter: blur(20px); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.welcome-card img.logo { width: 72px; height: 72px; }
.welcome-card h1 { margin: 14px 0 6px; font-size: 26px; font-weight: 600; }
.welcome-card h1 em { font-family: "Instrument Serif",serif; font-weight: 400; font-style: italic; color: var(--red-accent); }
.welcome-card p { margin: 0 0 22px; color: var(--fg-2); }
.welcome-card .foot { margin-top: 18px; font-size: 12px; color: var(--fg-3); }
.welcome-card .foot a { color: var(--fg-2); text-decoration: underline; }
.welcome-card .points { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; text-align: left; color: var(--fg-2); }
.welcome-card .points li { display: flex; gap: 10px; }
.welcome-card .points i { width: 16px; margin-top: 3px; color: var(--red-accent); }
.alert { margin: 0 0 18px; padding: 10px 12px; border: 1px solid rgba(255,107,95,.4); border-radius: 10px; background: rgba(255,107,95,.08); color: #ffc9c2; font-size: 12px; text-align: left; }
.alert.info { border-color: rgba(245,177,76,.4); background: var(--amber-soft); color: #ffe1b0; }
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--fg-3); font-size: 18px; }

/* Notifications */
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: grid; gap: 8px; transform: translateX(-50%); width: min(460px,calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--border-hi); border-radius: 12px; background: #121119; box-shadow: 0 14px 40px rgba(0,0,0,.55); font-size: 12.5px; pointer-events: auto; animation: toast-in .25s ease-out; }
.toast i { margin-top: 2px; }
.toast.ok i { color: var(--green); }
.toast.error { border-color: rgba(255,107,95,.5); }
.toast.error i { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; border-radius: 18px; gap: 9px; padding: 9px 12px; top: 8px; margin-top: 8px; }
  .nav-links { grid-row: 2; grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--border); padding-top: 8px; }
  .user-pill span { display: none; }
  main { width: calc(100% - 24px); }
  .page-heading { flex-wrap: wrap; }
  .page-heading .actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  .usage { grid-template-columns: 1fr; }
  .programs { grid-template-columns: 1fr; }
  .kind-picker { grid-template-columns: repeat(2,1fr); }
  .file-table .date { display: none; }
  .file-table .row-actions .btn { opacity: 1; }
  .limits-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
