:root {
  color-scheme: dark;
  --wallpaper: linear-gradient(135deg, #0f172a, #1e293b 45%, #082f49);
  --wallpaper-blur: 0px;
  --wallpaper-mask: rgba(2, 6, 23, 0);
  --search-bg: rgba(255, 255, 255, 0.12);
  --search-border: rgba(255, 255, 255, 0.22);
  --search-text: #f8fafc;
  --nav-card-bg: rgba(255, 255, 255, 0.18);
  --nav-card-bg-hover: rgba(255, 255, 255, 0.28);
  --card: rgba(15, 23, 42, 0.58);
  --card-strong: rgba(15, 23, 42, 0.78);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --danger: #fb7185;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #020617;
  background-image: var(--wallpaper);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--wallpaper-mask);
  backdrop-filter: blur(var(--wallpaper-blur));
}

.admin-body::before,
.login-body::before {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
  backdrop-filter: blur(1px);
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.shell {
  min-height: 100vh;
  padding-top: 76px;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.06em;
}

.hero .admin-link {
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.clock {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.44);
  line-height: 1;
}

.clock strong {
  font-size: 60px;
  letter-spacing: -0.04em;
}

.clock span {
  color: var(--muted);
  font-size: 20px;
  white-space: nowrap;
}

.description {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.admin-link,
button,
.import-json {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-link:hover,
button:hover,
.import-json:hover,
.nav-card:hover {
  transform: translateY(-2px);
  background: var(--nav-card-bg-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .gear-admin-link {
  position: fixed;
  right: 142px;
  bottom: 22px;
  z-index: 20;
  width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}

.notes-toggle {
  position: fixed;
  right: 82px;
  bottom: 22px;
  z-index: 20;
  width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}

.logout-link {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}

.notes-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 30;
  width: min(320px, calc(100vw - 44px));
  max-height: min(520px, calc(100vh - 112px));
  padding: 18px;
  overflow: auto;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
}

.notes-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notes-panel-head span,
.note-time {
  color: var(--muted);
  font-size: 13px;
}

.notes-list {
  display: grid;
  gap: 10px;
}

.note-list-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
}

.compact-empty {
  padding: 14px;
  margin: 0;
}

.note-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.note-dialog[hidden],
.notes-panel[hidden],
.notes-toggle[hidden] {
  display: none;
}

.note-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(6px);
}

.note-dialog-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(20px);
}

.note-dialog-head,
.note-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note-title-input,
.note-content-input {
  width: 100%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid var(--border);
  outline: none;
}

.note-title-input {
  min-height: 44px;
  padding: 0 14px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 16px;
}

.note-content-input {
  min-height: 260px;
  padding: 14px;
  line-height: 1.7;
  resize: vertical;
  border-radius: 18px;
}

.note-time {
  margin: 0;
}

.note-dialog-actions {
  flex-wrap: wrap;
}

.note-dialog-actions .status {
  margin-right: auto;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.68);
}

.admin-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 36px));
  height: min(820px, calc(100vh - 36px));
  overflow: hidden;
  background: #f3f6fb;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.34);
  transform: translate(-50%, -50%);
  contain: layout paint;
  will-change: transform;
}

.admin-modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  color: #e5edff;
  cursor: grab;
  user-select: none;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.admin-modal-titlebar:active {
  cursor: grabbing;
}

.admin-modal-titlebar p,
.admin-modal-titlebar h2 {
  margin: 0;
}

.admin-modal-titlebar p {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-modal-titlebar h2 {
  margin-top: 2px;
  font-size: 20px;
}

.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-modal-actions .ghost {
  min-height: 36px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.admin-modal-frame {
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  border: 0;
}

.admin-modal-frame.is-dragging {
  pointer-events: none;
}

body.admin-modal-open {
  overflow: hidden;
}

.search-card,
.panel,
.group-card {
  border-radius: 28px;
}

.search-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 26px;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  backdrop-filter: blur(12px);
}

.engine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engine-tabs button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}

