:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-soft: #0a1628;
  --panel: #0e1a2c;
  --panel-2: #111f34;
  --ink: #edf5ff;
  --muted: #9db0ca;
  --line: rgba(161, 181, 214, .22);
  --brand: #60a5fa;
  --brand-2: #2dd4bf;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 20px 70px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(96, 165, 250, .13), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(45, 212, 191, .12), transparent 30%),
    var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(8, 18, 32, .78);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: rgba(96, 165, 250, .75);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .16);
}
textarea { resize: vertical; }
label { display: grid; gap: 7px; color: #d5e2f5; font-weight: 650; }
label small { color: var(--muted); font-weight: 500; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #f8fbff;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 12px 28px rgba(59, 130, 246, .20);
}
.button:hover, button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button:active, button:active { transform: translateY(0) scale(.99); }
.button.secondary, button.secondary { background: rgba(96, 165, 250, .14); color: #bfdbfe; box-shadow: none; }
.button.full { width: 100%; }
.ghost-link { color: #93c5fd; font-weight: 750; }
.eyebrow { margin: 0 0 10px; color: var(--brand-2); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.public-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.public-brand { font-size: 24px; font-weight: 850; letter-spacing: 0; }
.public-page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; }
.public-page.narrow { width: min(860px, calc(100% - 32px)); }
.hero {
  min-height: 54vh;
  display: grid;
  align-content: center;
  padding: 56px 0;
}
.hero.compact { min-height: 35vh; }
.hero h1 { margin: 0; font-size: clamp(46px, 9vw, 104px); line-height: .92; letter-spacing: 0; }
.lead { max-width: 780px; margin: 24px 0 0; font-size: clamp(20px, 3vw, 29px); line-height: 1.45; color: #c3d4eb; }
.lead.small { margin: 0; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.public-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}
.public-band h2 { margin: 0 0 12px; font-size: 32px; }
.public-band p { color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.info-card, .panel, .metric, .login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: panel-in .34s ease both;
}
.info-card { padding: 20px; }
.info-card h3 { margin: 0 0 8px; }
.info-card p { margin: 0; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(96, 165, 250, .16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(45, 212, 191, .16), transparent 30%),
    var(--bg);
}
.login-panel { width: min(440px, 100%); padding: 32px; }
.login-panel h1 { margin: 30px 0 10px; font-size: 36px; }
.login-panel p { color: var(--muted); line-height: 1.6; }
.admin-shell { display: grid; grid-template-columns: 86px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 86px;
  height: 100vh;
  padding: 18px 14px;
  background: rgba(5, 12, 23, .94);
  color: #eef2ff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: width .2s ease, box-shadow .2s ease;
}
.sidebar:hover, .sidebar:focus-within {
  width: 280px;
  box-shadow: 24px 0 60px rgba(0, 0, 0, .28);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
  color: #06111f;
  font-weight: 900;
}
.brand small { display: block; color: #aab7cc; margin-top: 2px; }
.brand-text, .nav-label { opacity: 0; white-space: nowrap; transition: opacity .16s ease; }
.sidebar:hover .brand-text, .sidebar:focus-within .brand-text,
.sidebar:hover .nav-label, .sidebar:focus-within .nav-label { opacity: 1; }
.nav { display: grid; gap: 6px; }
.nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 8px;
  color: #cbd5e1;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  font-weight: 900;
}
.nav a.active, .nav a:hover { background: rgba(96, 165, 250, .16); color: #fff; transform: translateX(2px); }
.logout { margin-top: auto; }
.logout button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: rgba(148, 163, 184, .18);
  box-shadow: none;
}
.workspace { padding: 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: 34px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric { padding: 20px; display: grid; gap: 7px; }
.metric span, .section-title span { color: var(--muted); font-size: 14px; }
.metric strong { font-size: 28px; }
.metric small { color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.panel { padding: 20px; margin-bottom: 16px; }
.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.section-title h2 { margin: 0 0 4px; font-size: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(96, 165, 250, .06); }
th { color: #a9bad2; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.service-list { display: grid; gap: 10px; }
.service-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.service-row small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.service-row.actions { grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input[type=file] { width: 240px; }
.inline-form.mini { display: inline-flex; margin: 0 8px; }
.inline-form.mini input { width: 150px; padding: 7px 9px; }
.inline-form.mini button { padding: 8px 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { padding: 9px 12px; border-radius: 8px; background: rgba(96, 165, 250, .12); color: #bfdbfe; font-weight: 750; }
.tabs a.active { background: var(--brand); color: #fff; }
.file-link { font-weight: 750; color: #93c5fd; }
.right { text-align: right; }
.inline { display: inline; }
.link-danger { background: transparent; color: var(--danger); padding: 0; font-weight: 800; }
.stack { display: grid; gap: 16px; }
.compact-form { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-weight: 700; }
.alert.danger { background: rgba(251, 113, 133, .12); color: #fecdd3; border: 1px solid rgba(251, 113, 133, .35); }
.minecraft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.server-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel-2); animation: panel-in .34s ease both; }
.server-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.server-head h3 { margin: 0 0 5px; }
.server-head span { color: var(--muted); }
.server-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.server-stats span { border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--muted); font-size: 13px; background: rgba(6, 17, 31, .44); }
.server-stats strong { display: block; margin-top: 3px; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.server-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.server-actions button { padding: 9px 12px; }
.console-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 12px 0 16px; }
.pill { border-radius: 999px; background: rgba(52, 211, 153, .15); color: #a7f3d0; padding: 7px 10px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.pill.danger { background: rgba(251, 113, 133, .12); color: #fecdd3; }
.button.danger, button.danger { background: rgba(251, 113, 133, .12); color: #fecdd3; border: 1px solid rgba(251, 113, 133, .35); box-shadow: none; }
.mono, code, pre { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }
.mono { color: #cbd5e1; overflow-wrap: anywhere; }
pre { max-height: 280px; overflow: auto; background: #020617; color: #d1e7ff; padding: 14px; border-radius: 8px; font-size: 13px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain-list li { padding: 10px; background: rgba(6, 17, 31, .56); border-radius: 8px; overflow-wrap: anywhere; }
.scroll-list { max-height: 360px; overflow: auto; }
.mobile-menu { display: none; }
.live-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 26, 44, .72);
}
.live-strip > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-dot, .service-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, .10);
}
.service-dot { display: inline-block; align-self: center; }
.service-dot.stopped { background: var(--danger); box-shadow: 0 0 0 6px rgba(251, 113, 133, .10); }
.button.compact, button.compact { padding: 8px 11px; }
.health-grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.health-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 31, 52, .96), rgba(12, 24, 42, .96));
  box-shadow: var(--shadow);
}
.health-head { display: flex; gap: 14px; align-items: center; }
.health-head h2 { margin: 0 0 4px; font-size: 30px; }
.health-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(96, 165, 250, .14);
  color: #bfdbfe;
  font-weight: 900;
}
.mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-facts span {
  padding: 10px;
  border-radius: 8px;
  background: rgba(6, 17, 31, .55);
  color: var(--muted);
}
.mini-facts strong { display: block; color: var(--ink); font-size: 18px; }
.gauge-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gauge-title span { color: var(--muted); font-weight: 800; }
.gauge-title strong { font-size: 42px; line-height: 1; }
.progress {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
}
.progress span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #60a5fa);
  transition: width .45s ease;
}
.dashboard-panels { align-items: start; }
.disk-list { display: grid; gap: 12px; }
.disk-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 17, 31, .42);
}
.disk-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.disk-main strong, .disk-main small { display: block; overflow-wrap: anywhere; }
.disk-main small, .disk-card > small { color: var(--muted); }
.live-services .service-row {
  grid-template-columns: auto minmax(150px, 1fr) minmax(120px, auto);
  background: rgba(6, 17, 31, .34);
}
.live-services .service-row small { grid-column: 2 / -1; }
.file-explorer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.explorer-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 31, .28);
}
.explorer-header h2 { margin: 0; font-size: 28px; }
.explorer-header.compact { align-items: center; }
.location-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.location-title > div { min-width: 0; }
.location-tabs { justify-content: flex-end; }
.explorer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}
.breadcrumbs a, .breadcrumbs strong {
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(96, 165, 250, .10);
}
.breadcrumbs span { color: var(--muted); }
.explorer-actions, .file-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.explorer-actions { flex-wrap: wrap; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(96, 165, 250, .12);
  color: #bfdbfe;
  font-weight: 900;
  box-shadow: none;
}
.icon-button:hover { transform: translateY(-1px); }
.icon-button.danger { background: rgba(251, 113, 133, .12); color: #fecdd3; }
.icon-button.wide { width: auto; min-width: 62px; padding: 0 14px; }
.file-commandbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.file-commandbar.simple { align-items: stretch; }
.command-form { display: flex; gap: 8px; align-items: center; min-width: min(100%, 360px); }
.command-form input[name="name"] { min-width: 220px; }
.file-picker {
  display: inline-flex;
  align-items: center;
  min-width: 230px;
  padding: 10px 12px;
  border: 1px dashed rgba(147, 197, 253, .42);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(6, 17, 31, .36);
  cursor: pointer;
}
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 112px;
  margin: 14px 24px;
  padding: 20px;
  border: 1px dashed rgba(147, 197, 253, .45);
  border-radius: 8px;
  background: rgba(6, 17, 31, .38);
  color: var(--muted);
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.drop-zone strong { color: #d9ebff; font-size: 17px; }
.drop-zone.is-dragover {
  border-color: rgba(45, 212, 191, .95);
  background: rgba(45, 212, 191, .10);
  transform: translateY(-1px);
}
.drop-progress {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(96, 165, 250, .14);
  color: #bfdbfe;
  font-weight: 800;
}
.explorer-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.file-list { display: grid; }
.file-list-head, .file-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(90px, .45fr) minmax(150px, .65fr) minmax(130px, .6fr) minmax(140px, .55fr);
  gap: 12px;
  align-items: center;
  padding: 11px 24px;
}
.file-list-head {
  color: #a9bad2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(6, 17, 31, .30);
}
.file-row {
  min-height: 62px;
  border-top: 1px solid var(--line);
  transition: background .16s ease;
}
.file-row:hover { background: rgba(96, 165, 250, .08); }
.file-name { min-width: 0; }
.file-name a, .file-open {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.file-open {
  width: 100%;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
}
.file-open:hover { transform: none; filter: none; }
.file-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfe4ff;
}
.file-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 18px;
  background: rgba(148, 163, 184, .14);
  color: #dbeafe;
}
.folder-icon { background: rgba(96, 165, 250, .18); color: #93c5fd; }
.image-icon { background: rgba(45, 212, 191, .14); color: #99f6e4; }
.video-icon { background: rgba(14, 165, 233, .16); color: #bae6fd; }
.audio-icon { background: rgba(168, 85, 247, .16); color: #e9d5ff; }
.archive-icon { background: rgba(251, 191, 36, .14); color: #fde68a; }
.pdf-icon { background: rgba(251, 113, 133, .14); color: #fecdd3; }
.text-icon, .file-icon-doc { background: rgba(45, 212, 191, .12); color: #99f6e4; }
.file-size, .file-date, .file-owner { color: #cbd5e1; overflow-wrap: anywhere; }
.rename-menu { position: relative; }
.rename-menu summary { list-style: none; cursor: pointer; }
.rename-menu summary::-webkit-details-marker { display: none; }
.rename-popover {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 5;
  width: min(360px, 78vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1728;
  box-shadow: var(--shadow);
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px;
  color: var(--muted);
}
.viewer-open { overflow: hidden; }
.viewer-modal[hidden] { display: none; }
.viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}
.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(10px);
}
.viewer-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071323;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panel-in .22s ease both;
}
.viewer-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.viewer-panel h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}
.viewer-panel header > div { display: flex; gap: 8px; flex: 0 0 auto; }
.viewer-body {
  min-height: 280px;
  max-height: calc(92vh - 68px);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
  background: #020617;
}
.viewer-body img {
  max-width: 100%;
  max-height: calc(92vh - 110px);
  object-fit: contain;
}
.viewer-body video {
  width: 100%;
  max-height: calc(92vh - 110px);
  background: #000;
}
.viewer-body audio { width: min(720px, 100%); }
.viewer-fallback {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(14, 26, 44, .82);
}
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.permission-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(6, 17, 31, .42);
}
.check-card input { width: auto; accent-color: var(--brand-2); }
.user-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel-2); animation: panel-in .34s ease both; }
.user-card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.user-card-head h3 { margin: 0 0 5px; }
.user-card-head p { margin: 0; color: var(--muted); }
.password-sync { margin-top: 12px; }
.feedback-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 13px 16px;
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: 8px;
  background: rgba(14, 26, 44, .96);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: toast-in .22s ease both;
}
button.is-loading { pointer-events: none; opacity: .76; }
button.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin .7s linear infinite;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { width: 78px; padding: 14px 10px; }
  .sidebar:hover, .sidebar:focus-within { width: 250px; }
  .nav { grid-template-columns: 1fr; }
  .metric-grid, .panel-grid, .minecraft-grid, .public-band, .user-cards, .permission-grid, .permission-grid.compact, .health-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .explorer-header, .explorer-toolbar { display: grid; align-items: stretch; }
  .location-tabs { justify-content: start; }
  .file-list-head { display: none; }
  .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name actions"
      "size actions"
      "date owner";
    gap: 6px 10px;
  }
  .file-name { grid-area: name; min-width: 0; }
  .file-size { grid-area: size; }
  .file-date { grid-area: date; font-size: 13px; color: var(--muted); }
  .file-owner { grid-area: owner; justify-self: end; font-size: 13px; color: var(--muted); }
  .file-actions { grid-area: actions; }
}
@media (max-width: 640px) {
  .admin-shell { display: block; }
  .mobile-menu {
    position: fixed;
    right: 14px;
    top: 14px;
    z-index: 80;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(14, 26, 44, .96);
    box-shadow: var(--shadow);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(86vw, 320px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto;
  }
  .nav-open .sidebar { transform: translateX(0); }
  .nav { grid-template-columns: 1fr; }
  .workspace { padding: 76px 14px 18px; }
  .sidebar .brand-text, .sidebar .nav-label { opacity: 1; }
  .sidebar:hover, .sidebar:focus-within { width: min(86vw, 320px); }
  .topbar, .section-title { display: grid; }
  .metric-grid, .form-grid, .server-stats, .console-form { grid-template-columns: 1fr; }
  .service-row, .service-row.actions { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .topbar h1 { font-size: 32px; }
  .live-strip, .explorer-header, .explorer-toolbar, .file-commandbar { padding-left: 14px; padding-right: 14px; }
  .drop-zone { margin-left: 14px; margin-right: 14px; }
  .live-strip { display: grid; }
  .command-form, .upload-form { width: 100%; min-width: 0; display: grid; grid-template-columns: 1fr; }
  .command-form input[name="name"], .file-picker { min-width: 0; width: 100%; }
  .tabs a { flex: 1 1 auto; text-align: center; }
  .file-row { padding: 12px 14px; }
  .file-name strong { white-space: normal; }
  .file-actions { flex-wrap: wrap; justify-content: end; }
  .rename-popover { right: -46px; width: min(330px, calc(100vw - 28px)); }
  .health-card { min-height: 130px; }
  .gauge-title strong { font-size: 34px; }
  .viewer-modal { padding: 10px; }
  .viewer-body { min-height: 220px; padding: 10px; }
}
