/* TELRION Panel – Cherry Night theme */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0d0710;
  --bg-2: #140a18;
  --glass: rgba(30, 16, 36, .62);
  --glass-2: rgba(42, 22, 50, .55);
  --glass-3: rgba(58, 31, 68, .6);
  --surface: #1a0e1f;
  --surface-2: #241329;
  --surface-3: #2f1a37;
  --line: rgba(255, 170, 225, .12);
  --line-2: rgba(255, 170, 225, .2);
  --text: #fff1fa;
  --muted: #c4a3c0;
  --faint: #86688a;
  --pink: #ff8ad8;
  --pink-2: #ffb3e6;
  --pink-deep: #f062c4;
  --pink-dark: #5a1d45;
  --amethyst: #a46cf5;
  --amethyst-light: #dcb0ff;
  --green: #4ade9b;
  --red: #ff6b81;
  --yellow: #ffc75a;
  --blue: #7cb4ff;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(255, 138, 216, .35), 0 10px 40px -8px rgba(240, 98, 196, .45);
  --display: "Fredoka", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 14px/1.55 var(--sans); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
/* ambient background: blurred brand art + glows + petals */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before {
  content: ""; position: absolute; inset: -40px; background: url("/assets/hero.jpg") center top / cover no-repeat;
  filter: blur(28px) saturate(1.2); opacity: .22; transform: scale(1.1);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(240, 98, 196, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(164, 108, 245, .16), transparent 60%),
    linear-gradient(180deg, rgba(13, 7, 16, .2), var(--bg) 92%);
}
.petal { position: absolute; top: -30px; width: 12px; height: 9px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffe3f4, #ff9ad9); opacity: .0; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0); opacity: 0; }
  10% { opacity: .55; }
  90% { opacity: .35; }
  100% { transform: translate3d(-120px, 105vh, 0) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .petal { display: none; } .float { animation: none !important; } }

a { color: var(--pink); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(240, 98, 196, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 170, 225, .14); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 170, 225, .26); }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.w100 { width: 100%; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.center-self { justify-self: center; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.fill { flex: 1; min-width: 160px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: .93em; }
.right { margin-left: auto; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 268px 1fr; height: 100vh; }
.side {
  display: flex; flex-direction: column; gap: 2px; padding: 20px 16px 16px; min-height: 0; overflow-y: auto;
  background: linear-gradient(180deg, rgba(26, 13, 31, .85), rgba(16, 8, 20, .9)); border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px 16px; }
.brand img { width: 172px; height: auto; filter: drop-shadow(0 6px 18px rgba(240, 98, 196, .35)); }
.brand small { color: var(--muted); font: 600 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-top: 2px; }
.srv {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; margin: 0 2px 8px;
  border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line);
}
.srv b { display: block; font: 600 13px/1.2 var(--display); letter-spacing: .02em; }
.srv span { color: var(--muted); font-size: 11.5px; }
.srv .cnt { font: 700 15px/1 var(--display); color: var(--pink-2); }
.nav-label { color: var(--faint); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; padding: 16px 12px 6px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--muted);
  font-weight: 550; transition: background .18s, color .18s;
}
.nav a .ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; transition: all .18s; }
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { color: var(--text); background: rgba(255, 170, 225, .05); }
.nav a:hover .ic { background: rgba(255, 170, 225, .08); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(240, 98, 196, .16), rgba(164, 108, 245, .06) 80%, transparent); }
.nav a.active .ic { background: linear-gradient(145deg, #ff9ade, #c54fd8); color: #2a0b22; box-shadow: 0 6px 18px -4px rgba(240, 98, 196, .6); }
.nav a.active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.nav a .ext { margin-left: auto; color: var(--faint); font-size: 12px; }
.side .spacer { flex: 1; min-height: 12px; }
.me { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); }
.me .avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--pink-deep), var(--amethyst)); display: grid; place-items: center; font: 700 16px var(--display); overflow: hidden; flex: none; color: #fff; }
.me .avatar img { width: 100%; height: 100%; object-fit: cover; }
.me .who { min-width: 0; flex: 1; display: grid; gap: 3px; }
.me .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.me button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 10px; display: grid; }
.me button svg { width: 17px; height: 17px; }
.me button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.top { display: flex; align-items: center; gap: 14px; padding: 18px 30px 14px; }
.top .titles { min-width: 0; }
.top h1 { font: 700 24px/1.15 var(--display); margin: 0; letter-spacing: .01em; }
.top .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.top .grow { flex: 1; }
.content { flex: 1; overflow: auto; padding: 8px 30px 44px; animation: enter .35s ease-out; }
.content.flush { padding-bottom: 26px; display: flex; flex-direction: column; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

/* ---------- elements ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; width: fit-content; white-space: nowrap; }
.badge.founder { background: rgba(240, 98, 196, .15); color: var(--pink-2); box-shadow: inset 0 0 0 1px rgba(240, 98, 196, .35); }
.badge.dev { background: rgba(164, 108, 245, .16); color: var(--amethyst-light); box-shadow: inset 0 0 0 1px rgba(164, 108, 245, .4); }
.badge.mock { background: rgba(255, 199, 90, .13); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 199, 90, .35); }
.badge.bedrock { background: rgba(74, 222, 155, .12); color: var(--green); box-shadow: inset 0 0 0 1px rgba(74, 222, 155, .3); }
.badge.java { background: rgba(124, 180, 255, .12); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(124, 180, 255, .3); }
.badge.bad { background: rgba(255, 107, 129, .13); color: #ffb0bc; box-shadow: inset 0 0 0 1px rgba(255, 107, 129, .35); }

.pill { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 650; font-size: 13px; backdrop-filter: blur(10px); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 155, .16), 0 0 12px rgba(74, 222, 155, .7); animation: breathe 2.4s ease-in-out infinite; }
.dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 129, .15); }
.dot.busy { background: var(--yellow); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 155, .08), 0 0 16px rgba(74, 222, 155, .9); } }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text); font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .06s, box-shadow .2s, filter .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--glass-3); border-color: rgba(255, 170, 225, .32); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.4); }
.btn.primary { background: linear-gradient(180deg, #ffa2e0, #e852b8); border-color: rgba(255, 200, 238, .7); color: #2c0a24; box-shadow: 0 8px 24px -8px rgba(240, 98, 196, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); }
.btn.green { background: rgba(74, 222, 155, .12); border-color: rgba(74, 222, 155, .38); color: #8ff5c4; }
.btn.green:hover:not(:disabled) { background: rgba(74, 222, 155, .2); }
.btn.danger { background: rgba(255, 107, 129, .1); border-color: rgba(255, 107, 129, .38); color: #ffa9b6; }
.btn.danger:hover:not(:disabled) { background: rgba(255, 107, 129, .18); }
.btn.warn { background: rgba(255, 199, 90, .1); border-color: rgba(255, 199, 90, .35); color: #ffd98c; }
.btn.warn:hover:not(:disabled) { background: rgba(255, 199, 90, .18); }
.seg .btn { border-color: transparent; background: transparent; height: 32px; }
.seg .btn:disabled { opacity: .3; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255, 170, 225, .07); color: var(--text); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { width: 32px; padding: 0; height: 32px; }

.input, select.input, textarea.input {
  height: 38px; padding: 0 13px; border-radius: var(--radius-sm); background: rgba(10, 5, 13, .6); border: 1px solid var(--line-2); outline: none; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 13px; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: rgba(255, 138, 216, .7); box-shadow: 0 0 0 4px rgba(240, 98, 196, .15); }
label.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; user-select: none; font-weight: 550; }
label.check input { accent-color: var(--pink-deep); width: 16px; height: 16px; }

.card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.card h2 { margin: 0 0 16px; font: 650 15.5px/1.3 var(--display); letter-spacing: .015em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 .grow { flex: 1; }
.card h2 small { color: var(--muted); font: 500 12.5px var(--sans); letter-spacing: 0; }
.card h2 .hic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 138, 216, .1); color: var(--pink); }
.card h2 .hic svg { width: 16px; height: 16px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

/* ---------- dashboard hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 236px; padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; align-items: center;
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(240, 98, 196, .45), var(--shadow);
  background: linear-gradient(100deg, rgba(20, 8, 24, .96) 0%, rgba(30, 10, 34, .82) 42%, rgba(60, 18, 58, .25) 100%), url("/assets/hero.jpg") center / cover;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 78% 60%, rgba(255, 138, 216, .25), transparent 70%); pointer-events: none; }
.hero .copy { position: relative; z-index: 1; display: grid; gap: 14px; }
.hero .logo { width: 290px; max-width: 100%; height: auto; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .45)); margin-left: -6px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(16, 7, 20, .55); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--text); backdrop-filter: blur(8px); }
.chip svg { width: 14px; height: 14px; color: var(--pink-2); }
.chip.copy-ip { cursor: pointer; }
.chip.copy-ip:hover { border-color: var(--pink); }
.hero .big { display: flex; gap: 34px; flex-wrap: wrap; }
.hero .big div { display: grid; }
.hero .big b { font: 700 34px/1 var(--display); letter-spacing: -.005em; }
.hero .big b small { font-size: 17px; color: var(--muted); }
.hero .big span { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-top: 6px; }
.hero .art { position: relative; z-index: 1; width: 300px; margin: -24px -10px -40px 0; }
.hero .art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.float { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- stats ---------- */
.stat { overflow: hidden; padding-bottom: 64px; }
.stat .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.stat .k .si { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.stat .k .si svg { width: 17px; height: 17px; }
.si.c-pink { background: rgba(255, 138, 216, .13); color: var(--pink); }
.si.c-green { background: rgba(74, 222, 155, .12); color: var(--green); }
.si.c-violet { background: rgba(164, 108, 245, .15); color: var(--amethyst-light); }
.si.c-blue { background: rgba(124, 180, 255, .13); color: var(--blue); }
.stat .v { font: 700 32px/1 var(--display); margin-top: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat .s { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.stat canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58px; pointer-events: none; }
.bar { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--amethyst), var(--pink)); box-shadow: 0 0 12px rgba(240, 98, 196, .5); transition: width .6s; }
.chart { width: 100%; height: 220px; display: block; }
.legend { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 600 12px var(--sans); letter-spacing: 0; }
.legend i { width: 16px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, #ff8ad8, #f062c4); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--amethyst-light) 0 5px, transparent 5px 8px); }
.kv { display: grid; gap: 2px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }

/* ---------- tables ---------- */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
table.t th { text-align: left; color: var(--faint); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover td { background: rgba(255, 170, 225, .035); }
table.t tbody tr:hover td:first-child { border-radius: 10px 0 0 10px; }
table.t tbody tr:hover td:last-child { border-radius: 0 10px 10px 0; }
table.t td.actions { text-align: right; white-space: nowrap; }
table.t td.actions .btn { margin-left: 4px; }
.empty { color: var(--faint); text-align: center; padding: 30px 10px; }
.pname { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }

.head { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; background: var(--surface-3); vertical-align: middle; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(0, 0, 0, .6); }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.plist .p { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.plist .p:hover { border-color: var(--line-2); background: rgba(255, 170, 225, .05); }
.plist .p b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- console ---------- */
.term { flex: 1; min-height: 320px; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(8, 4, 10, .82); box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(30, 16, 36, .7); font-size: 12.5px; color: var(--muted); }
.term-bar .lights { display: flex; gap: 6px; }
.term-bar .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b81; }
.term-bar .lights i:nth-child(2) { background: #ffc75a; }
.term-bar .lights i:nth-child(3) { background: #4ade9b; }
.term-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--green); }
.console { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px; font: 12.6px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; color: #ecd9ea; }
.card .console { background: rgba(8, 4, 10, .7); border: 1px solid var(--line); border-radius: 14px; max-height: 300px; }
.console .l-warn { color: #ffd98c; }
.console .l-error { color: #ff9cab; }
.console .l-panel { color: var(--amethyst-light); }
.console .l-reply { color: var(--pink-2); }
.console .ts { color: #6f5873; margin-right: 2px; }
.cmdbar { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: rgba(20, 10, 24, .7); }
.cmdbar .prompt { display: flex; align-items: center; flex: 1; background: rgba(8, 4, 10, .9); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding-left: 14px; transition: border-color .15s, box-shadow .15s; }
.cmdbar .prompt:focus-within { border-color: rgba(255, 138, 216, .7); box-shadow: 0 0 0 4px rgba(240, 98, 196, .15); }
.cmdbar .prompt span { color: var(--pink); font-family: var(--mono); font-weight: 700; }
.cmdbar .prompt input { flex: 1; background: transparent; border: 0; outline: 0; height: 42px; padding: 0 10px; font-family: var(--mono); font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- files ---------- */
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font: 600 13.5px var(--sans); }
.crumbs a { color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.crumbs a:hover { background: rgba(255, 170, 225, .07); color: var(--text); }
.crumbs a:last-child { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.fname { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 550; }
.fname .fi { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; flex: none; }
.fname .fi svg { width: 16px; height: 16px; }
.fname .dir { background: rgba(164, 108, 245, .14); color: var(--amethyst-light); }
.fname .file { background: rgba(255, 255, 255, .04); color: var(--muted); }
.fname .cfg { background: rgba(255, 138, 216, .12); color: var(--pink); }
.fname .jar { background: rgba(255, 199, 90, .12); color: var(--yellow); }
.fname:hover > span:last-child { color: var(--pink-2); }
.dropzone {
  display: block; cursor: pointer; border: 1.5px dashed rgba(255, 170, 225, .25); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted);
  background: rgba(255, 170, 225, .025); transition: border-color .15s, background .15s, transform .15s;
}
.dropzone:hover { border-color: rgba(255, 170, 225, .45); }
.dropzone.over { border-color: var(--pink); background: rgba(240, 98, 196, .08); color: var(--text); transform: scale(1.005); }
.dropzone b { color: var(--text); }
.dropzone .dzi { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 138, 216, .12); color: var(--pink); }
.dropzone .dzi svg { width: 20px; height: 20px; }

.editor-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.editor-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.editor-host { flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.editor-host .CodeMirror { height: 100%; font: 13px/1.6 var(--mono); background: rgba(8, 4, 10, .92); color: #f4def0; }
.CodeMirror-gutters { background: rgba(20, 10, 24, .95) !important; border-right: 1px solid var(--line) !important; }
.CodeMirror-linenumber { color: #5f4864 !important; }
.CodeMirror-cursor { border-left: 2px solid var(--pink) !important; }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: rgba(240, 98, 196, .24) !important; }
.CodeMirror-activeline-background { background: rgba(255, 170, 225, .04) !important; }
.CodeMirror-dialog { background: var(--surface-2); color: var(--text); border-color: var(--line) !important; }
.cm-s-telrion .cm-atom, .cm-s-telrion .cm-def { color: #dcb0ff; }
.cm-s-telrion .cm-keyword { color: #ff8ad8; }
.cm-s-telrion .cm-string { color: #a6f0c8; }
.cm-s-telrion .cm-number { color: #ffc77f; }
.cm-s-telrion .cm-comment { color: #7a6380; font-style: italic; }
.cm-s-telrion .cm-property, .cm-s-telrion .cm-variable-2 { color: #ffb8e8; }
.cm-s-telrion .cm-meta, .cm-s-telrion .cm-qualifier { color: #96bdff; }
.cm-s-telrion .cm-bracket { color: #c4a3c0; }

/* ---------- modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 2, 8, .66); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); background: linear-gradient(180deg, #24132b, #1a0e1f); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal h3 { margin: 0 0 8px; font: 700 19px var(--display); }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal .field { display: grid; gap: 7px; margin-bottom: 14px; }
.modal .field > span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 60; }
.toast { display: flex; gap: 10px; align-items: flex-start; min-width: 280px; max-width: 440px; padding: 13px 15px; border-radius: 14px; background: rgba(36, 19, 41, .95); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: rise .22s ease-out; backdrop-filter: blur(10px); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--green); box-shadow: 0 0 10px var(--green); }
.toast.err::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(164, 108, 245, .09); border: 1px solid rgba(164, 108, 245, .28); color: #eedcff; margin-bottom: 18px; }
.notice.warn { background: rgba(255, 199, 90, .07); border-color: rgba(255, 199, 90, .26); color: #ffe6b0; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.progress { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--amethyst), var(--pink)); animation: slide 1.2s infinite ease-in-out; border-radius: 99px; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- login ---------- */
.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.login::before { content: ""; position: fixed; inset: -60px; background: url("/assets/hero.jpg") center / cover; filter: blur(4px) saturate(1.2) brightness(.8); transform: scale(1.06); z-index: -2; }
.login::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(700px 500px at 50% 45%, rgba(13, 7, 16, .55), transparent 75%), linear-gradient(180deg, rgba(13, 7, 16, .05), rgba(13, 7, 16, .7)); }
.login .stage { display: grid; justify-items: center; width: min(440px, 100%); }
.login .art { width: 230px; margin-bottom: -46px; position: relative; z-index: 1; }
.login .art img { width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .6)); }
.login .box { width: 100%; text-align: center; background: rgba(26, 13, 31, .72); border: 1px solid var(--line-2); border-radius: 26px; padding: 62px 32px 28px; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset; backdrop-filter: blur(20px); }
.login .logo { width: 270px; max-width: 86%; margin: 0 auto 4px; display: block; filter: drop-shadow(0 8px 20px rgba(240, 98, 196, .35)); }
.login h1 { font: 600 11.5px var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin: 6px 0 26px; }
.discord-btn { width: 100%; height: 50px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #6b77ff, #4f5bea); color: #fff; font: 700 15px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 11px; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(88, 101, 242, .8), inset 0 1px 0 rgba(255, 255, 255, .25); transition: filter .15s, transform .06s; }
.discord-btn:hover { filter: brightness(1.08); }
.discord-btn:active { transform: translateY(1px); }
.discord-btn svg { width: 22px; height: 22px; }
.login .err { background: rgba(255, 107, 129, .12); border: 1px solid rgba(255, 107, 129, .4); color: #ffbac4; padding: 11px 13px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; }
.login .fine { color: var(--muted); font-size: 12.5px; margin-top: 18px; line-height: 1.6; }
.login .roles { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.login .mockbox { margin-top: 18px; display: grid; gap: 8px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.login .foot { color: var(--faint); font-size: 11.5px; margin-top: 16px; letter-spacing: .04em; }

.menu-btn { display: none !important; }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } .hero .art { width: 220px; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 40; transform: translateX(-100%); transition: transform .22s; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
  .side.open { transform: none; }
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .top { padding: 14px 16px 10px; flex-wrap: wrap; }
  .top .sub { display: none; }
  .content { padding: 6px 16px 30px; }
  .menu-btn { display: inline-flex !important; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero .art { display: none; }
  .hero .big { gap: 22px; }
  .hero .big b { font-size: 28px; }
  .pill .ptxt { display: none; }
}
