:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --ink: #101828;
  --muted: #667085;
  --line: #d8e1ea;
  --accent: #27a36a;
  --accent-strong: #147c4d;
  --blue: #4f6df5;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

:where(section[id], main[id], div[id]) {
  scroll-margin-top: 64px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(238, 246, 250, 0.92), rgba(247, 250, 252, 0) 460px),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
  border-bottom: 1px solid rgba(216, 225, 234, 0.76);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  gap: 26px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav > a,
.desktop-nav > button,
.nav-item > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > button:hover,
.nav-item:hover > a,
.nav-item:focus-within > a {
  color: var(--ink);
  background: rgba(238, 243, 247, 0.9);
}

.direct-nav {
  justify-content: flex-end;
}

.nav-item {
  position: relative;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  width: 360px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-panel a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mega-panel a:hover {
  background: var(--surface-soft);
}

.mega-panel strong {
  color: var(--ink);
}

.mega-panel span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-status-pill {
  appearance: none;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 999px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.14);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.site-status-pill:hover {
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.2);
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.site-status-pill:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.22);
  outline-offset: 3px;
}

.site-status-pill span {
  font-size: 12px;
  font-weight: 950;
}

.site-status-pill strong {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.site-status-pill[data-stage="公测阶段"] {
  border-color: rgba(14, 165, 233, 0.32);
  color: #075985;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.12);
}

.site-status-pill[data-stage="正式版"] {
  border-color: rgba(16, 185, 129, 0.32);
  color: #065f46;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.12);
}

.icon-action {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.icon-action:hover {
  border-color: rgba(16, 24, 40, 0.28);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.icon-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e11d48;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.admin-entry {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition:
    background 0.2s ease,
    border 0.2s ease,
    transform 0.2s ease;
}

.admin-entry:hover {
  border-color: var(--line);
  background: #fff;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.1);
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a,
.mobile-menu button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background: var(--surface-soft);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 34px;
  padding: 12px;
  border: 1px solid rgba(216, 225, 234, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(16, 24, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

img.brand-mark {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.ghost-button,
.primary-button,
.secondary-button,
.download-button,
.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.ghost-button {
  padding: 0 18px;
}

.primary-button,
.download-button {
  border: 0;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.primary-button {
  padding: 0 22px;
}

.secondary-button {
  padding: 0 22px;
}

.download-button,
.share-button {
  min-height: 38px;
  padding: 0 16px;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.download-button:hover {
  transform: translateY(-2px);
}

.share-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.share-button:hover {
  border-color: rgba(16, 24, 40, 0.35);
  transform: translateY(-2px);
}

.danger-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(214, 69, 65, 0.24);
  color: #b42318;
  background: #fff5f4;
  cursor: pointer;
  font-weight: 800;
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
}

.platform-link {
  gap: 7px;
  white-space: nowrap;
}

.platform-link .platform-icon {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  overflow: hidden;
  font-size: 11px;
  font-weight: 950;
}

.platform-link .platform-label {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.douyin-logo {
  background: #111827;
  box-shadow:
    inset 3px 0 0 rgba(0, 245, 255, 0.88),
    inset -3px 0 0 rgba(255, 31, 86, 0.86);
}

.douyin-logo::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 5px;
  height: 12px;
  border-right: 3px solid #fff;
  border-top: 3px solid #fff;
  border-radius: 1px 5px 0 0;
  transform: skewY(-8deg);
}

.douyin-logo::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border: 3px solid #fff;
  border-radius: 999px;
}

.douyin-logo > span {
  display: none;
}

.xhs-logo {
  background: #ff2442;
  box-shadow: inset 0 -6px 0 rgba(169, 0, 28, 0.18);
}

.xhs-logo span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff7f0;
  font-size: 12px;
  font-weight: 950;
}

.feedback-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 35;
  display: inline-grid;
  grid-template-columns: 22px auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0f9f72);
  box-shadow: 0 18px 42px rgba(22, 163, 74, 0.28);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.feedback-fab:hover {
  box-shadow: 0 22px 54px rgba(22, 163, 74, 0.34);
  filter: saturate(1.05);
  transform: translateY(-3px);
}

.feedback-fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.feedback-dialog,
.notification-dialog,
.notification-detail-dialog,
.changelog-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  overscroll-behavior: contain;
}

.changelog-dialog {
  width: min(760px, calc(100vw - 28px));
}

.notification-detail-dialog {
  width: min(640px, calc(100vw - 28px));
}

.feedback-dialog::backdrop,
.notification-dialog::backdrop,
.notification-detail-dialog::backdrop,
.changelog-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.feedback-panel,
.notification-panel,
.notification-detail-panel,
.changelog-panel {
  display: grid;
  gap: 16px;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(216, 225, 234, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.notification-panel,
.notification-detail-panel,
.changelog-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.changelog-panel {
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.feedback-panel {
  max-height: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.feedback-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.feedback-panel textarea,
.feedback-panel input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  font: inherit;
  font-weight: 750;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.feedback-panel textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.7;
}

.feedback-panel textarea:focus,
.feedback-panel input:focus {
  border-color: rgba(22, 163, 74, 0.45);
  background: #fbfffd;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.feedback-panel-head h2,
.notification-panel-head h2,
.notification-detail-head h2,
.changelog-panel-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.feedback-panel-head p:last-child,
.notification-panel-head p:last-child,
.changelog-panel-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.notification-detail-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99)),
    #fff;
}

.notification-detail-head {
  display: grid;
  gap: 8px;
  padding-right: 34px;
}

.notification-detail-head span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 950;
}

.notification-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.notification-detail-meta div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(216, 225, 234, 0.9);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
}

.notification-detail-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.notification-detail-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-detail-body {
  max-height: min(440px, 48vh);
  min-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid rgba(216, 225, 234, 0.9);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.notification-detail-body p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.9;
}

.notification-detail-body p + p {
  margin-top: 14px;
}

.notification-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.notification-list,
.notification-admin-list,
.suggestion-admin-list {
  display: grid;
  gap: 12px;
}

.notification-list {
  max-height: min(440px, 58vh);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.changelog-list {
  display: grid;
  align-content: start;
  gap: 12px;
  grid-auto-rows: max-content;
  max-height: min(560px, 62vh);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 2px 0;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.changelog-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 172px;
  overflow: visible;
  padding: 20px 20px 20px 22px;
  border: 1px solid rgba(216, 225, 234, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)),
    #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.changelog-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.changelog-card-current {
  border-color: rgba(14, 165, 233, 0.28);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98) 72%),
    #fff;
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.12);
}

