@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/RobotoMono.woff2') format('woff2');
}

/* MineDevHD.net visual language: charcoal, mono typography, and blue-mint gradients. */
:root {
  color-scheme: dark;
  --bg: #171717;
  --panel: rgba(32, 32, 32, .91);
  --line: rgba(255, 255, 255, .12);
  --text: #f3f3f3;
  --muted: #9b9b9b;
  --accent: #6a9cff;
  --accent-2: #8affc1;
  --green: #8affc1;
  --yellow: #e8c87e;
  --red: #ff858d;
  --radius: 14px;
  --shadow: 0 24px 68px rgba(0, 0, 0, .3);
}
html, body { background: var(--bg); color: var(--text); font-family: "Roboto Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace; line-height: 1.48; }
body { -webkit-font-smoothing: antialiased; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .15;
  background-image: radial-gradient(rgba(255,255,255,.12) .65px, transparent .65px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.ambient { opacity: .07; filter: blur(130px); }
.ambient-a { background: #6a9cff; }
.ambient-b { background: #8affc1; }
::selection { background: rgba(106,156,255,.38); color: #fff; }
:focus-visible { outline: 2px solid #8affc1; outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(23px, 2.8vw, 32px); }
.eyebrow { color: #8affc1; letter-spacing: .1em; }
.brand-row strong, .login-card h1 {
  background: linear-gradient(100deg, #6a9cff, #8affc1, #6a9cff);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: brand-flow 9s ease-in-out infinite alternate;
}
@keyframes brand-flow { from { background-position: 0 50%; } to { background-position: 100% 50%; } }
.brand-mark, .brand-mark.small {
  color: #171717;
  background: linear-gradient(135deg, #6a9cff, #8affc1);
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(106,156,255,.13);
  letter-spacing: -.12em;
}
.brand-mark span { color: #171717; }
.login-card {
  background: linear-gradient(145deg, rgba(39,39,39,.97), rgba(25,25,25,.97));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
}
.sidebar {
  background: rgba(23,23,23,.92);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav-item { border: 1px solid transparent; color: #a7a7a7; }
.nav-item.active, .nav-item:hover {
  color: #bfe9d5;
  border-color: rgba(138,255,193,.18);
  background: rgba(138,255,193,.055);
}
.nav-dot { background: #8affc1; opacity: .95; }
.button, .icon-button { border-radius: 9px; }
.button.primary {
  color: #121b19;
  background: linear-gradient(115deg, #6a9cff, #8affc1);
  border-color: rgba(138,255,193,.2);
  text-shadow: none;
}
.button.secondary {
  color: #b7e4da;
  background: rgba(138,255,193,.045);
  border-color: rgba(138,255,193,.2);
}
.button.ghost, .icon-button {
  color: #d3d3d3;
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.12);
}
.button:hover, .icon-button:hover { filter: brightness(1.13); border-color: rgba(138,255,193,.42); }
input, select {
  background: #191919;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #f3f3f3;
}
input:focus, select:focus {
  border-color: rgba(138,255,193,.72);
  box-shadow: 0 0 0 3px rgba(138,255,193,.08);
}
.metric, .log-storage-panel, .bot-card, .log-delete-stat, .stat {
  background: rgba(34,34,34,.9);
  border-color: var(--line);
  box-shadow: 0 9px 30px rgba(0,0,0,.12);
}
.metric { border-radius: 13px; }
.metric strong { color: #d6fbe7; }
.bot-card { border-radius: 13px; }
.bot-card::after { background: #8affc1; opacity: .025; }
.bot-card:hover { border-color: rgba(138,255,193,.3); }
.bot-sub, .craft-line, .stat span { overflow-wrap: anywhere; }
.craft-line {
  color: #c7e5d8;
  background: rgba(138,255,193,.035);
  border-color: rgba(138,255,193,.16);
}
.log-storage-track span, .upload-progress-bar {
  background: linear-gradient(90deg, #6a9cff, #8affc1);
}
.modal-backdrop { background: rgba(9,9,9,.82); }
.modal-card { background: #202020; border-color: rgba(255,255,255,.17); border-radius: 17px; }
.modal-head { background: rgba(32,32,32,.96); border-color: var(--line); }
.server-mini, .upload-drop-zone, .create-intro, .confirm-hint { border-radius: 10px; }
.upload-drop-zone { border-color: rgba(138,255,193,.28); background: rgba(138,255,193,.035); }
.upload-drop-zone.dragging, .upload-drop-zone:focus { border-color: #8affc1; background: rgba(138,255,193,.07); }
.upload-bot-option:hover { border-color: rgba(138,255,193,.28); }
.upload-bot-option input:checked + .upload-checkmark { background: linear-gradient(135deg,#6a9cff,#8affc1); }
.topbar { flex-wrap: wrap; }
.top-actions { flex-wrap: wrap; justify-content: flex-end; }
.sidebar-categories { margin-top: 22px; overflow: auto; min-height: 0; }
.sidebar-section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 10px; color: #aaa; text-transform: uppercase; font-size: 10px; letter-spacing: .11em; font-weight: 800; }
.category-add-button { width: 27px; height: 27px; border-radius: 7px; font-size: 18px; }
.category-sidebar-list { display: grid; gap: 4px; }
.category-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #a9a9a9;
  background: transparent;
  font: inherit;
  font-size: 11px;
}
.category-nav-item:hover, .category-nav-item.active {
  border-color: rgba(138,255,193,.22);
  color: #d2f7e4;
  background: rgba(138,255,193,.045);
}
.category-nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-count { padding: 2px 6px; color: #999; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.bot-filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(32,32,32,.75);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bot-filter-bar label { display: grid; gap: 5px; min-width: 160px; font-size: 10px; }
.bot-filter-bar label span { color: #bcbcbc; }
.search-control { flex: 1 1 245px; }
.filter-control { flex: 0 1 215px; }
.bot-filter-bar .button { min-height: 42px; }
#visibleBotCount { margin-left: auto; white-space: nowrap; }
.bot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.bot-group { min-width: 0; }
.bot-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.bot-group-header h4 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.bot-group-header span { color: var(--muted); font-size: 11px; }
.bot-group-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.bot-category-row { display: grid; grid-template-columns: 1fr minmax(120px, 62%); align-items: center; gap: 8px; margin-bottom: 15px; }
.bot-category-row label { color: #aaa; font-size: 10px; }
.bot-category-select { min-width: 0; padding: 8px 10px; font-size: 11px; }
.category-manager-card { width: min(730px,100%); }
.category-manager-content { padding: 22px; }
.category-create-form { margin-bottom: 16px; }
.category-create-form > label { display: block; margin-bottom: 8px; }
.category-manager-content > p { margin-bottom: 14px; line-height: 1.65; }
.category-manager-list { display: grid; gap: 10px; max-height: 45vh; overflow-y: auto; }
.category-manager-row { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.category-manager-row > label { display: block; margin-bottom: 8px; }
.category-edit-controls { display: flex; align-items: center; gap: 8px; }
.category-edit-controls input { min-width: 0; flex: 1; }
.category-edit-controls .button { white-space: nowrap; }
.category-delete-confirm { margin-top: 15px; padding: 15px; border: 1px solid rgba(255,133,141,.32); background: rgba(255,133,141,.04); border-radius: 9px; }
.category-delete-confirm p { margin: 0; font-size: 12px; line-height: 1.6; }
.category-delete-confirm .confirm-actions { margin-top: 12px; }
@media (max-width: 1200px) {
  .bot-group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .bot-group-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar-categories { display: none; }
  .top-actions { justify-content: flex-start; }
  .bot-filter-bar { align-items: stretch; }
  .bot-filter-bar label { flex: 1 1 100%; }
  #visibleBotCount { margin-left: 0; }
  .category-edit-controls { flex-wrap: wrap; }
  .category-edit-controls input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-row strong, .login-card h1 { animation: none; }
  .button, .icon-button, .bot-card { transition: none; }
}
