/* LuaRN v1.5.2 shared UI system */
:root {
  --lrn-mint: #7cf3c1;
  --lrn-mint-strong: #49dca4;
  --lrn-violet: #a89aff;
  --lrn-text: #edf7f4;
  --lrn-muted: #98aaaF;
  --lrn-edge: rgba(174, 215, 205, .14);
  --lrn-glass: rgba(14, 23, 31, .78);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(167, 211, 198, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 211, 198, .035) 1px, transparent 1px);
  background-size: 42px 42px; opacity: .30;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}
.suite-nav { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.suite-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding: 8px 11px; border: 1px solid transparent; border-radius: 10px;
  color: #a8b9b7; background: transparent; text-decoration: none; white-space: nowrap;
  font: 650 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .005em;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.suite-nav a:hover, .suite-nav a:focus-visible {
  color: var(--lrn-text); border-color: var(--lrn-edge); background: rgba(124, 243, 193, .07); outline: none;
}
.suite-nav a.is-current, .suite-nav a[aria-current="page"] {
  color: #c8ffe6; border-color: rgba(124, 243, 193, .20); background: linear-gradient(135deg, rgba(124,243,193,.12), rgba(168,154,255,.08));
}
.suite-nav .admin-nav { opacity: .92; }
.topbar, .top { gap: clamp(10px, 2vw, 24px); }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.5vw, 20px); min-width: 0; }
.topbar-status { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { flex: 0 0 auto; }
.panel, .stats article, .auth-panel, .analytics-panel, .grid-two > .panel {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .20), inset 0 1px rgba(255,255,255,.025);
  transition: border-color .20s ease, box-shadow .20s ease, transform .20s ease;
}
.panel:hover, .stats article:hover { border-color: rgba(124,243,193,.23); box-shadow: 0 22px 60px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.035); }
:where(button, input, select, textarea, a, [tabindex]):focus-visible { outline: 2px solid rgba(124,243,193,.85); outline-offset: 3px; }
:where(input, select, textarea) { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
:where(input, select, textarea):focus { border-color: rgba(124,243,193,.65) !important; box-shadow: 0 0 0 3px rgba(124,243,193,.09); }
:where(button, .btn, .primary, .secondary, .primary-button, .download-button) { touch-action: manipulation; transition: transform .16s ease, filter .16s ease, border-color .16s ease, box-shadow .16s ease; }
:where(button, .btn, .primary, .secondary, .primary-button, .download-button):not(:disabled):hover { filter: brightness(1.06); }
:where(button, .btn, .primary, .secondary, .primary-button, .download-button):not(:disabled):active { transform: translateY(1px) scale(.995); }
:where(button, .btn, .primary, .secondary, .primary-button, .download-button):disabled { cursor: not-allowed; }
.hero, .hero-copy { animation: lrn-rise-in .44s cubic-bezier(.2,.7,.2,1) both; }
.hero-visual { animation: lrn-fade-in .65s ease .05s both; }
@keyframes lrn-rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lrn-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .panel:hover { transform: translateY(-1px); }
  .suite-nav a:hover { transform: translateY(-1px); }
}
@media (max-width: 980px) {
  .topbar, .top { flex-wrap: wrap; min-height: 68px; height: auto; padding-block: 10px; }
  .suite-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .suite-nav::-webkit-scrollbar { display: none; }
  .topbar-right { flex: 1 1 100%; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .topbar-status { margin-left: auto; }
}
@media (max-width: 560px) {
  .suite-nav { flex: 1 1 100%; order: 2; gap: 3px; padding-bottom: 1px; }
  .suite-nav a { min-height: 35px; padding: 8px 10px; font-size: 10px; }
  .topbar-right { gap: 7px; }
  .topbar-status { width: 100%; justify-content: space-between; margin-left: 0; }
  .suite-nav .admin-nav { display: none; }
  body::before { background-size: 32px 32px; opacity: .20; }
  .panel, .stats article { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
