:root {
  --bg: #0b0d12;
  --bg2: #0f1218;
  --surface: #141821;
  --surface2: #1a1f2a;
  --surface3: #222838;
  --border: #252b3a;
  --border2: #313949;
  --text: #e7e9ef;
  --text2: #b9bfcc;
  --muted: #7f889b;
  --gold: #e3b553;
  --gold2: #f3d27a;
  --blue: #5aa9ff;
  --violet: #a78bfa;
  --on: #3ddc84;
  --afk: #f5c542;
  --dnd: #ff6b6b;
  --off: #4b5263;
  --danger: #ff5d6c;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --side: 290px;
  --top: 60px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(227, 181, 83, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(90, 169, 255, .05), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; color: var(--text2); }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface3); padding: 1px 6px; border-radius: 5px; }
pre { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px 14px; overflow: auto; font-size: 12.5px; line-height: 1.5; }
::selection { background: rgba(227, 181, 83, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3142; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* --- загрузка --- */
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface3); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- каркас --- */
.layout { display: grid; grid-template-columns: var(--side) 1fr; grid-template-rows: var(--top) 1fr; min-height: 100vh; }
.topbar {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 0 20px; height: var(--top); background: rgba(11, 13, 18, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand b { background: linear-gradient(90deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .spacer { flex: 1; }
.topbar .fresh { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.userchip .tag { font-weight: 600; }
.menu-btn { display: none; }

.sidebar {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: hidden; display: flex; flex-direction: column;
  border-right: 1px solid var(--border); background: rgba(15, 18, 24, .6);
}
.nav { padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text2); font-weight: 550;
}
.nav a:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(227, 181, 83, .16), rgba(227, 181, 83, .04)); color: var(--gold2); }
.nav a .ico { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a .count { margin-left: auto; font-size: 11.5px; background: var(--danger); color: #fff; padding: 0 7px; border-radius: 999px; font-weight: 700; }
.nav .sep { height: 1px; background: var(--border); margin: 8px 6px; }
.nav .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 4px; }

.side-search { padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border2); color: var(--text2);
  background: transparent; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.on { background: rgba(227, 181, 83, .15); border-color: rgba(227, 181, 83, .6); color: var(--gold2); }
.mlist { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.mrow { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 9px; color: var(--text); cursor: pointer; }
.mrow:hover { background: var(--surface); text-decoration: none; }
.mrow.active { background: var(--surface2); box-shadow: inset 2px 0 0 var(--gold); }
.mrow .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.mrow .lv { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow.gone .nm { opacity: .5; text-decoration: line-through; }

.main { padding: 26px 30px 60px; min-width: 0; }
.page { max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- демо-режим --- */
.demo-bar { max-width: 1480px; margin: 0 auto 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px;
  border-radius: 12px; border: 1px solid rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .09); color: var(--text2); }
.demo-bar b { color: var(--violet); }
.demo-bar .btn { margin-left: auto; }
#guildSel { max-width: 300px; text-overflow: ellipsis; }
#defBtn:disabled { cursor: default; }
#defBtn.on { background: rgba(227, 181, 83, .15); border-color: rgba(227, 181, 83, .6); color: var(--gold2); }
#demoBtn.on { background: rgba(167, 139, 250, .16); border-color: rgba(167, 139, 250, .6); color: var(--violet); }

/* --- элементы --- */
.card { background: linear-gradient(180deg, var(--surface), rgba(20, 24, 33, .92)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card > header h2 { flex: 1; white-space: nowrap; }
.card > header .hint { color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--accent, var(--gold)); opacity: .8; }
.kpi .k { color: var(--muted); font-size: 12px; font-weight: 550; text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 25px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .s { color: var(--text2); font-size: 12.5px; margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border2); background: var(--surface2); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font: 600 13.5px var(--font); cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--gold); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #f0c766, #c9962f); border-color: #d9a842; color: #1b1406; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.bnet { background: linear-gradient(180deg, #1f8cff, #0a5fd1); border-color: #2b8fff; color: #fff; padding: 12px 22px; font-size: 15px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn.ghost:hover { border-color: var(--border2); color: var(--text); }
input, select, textarea {
  background: var(--bg2); border: 1px solid var(--border2); color: var(--text); border-radius: 10px; padding: 8px 12px; font: 14px var(--font); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 181, 83, .15); }
input[type=search] { width: 100%; }
select.sm { padding: 3px 8px; font-size: 12.5px; border-radius: 8px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 4px 11px; border-radius: 7px; font: 600 12.5px var(--font); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface3); color: var(--gold2); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--surface3); color: var(--text2); white-space: nowrap; }
.badge.gold { background: rgba(227, 181, 83, .16); color: var(--gold2); }
.badge.green { background: rgba(61, 220, 132, .14); color: var(--on); }
.badge.yellow { background: rgba(245, 197, 66, .14); color: var(--afk); }
.badge.red { background: rgba(255, 93, 108, .14); color: var(--danger); }
.badge.blue { background: rgba(90, 169, 255, .14); color: var(--blue); }
.badge.alliance { background: rgba(60, 120, 255, .16); color: #8db4ff; }
.badge.horde { background: rgba(220, 50, 50, .18); color: #ff8f8f; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; }
.dot.on { background: var(--on); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
.dot.afk { background: var(--afk); box-shadow: 0 0 0 3px rgba(245, 197, 66, .18); }
.dot.dnd { background: var(--dnd); box-shadow: 0 0 0 3px rgba(255, 107, 107, .18); }
.cls-ico { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0b0d12; }

/* --- таблицы --- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
.tbl th.sort { cursor: pointer; user-select: none; }
.tbl th.sort:hover { color: var(--text); }
.tbl th.sorted { color: var(--gold2); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(37, 43, 58, .6); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; }
.tbl .who { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.tbl .note { color: var(--text2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); padding: 26px; text-align: center; }

/* --- графики --- */
.chart { position: relative; height: 280px; }
.chart.tall { height: 340px; }
.chart.short { height: 220px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 11px; color: var(--muted); }
.heat .c { aspect-ratio: 1.25; border-radius: 4px; background: var(--surface2); }
.heat .c.na { background: repeating-linear-gradient(45deg, var(--surface2), var(--surface2) 3px, var(--bg2) 3px, var(--bg2) 6px); }
.heat .h { text-align: center; }
.heat .d { display: flex; align-items: center; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.bar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.bar .val { color: var(--text2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bar .track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface3); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.bar .sub { color: var(--muted); font-size: 12px; }

.rank-list { display: flex; flex-direction: column; }
.rank-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid rgba(37, 43, 58, .6); cursor: pointer; border-radius: 8px; }
.rank-item:hover { background: var(--surface2); }
.rank-item .pos { font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rank-item:nth-child(1) .pos { color: #ffd76a; }
.rank-item:nth-child(2) .pos { color: #d6dbe4; }
.rank-item:nth-child(3) .pos { color: #e3a26a; }
.rank-item .v { font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- лента событий --- */
.feed { display: flex; flex-direction: column; max-height: 560px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.ev { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgba(37, 43, 58, .6); align-items: start; }
.ev .i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface3); font-size: 15px; }
.ev .t { color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 5px; }
.ev .x { padding-top: 4px; }
.ev.level .i { background: rgba(227, 181, 83, .15); }
.ev.join .i { background: rgba(61, 220, 132, .13); }
.ev.leave .i, .ev.remove .i { background: rgba(255, 93, 108, .13); }
.ev.promote .i, .ev.demote .i { background: rgba(90, 169, 255, .13); }
.ev.ach .i { background: rgba(167, 139, 250, .14); }

/* --- герой персонажа --- */
.hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); padding: 26px 28px; background: var(--surface); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 260px at 0% 0%, var(--cc, var(--gold)), transparent 70%); opacity: .16; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc, var(--gold)); }
.hero .top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; position: relative; }
.avatar { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #0b0d12; background: var(--cc, var(--gold)); box-shadow: 0 8px 30px -8px var(--cc, var(--gold)); flex: none; }
.hero .who { flex: 1; min-width: 240px; }
.hero .name { font-size: 32px; font-weight: 750; letter-spacing: -.02em; color: var(--cc, var(--text)); line-height: 1.15; }
.hero .line { color: var(--text2); margin-top: 4px; font-size: 15px; }
.hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hero .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 24px; margin-top: 20px; position: relative; }
.fact .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.fact .v { font-weight: 600; margin-top: 2px; }
.hero .notes { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.notebox { background: rgba(0, 0, 0, .22); border: 1px dashed var(--border2); border-radius: 10px; padding: 8px 12px; color: var(--text2); max-width: 100%; }
.notebox b { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-right: 8px; }
.notebox.officer { border-color: rgba(227, 181, 83, .45); }

.guild-hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); padding: 26px 28px; background:
  radial-gradient(800px 300px at 100% 0%, rgba(227, 181, 83, .14), transparent 70%), var(--surface); }
.guild-hero .gname { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.guild-hero .gsub { color: var(--text2); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.motd { margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(0, 0, 0, .2); border-radius: 0 10px 10px 0; color: var(--text2); font-style: italic; }

/* --- лента по дням (gantt) --- */
.gantt { display: flex; flex-direction: column; gap: 4px; }
.gantt .row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 84px; align-items: center; gap: 10px; }
.gantt .day { color: var(--text2); font-size: 12.5px; white-space: nowrap; }
.gantt .day.we { color: var(--gold2); }
.gantt .lane { position: relative; height: 18px; background: var(--bg2); border-radius: 5px; overflow: hidden; border: 1px solid rgba(37, 43, 58, .7); }
.gantt .gs { position: absolute; top: 0; bottom: 0; background: var(--on); opacity: .9; }
.gantt .gs.afk { background: var(--afk); }
.gantt .gs.dnd { background: var(--dnd); }
.gantt .cov { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .035); }
.gantt .sum { text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gantt .axis { display: grid; grid-template-columns: 92px minmax(0, 1fr) 84px; gap: 10px; font-size: 11px; color: var(--muted); }
.gantt .axis .ticks { display: flex; justify-content: space-between; }

/* --- всплывающая подсказка, уведомления --- */
.tip { position: fixed; z-index: 100; pointer-events: none; background: #05070b; border: 1px solid var(--border2); color: var(--text); padding: 7px 10px; border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow); max-width: 320px; white-space: pre-line; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 110; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface2); border: 1px solid var(--border2); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; animation: fadein .2s; }
.toast.err { border-left-color: var(--danger); }

/* --- вход --- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.gate .box { width: 100%; max-width: 440px; text-align: center; background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-radius: 22px; padding: 40px 34px; box-shadow: var(--shadow); }
.gate .logo { width: 72px; height: 72px; margin: 0 auto 18px; display: block; }
.gate h1 { font-size: 28px; }
.gate p { color: var(--text2); }
.gate .err { color: var(--danger); background: rgba(255, 93, 108, .08); border: 1px solid rgba(255, 93, 108, .3); padding: 8px 12px; border-radius: 10px; font-size: 13px; }

/* --- админка --- */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.drop { display: block; border: 2px dashed var(--border2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--text2); transition: .15s; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--gold); background: rgba(227, 181, 83, .05); }
.secret { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid rgba(227, 181, 83, .5); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 12px; font: 600 13.5px var(--font); cursor: pointer; margin-bottom: -1px; }
.tabs button.on { color: var(--gold2); border-bottom-color: var(--gold); }
.callout { background: rgba(90, 169, 255, .07); border: 1px solid rgba(90, 169, 255, .3); border-radius: 12px; padding: 12px 14px; color: var(--text2); }
.callout.warn { background: rgba(245, 197, 66, .07); border-color: rgba(245, 197, 66, .35); }
.steps { margin: 0; padding-left: 20px; color: var(--text2); display: flex; flex-direction: column; gap: 6px; }

/* --- адаптив --- */
@media (max-width: 1200px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: var(--top); bottom: 0; width: min(320px, 88vw); z-index: 40; background: var(--bg2); transform: translateX(-100%); transition: transform .2s; height: auto; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .main { padding: 18px 16px 50px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .topbar .fresh { display: none; }
  .hero, .guild-hero { padding: 20px; }
  .hero .name { font-size: 25px; }
  .guild-hero .gname { font-size: 26px; }
  .gantt .row, .gantt .axis { grid-template-columns: 64px minmax(0, 1fr) 70px; gap: 6px; }
}
@media (max-width: 700px) {
  #guildSel { max-width: 140px; }
  #defBtn, #demoBtn { padding: 3px 8px; }
}
@media (max-width: 560px) {
  .userchip .tag { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 21px; }
}
