﻿/* DofBot Pro website: the app's look (UI/Theme.cs colors, cards, buttons, lists). */
:root {
  --bg: #080b10; --surface: #10151c; --raised: #191f28; --border: #28303c; --line: #26303a;
  --text: #e9ecf0; --muted: #8e96a0;
  --green: #22d692; --pink: #e8295f; --orange: #f5a524; --cyan: #12b5cb;
  --title: "Bahnschrift SemiBold SemiConden", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --strong: #fff;
  --k0a0c12be: #0a0c12be;
  --k0b0f15: #0b0f15;
  --k0c1016: #0c1016;
  --k0c1016c8: #0c1016c8;
  --k0c1016e6: #0c1016e6;
  --k0c1a16: #0c1a16;
  --k0f2a22: #0f2a22;
  --k120c18: #120c18;
  --k121821: #121821;
  --k12342a: #12342a;
  --k13181f: #13181f;
  --k131920: #131920;
  --k141a21: #141a21;
  --k141a22: #141a22;
  --k151a21: #151a21;
  --k161c24: #161c24;
  --k181d26: #181d26;
  --k18202a: #18202a;
  --k1b222b: #1b222b;
  --k1c232d: #1c232d;
  --k1d3a30: #1d3a30;
  --k1e2630: #1e2630;
  --k202632: #202632;
  --k242c38: #242c38;
  --k262c38: #262c38;
  --k262d38: #262d38;
  --k2a1019: #2a1019;
  --k2c3442: #2c3442;
  --k2f3744: #2f3744;
  --k323848: #323848;
  --k3a1220: #3a1220;
  --k3a4452: #3a4452;
  --k3c4452: #3c4452;
  --k46505e: #46505e;
  --k474747: #474747;
  --k4a5260: #4a5260;
  --kbfeff6: #bfeff6;
  --kffc7d5: #ffc7d5;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Day mode: the same page with the light colors (as the app's light theme). */
:root[data-theme="light"] {
  --bg: #e8ebf0;
  --surface: #eff4fb;
  --raised: #f7fdff;
  --border: #cad2de;
  --line: #cbd5df;
  --text: #0f1216;
  --muted: #606872;
  --green: #0ca068; --pink: #d61c50; --orange: #d68200; --cyan: #0090a6;
  --strong: #0c0f14;
  --k0a0c12be: #eaecf2be;
  --k0b0f15: #eaeef4;
  --k0c1016: #ebeff5;
  --k0c1016c8: #ebeff5c8;
  --k0c1016e6: #ebeff5e6;
  --k0c1a16: #ebf9f5;
  --k0f2a22: #edffff;
  --k120c18: #f1ebf7;
  --k121821: #f0f6ff;
  --k12342a: #efffff;
  --k13181f: #f2f7fe;
  --k131920: #f1f7fe;
  --k141a21: #f2f8ff;
  --k141a22: #f2f8ff;
  --k151a21: #f3f8ff;
  --k161c24: #f4faff;
  --k181d26: #f6fbff;
  --k18202a: #f6feff;
  --k1b222b: #f9ffff;
  --k1c232d: #f9ffff;
  --k1d3a30: #c8e5db;
  --k1e2630: #fbffff;
  --k202632: #fdffff;
  --k242c38: #cfd7e3;
  --k262c38: #cfd5e1;
  --k262d38: #ced5e0;
  --k2a1019: #ffeef7;
  --k2c3442: #c4ccda;
  --k2f3744: #c1c9d6;
  --k323848: #bec4d4;
  --k3a1220: #ffeffd;
  --k3a4452: #b1bbc9;
  --k3c4452: #b2bac8;
  --k46505e: #a3adbb;
  --k474747: #bababa;
  --k4a5260: #a1a9b7;
  --kbfeff6: #002b32;
  --kffc7d5: #410917;
  color-scheme: light;
}
:root { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--body); }
a { color: var(--green); }
h1 { margin: 0; font: 26px var(--title); letter-spacing: .3px; }
h2 { margin: 0 0 10px; font: 15px var(--title); letter-spacing: .4px; color: var(--muted); }
.subtitle { margin: 4px 0 16px; color: var(--muted); font-size: 12.5px; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.green-t { color: var(--green); } .pink-t { color: var(--pink); } .orange-t { color: var(--orange); } .cyan-t { color: var(--cyan); }

/* Header: logo, day / night, the game, the account and character pickers (as the app's). */
:root { --top: 66px; --rail: 84px; --rail-wide: 232px; }
header.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: var(--top); box-sizing: border-box; padding: 0 18px;
  background: linear-gradient(90deg, var(--k0c1a16), var(--k120c18) 60%, var(--k0c1016)); border-bottom: 1px solid var(--k1d3a30); }
header.top .logo { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--green); font: 19px var(--title); text-decoration: none; white-space: nowrap; }
header.top .logo img { height: 36px; width: auto; }
header.top .spacer { flex: 1; }

/* The menu on the left, as the app's: narrow (icons, their names under them) or wide (icon and name side by side, the pages
   moved over); SETTINGS, LOG OUT and HELP at its bottom. */
aside.rail { position: fixed; top: var(--top); left: 0; bottom: 0; z-index: 40; width: var(--rail); box-sizing: border-box; display: flex; flex-direction: column;
  padding: 8px 0 34px; background: var(--k0b0f15); border-right: 1px solid var(--line); overflow: hidden; transition: width .18s ease, box-shadow .18s ease; }
.rail .ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-toggle { display: flex; align-items: center; justify-content: center; height: 46px; margin: 0 8px 6px; border: 0; border-radius: 10px; background: none;
  color: var(--text); font: 12px var(--title); letter-spacing: .5px; cursor: pointer; white-space: nowrap; }