.changelog-card-current::before {
  background: linear-gradient(180deg, #0ea5e9, var(--accent));
}

.changelog-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.changelog-card-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.changelog-card-head span,
.changelog-card-head strong,
.changelog-card-head time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.changelog-card-head span {
  padding: 0 9px;
  color: #075985;
  background: #e0f2fe;
}

.changelog-card-head strong {
  padding: 0 10px;
  color: #174233;
  background: #dff3ea;
}

.changelog-card-head time {
  color: var(--muted);
}

.changelog-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.changelog-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.changelog-card li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(39, 163, 106, 0.1);
}

.changelog-confirm {
  justify-self: end;
  flex-shrink: 0;
}

html.modal-scroll-locked,
body.modal-scroll-locked {
  overflow: hidden;
}

body.modal-scroll-locked {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
}

.notification-card,
.notification-admin-row,
.suggestion-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.notification-card::before,
.notification-admin-row::before,
.suggestion-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.suggestion-row {
  align-items: start;
}

.suggestion-new {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(135deg, #f6fff9 0%, #fff 74%);
}

.suggestion-new::before {
  background: var(--accent);
}

.suggestion-processed {
  border-color: rgba(100, 116, 139, 0.16);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 72%);
}

.suggestion-processed::before {
  background: #94a3b8;
}

.notification-update::before {
  background: var(--accent);
}

.notification-important::before {
  background: #e11d48;
}

.notification-offer::before {
  background: var(--amber);
}

.notification-info {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.notification-update {
  border-color: rgba(22, 163, 74, 0.2);
  background: linear-gradient(135deg, #f6fff9 0%, #ffffff 70%);
}

.notification-important {
  border-color: rgba(225, 29, 72, 0.24);
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 70%);
}

.notification-offer {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 74%);
}

.notification-download-tip {
  border-color: rgba(22, 163, 74, 0.28);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.98) 74%),
    #fff;
  box-shadow: 0 18px 46px rgba(22, 163, 74, 0.12);
}

.notification-download-tip::before {
  background: var(--accent);
}

.notification-download-tip span {
  color: var(--accent-strong);
}

.notification-pinned {
  padding-top: 34px;
  border-color: rgba(245, 158, 11, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.96), rgba(255, 255, 255, 0.98) 72%),
    #fff;
  box-shadow: 0 18px 40px rgba(180, 83, 9, 0.12);
}

.notification-pinned::after {
  content: "置顶";
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 11px;
  font-weight: 950;
}

.notification-card > div:first-child,
.notification-admin-row div,
.suggestion-row-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.notification-card span,
.notification-admin-row span,
.suggestion-row span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 950;
}

.notification-important span {
  color: #b42318;
}

.notification-offer span {
  color: #b45309;
}

.notification-card strong,
.notification-admin-row strong,
.suggestion-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

.notification-card strong,
.notification-admin-row strong {
  white-space: nowrap;
}

.notification-download-tip strong {
  white-space: normal;
}

.suggestion-row strong {
  line-height: 1.55;
}

.notification-card p,
.notification-admin-row p,
.suggestion-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.notification-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.notification-expanded .notification-content {
  display: block;
  overflow: visible;
  -webkit-line-clamp: initial;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.notification-actions .small-button {
  min-width: 96px;
}

.notification-card small,
.notification-admin-row small,
.suggestion-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}

.activation-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 28px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 247, 199, 0.96), rgba(255, 255, 255, 0.94)),
    #fff7d6;
  box-shadow: 0 22px 58px rgba(180, 83, 9, 0.11);
}

.activation-copy {
  display: grid;
  gap: 14px;
}