.engine-tabs button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(37, 99, 235, 0.9));
  border-color: transparent;
}

.search-card input,
.panel input,
.panel textarea {
  width: 100%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid var(--border);
  border-radius: 18px;
  outline: none;
}

.search-card input {
  height: 58px;
  padding: 0 22px;
  color: var(--search-text);
  background: rgba(2, 6, 23, 0.22);
  border-color: var(--search-border);
  font-size: 18px;
}

.panel input,
.panel textarea {
  padding: 12px 14px;
  margin-top: 8px;
  resize: vertical;
}

select {
  width: 100%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid var(--border);
  border-radius: 18px;
  outline: none;
  padding: 12px 14px;
  margin-top: 8px;
}

.groups,
.notes {
  display: grid;
  gap: 22px;
}

.notes {
  margin-bottom: 24px;
}

.notes-title-row,
.group-title-row,
.panel-head,
.editor-row,
.actions-panel,
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.group-title-row {
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.notes-title-row h2,
.group-title-row h2,
.panel h2 {
  margin: 0;
  font-size: 20px;
}

.notes-title-row span,
.group-title-row span,
.status,
.card-copy small {
  color: var(--muted);
  font-size: 13px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-item {
  display: grid;
  gap: 8px;
  height: auto;
  min-height: 118px;
  padding: 8px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.gallery-item img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  background: #e2e8f0;
  border-radius: 10px;
}

.gallery-item.is-icon img {
  object-fit: contain;
  padding: 12px;
}

.gallery-item span {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.range-value {
  display: inline-flex;
  min-width: 42px;
  margin-left: 8px;
  color: #64748b;
  font-size: 13px;
}

.note-card {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.note-card strong {
  font-size: 17px;
}

.note-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.86);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.group {
  display: grid;
  gap: 12px;
}

.group.is-collapsed {
  gap: 0;
}

.group-title-row {
  padding: 0 4px;
  cursor: pointer;
}

.group-title-row h2 {
  flex: 1;
}

.group-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.group-collapse-toggle {
  min-height: 34px;
  padding: 0 12px;
}

.group-card,
.subgroup-card {
  padding: 22px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.nav-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background: var(--nav-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.group-card[data-group-layout="list"],
.subgroup-card[data-group-layout="list"],
.group-card[data-group-layout="list-2col"],
.subgroup-card[data-group-layout="list-2col"] {
  padding: 18px 20px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-card[data-group-layout="compact-grid"],
.subgroup-card[data-group-layout="compact-grid"] {
  padding: 18px;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.group-card[data-group-layout="featured"],
.subgroup-card[data-group-layout="featured"] {
  padding: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.42), rgba(30, 41, 59, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.2);
}

.grid[data-group-layout="compact-grid"] {
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

.grid[data-group-layout="list"] {
  grid-template-columns: 1fr;
  gap: 10px;
}

.grid[data-group-layout="list-2col"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.grid[data-group-layout="featured"] {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.nav-card[data-group-layout="compact-grid"] {
  min-height: 62px;
  padding: 10px 12px;
  gap: 10px;
}

.nav-card[data-group-layout="compact-grid"] .icon-wrap {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.nav-card[data-group-layout="compact-grid"] .icon-wrap img {
  width: 22px;
  height: 22px;
}

.nav-card[data-group-layout="compact-grid"] .card-copy strong {
  font-size: 14px;
}

.nav-card[data-group-layout="list"],
.nav-card[data-group-layout="list-2col"] {
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.nav-card[data-group-layout="list"] .icon-wrap,
.nav-card[data-group-layout="list-2col"] .icon-wrap {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav-card[data-group-layout="list"] .icon-wrap img,
.nav-card[data-group-layout="list-2col"] .icon-wrap img {
  width: 18px;
  height: 18px;
}

.nav-card[data-group-layout="list"] .card-copy,
.nav-card[data-group-layout="list-2col"] .card-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-card[data-group-layout="list"] .card-copy strong,
.nav-card[data-group-layout="list-2col"] .card-copy strong {
  font-size: 14px;
  white-space: nowrap;
}

.nav-card[data-group-layout="featured"] {
  flex-direction: column;
  align-items: flex-start;
  min-height: 164px;
  padding: 18px;
  gap: 14px;
}

.nav-card[data-group-layout="featured"] .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 20px;
}

.nav-card[data-group-layout="featured"] .icon-wrap img {
  width: 34px;
  height: 34px;
}

.nav-card[data-group-layout="featured"] .card-copy {
  gap: 6px;
}

.nav-card[data-group-layout="featured"] .card-copy strong {
  font-size: 18px;
}

.nav-card[data-group-layout="featured"] .card-copy small {
  white-space: normal;
  line-height: 1.5;
}

.icon-wrap {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 16px;
}

.icon-wrap img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-card.icon-small {
  align-items: center;
}

.nav-card.icon-rich {
  flex-direction: column;
  align-items: flex-start;
  min-height: 136px;
  padding: 18px;
  background: var(--nav-card-bg);
}

.nav-card.icon-rich .icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.nav-card.icon-rich .icon-wrap img {
  width: 34px;
  height: 34px;
}

.nav-card.icon-rich .card-copy strong {
  font-size: 18px;
}

.nav-card.icon-rich .card-copy small {
  white-space: normal;
  line-height: 1.45;
}

.card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.card-copy strong,
.card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-card-size="compact"] .grid:not([data-group-layout]),
body[data-card-size="compact"] .grid[data-group-layout="card"] {
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

body[data-card-size="compact"] .nav-card,
body[data-card-size="compact"] .nav-card.icon-rich {
  min-height: 62px;
  padding: 10px 12px;
  gap: 10px;
}

body[data-card-size="compact"] .icon-wrap,
body[data-card-size="compact"] .nav-card.icon-rich .icon-wrap {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

body[data-card-size="compact"] .icon-wrap img,
body[data-card-size="compact"] .nav-card.icon-rich .icon-wrap img {
  width: 23px;
  height: 23px;
}

body[data-card-size="large"] .grid:not([data-group-layout]),
body[data-card-size="large"] .grid[data-group-layout="card"] {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

body[data-card-size="large"] .nav-card,
body[data-card-size="large"] .nav-card.icon-rich {
  min-height: 112px;
  padding: 20px;
  gap: 16px;
}

body[data-card-size="large"] .icon-wrap,
body[data-card-size="large"] .nav-card.icon-rich .icon-wrap {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

body[data-card-size="large"] .icon-wrap img,
body[data-card-size="large"] .nav-card.icon-rich .icon-wrap img {
  width: 36px;
  height: 36px;
}

body[data-card-size="large"] .card-copy strong,
body[data-card-size="large"] .nav-card.icon-rich .card-copy strong {
  font-size: 18px;
}

body[data-theme-style="style2"] .groups {
  gap: 26px;
}

body[data-theme-style="style2"] .group {
  gap: 10px;
}

body[data-theme-style="style2"] .group-title-row {
  justify-content: flex-start;
  gap: 10px;
  padding: 0 6px;
}

body[data-theme-style="style2"] .group-title-row h2 {
  font-size: 18px;
  font-weight: 800;
}

body[data-theme-style="style2"] .group-title-row span {
  padding: 3px 9px;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(15, 23, 42, 0.42);
  border-radius: 999px;
}

body[data-theme-style="style2"] .subgroups {
  gap: 14px;
}

body[data-theme-style="style2"] .group-card,
body[data-theme-style="style2"] .subgroup-card {
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: none;
}

body[data-theme-style="style2"] .grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

body[data-theme-style="style2"] .nav-card,
body[data-theme-style="style2"] .nav-card.icon-rich {
  flex-direction: row;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  gap: 12px;
  background: var(--nav-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
}

body[data-theme-style="style2"] .nav-card:hover {
  background: var(--nav-card-bg-hover);
  border-color: rgba(255, 255, 255, 0.36);
}

body[data-theme-style="style2"] .icon-wrap,
body[data-theme-style="style2"] .nav-card.icon-rich .icon-wrap {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 14px;
}

body[data-theme-style="style2"] .icon-wrap img,
body[data-theme-style="style2"] .nav-card.icon-rich .icon-wrap img {
  width: 26px;
  height: 26px;
}

body[data-theme-style="style2"] .card-copy {
  gap: 3px;
}

body[data-theme-style="style2"] .card-copy strong,
body[data-theme-style="style2"] .nav-card.icon-rich .card-copy strong {
  font-size: 15px;
  letter-spacing: 0;
}

body[data-theme-style="style2"] .card-copy small,
body[data-theme-style="style2"] .nav-card.icon-rich .card-copy small {
  color: rgba(203, 213, 225, 0.68);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-list[hidden] {
  display: none;
}

.subgroups {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.subgroup {
  display: grid;
  gap: 12px;
}

.subgroup-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 2px;
  cursor: pointer;
  user-select: none;
}

.subgroup-title-row h3 {
  margin: 0;
  font-size: 16px;
}

.subgroup-title-row span {
  color: var(--muted);
  font-size: 12px;
}

.subgroup-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.subgroup-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
}

.subgroup.is-collapsed .subgroup-card {
  display: none;
}


body[data-theme-style="style3"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.32), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(168, 85, 247, 0.28), transparent 30%),
    linear-gradient(135deg, #08111f 0%, #111827 48%, #172554 100%);
  background-image: var(--wallpaper), radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.32), transparent 28%), linear-gradient(135deg, #08111f, #172554);
}

body[data-theme-style="style3"] .shell {
  width: min(1280px, calc(100% - 36px));
  padding-top: 44px;
}

body[data-theme-style="style3"] .hero {
  align-items: end;
  justify-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 26px;
  text-align: left;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(30, 41, 59, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(18px);
}

body[data-theme-style="style3"] .title-row {
  justify-content: flex-start;
}

body[data-theme-style="style3"] .description {
  margin-left: 2px;
}

body[data-theme-style="style3"] .search-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(125, 211, 252, 0.22);
  border-radius: 26px;
}

body[data-theme-style="style3"] .group-title-row {
  justify-content: flex-start;
  gap: 12px;
  padding-left: 4px;
}

body[data-theme-style="style3"] .group-title-row h2 {
  font-size: 22px;
}

body[data-theme-style="style3"] .group-title-row span {
  padding: 4px 10px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
}

body[data-theme-style="style3"] .group-card,
body[data-theme-style="style3"] .subgroup-card {
  padding: 0;
}

body[data-theme-style="style3"] .grid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

body[data-theme-style="style3"] .nav-card,
body[data-theme-style="style3"] .nav-card.icon-rich {
  position: relative;
  flex-direction: column;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(125, 211, 252, 0.08));
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 28px;
}

body[data-theme-style="style3"] .nav-card::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  content: "";
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 68%);
}

body[data-theme-style="style3"] .icon-wrap,
body[data-theme-style="style3"] .nav-card.icon-rich .icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

body[data-theme-style="style3"] .card-copy {
  position: relative;
  z-index: 1;
  gap: 8px;
}

body[data-theme-style="style3"] .card-copy small,
body[data-theme-style="style3"] .nav-card.icon-rich .card-copy small {
  white-space: normal;
}

.empty {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 82px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
}

.admin-body h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-content: start;
}

.admin-grid > .admin-card[hidden] {
  display: none;
}

.admin-grid > .active-admin-section {
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  contain: layout paint;
}

.admin-grid > .active-admin-section.wide {
  width: min(1180px, 100%);
}

.embedded-admin-page .admin-grid > .active-admin-section,
.embedded-admin-page .admin-grid > .active-admin-section.wide {
  width: 100%;
  margin: 0;
}

.panel {
  padding: 22px;
}

.panel label {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.wide {
  grid-column: 1 / -1;
}

button,
.import-json {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: transparent;
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.danger {
  color: #fff;
  background: rgba(251, 113, 133, 0.16);
  border-color: rgba(251, 113, 133, 0.4);
}

.danger:hover {
  background: rgba(251, 113, 133, 0.26);
  border-color: rgba(251, 113, 133, 0.62);
}

.status.error {
  color: var(--danger);
}

.editor-list,
.links-editor {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.editor-card {
  padding: 16px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.group-detail,
.subgroup-detail,
.note-detail,
.link-detail {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.group-editor.is-collapsed .group-detail,
.subgroup-editor.is-collapsed .subgroup-detail,
.note-editor.is-collapsed .note-detail,
.link-editor.is-collapsed .link-detail {
  display: none;
}

.group-summary,
.link-summary,
.note-summary {
  display: grid;
  gap: 10px;
  align-items: center;
}

.group-summary {
  grid-template-columns: auto auto minmax(140px, 1fr) auto auto auto auto;
}

.note-summary {
  grid-template-columns: auto auto minmax(120px, 0.7fr) minmax(160px, 1fr) auto;
}

.group-summary strong,
.group-summary span,
.link-summary strong,
.link-summary span,
.note-summary strong,
.note-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-summary span,
.link-summary span,
.note-summary span {
  color: var(--muted);
  font-size: 13px;
}
.group-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.group-inline-actions button {
  min-width: 112px;
}

.subgroup-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.subgroup-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subgroup-section-head strong {
  font-size: 14px;
  color: var(--text);
}

.subgroups-empty {
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.04);
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 14px;
}

.subgroups-editor {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px dashed rgba(96, 165, 250, 0.32);
  border-radius: 18px;
}

.subgroups-editor:empty {
  display: none;
}

.subgroup-editor {
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
}

.subgroup-summary {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

.subgroup-summary strong,
.subgroup-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subgroup-summary span {
  color: var(--muted);
  font-size: 13px;
}

.subgroup-detail {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.subgroup-editor.is-collapsed .subgroup-detail {
  display: none;
}

.subgroup-row label {
  flex: 1;
}

.subgroup-links-editor {
  padding-top: 4px;
}

.link-summary {
  grid-template-columns: auto auto auto minmax(120px, 0.7fr) minmax(160px, 1fr) auto auto auto;
}

.select-link-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0;
}

.select-link-line input {
  width: 16px;
  height: 16px;
}

.batch-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.batch-url-import {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
}

.batch-url-import label {
  margin-top: 0;
}

.batch-url-check {
  align-self: end;
  min-height: 40px;
}

.batch-url-actions {
  justify-content: flex-end;
}

.link-editor.is-ai-running {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.link-editor.is-ai-failed {
  border-color: rgba(251, 113, 133, 0.72);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.history-list {
  display: grid;
  max-height: min(520px, calc(100vh - 260px));
  gap: 8px;
  margin-top: 12px;
  overflow: auto;
  contain: content;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
}

.history-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.history-item strong,
.history-item p,
.history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item span {
  color: var(--muted);
  font-size: 12px;
}

.history-item p {
  margin: 0;
  color: rgba(203, 213, 225, 0.9);
  font-size: 13px;
}

.empty-list {
  padding: 14px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.18);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 16px;
}

.drag-handle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: rgba(203, 213, 225, 0.86);
  cursor: grab;
  background: rgba(255, 255, 255, 0.06);
}

.drag-handle:active {
  cursor: grabbing;
}

.editor-card.is-dragging {
  opacity: 0.55;
  border-color: rgba(56, 189, 248, 0.72);
}

.links-editor.is-drop-target {
  min-height: 64px;
  padding: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.46);
  border-radius: 18px;
}

.links-editor.is-drop-target::after {
  display: block;
  padding: 10px;
  color: rgba(125, 211, 252, 0.92);
  font-size: 13px;
  text-align: center;
  content: "拖到这里移动到此分组";
}

.links-editor.is-drop-target:has(.link-editor)::after {
  display: none;
}

.editor-card.is-dragging + .links-editor.is-drop-target::after {
  display: none;
}

.admin-locked .admin-grid {
  display: none;
}

.admin-locked .auth-panel {
  max-width: 720px;
  margin: 0 auto;
}

.import-json {
  justify-content: center;
  text-align: center;
}

.panel .import-json {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.toggle-button,
.toggle-link,
.toggle-note {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.note-detail,
.link-detail {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.note-editor.is-collapsed .note-detail,
.link-editor.is-collapsed .link-detail {
  display: none;
}

.editor-row.compact {
  align-items: end;
}

.editor-row label {
  flex: 1;
}

.file-line input,
.import-json input {
  display: none;
}

@media (max-width: 980px) {
  .group-summary,
  .subgroup-summary,
  .link-summary,
  .note-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-summary > strong,
  .group-summary > span,
  .subgroup-summary > strong,
  .subgroup-summary > span,
  .link-summary > strong,
  .link-summary > span,
  .note-summary > strong,
  .note-summary > span {
    grid-column: 1 / -1;
  }
}

/* Vue Admin style overrides */
.admin-body {
  color: #1f2937;
  background: #f3f6fb;
  background-image: none;
}

.admin-body::before {
  display: none;
}

.admin-app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 16px;
  color: #dbeafe;
  background: linear-gradient(180deg, #0f172a, #111827);
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 22px;
  color: #f8fafc;
  text-decoration: none;
}

.admin-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small {
  margin-top: 3px;
  color: #93c5fd;
  font-size: 12px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.18s ease, background 0.18s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 4px;
  color: #64748b;
  font-size: 12px;
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 18px 22px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.admin-topbar-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(420px, 100%);
}

.admin-status-bar,
.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-status-bar .status {
  min-width: 0;
  color: #6b7280;
  font-size: 13px;
  text-align: right;
}

.admin-breadcrumb {
  margin: 0 0 6px;
  color: #8b95a5;
  font-size: 13px;
}

.admin-body h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-body .admin-link,
.admin-body button,
.admin-body .import-json {
  min-height: 36px;
  color: #374151;
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  box-shadow: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-body .admin-link:hover,
.admin-body button:hover,
.admin-body .import-json:hover {
  transform: none;
  color: #2563eb;
  background: #f8fbff;
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.admin-body .primary {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.admin-body .primary:hover {
  color: #fff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.admin-body .ghost {
  color: #4b5563;
  background: #f9fafb;
}

.admin-body .danger {
  color: #ef4444;
  background: #fff;
  border-color: #fecaca;
}

.admin-body .danger:hover {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.admin-card,
.admin-actions-bar {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

.site-card {
  align-self: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dashboard-stat {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 18px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 16px;
}

.dashboard-stat span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-stat strong {
  color: #1d4ed8;
  font-size: 30px;
  line-height: 1;
}

.groups-card {
  grid-column: 1 / -1;
}

.admin-card h2 {
  color: #111827;
  font-size: 18px;
}

.panel-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title-block p {
  margin: 5px 0 0;
  color: #8b95a5;
  font-size: 13px;
}

.panel-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 12px;
}

.admin-body .panel label {
  color: #4b5563;
  font-weight: 650;
}

.admin-body .panel input,
.admin-body .panel textarea,
.admin-body select {
  color: #111827;
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
}

.admin-body .panel input:focus,
.admin-body .panel textarea:focus,
.admin-body select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.admin-upload-line {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #2563eb !important;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
}

.image-preview-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.image-preview-label {
  color: #8b95a5;
  font-size: 12px;
  font-weight: 650;
}

.image-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.favicon-preview {
  width: 64px;
  height: 64px;
  padding: 8px;
  object-fit: contain;
}

.wallpaper-preview {
  max-height: 120px;
}

.image-preview.is-empty {
  display: none;
}

.link-icon-preview-card {
  margin-top: 0;
}

.admin-body .editor-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.admin-body .link-editor {
  background: rgba(255, 255, 255, 0.82);
}

.admin-body .group-summary span,
.admin-body .link-summary span,
.admin-body .note-summary span,
.admin-body .status {
  color: #6b7280;
}

.admin-body .drag-handle,
.admin-body .toggle-button,
.admin-body .toggle-link,
.admin-body .toggle-note {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.admin-actions-bar {
  position: sticky;
  bottom: 18px;
  z-index: 10;
  align-items: center;
  padding: 16px 18px;
}

.status-helper {
  display: block;
  margin-top: 4px;
  color: #8b95a5;
  font-size: 13px;
}

.admin-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-locked .admin-grid {
  display: none;
}

.embedded-admin-page,
.embedded-admin-page body {
  height: 100%;
  overflow: hidden;
  background: #f3f6fb;
}

.embedded-admin-page .admin-app-shell {
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  contain: layout paint;
}

.embedded-admin-page .admin-sidebar {
  height: 100vh;
  padding: 16px 12px;
}

.embedded-admin-page .admin-brand {
  padding-bottom: 14px;
}

.embedded-admin-page .admin-menu {
  gap: 6px;
}

.embedded-admin-page .admin-menu a {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.embedded-admin-page .admin-main {
  height: 100vh;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  contain: layout paint;
  will-change: scroll-position;
}

.embedded-admin-page .admin-topbar {
  margin-bottom: 16px;
}

.embedded-admin-page .admin-topbar h1 {
  font-size: 30px;
}

.embedded-admin-page .admin-topbar-side {
  min-width: 0;
  justify-items: stretch;
}

.embedded-admin-page .admin-status-bar,
.embedded-admin-page .admin-topbar-actions {
  justify-content: flex-start;
}

.embedded-admin-page .admin-topbar-actions {
  display: flex;
}

.embedded-admin-page .admin-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.embedded-admin-page .admin-grid > .active-admin-section,
.embedded-admin-page .admin-grid > .active-admin-section.wide {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.embedded-admin-page .panel {
  padding: 18px;
  border-radius: 20px;
}

.embedded-admin-page .admin-actions-bar {
  bottom: 10px;
}

@media (max-width: 900px) {
  .admin-modal-card {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .admin-modal-titlebar {
    align-items: flex-start;
    padding: 12px;
  }

  .admin-modal-actions .ghost {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .embedded-admin-page .admin-app-shell {
    grid-template-columns: 1fr;
  }

  .embedded-admin-page .admin-sidebar {
    display: none;
  }

  .embedded-admin-page .admin-main {
    padding: 12px;
  }

  .embedded-admin-page .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-app-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar-footer {
    display: none;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .groups-card {
    grid-column: auto;
  }
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100% - 32px));
}

.login-panel {
  display: grid;
  gap: 22px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: grid;
  gap: 8px;
  text-align: center;
}

.login-brand span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-brand h1 {
  font-size: clamp(36px, 9vw, 58px);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form button {
  width: 100%;
  margin-top: 4px;
}

.auth-note {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero,
  .admin-header,
  .admin-grid,
  .group-title-row,
  .panel-head,
  .editor-row,
  .actions-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-topbar-side,
  .panel-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-status-bar,
  .admin-topbar-actions {
    justify-content: stretch;
  }

  .admin-status-bar .status {
    text-align: left;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}