:root {
  --gp-primary: #4f46e5;
  --gp-primary-dark: #4338ca;
  --gp-primary-soft: #eef2ff;
  --gp-ink: #0f172a;
  --gp-text: #334155;
  --gp-muted: #64748b;
  --gp-faint: #94a3b8;
  --gp-border: #e2e8f0;
  --gp-surface: #ffffff;
  --gp-bg: #f5f7fb;
  --gp-radius: 18px;
  --gp-radius-sm: 12px;
  --gp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 40px -26px rgba(15, 23, 42, .22);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--gp-text);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 520px at 105% -8%, #e0e7ff 0%, rgba(224, 231, 255, 0) 62%),
    radial-gradient(900px 500px at -12% 12%, #ccfbf1 0%, rgba(204, 251, 241, 0) 55%),
    var(--gp-bg);
  background-attachment: fixed;
}

a {
  color: var(--gp-primary-dark);
}

a:hover {
  color: var(--gp-primary);
}

::selection {
  background: #c7d2fe;
  color: #1e1b4b;
}

:root,
[data-bs-theme="light"] {
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4338ca;
  --bs-link-hover-color: #4f46e5;
  --bs-body-color: #334155;
  --bs-border-color: #e2e8f0;
}

.btn-primary {
  --bs-btn-bg: #4f46e5;
  --bs-btn-border-color: #4f46e5;
  --bs-btn-hover-bg: #4338ca;
  --bs-btn-hover-border-color: #4338ca;
  --bs-btn-active-bg: #3730a3;
  --bs-btn-active-border-color: #3730a3;
  --bs-btn-disabled-bg: #818cf8;
  --bs-btn-disabled-border-color: #818cf8;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .65);
}

.btn-outline-primary {
  --bs-btn-color: #4338ca;
  --bs-btn-border-color: #c7d2fe;
  --bs-btn-hover-bg: #eef2ff;
  --bs-btn-hover-color: #3730a3;
  --bs-btn-hover-border-color: #a5b4fc;
  --bs-btn-active-bg: #e0e7ff;
  --bs-btn-active-color: #312e81;
  --bs-btn-active-border-color: #a5b4fc;
}

.btn-outline-secondary {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-bg: #f1f5f9;
  --bs-btn-hover-color: #1e293b;
  --bs-btn-hover-border-color: #94a3b8;
}

.form-control,
.form-select,
.input-group-text {
  border-color: #dbe2ea;
}

.form-control:focus,
.form-select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 .25rem rgba(79, 70, 229, .12);
}

.input-group-text {
  color: var(--gp-muted);
}

.min-w-0 {
  min-width: 0;
}

.tiny-muted {
  color: var(--gp-faint);
  font-size: .74rem;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.navbar-gp {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  padding: .7rem 0;
  z-index: 1030;
}

.navbar-brand-gp {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--gp-ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.navbar-brand-gp:hover {
  color: var(--gp-ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 130%);
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gp-faint);
  font-weight: 600;
  margin-top: .18rem;
}

.brand-sub-light {
  color: rgba(199, 210, 254, .75);
}

.brand-mark-light {
  box-shadow: 0 10px 25px -8px rgba(15, 23, 42, .6);
}

.nav-link-gp {
  color: #475569;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 10px;
  padding: .5rem .85rem !important;
  transition: color .15s ease, background .15s ease;
}

.nav-link-gp:hover {
  color: var(--gp-primary-dark);
  background: #f1f5ff;
}

.nav-link-gp.active {
  color: var(--gp-primary-dark);
  background: #eef2ff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-chip i {
  color: #6366f1;
}

/* ------------------------------------------------------------------ */
/* Shared surfaces                                                     */
/* ------------------------------------------------------------------ */

.card-gp {
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #a5b4fc;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: #6366f1;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gp-ink);
}

.section-title-sm {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--gp-ink);
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 1.1rem;
  flex: none;
}

.section-icon-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.badge-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 .45rem;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: .78rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 2.6rem;
  color: #fff;
  background: linear-gradient(118deg, #111827 0%, #1e1b4b 46%, #312e81 78%, #0e7490 150%);
  box-shadow: 0 30px 65px -35px rgba(30, 27, 75, .85);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -150px;
  background: radial-gradient(circle, rgba(129, 140, 248, .45) 0%, rgba(129, 140, 248, 0) 70%);
}

.hero-glow-two {
  width: 280px;
  height: 280px;
  right: 24%;
  bottom: -190px;
  background: radial-gradient(circle, rgba(34, 211, 238, .28) 0%, rgba(34, 211, 238, 0) 70%);
}

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.22;
  margin: 1rem 0 1rem;
}

.hero-copy {
  color: #c7d2fe;
  font-size: .95rem;
  line-height: 1.75;
  max-width: 37rem;
  margin-bottom: 0;
}

.btn-hero-ghost {
  color: #e0e7ff;
  border: 1px solid rgba(224, 231, 255, .32);
  background: rgba(255, 255, 255, .04);
}