.offer-pill,
.free-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 119, 6, 0.26);
  color: #8a4b00;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  font-weight: 950;
}

.offer-pill {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
}

.activation-section h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.activation-section p {
  max-width: 720px;
  margin: 0;
  color: #6b4e16;
  font-size: 16px;
  line-height: 1.8;
}

.offer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-metrics span {
  padding: 8px 11px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  color: #7c4a03;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.activation-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(180, 83, 9, 0.08);
}

.activation-form label {
  color: #7c4a03;
  font-size: 13px;
  font-weight: 950;
}

.activation-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.activation-input-row input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  font-weight: 800;
}

.activation-input-row input:focus {
  border-color: rgba(217, 119, 6, 0.56);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.activation-form .primary-button {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.22);
}

.activation-form small {
  color: #8a4b00;
  font-weight: 850;
  line-height: 1.6;
}

.home-overview {
  display: grid;
  gap: 24px;
  margin: 10px 0 70px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-stats div,
.admin-stats div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.home-stats span,
.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.home-stats strong,
.admin-stats strong {
  font-size: 30px;
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  display: grid;
  min-height: 188px;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.05);
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(39, 163, 106, 0.36);
  box-shadow: 0 20px 52px rgba(16, 24, 40, 0.11);
  transform: translateY(-3px);
}

.feature-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.feature-card strong {
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.offer-card {
  border-color: rgba(217, 119, 6, 0.28);
  background: linear-gradient(135deg, #fffbeb, #fff);
}

.offer-card span {
  color: #b45309;
}

.home-index {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.home-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

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

.home-panel-head strong {
  font-size: 18px;
}

.home-panel-head a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

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

.video-index-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border 0.2s ease,
    transform 0.2s ease;
}

.video-index-item:hover {
  border-color: rgba(39, 163, 106, 0.36);
  transform: translateY(-1px);
}

.video-index-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-rail button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-panel {
  position: relative;
  min-height: 520px;
}

.preview-stack {
  position: relative;
  height: 100%;
}

.preview-image {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.preview-main {
  width: min(100%, 620px);
  transform: rotate(-1.4deg);
}

.preview-float {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: min(34vw, 220px);
  animation: float 5.4s ease-in-out infinite;
}

.download-card {
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 2;
  width: 190px;
  padding: 18px;
  border: 1px solid rgba(216, 225, 234, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(18px);
}

.download-card div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.download-card strong {
  display: block;
  margin-top: 10px;
  font-size: 48px;
  line-height: 1;
}

.download-card small {
  color: var(--muted);
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(39, 163, 106, 0.14);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
}

.search-box {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-soft);
  transition:
    border 0.2s ease,
    background 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(39, 163, 106, 0.36);
  background: #fff;
}

.search-box svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-tab {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  transition:
    color 0.2s ease,
    border 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.filter-tab:hover {
  transform: translateY(-1px);
}

.filter-tab.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.section-header {
  max-width: 620px;
  padding: 86px 0 26px;
}

.section-header.compact {
  max-width: 760px;
  padding: 0;
}

.section-header h2,
.process-section h2,
.admin-workspace h2,
.admin-dialog h2,
.resource-detail h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-header p:last-child,
.process-section p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.resource-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.resource-insights div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

.resource-insights span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.resource-insights strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 22px 0 28px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98) 68%),
    #fff;
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.08);
}

.promotion-section[hidden] {
  display: none;
}

.promotion-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.promotion-copy > span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 950;
}

.promotion-copy > strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
}

.promotion-copy h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.18;
}

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

.promotion-copy small {
  color: #b45309;
  font-weight: 850;
}

.promotion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.promotion-qr {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.promotion-qr img {
  width: 86px;
  height: 86px;
  padding: 6px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.promotion-cta {
  white-space: nowrap;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.resource-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.06);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(39, 163, 106, 0.32);
  box-shadow: 0 22px 60px rgba(16, 24, 40, 0.12);
}

.resource-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #111827);
  content: "";
}

.cover-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef3f7;
  cursor: zoom-in;
}