.rail-toggle:hover { background: var(--k1e2630); }
.rail-toggle .when-wide { display: none; align-items: center; gap: 6px; }
.rail-toggle .when-wide .ic, .rail-toggle .when-phone .ic { width: 18px; height: 18px; }
.rail-toggle .when-phone { display: none; align-items: center; gap: 6px; }
/* The menu button of a phone's header (the menu is hidden there). */
.menubtn { display: none; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none;
  color: var(--text); cursor: pointer; }
.menubtn:hover { background: var(--k1e2630); }
.menubtn .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* A short window (as the app's, 2026-11-26): the pages scroll between the top button and SETTINGS / LOG OUT / HELP, which stay
   at the bottom; shorter still, the whole menu scrolls. */
.rail-pages { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow: hidden auto; scrollbar-width: thin;
  scrollbar-color: var(--k1e2630) transparent; }
.rail-pages::-webkit-scrollbar { width: 6px; }
.rail-pages::-webkit-scrollbar-thumb { background: var(--k1e2630); border-radius: 3px; }
@media (max-height: 520px) {
  aside.rail { overflow: hidden auto; }
  .rail-pages { flex: none; overflow: visible; }
}
/* A name too long under its icon has a short one there (SESSIONS); the whole one when the menu is wide. */
.rail .item .short { display: none; }
.rail .item.has-short .long { display: none; }
.rail .item.has-short .short { display: block; }
html.rail-wide .rail .item.has-short .long { display: block; }
html.rail-wide .rail .item.has-short .short { display: none; }
.rail-shade { display: none; }
/* Narrow, each name stays inside its tile (the user, 2026-12-01): the tiles a little wider inside, the name a block of its
   own, and a name whose longest word is still too wide drawn smaller by app.js (fitRail). */
.rail .item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 58px; margin: 0 6px;
  padding: 4px 1px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 10px var(--title); letter-spacing: .3px; text-align: center;
  text-decoration: none; cursor: pointer; }