.btn-hero-ghost:hover {
  color: #fff;
  border-color: rgba(224, 231, 255, .65);
  background: rgba(255, 255, 255, .12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.stat-pill {
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  padding: .8rem .95rem;
  backdrop-filter: blur(8px);
  min-width: 0;
}

.stat-label {
  color: #a5b4fc;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.stat-value {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ */
/* Filters and package cards                                           */
/* ------------------------------------------------------------------ */

.filter-card {
  padding: 1rem 1.15rem;
}

/* Directory navigation */
.dir-nav {
  padding: 1rem 1.15rem;
}

.dir-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.dir-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem;
  font-size: .78rem;
  font-weight: 650;
  min-width: 0;
}

.dir-crumbs a {
  color: #475569;
  text-decoration: none;
  padding: .18rem .38rem;
  border-radius: .45rem;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dir-crumbs a:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.dir-crumbs a.active {
  color: #4338ca;
  background: #eef2ff;
}

.dir-sep {
  color: #cbd5e1;
  font-size: .62rem;
}

.dir-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
}

.dir-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border-radius: .65rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.dir-chip:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
  transform: translateY(-1px);
}

.dir-chip > i {
  color: #6366f1;
}

.dir-chip-up {
  background: #fff;
  border-style: dashed;
}

.dir-chip-up > i {
  color: #64748b;
}

.dir-name {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dir-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .66rem;
  font-weight: 750;
}

a.badge-category:hover {
  background: #cffafe;
  border-color: #67e8f9;
  color: #155e75;
}

.package-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.package-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 22px 45px -28px rgba(49, 46, 129, .45);
}

.pkg-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.ext-tile {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: .25rem;
  text-align: center;
  font-size: .58rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #4338ca;
  background: linear-gradient(145deg, #f5f7ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  word-break: break-all;
}

.pkg-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--gp-ink);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pkg-filename {
  margin-top: .18rem;
  color: var(--gp-faint);
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.badge-category,
.badge-lock,
.badge-sha {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .62rem;
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-category {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.badge-lock {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-sha {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  cursor: help;
}

.pkg-desc {
  margin: .9rem 0;
  color: #526174;
  font-size: .84rem;
  line-height: 1.65;
  min-height: 2.75em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.pkg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  color: var(--gp-muted);
  font-size: .74rem;
}

.pkg-meta i {
  color: #818cf8;
  margin-right: .15rem;
}

.pkg-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 10px;
  padding: .48rem .85rem;
  font-size: .82rem;
  font-weight: 650;
  color: #fff;
  border: 1px solid var(--gp-primary);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 8px 16px -10px rgba(79, 70, 229, .8);
}

.btn-download:hover {
  color: #fff;
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  border-color: #4338ca;
}

.btn-download.is-loading {
  opacity: .75;
  pointer-events: none;
}

.locked-panel {
  margin-top: .9rem;
  padding: .85rem;
  border-radius: var(--gp-radius-sm);
  border: 1px dashed #c7d2fe;
  background: #f8faff;
}

.pagination {
  --bs-pagination-color: #4338ca;
  --bs-pagination-border-color: #e2e8f0;
  --bs-pagination-hover-bg: #eef2ff;
  --bs-pagination-hover-color: #3730a3;
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12);
  --bs-pagination-active-bg: #4f46e5;
  --bs-pagination-active-border-color: #4f46e5;
}

.pagination .page-link {
  border-radius: 10px;
  margin: 0 .16rem;
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: .84rem;
}

.empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.empty-state .empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #6366f1;
  font-size: 1.8rem;
}

.empty-state p {
  max-width: 28rem;
  margin: .6rem auto 1.5rem;
}

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */

body.login-body {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(1400px 700px at 8% -12%, #c7d2fe 0%, rgba(199, 210, 254, 0) 55%),
    radial-gradient(1100px 650px at 112% 112%, #99f6e4 0%, rgba(153, 246, 228, 0) 52%),
    #eef2ff;
}

.login-shell {
  width: min(1000px, 100%);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 40px 90px -42px rgba(30, 27, 75, .55);
}

.login-aside {
  position: relative;
  overflow: hidden;
  padding: 2.8rem;
  color: #fff;
  background: linear-gradient(150deg, #1e1b4b 0%, #312e81 48%, #0e7490 130%);
}

.login-aside-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .35) 0%, rgba(34, 211, 238, 0) 68%);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.login-brand:hover {
  color: #fff;
}

.login-brand-dark {
  color: var(--gp-ink);
}

.login-brand-dark:hover {
  color: var(--gp-ink);
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  color: #a5b4fc;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-headline {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.18;
  margin: 1rem 0 1rem;
}

.login-lead {
  color: #c7d2fe;
  line-height: 1.8;
  font-size: .92rem;
  max-width: 26rem;
}

.login-features {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: .8rem;
  font-size: .84rem;
  color: #e0e7ff;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.login-features i {
  color: #5eead4;
  margin-top: .1rem;
}

.login-aside-foot {
  color: rgba(199, 210, 254, .65);
  font-size: .72rem;
  letter-spacing: .08em;
}

.login-panel {
  padding: 3rem;
  display: flex;
  align-items: center;
}

.login-form-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #4338ca;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.login-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gp-ink);
  margin: 1rem 0 .35rem;
}

.login-subtitle {
  color: var(--gp-muted);
  font-size: .88rem;
  margin-bottom: 1.5rem;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 3rem;
  border-radius: 12px;
}

.password-toggle {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gp-muted);
  display: grid;
  place-items: center;
}