.cover-button img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.card-body p {
  min-height: 74px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.tag-row span {
  padding: 7px 10px;
  border-radius: 8px;
  color: #2b5f46;
  background: #eaf6f1;
  font-size: 12px;
  font-weight: 800;
}

.card-footer small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.download-center,
.resource-library {
  margin-top: 92px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

.resource-insights + .promotion-section[hidden] + .resource-library,
.resource-insights + .resource-library {
  margin-top: 42px;
}

.resource-library .download-toolbar {
  margin-top: 0;
}

.download-toolbar,
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.download-toolbar {
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.download-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.download-toolbar select {
  min-width: 150px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  font-weight: 800;
}

.view-toggle {
  display: inline-flex;
  min-height: 40px;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.view-toggle button {
  min-width: 78px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.view-toggle button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

#resultCount,
#selectedCount {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.image-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.image-batch-actions[hidden] {
  display: none;
}

.download-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.download-list.card-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.download-list.image-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.download-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.download-row:hover {
  border-color: rgba(39, 163, 106, 0.32);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.download-thumb {
  overflow: hidden;
  width: 120px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: zoom-in;
}

.download-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-row-main h3 {
  margin: 9px 0 8px;
  font-size: 20px;
}

.download-row-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.compact-tags {
  margin: 12px 0 0;
}

.file-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.file-info-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg);
  font-size: 12px;
  font-weight: 900;
}

.file-info-grid b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.upload-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-note {
  margin-top: 16px;
}

.download-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.app-download-section {
  margin-top: 92px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

.app-download-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.app-empty-card,
.app-download-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.app-empty-card strong,
.app-download-card strong {
  font-size: 20px;
}

.app-empty-card p,
.app-download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.app-empty-card span,
.app-download-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.app-download-card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  background: #fff;
}

.app-download-card > div:not(.app-icon):not(.app-card-actions) {
  display: grid;
  gap: 6px;
}

.app-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #111827;
  font-size: 26px;
  font-weight: 900;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mobile-app-section {
  margin-top: 76px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

.mobile-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mobile-app-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.mobile-app-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #174233;
  background: #dff3ea;
  font-size: 12px;
  font-weight: 950;
}

.mobile-app-card strong {
  font-size: 22px;
}

.mobile-app-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.mobile-app-card button:disabled {
  width: fit-content;
  opacity: 0.72;
  cursor: not-allowed;
}

.free-badge,
.card-meta .free-badge,
.gallery-info .free-badge,
.app-empty-card .free-badge,
.app-download-card .free-badge,
.detail-stats .free-badge {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #8a4b00;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.card-meta .free-badge {
  flex: 0 0 auto;
}

.app-download-card .free-badge {
  margin-bottom: 4px;
}

.empty-state {
  margin: 18px 0 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.gallery-heading {
  padding-top: 94px;
}

.gallery-toolbar {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.gallery-toolbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.06);
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.gallery-item.selected {
  border-color: rgba(39, 163, 106, 0.6);
  box-shadow: 0 18px 50px rgba(39, 163, 106, 0.16);
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-preview {
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-info,
.gallery-actions {
  padding: 14px;
}

.gallery-info {
  display: grid;
  gap: 5px;
}

.gallery-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 0;
}

.select-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.select-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.process-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
  margin: 104px 0 74px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.process-list span {
  grid-row: span 2;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.process-list strong {
  font-size: 17px;
}

.process-list p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 0 0 34px;
  padding: 18px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.site-footer a:hover {
  color: var(--accent-strong);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.image-dialog,
.resource-dialog,
.admin-dialog,
.upload-progress-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.image-dialog::backdrop,
.resource-dialog::backdrop,
.admin-dialog::backdrop,
.upload-progress-dialog::backdrop {
  background: rgba(16, 24, 40, 0.58);
  backdrop-filter: blur(10px);
}

.upload-progress-dialog {
  width: min(500px, calc(100vw - 32px));
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.upload-progress-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(216, 225, 234, 0.85);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 95px rgba(15, 23, 42, 0.25);
}

.upload-progress-card h3 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.upload-progress-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 750;
}

.upload-progress-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--accent) var(--progress), rgba(226, 232, 240, 0.95) 0);
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.06),
    0 18px 36px rgba(22, 163, 74, 0.14);
  transition: background 0.28s ease;
}

.upload-progress-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  border: 1px solid rgba(216, 225, 234, 0.95);
}

.upload-progress-ring span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.upload-progress-ring.failed {
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(#ef4444 0 100%);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.16);
}

.upload-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.upload-progress-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 900;
}

.image-dialog img {
  width: 100%;
  max-height: 72vh;
  max-height: 72dvh;
  object-fit: contain;
  background: var(--bg);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 24, 40, 0.72);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-close.dark {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.dialog-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.dialog-caption small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.dialog-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.resource-dialog {
  width: min(980px, calc(100vw - 32px));
}

.resource-detail {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 28px;
  max-height: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px;
  -webkit-overflow-scrolling: touch;
}

.resource-visual-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}

.resource-visual-stack > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg);
}

.resource-image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  max-height: 156px;
  overflow: auto;
}

.resource-image-strip button,
.resource-image-strip span {
  display: grid;
  min-height: 58px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--bg);
  cursor: zoom-in;
  font-size: 12px;
  font-weight: 900;
}

.resource-image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.detail-stats span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 900;
}

.attachment-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
}

.attachment-panel > strong {
  color: var(--ink);
  font-size: 14px;
}

.attachment-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.attachment-row div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

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

.attachment-row small {
  color: var(--muted);
  font-weight: 800;
}

.admin-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
}

.admin-page {
  background: #f5f7fb;
}

.admin-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.28s ease;
}

.admin-page.admin-logged-out .admin-app {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-page.admin-logged-out .admin-sidebar {
  display: none;
}

.admin-page.admin-logged-out .admin-main {
  width: min(620px, 100%);
  padding: 0;
}

.admin-page.admin-logged-out .admin-login {
  width: 100%;
  margin: 0;
}

.admin-page.admin-logged-out .admin-panel {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #0f172a;
  color: #fff;
  transition:
    padding 0.28s ease,
    width 0.28s ease;
}

.admin-sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.admin-side-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.admin-side-brand span {
  min-width: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.admin-side-brand strong,
.admin-side-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-side-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.admin-side-brand .brand-mark {
  color: #0f172a;
  background: #fff;
}

.sidebar-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.28s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.admin-side-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 4px 0 0;
  border: 0;
  background: transparent;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  scrollbar-width: thin;
}

.admin-side-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.admin-side-nav button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 58px;
  justify-items: start;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding 0.28s ease;
}