.rail .item span { display: block; max-width: 100%; overflow: hidden; line-height: 1.1; }
.rail .item:hover { background: var(--k1e2630); }
.rail .item.on { background: var(--k12342a); color: var(--green); }
.rail .item.on::before { content: ""; position: absolute; left: -6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--green); }
.rail .item.danger { color: var(--pink); }
.rail-bottom { flex: none; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
html.rail-wide aside.rail { width: var(--rail-wide); }
html.rail-wide .rail-toggle { justify-content: flex-start; padding-left: 14px; }
html.rail-wide .rail-toggle .when-narrow { display: none; }
html.rail-wide .rail-toggle .when-wide { display: inline-flex; }
html.rail-wide .rail .item { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 44px; padding: 0 14px; font-size: 13px; text-align: left; }
html.rail-wide .rail .item span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.rail-wide .rail .item.danger { justify-content: center; margin: 4px 12px; min-height: 40px; background: linear-gradient(#f2668d, var(--pink)); color: #ffffff; }
html.rail-wide .rail .item.danger:hover { filter: brightness(1.08); }
main.page, footer.status { margin-left: var(--rail); transition: margin-left .18s ease; }
html.rail-wide main.page, html.rail-wide footer.status { margin-left: var(--rail-wide); }
dialog.help { max-width: 440px; color: var(--text); border: 1px solid var(--border); }
dialog.help::backdrop { background: #0008; }
dialog.help p { color: var(--muted); }
dialog.help form { display: flex; justify-content: flex-end; }
#character { width: 220px; flex: none; }
#account { width: 170px; flex: none; }
#account[hidden] { display: none; }
.gamestate { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--k121821); color: var(--muted); font: 12px var(--title); letter-spacing: .5px; white-space: nowrap; }
.gamestate::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--k4a5260); }
.gamestate.live { color: var(--green); border-color: #22d69266; background: var(--k12342a); }
.gamestate.live::before { background: var(--green); box-shadow: 0 0 0 3px #22d69233; animation: pulse 1.6s ease-in-out infinite; }
.gamestate.closed { color: #ff9db6; border-color: #e8295f55; background: var(--k2a1019); }
.gamestate.closed::before { background: var(--pink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #22d69200; } }

/* Scrollbars as the app's: thin and dark. */
* { scrollbar-width: thin; scrollbar-color: var(--k3a4452) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--k2f3744); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--k46505e); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
main.page { padding: 18px 22px 60px; }
footer.status { position: fixed; left: 0; right: 0; bottom: 0; padding: 6px 18px; background: var(--k0b0f15); border-top: 1px solid var(--border);
  color: var(--muted); font-size: 12px; }
footer.status.live::before { content: "● "; color: var(--green); }

/* Fields and buttons. */
.field { height: 38px; padding: 0 12px; border: 1px solid var(--k262d38); border-radius: 10px; background: var(--k151a21); color: var(--text); font: 13.5px var(--body); outline: none; }
.field:hover { border-color: var(--k46505e); }
.field:focus { border-color: var(--green); box-shadow: 0 0 0 3px #22d69233; }
select.field { padding-right: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 9px;
  font: 13px var(--title); letter-spacing: .4px; cursor: pointer; text-decoration: none; color: #08100d; white-space: nowrap; }
.btn.small { height: 32px; padding: 0 12px; }
.btn.wide { width: 100%; height: 42px; }
.btn.green { background: linear-gradient(#5ef3bd, var(--green)); }
.btn.pink { background: linear-gradient(#f2668d, var(--pink)); }
.btn.orange { background: linear-gradient(#f8c461, var(--orange)); }
.btn.cyan { background: linear-gradient(#4dd3e4, var(--cyan)); }
.btn.neutral { background: linear-gradient(var(--k1b222b), var(--k141a21)); border: 1px solid var(--border); color: var(--text); }
.btn.neutral.on { background: linear-gradient(#f2668d, var(--pink)); color: #ffffff; border-color: transparent; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row.spread { justify-content: space-between; }
.gap { height: 14px; }

/* Cards: the app's panels, with their colored top line. */
.card { position: relative; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px; border-radius: 2px; background: var(--accent, transparent); }
.card.green { --accent: var(--green); } .card.pink { --accent: var(--pink); } .card.orange { --accent: var(--orange); } .card.cyan { --accent: var(--cyan); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* Stat cards: value, label, icon. */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { position: relative; height: 84px; padding: 12px 14px; border: 1px solid; border-radius: 12px; overflow: hidden;
  border-color: color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--k0c1016)), var(--k0c1016) 70%); }
.stat b { display: block; font: 25px var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { position: absolute; left: 16px; bottom: 11px; color: var(--c); font: 11.5px var(--title); letter-spacing: .5px; }
.stat i { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 26px; opacity: .8; }
.stat.green { --c: var(--green); } .stat.pink { --c: var(--pink); } .stat.orange { --c: var(--orange); } .stat.cyan { --c: var(--cyan); } .stat.neutral { --c: var(--muted); }

/* Picture tiles (jobs, marketplaces). */
.tiles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tile { width: 96px; height: 82px; padding: 8px 4px 0; border: 1px solid var(--k262d38); border-radius: 10px; background: var(--k13181f); cursor: pointer; text-align: center; position: relative; }
.tile:hover { border-color: var(--k46505e); background: var(--k1c232d); }
.tile.on { border-color: var(--green); background: var(--k12342a); box-shadow: 0 0 0 3px #22d69230; }
.tile img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.tile div { margin-top: 4px; color: var(--muted); font: 11px var(--title); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.on div { color: var(--green); }
.tile .badge { position: absolute; left: 50%; top: 32px; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--k0c1016e6); font: 11px var(--title); }
.tile.on .badge { background: var(--green); color: #08100d; }

/* Lists. */
.list { width: 100%; border-collapse: collapse; }
.list th { position: sticky; top: 0; padding: 8px 10px; background: var(--k141a22); color: var(--muted); font: 12px var(--body); text-align: left; white-space: nowrap; }
.list td { padding: 7px 10px; border-top: 1px solid var(--k161c24); white-space: nowrap; }
.list tr:nth-child(even) td { background: var(--k121821); }
.list tr:hover td { background: var(--k18202a); }
.list td.n, .list th.n { text-align: right; font-variant-numeric: tabular-nums; }
.list .item { display: flex; align-items: center; gap: 10px; }
.list .item img { width: 32px; height: 32px; object-fit: contain; }
.scroll { overflow: auto; max-height: 62vh; border-radius: 8px; }

/* Item grid (the inventory). */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 58vh; overflow: auto; padding: 2px; }
.cell { position: relative; height: 108px; padding: 8px 4px; border: 1px solid var(--k262d38); border-radius: 10px; background: var(--k13181f); text-align: center; }
.cell img { width: 52px; height: 52px; object-fit: contain; }
.cell .q { position: absolute; left: 6px; top: 5px; font: 12px var(--title); text-shadow: 0 0 3px #000; }
.cell .name { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--k121821); }
.coin { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd65c, #d68412); color: #784606; font: 11px var(--title); }
.kamas { display: flex; align-items: center; gap: 8px; font: 19px var(--title); }

/* Pager: ‹ 1 … 4 5 6 … 100 ›. */
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.pager .btn { min-width: 36px; padding: 0 10px; }

/* Forms. */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; color: var(--muted); font: 11.5px var(--title); letter-spacing: .5px; }
.inline-field { display: inline-grid; gap: 4px; color: var(--muted); font: 11px var(--title); letter-spacing: .5px; }
.alert { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e8295f80; border-radius: 9px; background: #e8295f1f; color: var(--kffc7d5); }
.note { padding: 10px 12px; border: 1px solid #12b5cb66; border-radius: 9px; background: #12b5cb14; color: var(--kbfeff6); }
.toast { position: fixed; right: 18px; bottom: 44px; z-index: 99; padding: 10px 14px; border-radius: 9px; background: var(--k12342a); border: 1px solid var(--green); }
.toast.bad { background: var(--k3a1220); border-color: var(--pink); }

/* Login and register. */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at 30% 20%, var(--k0f2a22), var(--bg) 55%); }
.auth-card { width: min(420px, 100%); padding: 28px; }
.auth-card .logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--green); font: 20px var(--title); text-decoration: none; }
.auth-card .logo img { height: 72px; width: auto; }
.auth-card .switch { margin: 16px 0 0; color: var(--muted); text-align: center; }
.auth-card .switch.legal { margin-top: 12px; font-size: 12px; line-height: 1.5; }

/* Steps (builder). */
.step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--k131920); }
.step .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--k1e2630); font: 14px var(--title); }
.step .title { font: 15px var(--title); }
.step input { width: 90px; }
iframe.map { width: 100%; height: 62vh; border: 0; border-radius: 10px; background: var(--k474747); }

.levelbadge { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--green); color: #08100d; font: 12px var(--title); }

/* The inventory's tiles, as the app's: the quantity in the corner in the card's color. */
.cell { --c: var(--green); }
.cell .q { left: auto; right: 6px; top: 6px; padding: 1px 6px; border-radius: 7px; background: color-mix(in srgb, var(--c) 22%, var(--k0c1016)); color: var(--c); text-shadow: none; }
.items.orange .cell { --c: var(--orange); } .items.cyan .cell { --c: var(--cyan); }
.podsbar { width: 220px; height: 8px; border-radius: 4px; background: var(--k242c38); overflow: hidden; margin-top: 4px; }
.podsbar div { height: 100%; border-radius: 4px; }


/* The HUD, as the app's dashboard bar (UI/HudBar.cs): 990 px wide in the middle, at the bottom of the dashboard. */
.hudwrap { margin-top: 16px; display: flex; justify-content: center; pointer-events: none; }
.hud { pointer-events: auto; position: relative; width: 990px; max-width: 100%; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 10px;
  padding: 6px 16px 10px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(var(--raised), var(--surface));
  box-shadow: 0 -6px 24px #0008; }
.hud .left { display: flex; gap: 12px; align-items: center; padding-top: 6px; }
.hudsaved { position: absolute; right: 16px; top: 6px; color: var(--muted); font-size: 10px; }
.ring { position: relative; flex: none; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center;
  background: var(--k181d26); box-shadow: 0 0 0 4px #e8295f1c; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff5f82, var(--pink) var(--p), var(--k323848) var(--p));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px)); }
.ring div { position: relative; text-align: center; line-height: 1.1; }
.ring .heart { color: var(--pink); font-size: 15px; }
.ring b { display: block; font: 21px var(--title); color: var(--strong); }
.ring small { color: var(--muted); font-size: 10.5px; }
.chips { display: grid; gap: 5px; }
.chip { display: flex; align-items: center; gap: 5px; width: 72px; height: 30px; padding: 0 6px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--c) 47%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--c) 22%, var(--raised)), color-mix(in srgb, var(--c) 8%, var(--surface))); }
.chip i { font-style: normal; color: var(--c); width: 16px; text-align: center; font-size: 13px; }
.chip b { font: 16px var(--title); color: var(--strong); }
.chip span { margin-left: auto; color: color-mix(in srgb, var(--c) 80%, transparent); font: 9px var(--title); }
.hud .right { min-width: 0; }
.bartitle { width: 666px; max-width: 100%; height: 22px; display: grid; place-items: center; font: 13px var(--title); letter-spacing: .4px; }
.barrow { display: flex; align-items: center; gap: 14px; }
.slots { display: grid; grid-template-columns: repeat(12, 50px); gap: 6px; }
.slot { position: relative; width: 50px; height: 50px; border-radius: 8px; border: 1px solid var(--border); background: var(--k202632); display: grid; place-items: center; overflow: hidden; }
.slot img { width: 42px; height: 42px; object-fit: contain; }
.slot .n { position: absolute; left: 2px; top: 2px; padding: 0 3px; border-radius: 5px; background: var(--k0a0c12be); font: 10.5px var(--title); color: var(--strong); }
.slot .n.none { color: var(--pink); }
.hudpage { display: grid; justify-items: center; width: 26px; }
.hudpage b { font: 15px var(--title); line-height: 22px; }
.hudpage .arrow { width: 26px; height: 16px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 10px; cursor: pointer; }
.hudpage .arrow:hover:not(:disabled) { color: var(--text); }
.hudpage .arrow:disabled { opacity: .35; cursor: default; }
.swap { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--border); background: var(--k2c3442); color: var(--text); font-size: 15px; cursor: pointer; }
.swap:hover { filter: brightness(1.2); }
.meter { position: relative; display: grid; grid-template-columns: 28px minmax(40px, 1fr) 150px; align-items: center; gap: 0 2px; }
.meter.xp { margin-top: 22px; }
.meter.energy { margin-top: 10px; }
.meter b { font: 12px var(--title); }
.meter.energy b { color: var(--orange); }
.meter .track { height: 10px; border-radius: 5px; background: var(--k262c38); border: 1px solid var(--k3c4452); overflow: hidden; }
.meter .fill { height: 100%; min-width: 0; border-radius: 5px; }
.meter.xp .fill { background: linear-gradient(#e6f05a, #bed228); }
.meter.energy .fill { background: linear-gradient(#ffbe5a, #f08228); }
.meter .lvl { padding-left: 10px; font: 15px var(--title); }
.meter .val { padding-left: 10px; color: var(--muted); font-size: 11px; }
.meter small { position: absolute; right: 150px; bottom: 14px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.hud-note { margin-top: 16px; }

/* Page buttons with their icons, as the app's side menu. */
nav.pages a.nav i { font-style: normal; margin-right: 6px; opacity: .85; }

/* One row of tiles that scrolls (the jobs). */
.tiles.one { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.tiles.one .tile { flex: none; }

/* The runes a crush gave: each rune's picture with its count, then its name. */
.runes { display: flex; gap: 14px; align-items: center; }
.rune { display: inline-flex; align-items: center; gap: 5px; }
.rune .pic { position: relative; width: 28px; height: 28px; flex: none; }
.rune .pic img { width: 28px; height: 28px; object-fit: contain; }
.rune .pic b { position: absolute; right: -4px; bottom: -3px; padding: 0 3px; border-radius: 4px; background: var(--k0c1016c8); font: 10px var(--title); }

/* The day / night switch, as the app's: a pill whose white knob carries the moon (night, on the left of a starry track) or
   the sun (day, on the right of a sky with a cloud). */
.themeswitch { position: relative; flex: none; width: 60px; height: 30px; padding: 0; border: 1px solid #3c4660; border-radius: 15px; cursor: pointer;
  background: radial-gradient(circle at 70% 30%, #fff 0 1.2px, transparent 1.6px), radial-gradient(circle at 84% 55%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 62% 72%, #fff 0 .9px, transparent 1.3px), radial-gradient(circle at 90% 25%, #fff 0 .8px, transparent 1.2px),
    linear-gradient(#1c2448, #0a0c18); transition: background .3s, border-color .3s; }
.themeswitch:hover { border-color: var(--green); }
.themeswitch .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fafbfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 3.2a8.6 8.6 0 1 0 5.3 13.6A7.2 7.2 0 0 1 15.5 3.2z' fill='%2328345f'/%3E%3Ccircle cx='17.6' cy='8' r='1.1' fill='%2328345f'/%3E%3C/svg%3E") center / 17px no-repeat;
  box-shadow: 0 1.5px 3px #0006; transition: left .25s ease, background-image .25s; }
:root[data-theme="light"] .themeswitch { border-color: #aabed2;
  background: radial-gradient(ellipse 7px 5px at 13px 17px, #fff 98%, transparent), radial-gradient(ellipse 7px 6px at 19px 13px, #fff 98%, transparent),
    radial-gradient(ellipse 6px 4.5px at 24px 18px, #fff 98%, transparent), linear-gradient(#96d2f5, #e1ecf6); }
:root[data-theme="light"] .themeswitch .knob { left: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.6' fill='%23f5a524'/%3E%3Cg stroke='%23f5a524' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2.5v2.6M12 18.9v2.6M2.5 12h2.6M18.9 12h2.6M5.3 5.3l1.8 1.8M16.9 16.9l1.8 1.8M5.3 18.7l1.8-1.8M16.9 7.1l1.8-1.8'/%3E%3C/g%3E%3C/svg%3E"); }
.corner { position: fixed; top: 16px; right: 16px; display: flex; align-items: center; gap: 10px; }
/* EN | FR: the page in the other language (the one shown is lit). */
.langswitch { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 2px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 9px;
  background: var(--k121821); font: 12px var(--title); letter-spacing: .5px; }
.langswitch a, .langswitch span { display: inline-flex; align-items: center; height: 100%; padding: 0 8px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.langswitch a:hover { color: var(--text); background: var(--k1e2630); }
.langswitch a:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.langswitch .on { background: var(--k12342a); color: var(--green); }

/* Medium screens: the HUD's slots get smaller. */
@media (max-width: 1080px) {
  .hud { width: 100%; }
  .slots { grid-template-columns: repeat(12, minmax(0, 1fr)); flex: 1; min-width: 0; }
  .slot { width: auto; aspect-ratio: 1; height: auto; }
  .slot img { width: 84%; height: 84%; }
  .bartitle { width: auto; }
}

/* Phones and small tablets. */
@media (max-width: 760px) {
  html, body { font-size: 13.5px; }
  header.top { position: static; flex-wrap: wrap; gap: 8px; height: auto; padding: 10px 12px; }
  header.top .logo { order: 1; flex: 1 0 auto; font-size: 14px; }
  header.top .logo img { height: 28px; }
  header.top .spacer { display: none; }
  /* The menu hidden, as the admin panel's (the user, 2026-11-26; it was a strip under the header): the menu button at the
     header's left opens it over the page; a tap beside it, Esc, its top button or a page closes it. Inside, the pages scroll
     and SETTINGS / LOG OUT / HELP stay at its bottom. The wide choice of a big screen does not apply here. */
  .menubtn { display: inline-flex; order: 0; }
  aside.rail, html.rail-wide aside.rail { top: 0; z-index: 60; width: min(260px, 82vw); padding: 8px 0 6px; transform: translateX(-100%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s; }
  html.rail-open aside.rail { transform: none; visibility: visible; box-shadow: 0 0 40px #000a; transition: transform .2s ease; }
  .rail-toggle, html.rail-wide .rail-toggle { justify-content: flex-start; padding-left: 14px; }
  .rail-toggle .when-narrow, html.rail-wide .rail-toggle .when-wide { display: none; }
  .rail-toggle .when-phone { display: inline-flex; }
  .rail .item, html.rail-wide .rail .item { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 44px; padding: 0 14px; font-size: 13px; text-align: left; }
  .rail .item span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .rail .item.danger, html.rail-wide .rail .item.danger { justify-content: center; margin: 4px 12px; min-height: 40px; background: linear-gradient(#f2668d, var(--pink)); color: #ffffff; }
  .rail .item.has-short .long { display: inline; }
  .rail .item.has-short .short { display: none; }
  header.top, main.page, footer.status, html.rail-wide main.page, html.rail-wide footer.status { margin-left: 0; }
  html.rail-open .rail-shade { display: block; position: fixed; inset: 0; z-index: 55; background: #0008; }
  .gamestate { order: 2; height: 30px; padding: 0 9px; font-size: 11px; }
  .themeswitch, .langswitch { order: 2; }
  /* The account and the character on their own line. */
  #account { order: 3; flex: 1 1 38%; width: auto; min-width: 0; }
  #character { order: 3; flex: 1 1 55%; width: auto; min-width: 0; }
  main.page { padding: 14px 12px 56px; }
  h1 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { height: 72px; padding: 10px 12px; }
  .stat b { font-size: 20px; }
  .stat span { left: 12px; bottom: 9px; font-size: 10.5px; }
  .stat i { font-size: 20px; }
  .grid2 { grid-template-columns: minmax(0, 1fr) !important; }
  .card { min-width: 0; }
  .card { padding: 12px; }
  .row > .field, .row > select.field { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; }
  .btn.small { height: 34px; }
  .row > .inline-field { flex: 1 1 100%; }
  .inline-field .field { width: 100% !important; }
  .items { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); max-height: none; }
  .cell { height: 100px; }
  .cell img { width: 44px; height: 44px; }
  .footer-bar { flex-wrap: wrap; gap: 8px; }
  .podsbar { width: 160px; }
  .scroll { max-height: none; }
  .tiles { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tile { flex: none; }
  .step { grid-template-columns: 30px 1fr; }
  .step > :nth-child(3) { grid-column: 1 / -1; }
  .step > :last-child:empty { display: none; }
  iframe.map { height: 64vh !important; }
  footer.status { padding: 5px 12px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toast { left: 12px; right: 12px; }
  .pager { flex-wrap: wrap; }
  /* The HUD: in the page's flow, the ring and chips on top, then the bar, its title and the meters. */
  .hudwrap { position: static; }
  .hud { grid-template-columns: 1fr; padding: 10px 12px 12px; }
  .hud .left { justify-content: center; padding: 6px 0 4px; }
  .hudsaved { position: static; grid-row: 1; text-align: center; }
  .barrow { gap: 8px; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .meter { grid-template-columns: 26px minmax(40px, 1fr) auto; }
  .meter small { position: static; grid-column: 1 / -1; grid-row: 1; text-align: right; margin-bottom: 4px; }
  .meter.xp { margin-top: 12px; }
}

/* ---- Plans, notifications and social logins (2026-11-23) */
/* The bell: the admin's notifications, the unread ones counted; its panel opens under it. */
.bellwrap { position: relative; flex: none; }
.bell { position: relative; display: grid; place-items: center; width: 36px; height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--k151a21);
  color: var(--muted); cursor: pointer; }
.bell:hover { color: var(--text); border-color: var(--k46505e); }
.bell .ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bell .count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px;
  background: var(--pink); color: #fff; font: 11px/18px var(--title); text-align: center; }
.bell .count[hidden] { display: none; }
.bell-panel { position: absolute; right: 0; top: 40px; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; box-shadow: 0 12px 40px #0008; }
.bell-panel h2 { margin: 0; }
.bell-panel .row { margin-bottom: 8px; }
.note-item { padding: 10px 12px; margin-top: 8px; border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: 9px; background: var(--k131920); }
.note-item.success { border-left-color: var(--green); } .note-item.warning { border-left-color: var(--orange); } .note-item.danger { border-left-color: var(--pink); }
.note-item.unread { background: var(--k12342a); }
.note-item .body { margin: 4px 0; color: var(--muted); white-space: pre-line; }
.note-item .muted { font-size: 11.5px; }

/* Menu: a page the plan does not include. */
.rail .item.locked { opacity: .55; }
.card.lock { max-width: 560px; }
.card.lock h2 { display: flex; align-items: center; gap: 8px; }
.card.lock .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Social logins: one button per provider, then "or with your email". */
.socials { display: grid; gap: 8px; margin: 4px 0 6px; }
.social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--k151a21); color: var(--text); font: 600 13.5px var(--body); text-decoration: none; cursor: pointer; }
.social.wide { width: 100%; }
.social:hover { filter: brightness(1.12); }
.social .si { width: 20px; height: 20px; flex: none; }
.social.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.social.discord { background: #5865f2; color: #fff; border-color: transparent; }
.social.facebook { background: #1877f2; color: #fff; border-color: transparent; }
.social.x { background: #000; color: #fff; border-color: #333; }
.social.github { background: #24292f; color: #fff; border-color: transparent; }
.or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The Plans page: the 4 plans as cards (yours marked), each with its MONTHLY and YEARLY buttons. */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1250px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: 18px; }
.plan h2 { color: var(--text); font-size: 17px; }
.plan.popular { --accent: var(--orange); border-color: #f5a52477; }
.plan.current { --accent: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px #22d69222; }
.plan .ribbon { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 6px; background: linear-gradient(#f8c461, var(--orange)); color: #241600; font: 11px var(--title); letter-spacing: .4px; }
.plan .price b { font: 30px var(--title); }
.plan .price span { margin-left: 4px; color: var(--muted); }
.plan .yearly { font-size: 12px; margin-bottom: 8px; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; flex: 1; }
.plan li { position: relative; padding: 5px 0 5px 22px; border-top: 1px solid var(--k161c24); color: var(--text); font-size: 13px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .yours { margin-top: 12px; padding: 8px; border-radius: 9px; background: var(--k12342a); color: var(--green); font: 12.5px var(--title); text-align: center; letter-spacing: .4px; }
.plan .buttons { display: grid; gap: 8px; margin-top: 12px; }
.plan .buttons .btn { width: 100%; }
.trial-line { margin: 14px 2px 0; font: 15px var(--title); color: var(--green); letter-spacing: .3px; }
.plan-now { font: 24px var(--title); }
.buy { max-width: 520px; text-align: right; }
.buy p { margin: 0 0 10px; color: var(--muted); }
.small-print { margin-top: 14px; font-size: 12px; }
@media (max-width: 760px) {
  .buy { text-align: left; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .bellwrap { order: 2; }
  .bell-panel { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
}

/* Maps: several games open, each character with its color above the map (the map shows them in the same colors). */
.where-line { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.where-line .who-at { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.where-line .who-at b { color: var(--text); font-weight: 600; }
.where-line .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #0006; }

/* Plans: a cancelled subscription waiting for its refund */
.refund-banner { margin-bottom: 14px; padding: 12px 16px; border: 1px solid #f59e0b; border-radius: 12px; background: #f59e0b1f; color: var(--text, inherit); line-height: 1.5; }
.refund-banner b { color: #f59e0b; }

/* Loot: the servers' tabs, the characters and banks added up, the crafts of a profession */
.loot-servers { margin-bottom: 14px; }
.btn .count { margin-left: 4px; padding: 1px 7px; border-radius: 8px; background: #0003; font: 11px var(--title); }
.btn.neutral .count { background: var(--k262d38); color: var(--muted); }
.loot-people { margin-bottom: 4px; }
/* Its folding line (2026-12-01): "7 CHARACTERS · 7 BANKS" and an arrow, the pills under it when open. */
.loot-people summary { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--raised); color: var(--muted); font: 12px var(--title); letter-spacing: .4px; cursor: pointer; list-style: none; user-select: none; }
.loot-people summary::-webkit-details-marker { display: none; }
.loot-people summary:hover { color: var(--text); }
.loot-people summary b { color: var(--text); font-weight: 600; }
.loot-people summary .ico { color: var(--cyan); }
.loot-people summary .chev { color: var(--muted); transition: transform .15s ease; }
.loot-people[open] summary .chev { transform: rotate(180deg); }
.loot-people > .row { margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.pill b { color: var(--text); font-weight: 600; }
.pill.green { --c: var(--green); } .pill.orange { --c: var(--orange); } .pill.cyan { --c: var(--cyan); }
.loot-items { max-height: 52vh; }
.crafts { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; padding: 2px; }
.craft { --c: var(--green); display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 12px 4px 10px; border-radius: 9px;
  background: var(--k13181f); border-left: 3px solid var(--c); }
.craft.other { --c: var(--orange); }
.craft:hover { background: var(--k1c232d); }
.craft img, .craft .noimg { width: 42px; height: 42px; object-fit: contain; flex: none; }
.craft .what { flex: 1; min-width: 0; }
.craft .what b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.craft .what small { color: var(--muted); font-size: 12px; }
.craft .times { font: 15px var(--title); color: var(--strong); flex: none; }
.craft .who { display: inline-flex; align-items: center; gap: 8px; flex: none; max-width: 45%; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.craft.other .who { color: var(--orange); }
.craft .who i { font-style: normal; color: var(--c); }
@media (max-width: 760px) {
  .craft { flex-wrap: wrap; }
  .craft .who { max-width: 100%; }
  .loot-items, .crafts { max-height: none; }
}
/* Loot's cards: the value never runs under the icon; the kamas' "K" small and grey */
.loot-stats .stat b { padding-right: 34px; }
.stat b .unit { font-size: .58em; color: var(--muted); letter-spacing: .5px; }
/* Loot: the app's icons as line drawings in the color of what they sit in */
.ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat i svg.big { width: 40px; height: 40px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.loot-stats .stat i { top: 12px; opacity: .9; }
.loot-stats .stat b { padding-right: 46px; }
.pill .ico { color: var(--c); }
.craft .who .ico { width: 17px; height: 17px; color: var(--c); }
.loot-servers .btn .ico { width: 16px; height: 16px; }
/* Loot: a craft's ingredients, as in the app (a picture on a dark square, ×N beside it) */
.craft .what { flex: 0 1 260px; }
.craft .ings { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-width: 0; }
.craft .ing { display: inline-flex; align-items: flex-end; gap: 3px; }
.craft .ing img, .craft .ing .noimg { width: 32px; height: 32px; padding: 3px; border-radius: 7px; background: var(--k1c232d); object-fit: contain; }
.craft .ing small { color: var(--muted); font-size: 11.5px; }
.craft .ing.tight small { color: var(--orange); }
@media (max-width: 760px) { .craft .ings { flex-basis: 100%; order: 5; } }
/* The app's icons everywhere (App.icon): line icons in the color of what holds them; "fill" ones filled */
.ico.fill { fill: currentColor; stroke: none; }
.stat i svg.big { width: 38px; height: 38px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.stat i { opacity: .9; }
.btn .ico { width: 15px; height: 15px; }
.chip i .ico { width: 15px; height: 15px; display: block; margin: 0 auto; }
.heart .ico { width: 15px; height: 15px; color: var(--pink); display: block; margin: 0 auto; }
.hudpage .arrow .ico { width: 14px; height: 14px; display: block; margin: 0 auto; }
.swap .ico { width: 16px; height: 16px; display: block; margin: 0 auto; }
.bartitle { display: flex; justify-content: center; align-items: center; gap: 2px; }
.bartitle .ico { width: 14px; height: 14px; color: var(--muted); }
/* Characters, as the app's page: by account, a card per character (name, IN GAME, server and account, added; levels) */
.account { margin-bottom: 18px; }
.account h2 { gap: 8px; margin: 0 0 10px; font: 15px var(--title); letter-spacing: .4px; }
.account h2 .ico { width: 18px; height: 18px; color: var(--cyan); }
.account h2 .count { margin-left: 4px; padding: 1px 8px; border-radius: 8px; background: var(--k262d38); color: var(--muted); font: 11px var(--title); }
.chars { display: flex; flex-direction: column; gap: 10px; }
.card.char { display: flex; align-items: center; gap: 20px; min-height: 96px; padding: 14px 22px; }
.card.char.playing { --accent: var(--green); border-color: var(--green); }
.char .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.char .who .name { font: 19px var(--title); color: var(--strong); }
.char .ingame { padding: 2px 9px; border-radius: 10px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); font: 10.5px var(--title); }
.char .levels { display: flex; align-items: center; gap: 18px; }
.char .lv { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.char .lv span { color: var(--muted); font: 10.5px var(--title); letter-spacing: .4px; }
.char .lv b { font: 26px var(--title); }
.char .lv .gain { padding: 1px 8px; border-radius: 9px; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); font: 10.5px var(--title); }
.char .lv-arrow { width: 20px; height: 20px; color: var(--muted); flex: none; }
.note { margin-top: 6px; }
@media (max-width: 760px) {
  .card.char { flex-direction: column; align-items: flex-start; }
  .char .levels { width: 100%; justify-content: space-between; }
  .char .lv { width: auto; }
}
/* Every stat card: the value stops before the icon (App.show shrinks it to fit) */
.stat b { padding-right: 44px; }
/* Sessions history (and the dashboard's loot card): a run's line under the title, the clickable list, the header, the leveling */
.loot-card .runline { margin: -4px 0 10px; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sessions-scroll { max-height: 70vh; }
.list.clickable tbody tr { cursor: pointer; }
.list .build { font: 14px var(--title); color: var(--strong); }
.session-head .who .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.session-head .lv { width: 118px; }
.session-head .lv b { font-size: 22px; }
.leveling .caption { margin: 4px 0 6px; font: 10.5px var(--title); letter-spacing: .4px; }
.leveling .char-levels { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.leveling .lv { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.leveling .lv span { color: var(--muted); font: 10.5px var(--title); letter-spacing: .4px; }
.leveling .lv b { font: 26px var(--title); }
.leveling .gain { padding: 1px 8px; border-radius: 9px; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); font: 10.5px var(--title); white-space: nowrap; }
.leveling .lv-arrow { width: 20px; height: 20px; color: var(--muted); flex: none; }
.leveling .jobs { display: flex; flex-direction: column; gap: 6px; }
.leveling .job { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 4px 12px; border-radius: 9px; background: var(--k13181f); }
.leveling .job img, .leveling .job .noimg { width: 32px; height: 32px; object-fit: contain; flex: none; }
.leveling .job .jobname { width: 220px; font: 14px var(--title); color: var(--strong); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.leveling .job .from, .leveling .job .to { width: 40px; font: 15px var(--title); text-align: center; }
.leveling .empty.small, .leveling .none { padding: 10px 0 4px; text-align: left; }
@media (max-width: 760px) {
  .leveling .job { flex-wrap: wrap; }
  .leveling .job .jobname { width: auto; flex: 1; }
}

/* BOT ACTIVITY (maps.js): what each character is doing, its area's color. */
.activity-list .who-at { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.activity-list .dot, .activity-list .swatch { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #0006; }
.activity-list .swatch { border-radius: 3px; opacity: .85; }
.activity-list .step-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.doing { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600;
  color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent); white-space: nowrap; }
.doing .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: none; }
.doing.green { --c: var(--green); } .doing.cyan { --c: var(--cyan); } .doing.pink { --c: var(--pink); } .doing.orange { --c: var(--orange); }
.doing.muted { --c: var(--muted); font-weight: 500; }
.doing.red { --c: #ff6b4a; } /* its game closed by the bot (full bags, no bank) */

/* FIGHT SIMULATOR: DoPoutch opened from here (simulator.js). */
.dopoutch { max-width: 760px; }
.dopoutch p { margin: 0 0 12px; }
.dopoutch-steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.dopoutch-open { height: 44px; padding: 0 22px; font-size: 14px; }
.dopoutch-open .ico { width: 16px; height: 16px; }
.dopoutch .small-print { margin: 14px 0 0; font-size: 12px; }

/* FIGHTS (fights.js): the search bar, the list's monster group / leader / loot cells, a fight's whole loot and team. */
.fights-bar .row { align-items: flex-end; gap: 10px 12px; }
.fights-bar label { display: flex; flex-direction: column; gap: 4px; }
.fights-bar label[hidden] { display: none; }
.fights-bar label > span { color: var(--muted); font: 10.5px var(--title); letter-spacing: .4px; }
.fights-bar .grow { flex: 1; }
.fights-note { color: var(--muted); }
.fights-list .who { display: flex; align-items: center; gap: 8px; }
.fights-list .who img, .fights-list .who .noimg { width: 30px; height: 30px; object-fit: contain; flex: none; }
.fights-list .who small { display: block; color: var(--muted); font-size: 11.5px; }
.fights-list .drops { display: flex; align-items: center; gap: 8px; }
.fights-list .drop { position: relative; display: inline-flex; }
.fights-list .drop img, .fights-list .drop .noimg { width: 30px; height: 30px; padding: 2px; border-radius: 7px; background: var(--k1c232d); object-fit: contain; }
.fights-list .drop small { position: absolute; right: -5px; bottom: -5px; padding: 0 4px; border-radius: 6px; background: var(--k0c1016e6); font: 10.5px var(--title); }
.fights-list .kamas { font: 13px var(--title); }
.fights-list tr.open td { background: var(--k18202a); }
.fights-list tr.more td { padding: 4px 14px 14px; white-space: normal; background: var(--k13181f); cursor: default; }
.fights-list tr.more .caption { margin: 10px 0 6px; font: 10.5px var(--title); letter-spacing: .4px; }
.fights-list tr.more .items-all { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fights-list tr.more .it { display: inline-flex; align-items: center; gap: 8px; }
.fights-list tr.more .it img, .fights-list tr.more .it .noimg { width: 32px; height: 32px; object-fit: contain; }
.fights-list .pill { height: 24px; padding: 0 10px; white-space: nowrap; }
.pill.muted { --c: var(--muted); }
.btn.icon-only { padding: 0 9px; }
.btn.icon-only .ico { width: 16px; height: 16px; }

/* SESSIONS HISTORY (2026-12-01): the count and CLEAR ALL over the list; the box's "Yes, delete them for good" tick. */
.sessions-top { margin-bottom: 10px; gap: 10px; }
.sessions-top .muted { min-width: 0; }
.confirm-tick { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  color: var(--strong); cursor: pointer; }
.confirm-tick input { width: 18px; height: 18px; flex: none; accent-color: var(--pink); cursor: pointer; }
/* FIGHTS: a fight whose drops come with its session (sent while the bot runs, or when it stops). */
.fights-list .pending { font: 13px var(--title); letter-spacing: 1px; }
