/* Evernest admin panel: the game's palette and fonts, in a clean, dense, professional layout. */
@font-face { font-family: Fredoka; src: url(/assets/fonts/Fredoka.ttf) format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/assets/fonts/Nunito.ttf) format("truetype"); font-weight: 200 1000; font-display: swap; }
:root { --ink: #3f4a63; --ink2: #6f7c97; --ink3: #a3adc2; --line: #e7ebf3; --bg: #f5f7fc; --card: #fff;
  --pink: #ff8fb1; --pink-d: #e5638d; --sky: #7cc4ff; --sky-d: #3f86d6; --mint: #4fcfb3; --mint-d: #1f9c85; --honey: #ffcd6a; --honey-d: #c9861c;
  --red: #e5484d; --red-d: #c13035; --head: #4b6fd0; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Nunito, system-ui, sans-serif; font-weight: 600; color: var(--ink); background: var(--bg); font-size: 15px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: Fredoka, sans-serif; font-weight: 600; margin: 0; }
a { color: var(--head); }
.muted { color: var(--ink2); } .tiny { font-size: 12px; } .small { font-size: 13px; }
input, select, textarea { font: inherit; font-weight: 700; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(124,196,255,.25); }
label { display: block; font-size: 13px; color: var(--ink2); font-weight: 800; }
label input, label select, label textarea { margin-top: 4px; }
textarea { min-height: 120px; resize: vertical; }
.b { font: inherit; font-family: Fredoka, sans-serif; font-weight: 500; font-size: 15px; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer;
  background: #eef2fa; color: var(--ink); white-space: nowrap; }
.b:hover { filter: brightness(.97); }
.b:disabled { opacity: .5; cursor: default; }
.b.primary { background: linear-gradient(180deg, #ff9cbc, var(--pink)); color: #fff; box-shadow: 0 3px 0 var(--pink-d); }
.b.sky { background: linear-gradient(180deg, #9cd6ff, var(--sky)); color: #fff; box-shadow: 0 3px 0 var(--sky-d); }
.b.mint { background: linear-gradient(180deg, #8fe6d2, var(--mint)); color: #fff; box-shadow: 0 3px 0 var(--mint-d); }
.b.danger { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-d); }
.b.ghost { background: transparent; border: 1.5px solid var(--line); }
.b.small { padding: 6px 11px; font-size: 13px; }
.err { color: var(--red); font-weight: 800; min-height: 1em; margin: 6px 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: url(/assets/shots/load_town.jpg) center / cover; }
.login::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(216,239,255,.55), rgba(246,233,255,.8)); }
.login-card { position: relative; width: min(400px, 100%); background: rgba(255,255,255,.92); border-radius: 24px; padding: 28px; display: grid; gap: 12px;
  box-shadow: 0 20px 50px rgba(60,80,140,.25); backdrop-filter: blur(8px); }
.login-logo { width: 220px; margin: 0 auto; }
.login-card h1 { text-align: center; color: var(--head); font-size: 26px; }
.login-card p { margin: 0; text-align: center; }

/* layout */
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.nav { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px; position: sticky; top: 0; height: 100vh; }
.nav .brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-family: Fredoka, sans-serif; font-size: 20px; line-height: 1; padding: 4px 8px 14px; }
.nav .brand img { width: 42px; height: 42px; }
.nav .brand small { font-size: 13px; color: var(--pink-d); letter-spacing: 1px; text-transform: uppercase; }
.nav nav { display: grid; gap: 2px; }
.nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.nav nav a img { width: 24px; height: 24px; }
.nav nav a:hover { background: var(--bg); }
.nav nav a.on { background: #fff0f5; color: var(--pink-d); }
.me { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.me b { display: block; }
.role { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); font-weight: 900; }
.main { min-width: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: rgba(245,247,252,.9); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar h1 { font-size: 24px; color: var(--head); }
.bar .menu { display: none; }
.srv { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; background: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; border: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); display: inline-block; }
.dot.up { background: #2fbf7f; box-shadow: 0 0 0 3px rgba(47,191,127,.2); } .dot.down { background: var(--red); }
.content { padding: 22px 24px 60px; display: grid; gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.card h2 { font-size: 18px; margin-bottom: 12px; color: var(--ink); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; gap: 14px; align-items: center; }
.stat img { width: 46px; height: 46px; }
.stat b { display: block; font-family: Fredoka, sans-serif; font-size: 28px; line-height: 1.1; color: var(--ink); }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); font-weight: 900; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.link { cursor: pointer; } tr.link:hover td { background: #fafbff; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw { overflow-x: auto; }
.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: #eef2fa; color: var(--ink2); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.tag.on { background: #dcf7ef; color: var(--mint-d); } .tag.ban { background: #ffe4e4; color: var(--red-d); } .tag.gm { background: #fff1cc; color: var(--honey-d); }
.tag.mute { background: #efe8ff; color: #7f63c9; } .tag.pink { background: #ffe3ec; color: var(--pink-d); } .tag.ok { background: #dcf7ef; color: var(--mint-d); } .tag.fail { background: #ffe4e4; color: var(--red-d); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--ink2); font-weight: 800; } .kv dd { margin: 0; font-weight: 800; }
.actions { display: grid; gap: 14px; }
.action { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.action h3 { font-size: 15px; margin-bottom: 8px; }
.action .row > * { flex: 1 1 120px; }
.action .row > .b { flex: 0 0 auto; }
pre.log { background: #1f2433; color: #dfe6f5; border-radius: 12px; padding: 14px; overflow: auto; max-height: 70vh; font-size: 12.5px; line-height: 1.5; margin: 0; white-space: pre-wrap; word-break: break-word; }
.sug { position: relative; }
.sug-list { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 20px rgba(60,80,140,.12); max-height: 240px; overflow: auto; }
.sug-list div { padding: 7px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.sug-list div:hover { background: var(--bg); }
.preview { border-radius: 14px; padding: 16px; background: linear-gradient(180deg, #c8e8ff, #f9dcef); text-align: center; }
.preview .rib { background: rgba(255,250,240,.95); border-radius: 999px; padding: 8px 18px; font-family: Fredoka, sans-serif; color: #5b3b2a; display: inline-block; }
.empty { color: var(--ink2); text-align: center; padding: 18px; }

.modal { border: 0; border-radius: 18px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 70px rgba(30,40,70,.35); }
.modal::backdrop { background: rgba(30,40,70,.45); }
.modal form { padding: 22px; display: grid; gap: 12px; }
.modal h2 { color: var(--ink); font-size: 21px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: #2a3147; color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 800; transition: transform .25s, opacity .25s; z-index: 100; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.bad { background: var(--red-d); }

@media (max-width: 1000px) { .g4 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .nav { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: 240px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .nav.open { transform: none; }
  .bar .menu { display: inline-block; }
  .g2 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .hide-sm { display: none; }
}
/* Ever Root (premium, account-wide currency) */
.roots { display: inline-flex; align-items: center; gap: 5px; } .roots img { width: 20px; height: 20px; }
.roots-card { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; } .roots-card .kv { grid-template-columns: repeat(2, max-content 1fr); gap: 6px 16px; flex: 1 1 380px; }
.roots-card p { flex-basis: 100%; margin: 0; }