.admin-side-nav button span {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
}

.admin-side-nav button small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
}

.admin-side-nav button.active,
.admin-side-nav button:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-side-footer {
  display: grid;
  gap: 10px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.admin-side-footer .secondary-button,
.admin-side-footer .ghost-button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

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

.admin-page.admin-sidebar-collapsed .admin-app {
  grid-template-columns: 86px minmax(0, 1fr);
}

.admin-page.admin-sidebar-collapsed .admin-sidebar {
  padding: 24px 14px;
}

.admin-page.admin-sidebar-collapsed .admin-sidebar-head {
  grid-template-columns: 1fr;
}

.admin-page.admin-sidebar-collapsed .admin-side-brand {
  justify-content: center;
  padding: 6px 0;
}

.admin-page.admin-sidebar-collapsed .admin-side-brand span,
.admin-page.admin-sidebar-collapsed .admin-side-nav button span,
.admin-page.admin-sidebar-collapsed .admin-side-nav button small,
.admin-page.admin-sidebar-collapsed .admin-side-footer {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-8px);
}

.admin-page.admin-sidebar-collapsed .sidebar-toggle {
  justify-self: center;
  transform: rotate(180deg);
}

.admin-page.admin-sidebar-collapsed .admin-side-nav button {
  min-height: 48px;
  place-items: center;
  padding: 0;
}

.admin-page.admin-sidebar-collapsed .admin-side-nav button::before {
  content: attr(data-short);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 950;
}

.admin-page.admin-sidebar-collapsed .admin-side-nav button.active::before,
.admin-page.admin-sidebar-collapsed .admin-side-nav button:hover::before {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.admin-workspace {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 64px;
}

.admin-login,
.admin-panel {
  padding: 0;
}

.admin-login {
  max-width: 620px;
  margin: 80px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

.admin-login p,
.admin-panel-head p {
  color: var(--muted);
  line-height: 1.8;
}

.admin-form,
.resource-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.resource-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.admin-form label,
.resource-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-form input,
.resource-form input,
.resource-form select,
.resource-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  font-weight: 700;
}

.resource-form .field-invalid {
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.12),
    0 10px 24px rgba(185, 28, 28, 0.08);
}

.field-error {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 8px;
  color: #b42318;
  background: #fff1f1;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.5;
}

.form-error-summary {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 12px;
  color: #991b1b;
  background: linear-gradient(135deg, #fff1f1, #fff8f8);
  box-shadow: 0 14px 32px rgba(185, 28, 28, 0.08);
}

.form-error-summary strong {
  color: #7f1d1d;
}

.form-error-summary span {
  color: #b42318;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
}

.resource-form textarea {
  resize: vertical;
}

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

.resource-form .check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.resource-form .check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-options button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(216, 225, 234, 0.95);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.quick-options button:hover {
  border-color: rgba(16, 24, 40, 0.28);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.upload-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 28vw, 260px);
  min-width: 0;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.upload-preview > div:first-child {
  display: grid;
  align-content: center;
  gap: 7px;
}

.upload-preview strong {
  color: var(--ink);
  font-size: 16px;
}

.upload-preview span,
.upload-preview small {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 800;
}

.upload-file-list {
  display: grid;
  gap: 4px;
  max-height: 116px;
  margin-top: 6px;
  overflow: auto;
}

.upload-file-list em {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-preview-box {
  position: relative;
  width: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.cover-preview-box img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.cover-preview-box span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: #fff;
  background: rgba(16, 24, 40, 0.66);
  font-size: 12px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.admin-hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.07);
}

.admin-hero-dashboard h3,
.admin-section-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.admin-hero-dashboard p:last-child,
.admin-section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-hero-visual {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-soft);
}

.admin-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-hero-visual span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.admin-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.admin-sidebar .admin-side-nav.admin-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  scrollbar-width: thin;
}

.admin-sidebar .admin-side-nav.admin-tabs button {
  display: grid;
  width: 100%;
  min-height: 58px;
  justify-items: start;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
}

.admin-sidebar .admin-side-nav.admin-tabs button span {
  color: inherit;
}

.admin-sidebar .admin-side-nav.admin-tabs button small {
  color: rgba(255, 255, 255, 0.46);
}

.admin-tabs button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.admin-sidebar .admin-side-nav.admin-tabs button.active,
.admin-sidebar .admin-side-nav.admin-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .admin-side-nav.admin-tabs button.active small,
.admin-sidebar .admin-side-nav.admin-tabs button:hover small {
  color: rgba(255, 255, 255, 0.66);
}

.admin-tab-panel {
  display: none;
  margin-top: 18px;
}

.admin-tab-panel.active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.traffic-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 234, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.98)),
    #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.07);
}