.password-toggle:hover {
  background: #f1f5f9;
  color: var(--gp-ink);
}

.login-panel .form-control-lg {
  padding: .8rem 3rem .8rem 1rem;
  font-size: .95rem;
  border-radius: 12px;
}

.login-panel .btn-lg {
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 650;
  padding: .78rem 1rem;
}

.login-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  color: var(--gp-faint);
  font-size: .74rem;
}

.login-meta a {
  text-decoration: none;
  color: var(--gp-muted);
}

.login-meta a:hover {
  color: var(--gp-primary);
}

.login-hint {
  margin-top: 1.5rem;
  padding: .75rem .85rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--gp-border);
  color: var(--gp-muted);
  font-size: .74rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */

.page-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gp-ink);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  height: 100%;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex: none;
}

.stat-indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.stat-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.stat-amber {
  background: #fffbeb;
  color: #d97706;
}

.stat-rose {
  background: #fff1f2;
  color: #e11d48;
}

.stat-caption {
  color: var(--gp-muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stat-number {
  color: var(--gp-ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  text-align: center;
  padding: 1.6rem 1rem;
  border: 2px dashed #c7d2fe;
  border-radius: 15px;
  background: #f8faff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #6366f1;
  background: #eef2ff;
}

.dropzone.dragover {
  transform: scale(1.01);
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e0e7ff;
  color: #4f46e5;
  font-size: 1.35rem;
  margin-bottom: .3rem;
}

.dropzone-title {
  font-weight: 700;
  color: #3730a3;
  font-size: .9rem;
}

.dropzone-hint {
  color: var(--gp-muted);
  font-size: .74rem;
}

.dropzone-types {
  color: var(--gp-faint);
  font-size: .65rem;
  word-break: break-word;
  max-width: 100%;
}

.dropzone-file {
  margin-top: .55rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: .74rem;
  font-weight: 650;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--gp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  color: var(--gp-faint);
  font-size: .7rem;
}

.mini-ext {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: .15rem;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #4338ca;
  font-size: .5rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  word-break: break-all;
  text-align: center;
}

.empty-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gp-faint);
  padding: 1rem;
}

.empty-inline i {
  font-size: 1.8rem;
  color: #c7d2fe;
}

.empty-inline p {
  margin: .6rem 0 0;
  font-size: .8rem;
  max-width: 22rem;
}

.btn-soft {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.btn-soft:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.btn-soft-danger {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #e11d48;
}

.btn-soft-danger:hover {
  background: #ffe4e6;
  border-color: #fecdd3;
  color: #be123c;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gp-border);
}

.admin-filter {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.admin-filter .input-group {
  width: 200px;
}

.admin-filter .form-select {
  width: 140px;
}

.admin-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--gp-border);
  color: var(--gp-faint);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .7rem 1.25rem;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: .84rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #fbfdff;
}

.file-name {
  font-weight: 700;
  color: var(--gp-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-sub {
  color: var(--gp-faint);
  font-size: .7rem;
  overflow-wrap: anywhere;
}

.file-desc {
  color: #64748b;
  font-size: .7rem;
  margin-top: .15rem;
  overflow-wrap: anywhere;
}

.download-count {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: .15rem .4rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: .76rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer-gp {
  margin-top: auto;
  padding: 1.6rem 0;
  color: var(--gp-muted);
  font-size: .76rem;
  border-top: 1px solid rgba(226, 232, 240, .8);
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  margin-right: .4rem;
}

.footer-gp a {
  color: var(--gp-muted);
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
  .login-aside {
    padding: 2.2rem;
    min-height: auto;
  }

  .login-panel {
    padding: 2.2rem;
  }

  .login-aside .login-headline {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  body.login-body {
    padding: 1rem;
    place-items: start center;
  }

  .login-shell {
    margin: 1rem 0;
  }

  .login-panel,
  .login-aside {
    padding: 1.6rem;
  }

  .hero {
    padding: 1.7rem;
    border-radius: 22px;
  }

  .hero-copy {
    font-size: .88rem;
  }

  .hero-stats {
    gap: .55rem;
  }

  .stat-pill {
    padding: .65rem .8rem;
  }

  .stat-value {
    font-size: 1.05rem;
  }

  .filter-card {
    padding: .9rem;
  }

  .table-toolbar {
    align-items: flex-start;
  }

  .admin-filter {
    width: 100%;
  }

  .admin-filter .input-group {
    flex: 1 1 160px;
    width: auto;
  }

  .admin-filter .form-select {
    flex: 1 1 120px;
    width: auto;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: .7rem .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