.traffic-panel .dashboard-panel-head {
  align-items: flex-start;
}

.traffic-panel .dashboard-panel-head > div {
  display: grid;
  gap: 5px;
}

.traffic-chart {
  display: grid;
  gap: 16px;
}

.traffic-chart-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.traffic-chart-meta div {
  padding: 13px 14px;
  border: 1px solid rgba(216, 225, 234, 0.84);
  border-radius: 14px;
  background: var(--surface-soft);
}

.traffic-chart-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.traffic-chart-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.traffic-line-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  overflow: visible;
}

.traffic-line-chart line {
  stroke: rgba(148, 163, 184, 0.26);
  stroke-width: 1;
}

.traffic-line-chart text {
  fill: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.traffic-area {
  fill: url("#trafficLineFill");
}

.traffic-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.traffic-line-chart circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 3;
}

.admin-visual-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 14px;
  margin-top: 16px;
}

.visual-panel {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 252, 0.96)),
    #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
}

.visual-panel-main {
  background:
    radial-gradient(circle at 20% 18%, rgba(79, 109, 245, 0.12), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(245, 158, 11, 0.12), transparent 30%),
    #fff;
}

.content-mix-board {
  display: grid;
  grid-template-columns: minmax(140px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.mix-ring {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  min-width: 136px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(var(--accent) 0 var(--video-deg), var(--blue) var(--video-deg) var(--app-deg), var(--amber) var(--app-deg) 360deg);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.05), 0 18px 40px rgba(16, 24, 40, 0.08);
}

.mix-ring strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.mix-ring span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mix-legend,
.health-board,
.trend-chart {
  display: grid;
  gap: 10px;
}

.mix-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(216, 225, 234, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.mix-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.mix-legend-row.app i {
  background: var(--blue);
}

.mix-legend-row.image i {
  background: var(--amber);
}

.mix-legend-row span,
.mix-legend-row strong {
  font-size: 13px;
  font-weight: 900;
}

.mix-legend-row span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-bar {
  display: grid;
  grid-template-columns: 34px minmax(80px, 1fr) minmax(80px, 1.2fr) 48px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 225, 234, 0.82);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.trend-bar span,
.trend-bar em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.trend-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-bar i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) 0 var(--bar), var(--surface-soft) var(--bar) 100%);
}

.health-metric {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(216, 225, 234, 0.82);
  border-radius: 12px;
  background: #fff;
}

.health-metric div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.health-metric strong,
.health-metric span {
  font-size: 13px;
  font-weight: 900;
}

.health-metric span {
  color: var(--accent-strong);
}

.health-metric i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) 0 var(--value), var(--surface-soft) var(--value) 100%);
}

.admin-note {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-preview-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-preview-board p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-preview-item {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
  text-align: left;
}

.admin-preview-item img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.admin-preview-item span,
.admin-preview-item strong {
  position: absolute;
  left: 10px;
  z-index: 1;
}

.admin-preview-item span {
  top: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.admin-preview-item strong {
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.6);
}

.admin-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.dashboard-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

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

.dashboard-panel-head strong {
  font-size: 17px;
}

.dashboard-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.insight-list,
.chart-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.insight-row,
.activity-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.activity-row {
  grid-template-columns: 88px minmax(0, 1fr) auto;
}

.insight-row span,
.activity-row span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.insight-row strong,
.activity-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row em,
.activity-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.chart-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
}

.chart-row span,
.chart-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.chart-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.chart-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.backup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.backup-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.video-sync-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 14px;
  margin-bottom: 16px;
}

.sync-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.sync-card strong {
  font-size: 18px;
}

.sync-card p,
.sync-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.sync-status {
  padding: 10px 12px;
  border: 1px solid rgba(216, 225, 234, 0.9);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

.ad-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.suggestion-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.suggestion-stats-grid article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.58)),
    #fff;
  box-shadow: 0 14px 34px rgba(21, 128, 61, 0.06);
}

.suggestion-stats-grid span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 950;
}

.suggestion-stats-grid strong {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.suggestion-stats-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.ad-stats-grid article {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.62)),
    #fff;
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.06);
}

.ad-stats-grid span {
  color: #b45309;
  font-size: 12px;
  font-weight: 950;
}

.ad-stats-grid strong {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.ad-stats-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.ad-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.74fr);
  gap: 14px;
  align-items: start;
}

.ad-settings-form {
  margin-top: 0;
}

.ad-preview-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
}

.ad-preview-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: start;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98) 72%),
    #fff;
}

.ad-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ad-preview-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 950;
}

.ad-preview-meta strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.ad-preview-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.ad-preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.ad-preview-card img {
  width: 128px;
  height: 128px;
  padding: 8px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
}

.ad-preview-card small {
  color: #b45309;
  font-weight: 850;
}

.ad-event-row {
  grid-template-columns: 104px minmax(0, 1fr) minmax(120px, auto);
}

.ad-event-row strong {
  color: var(--accent-strong);
}

.ad-event-suspicious {
  border-color: rgba(225, 29, 72, 0.2);
  background: #fff5f7;
}

.ad-event-suspicious strong {
  color: #b42318;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.security-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.security-grid span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.security-grid strong {
  color: var(--ink);
  font-size: 20px;
}

.security-grid p,
.security-form-note p,
.security-events p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
  font-weight: 800;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.security-form {
  margin-top: 0;
}

.release-status-form {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.security-form-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.security-form-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.security-events {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.security-event-row {
  grid-template-columns: 96px minmax(0, 1fr);
}

.security-event-row em {
  grid-column: 1 / -1;
}

.sync-settings-form {
  display: grid;
  gap: 12px;
}

.sync-settings-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.sync-settings-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  font-weight: 800;
}

.sync-policy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sync-policy-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
  font-weight: 850;
}

.video-source-form {
  margin-bottom: 16px;
}

.video-source-list {
  display: grid;
  gap: 12px;
}

.video-source-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.video-account-row {
  background:
    linear-gradient(90deg, rgba(79, 109, 245, 0.08), rgba(255, 255, 255, 0) 38%),
    #fff;
}

.video-work-row {
  background:
    linear-gradient(90deg, rgba(39, 163, 106, 0.08), rgba(255, 255, 255, 0) 38%),
    #fff;
}

.video-source-row > img {
  width: 112px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}

.video-source-row strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.video-source-row p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-source-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #155eef;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 950;
}

.status-synced {
  color: #067647;
  background: #ecfdf3;
}

.status-public_checked,
.status-ready {
  color: #175cd3;
  background: #eff8ff;
}

.status-waiting_parser {
  color: #b54708;
  background: #fffaeb;
}

.status-sync_failed {
  color: #b42318;
  background: #fff1f3;
}

.import-button {
  cursor: pointer;
}

.admin-manage-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-search-box {
  min-height: 48px;
}

.admin-manage-toolbar select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-list-head strong {
  color: var(--ink);
  font-size: 18px;
}

.admin-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-row.readonly {
  background: #fbfdff;
}

.admin-row img {
  width: 70px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-soft);
}

.admin-row div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-image-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.admin-image-head strong {
  font-size: 18px;
}

.admin-image-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-image-head > span {
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-image-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: zoom-in;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.admin-image-preview:hover img {
  transform: scale(1.04);
}

.admin-image-card strong {
  font-size: 15px;
}

.admin-image-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-image-actions > * {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.readonly-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 900;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.admin-page [data-animate] {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-14px) rotate(0deg);
  }
}

@media (max-width: 980px) {
  .admin-main {
    padding: 18px;
  }

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

  .ad-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .content-mix-board {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  }

  .admin-hero-dashboard,
  .admin-preview-board {
    grid-template-columns: 1fr;
  }

  .admin-preview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-shell {
    width: min(100% - 28px, 820px);
  }

  .header-inner,
  .mobile-menu {
    width: min(100% - 28px, 820px);
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .site-status-pill {
    min-height: 32px;
    padding: 0 9px;
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 34px;
  }

  .hero-panel {
    min-height: 430px;
  }

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

  .home-stats,
  .feature-grid,
  .resource-insights,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-chart-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .preview-main {
    width: 88%;
  }

  .preview-float {
    width: 210px;
  }

  .search-panel,
  .process-section,
  .promotion-section {
    grid-template-columns: 1fr;
  }

  .promotion-actions {
    justify-content: flex-start;
  }

  .download-center {
    padding: 24px;
  }

  .resource-library {
    padding: 24px;
  }

  .download-row {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .download-list.card-view,
  .download-list.image-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .app-download-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .app-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

  .resource-visual-stack > img {
    min-height: 280px;
  }

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

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

  .video-source-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .video-source-row > img {
    width: 92px;
    height: 72px;
  }

  .video-source-row .admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .resource-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-app,
  .admin-page.admin-sidebar-collapsed .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-page.admin-sidebar-collapsed .admin-sidebar {
    position: relative;
    height: auto;
    grid-template-rows: auto auto auto;
    padding: 16px 12px;
  }

  .admin-page.admin-sidebar-collapsed .admin-sidebar-head {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .admin-page.admin-sidebar-collapsed .admin-side-brand {
    justify-content: flex-start;
    padding: 8px;
  }

  .admin-page.admin-sidebar-collapsed .admin-side-brand span,
  .admin-page.admin-sidebar-collapsed .admin-side-nav button span,
  .admin-page.admin-sidebar-collapsed .admin-side-nav button small,
  .admin-page.admin-sidebar-collapsed .admin-side-footer {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .admin-page.admin-sidebar-collapsed .sidebar-toggle {
    justify-self: end;
    transform: none;
  }

  .admin-page.admin-sidebar-collapsed .admin-side-nav button {
    min-height: 58px;
    justify-items: start;
    place-items: initial;
    padding: 10px 14px;
  }

  .admin-page.admin-sidebar-collapsed .admin-side-nav button::before {
    content: none;
  }

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

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

  .admin-main {
    padding: 12px;
  }

  .admin-hero-dashboard {
    padding: 18px;
  }

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

  .site-shell {
    width: min(100% - 24px, 520px);
  }

  .activation-section {
    padding: 18px;
    border-radius: 18px;
  }

  .activation-input-row {
    grid-template-columns: 1fr;
  }

  .offer-metrics {
    display: grid;
  }

  .global-header {
    padding: 8px 0;
  }

  .header-inner,
  .mobile-menu {
    width: min(100% - 24px, 520px);
  }

  .topbar {
    margin-bottom: 10px;
  }

  .brand small,
  .ghost-button {
    display: none;
  }

  .site-status-pill span {
    display: none;
  }

  .admin-entry {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 32px 0 56px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 340px;
  }

  .home-overview {
    margin-bottom: 54px;
    padding: 20px;
    border-radius: 18px;
  }

  .home-stats,
  .feature-grid,
  .resource-insights,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .download-card {
    top: 12px;
    right: 12px;
    width: 156px;
  }

  .download-card strong {
    font-size: 38px;
  }

  .preview-main {
    width: 100%;
    border-radius: 18px;
  }

  .preview-float {
    width: 154px;
  }

  .search-panel {
    padding: 12px;
  }

  .download-center {
    margin-top: 70px;
    padding: 18px;
    border-radius: 18px;
  }

  .resource-library {
    margin-top: 28px;
    padding: 18px;
    border-radius: 18px;
  }

  .app-download-section {
    margin-top: 70px;
    padding: 18px;
    border-radius: 18px;
  }

  .mobile-app-section {
    margin-top: 54px;
    padding: 18px;
    border-radius: 18px;
  }

  .download-toolbar,
  .gallery-toolbar {
    display: grid;
    align-items: stretch;
  }

  .download-toolbar label,
  .download-toolbar select,
  .view-toggle,
  .gallery-toolbar .primary-button,
  .gallery-toolbar .secondary-button {
    width: 100%;
  }

  .view-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

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

  .download-list.card-view,
  .download-list.image-view,
  .file-info-grid {
    grid-template-columns: 1fr;
  }

  .app-download-card {
    grid-template-columns: 1fr;
  }

  .app-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1.5;
  }

  .download-row-actions,
  .card-actions,
  .gallery-actions,
  .detail-actions,
  .notification-detail-actions,
  .dialog-actions,
  .app-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .download-row-actions > *,
  .card-actions > *,
  .gallery-actions > *,
  .detail-actions > *,
  .notification-detail-actions > *,
  .dialog-actions > *,
  .app-card-actions > * {
    width: 100%;
  }

  .notification-detail-dialog {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .feedback-dialog,
  .notification-dialog,
  .notification-detail-dialog,
  .changelog-dialog {
    width: min(100vw - 16px, 520px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .feedback-panel,
  .notification-panel,
  .notification-detail-panel,
  .changelog-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .changelog-panel {
    gap: 14px;
  }

  .changelog-list {
    max-height: min(560px, 58vh);
    padding-right: 2px;
  }

  .changelog-card {
    min-height: 188px;
    padding: 18px;
  }

  .changelog-card-head {
    align-items: flex-start;
  }

  .changelog-card h3 {
    font-size: 19px;
  }

  .changelog-confirm {
    width: 100%;
  }

  .notification-detail-meta {
    grid-template-columns: 1fr;
  }

  .notification-detail-body {
    max-height: 44vh;
    min-height: 160px;
    padding: 14px;
  }

  .card-footer {
    display: grid;
  }

  .resource-grid,
  .gallery-grid,
  .admin-dashboard-grid,
  .admin-visual-grid,
  .ad-stats-grid,
  .suggestion-stats-grid,
  .traffic-chart-meta,
  .security-grid,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .promotion-section {
    padding: 18px;
  }

  .promotion-actions {
    display: grid;
    justify-items: stretch;
  }

  .promotion-qr {
    justify-items: start;
  }

  .promotion-cta {
    width: 100%;
  }

  .ad-event-row {
    grid-template-columns: 1fr;
  }

  .content-mix-board,
  .trend-bar {
    grid-template-columns: 1fr;
  }

  .mix-ring {
    width: min(220px, 100%);
    justify-self: center;
  }

  .card-body p {
    min-height: auto;
  }

  .section-header {
    padding-top: 64px;
  }

  .process-section {
    margin-top: 72px;
    padding: 24px;
    border-radius: 18px;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .dialog-caption {
    display: grid;
  }

  .dialog-caption .primary-button {
    width: 100%;
  }

  .image-dialog,
  .resource-dialog,
  .admin-dialog,
  .upload-progress-dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .resource-detail,
  .admin-login,
  .admin-panel {
    padding: 20px;
  }

  .resource-visual-stack > img {
    min-height: 220px;
  }

  .resource-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .upload-progress-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .upload-progress-meta {
    justify-content: center;
  }

  .upload-preview,
  .admin-image-head {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .admin-panel-head,
  .admin-list-head {
    display: grid;
  }

  .admin-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .video-source-row {
    grid-template-columns: 1fr;
  }

  .video-source-row > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.5;
  }

  .admin-row-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-row-actions > *,
  .admin-row .danger-button,
  .admin-image-actions > * {
    width: 100%;
  }

  .admin-tabs {
    display: grid;
  }

  .form-actions {
    display: grid;
  }
}

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