:root {
  color-scheme: light;
  --text: #16121a;
  --muted: #8f7d8a;
  --line: rgba(40, 25, 35, .08);
  --pink: #e75b91;
  --pink-strong: #e33f6f;
  --gold: #c48b18;
  --blue: #2ca8d8;
  --indigo: #5b5ee8;
  --green: #42b879;
  --surface: rgba(255, 255, 255, .88);
  --soft: #fff8fb;
  --shadow: 0 20px 46px rgba(43, 27, 40, .16);
  --shadow-soft: 0 10px 26px rgba(43, 27, 40, .09);
  --glow: 0 18px 46px rgba(223, 87, 135, .18);
  --nav-h: 72px;
  --lock-blur: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0, rgba(231, 91, 145, .22), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(44, 168, 216, .16), transparent 28%),
    linear-gradient(180deg, #fff9fc 0%, #f3f7fb 58%, #eef3f7 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body:not(.admin-body) .claim-page {
  min-height: 100vh;
  padding: 8px 22px 34px;
  background: linear-gradient(180deg, #291704 0, #241305 34%, #241506 100%);
  color: #141414;
}

body:not(.admin-body) .claim-hero {
  position: relative;
  height: 145px;
  margin: 0 -16px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: #1b120a;
}

body:not(.admin-body) .claim-hero img,
body:not(.admin-body) .claim-hero-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body:not(.admin-body) .claim-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .28));
  pointer-events: none;
}

body:not(.admin-body) .claim-hero-fallback {
  background: linear-gradient(135deg, #6f5545, #1d1510);
}

body:not(.admin-body) .claim-video-mark {
  position: absolute;
  left: 37px;
  top: 68px;
  z-index: 1;
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 2px;
  background: rgba(0, 0, 0, .44);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .claim-video-mark::before,
body:not(.admin-body) .claim-video-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  background: #fff;
}

body:not(.admin-body) .claim-video-mark::before {
  top: 4px;
}

body:not(.admin-body) .claim-video-mark::after {
  bottom: 4px;
}

body:not(.admin-body) .claim-video-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

body:not(.admin-body) .claim-hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .72), 0 0 10px rgba(0, 0, 0, .4);
  white-space: nowrap;
}

body:not(.admin-body) .claim-hero-heading {
  position: absolute;
  left: 50%;
  top: calc(50% - 9px);
  z-index: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

body:not(.admin-body) .claim-hero-heading .claim-video-mark {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
}

body:not(.admin-body) .claim-hero-heading .claim-hero-title {
  position: static;
  transform: none;
}

body:not(.admin-body) .claim-hero-badge {
  position: absolute;
  left: 50%;
  top: calc(50% + 25px);
  z-index: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 156px;
  min-height: 24px;
  justify-content: center;
  border-radius: 999px;
  color: #1b1305;
  background: #ffd600;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 9px rgba(0, 0, 0, .22);
}

body:not(.admin-body) .claim-steps {
  display: grid;
  grid-template-columns: 76px 1fr 76px 1fr 76px;
  align-items: start;
  gap: 0;
  margin: 18px 14px 30px;
  color: #fff;
}

body:not(.admin-body) .claim-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

body:not(.admin-body) .claim-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #333;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .45);
}

body:not(.admin-body) .claim-step.done span {
  color: #fff;
  background: #49c768;
}

body:not(.admin-body) .claim-step.active span {
  color: #fff;
  background: #f5d72d;
}

body:not(.admin-body) .claim-step strong {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

body:not(.admin-body) .claim-line {
  height: 5px;
  margin-top: 14px;
  background: #fff;
}

body:not(.admin-body) .claim-line.done {
  background: #43c85e;
}

body:not(.admin-body) .claim-panel {
  position: relative;
  margin: 0 0 14px;
  padding: 28px 15px 18px;
  border-radius: 9px;
  background: #f6f7f9;
  border-left: 5px solid #ffce00;
  box-shadow: 0 2px 0 rgba(255, 214, 0, .9), 0 10px 22px rgba(0, 0, 0, .18);
}

body:not(.admin-body) .claim-tag {
  position: absolute;
  left: -5px;
  top: 0;
  min-width: 60px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px 0 8px 0;
  background: #ffd927;
  color: #1e1a07;
  font-size: 12px;
  font-weight: 900;
}

body:not(.admin-body) .claim-panel h2 {
  margin: 0 0 12px;
  color: #f05965;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  font-weight: 900;
}

body:not(.admin-body) .claim-copy-box {
  min-height: 62px;
  display: grid;
  place-items: center;
  margin: 0 8px 16px;
  padding: 14px 12px;
  border: 1px dashed #d6ad46;
  border-radius: 8px;
  background: #fff;
  color: #214bb5;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body:not(.admin-body) .claim-copy-btn,
body:not(.admin-body) .claim-service-btn,
body:not(.admin-body) .claim-home-btn {
  width: 122px;
  min-height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe24b, #ffb900);
  color: #2a1700;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(255, 183, 0, .42);
}

body:not(.admin-body) .claim-guide-panel {
  padding-top: 54px;
}

body:not(.admin-body) .claim-guide-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 18px;
}

body:not(.admin-body) .claim-guide-row span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

body:not(.admin-body) .claim-guide-row p {
  margin: 0;
  color: #050505;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
}

body:not(.admin-body) .claim-note {
  margin: 4px 0 18px;
  padding: 12px 10px;
  border-left: 4px solid #ff8a00;
  border-radius: 4px;
  background: #fff7ef;
  color: #f0525c;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

body:not(.admin-body) .claim-note strong {
  color: #141414;
}

body:not(.admin-body) .claim-guide-panel h3 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #5d34cf;
  font-size: 18px;
  line-height: 1.2;
}

body:not(.admin-body) .claim-guide-panel h3 span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6a39e8;
  font-size: 13px;
}

body:not(.admin-body) .claim-demo-frame {
  width: calc(100% + 30px);
  aspect-ratio: 16 / 15;
  min-height: 0;
  margin: 0 -15px 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body:not(.admin-body) .claim-demo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body:not(.admin-body) .claim-demo-empty {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  color: #8a8a8a;
  background: repeating-linear-gradient(135deg, #f7f7f7 0 10px, #ededed 10px 20px);
  font-size: 14px;
  font-weight: 900;
}

body:not(.admin-body) .claim-caption {
  margin: 0;
  color: #111;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

body:not(.admin-body) .claim-finish-panel {
  padding-bottom: 22px;
}

body:not(.admin-body) .claim-finish-panel h2 {
  color: #202020;
  text-align: left;
  font-size: 20px;
}

body:not(.admin-body) .claim-finish-panel h2 strong {
  font-size: 24px;
}

body:not(.admin-body) .claim-service-btn,
body:not(.admin-body) .claim-home-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 16px;
}

body:not(.admin-body) .claim-service-btn {
  background: linear-gradient(180deg, #ffad1d, #ff7500);
  color: #fff;
  box-shadow: 0 8px 14px rgba(255, 118, 0, .32);
}

body:not(.admin-body) .claim-home-btn {
  background: #fff;
  color: #f05c5f;
  box-shadow: 0 0 0 1px #ffd100 inset, 0 6px 12px rgba(0, 0, 0, .16);
}

@media (max-width: 360px) {
  body:not(.admin-body) .claim-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  body:not(.admin-body) .claim-steps {
    grid-template-columns: 64px 1fr 64px 1fr 64px;
    margin-left: 4px;
    margin-right: 4px;
  }

  body:not(.admin-body) .claim-step strong {
    font-size: 12px;
  }
}

.app-ad,
.wide-ad,
.friend-link {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
}

.phone {
  width: min(100vw, 430px);
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(35, 24, 36, .2);
}

.page {
  min-height: 100vh;
  padding: 0 16px calc(var(--nav-h) + 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(231, 91, 145, .025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(45deg, rgba(44, 168, 216, .02) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 12px 82px, rgba(231, 91, 145, .14), transparent 118px),
    radial-gradient(circle at 100% 300px, rgba(44, 168, 216, .1), transparent 148px),
    linear-gradient(180deg, #fff8fb 0, #fff 232px, #fff 100%);
}

.topbar {
  min-height: 56px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border-bottom: 1px solid rgba(227, 63, 111, .14);
  backdrop-filter: blur(18px) saturate(1.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 246, 251, .94)),
    #fff8fb;
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -16px;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(43, 27, 40, .06);
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  font-weight: 900;
  color: #8d2452;
  text-shadow: 0 1px 0 #fff, 0 8px 18px rgba(141, 36, 82, .16);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 28px;
}

.hero {
  margin: 18px 0 8px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .78);
  position: relative;
}

.hero-link {
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  background: #20141c;
  position: relative;
}

.hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 36%, rgba(0, 0, 0, .18)),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, .18), transparent 30%);
}

.hero img,
.hero-link img {
  width: 100%;
  aspect-ratio: 16 / 7.35;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}

.notice {
  overflow: hidden;
  white-space: nowrap;
  color: #8f6508;
  background:
    linear-gradient(90deg, rgba(255, 247, 220, .96), rgba(255, 252, 240, .98)),
    #fff9e9;
  font-size: 15px;
  padding: 10px 8px;
  border-top: 1px solid rgba(255, 255, 255, .54);
}

.notice span {
  display: inline-block;
  min-width: 100%;
  animation: marquee 14s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.pill-row {
  display: flex;
  justify-content: center;
  margin: 14px 0 20px;
}

.outline-pill,
.tag {
  border: 1px solid rgba(227, 63, 111, .34);
  color: #b92d68;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 246, 251, .96));
  border-radius: 999px;
  padding: 9px 24px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.outline-pill,
.unlock-btn,
.copy-btn,
.task,
.app-ad,
.wide-ad {
  position: relative;
  overflow: hidden;
}

.outline-pill::before,
.unlock-btn::before,
.copy-btn::before,
.task::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, .42) 48%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .42s ease;
}

.outline-pill:active::before,
.unlock-btn:active::before,
.copy-btn:active::before,
.task:active::before {
  transform: translateX(110%);
}

.outline-pill {
  min-width: 112px;
  min-height: 40px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.outline-pill:active {
  transform: translateY(1px) scale(.98);
  border-color: rgba(227, 63, 111, .46);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  margin: 9px 0 13px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #e75698, #b957e9 58%, #5d65e9);
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(185, 87, 233, .24);
  position: relative;
}

.tag::after {
  content: "";
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: 238px;
  height: 1px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(231, 91, 145, .34), rgba(91, 94, 232, .22), transparent);
  box-shadow: 0 5px 14px rgba(231, 91, 145, .08);
}

.section {
  margin-bottom: 18px;
  position: relative;
  padding: 12px 12px 14px;
  border: 1px solid rgba(227, 63, 111, .08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 18%, rgba(91, 94, 232, .1), transparent 82px),
    radial-gradient(circle at 8% 80%, rgba(231, 91, 145, .09), transparent 96px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(43, 27, 40, .018) 18px 19px),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 249, 252, .9)),
    #fff;
  box-shadow: 0 16px 34px rgba(43, 27, 40, .06);
  overflow: hidden;
}

.category-section {
  margin-bottom: 22px;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 2px 10px;
  padding: 0 2px;
}

.category-title-row h2 {
  margin: 0;
  color: #130f18;
  font-size: 24px;
  font-weight: 900;
}

.category-title-row span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #2563eb;
  background: rgba(37, 99, 235, .08);
  font-size: 12px;
  font-weight: 900;
}

.section h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  color: #130f18;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .88), 0 8px 18px rgba(43, 27, 40, .08);
}

.section h2::before {
  content: "";
  width: 5px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #e33f6f, #5b5ee8);
  box-shadow: 0 6px 14px rgba(227, 63, 111, .2);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 2px;
}

.section-title-row h2 {
  flex: 1;
  min-width: 0;
}

.group-cost {
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #e33f6f, #f27aa4);
  color: #fff;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(227, 63, 111, .24);
  border: 1px solid rgba(255, 255, 255, .5);
}

.section::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, transparent, rgba(227, 63, 111, .16), rgba(44, 168, 216, .14), transparent);
}

.section::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e33f6f, #f27aa4 42%, #5b5ee8 74%, #2ca8d8);
  opacity: .7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumb {
  position: relative;
  border: 0;
  padding: 0;
  height: 87px;
  overflow: hidden;
  border-radius: 10px;
  background: #1d121b;
  box-shadow: 0 12px 24px rgba(35, 24, 36, .16);
  outline: 1px solid rgba(255, 255, 255, .72);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.thumb:active {
  transform: scale(.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.03);
  transition: transform .2s ease, filter .2s ease;
}

.thumb video[data-video-preview] {
  background:
    linear-gradient(135deg, rgba(227, 63, 111, .32), rgba(44, 168, 216, .22)),
    #21151f;
}

.detail-media video[data-video-preview] {
  background:
    linear-gradient(135deg, rgba(227, 63, 111, .28), rgba(44, 168, 216, .2)),
    #21151f;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .04), transparent 42%, rgba(0, 0, 0, .2)),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .18), transparent 28%);
}

.thumb:active img {
  transform: scale(1.03);
}

.thumb.locked img,
.thumb.locked video,
.detail-media.locked img,
.detail-media.locked video {
  filter: blur(var(--lock-blur, 6px));
  transform: scale(1.04);
}

.thumb.locked::after,
.detail-media.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .3)),
    radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, .22) 100%);
}

.play {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  line-height: 1;
  text-indent: 2px;
  z-index: 2;
  background: rgba(17, 12, 18, .28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}

.lock {
  display: none;
}

.thumb.locked .lock {
  display: none !important;
}

.empty {
  padding: 50px 18px;
  text-align: center;
  color: var(--muted);
}

.loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.loading-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #44636c;
  font-size: 14px;
  font-weight: 800;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(68, 99, 108, .18);
  border-top-color: #3f9fbb;
  border-radius: 50%;
  animation: loading-spin .8s linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.bottom-nav {
  height: var(--nav-h);
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  backdrop-filter: blur(22px) saturate(1.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 251, 253, .96));
  border-top: 1px solid rgba(227, 63, 111, .1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 20;
  box-shadow: 0 -16px 34px rgba(35, 24, 36, .08);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 3px;
  color: #342a33;
  font-size: 13px;
  font-weight: 800;
  transition: color .16s ease, transform .16s ease;
  min-width: 0;
  position: relative;
}

.bottom-nav button.active {
  transform: translateY(-2px);
}

.bottom-nav button.active::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e33f6f, #f0a326);
  transform: translateX(-50%);
  box-shadow: 0 5px 12px rgba(227, 63, 111, .18);
}

.bottom-nav button.active span:last-child {
  color: #16121a;
}

.bottom-nav button span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  font-size: 26px;
  line-height: 1;
  color: #342a33;
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.bottom-nav button.active:first-child .nav-icon {
  color: #fff;
  background: linear-gradient(135deg, #e33f6f, #f0a326);
  box-shadow: 0 8px 16px rgba(227, 63, 111, .2);
}

.bottom-nav button.active:nth-child(2) .nav-icon {
  color: #fff;
  background: linear-gradient(135deg, #20131d, #5a4655);
  box-shadow: 0 8px 16px rgba(35, 24, 36, .18);
}

.bottom-nav button.active:nth-child(3) .nav-icon {
  color: #fff;
  background: linear-gradient(135deg, #5b5ee8, #2ca8d8);
  box-shadow: 0 8px 16px rgba(91, 94, 232, .18);
}

.detail-page {
  padding-top: 0;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-copy {
  color: #9d627a;
  line-height: 1.6;
  font-size: 16px;
  margin: 4px auto 16px;
  width: 82%;
  text-align: center;
  white-space: pre-line;
}

.unlock-btn {
  display: block;
  width: min(290px, 86%);
  margin: 14px auto 38px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 42%),
    linear-gradient(135deg, #e33f6f, #f27aa4 56%, #f0a326);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 16px 30px rgba(227, 63, 111, .28);
  text-shadow: 0 1px 2px rgba(83, 24, 48, .22);
  transition: transform .15s ease, filter .15s ease;
}

.unlock-btn:active,
.copy-btn:active,
.task:active,
.wide-ad:active {
  transform: translateY(2px);
  filter: saturate(1.06);
}

.meta {
  margin: 0 2px 14px;
  display: grid;
  gap: 10px;
  font-size: 16px;
  color: #281c25;
  padding: 14px;
  border: 1px solid rgba(227, 63, 111, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-soft);
}

.meta strong {
  margin-right: 10px;
  color: #9b2b5d;
}

.detail-media {
  margin: 0 2px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #1d121b;
  box-shadow: var(--shadow), var(--glow);
  outline: 1px solid rgba(255, 255, 255, .72);
}

.detail-media img {
  width: 100%;
  min-height: 430px;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}

.detail-video {
  width: 100%;
  min-height: 430px;
  max-height: 65vh;
  display: block;
  background: #000;
  object-fit: contain;
}

.detail-media .play {
  width: 72px;
  height: 72px;
  border-color: rgba(255, 255, 255, .9);
  color: #fff;
  font-size: 42px;
}

.share-page {
  --share-hero-h: clamp(178px, 26vh, 238px);
  --share-overlap: 56px;
  background:
    linear-gradient(180deg, rgba(25, 12, 22, .14) 0 var(--share-hero-h), #fff var(--share-hero-h) 100%),
    var(--share-bg, linear-gradient(135deg, #e75b91, #2ca8d8));
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% var(--share-hero-h);
  background-position: top center;
  padding: calc(var(--share-hero-h) - var(--share-overlap)) 18px calc(var(--nav-h) + 14px);
}

.share-card {
  margin-top: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  min-height: calc(100dvh - var(--nav-h) - (var(--share-hero-h) - var(--share-overlap)) - 18px);
  padding: clamp(22px, 3vh, 30px) 18px clamp(22px, 3vh, 30px);
  box-shadow: var(--shadow), var(--glow);
  border: 1px solid rgba(255, 255, 255, .8);
  display: flex;
  flex-direction: column;
}

.points {
  position: absolute;
  top: 14px;
  left: 12px;
  color: rgba(255, 255, 255, .96);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 5px;
  padding: 3px 8px;
}

.points-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 205, 100, .36);
  border-radius: 999px;
  padding: 8px 18px;
  color: #7b4b06;
  background: linear-gradient(180deg, rgba(255, 249, 231, .98), rgba(255, 236, 184, .96));
  box-shadow: 0 10px 22px rgba(194, 128, 35, .12);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.points-badge strong {
  color: #d46b00;
  font-size: 22px;
  line-height: 1;
}

.task-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: clamp(20px, 3vh, 30px);
}

.task {
  border: 1px solid rgba(227, 63, 111, .1);
  border-radius: 14px;
  min-height: 144px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 248, 251, .92)),
    #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.task:hover {
  box-shadow: 0 14px 32px rgba(25, 39, 66, .17);
}

.task-static {
  cursor: default;
}

.task-static:hover {
  box-shadow: var(--shadow-soft);
}

.task-static:active {
  transform: none;
  filter: none;
}

.task-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 31px;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .32), 0 10px 20px rgba(43, 27, 40, .14);
}

.task strong {
  font-size: 22px;
  color: #20151d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

.task span:last-child {
  font-size: 16px;
  color: #8f6277;
  font-weight: 800;
}

.share-text {
  width: 100%;
  min-height: clamp(90px, 12vh, 120px);
  resize: vertical;
  border: 1px solid rgba(44, 168, 216, .28);
  box-shadow: 0 0 0 4px rgba(44, 168, 216, .08);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.copy-btn {
  display: block;
  margin: clamp(18px, 3vh, 28px) auto clamp(26px, 4vh, 42px);
  border: 0;
  border-radius: 13px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 44%),
    linear-gradient(135deg, #2ca8d8, #5b5ee8);
  box-shadow: 0 14px 26px rgba(52, 132, 208, .28);
  padding: 11px 32px;
  font-size: 20px;
  font-weight: 900;
  min-width: 196px;
  text-shadow: 0 1px 2px rgba(18, 37, 102, .24);
}

.rule-box {
  border: 1px solid rgba(43, 27, 40, .1);
  border-radius: 14px;
  padding: 20px 22px;
  line-height: 1.8;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--shadow-soft);
  margin-top: auto;
}

.resource-title {
  margin: 0 auto 34px;
  width: max-content;
  max-width: 90%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 48%),
    linear-gradient(135deg, #e33f6f, #5b5ee8 54%, #2ca8d8);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  padding: 10px 24px;
  box-shadow: 0 16px 30px rgba(91, 94, 232, .22);
  text-shadow: 0 1px 2px rgba(20, 24, 96, .24);
  border: 1px solid rgba(255, 255, 255, .42);
}

.resource-page {
  padding-top: 58px;
  min-height: 100dvh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body:not(.admin-body) .resource-page[style*="--resource-bg-image"] {
  background-image: var(--resource-bg-image) !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #fff;
}

.app-ad-row {
  border: 1px solid rgba(227, 63, 111, .1);
  border-radius: 16px;
  margin-bottom: 28px;
  padding: 16px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}

.app-ad {
  border: 0;
  background: transparent;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #554852;
  min-width: 0;
  border-radius: 8px;
  padding: 4px 0;
  transition: background .16s ease, transform .16s ease;
  font-weight: 800;
}

.app-ad:active {
  transform: scale(.97);
  background: #f7f9fc;
}

.app-ad img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 8px 16px rgba(43, 27, 40, .12);
}

.wide-ad {
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 60px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 18px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .38);
}

.wide-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 42%, rgba(0, 0, 0, .08));
}

.wide-ad img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255, 255, 255, .28);
}

.wide-ad span {
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}

.wide-ad:hover {
  box-shadow: 0 16px 32px rgba(25, 39, 66, .16);
}

.admin-fab {
  position: fixed;
  right: calc(50% - min(50vw, 215px) + 14px);
  bottom: calc(var(--nav-h) + 12px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(17, 17, 17, .82);
  color: #fff;
  z-index: 21;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.admin {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, .36);
}

.admin.open {
  display: block;
}

.admin-panel {
  width: min(100vw, 430px);
  margin: 0 auto;
  height: 100vh;
  background: #fff;
  padding: 16px;
  overflow: auto;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-block {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.admin-block h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  color: #111827;
}

.field textarea {
  min-height: 74px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary,
.danger,
.ghost {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.primary:active,
.danger:active,
.ghost:active {
  transform: translateY(1px);
}

.primary {
  background: #111;
  color: #fff;
}

.danger {
  background: #fff1f1;
  color: #d23b3b;
}

.ghost {
  background: #f3f4f6;
  color: #222;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  padding: 9px;
  background: #fff;
}

.admin-item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.admin-item small {
  color: #777;
}

.admin-item.user-item {
  grid-template-columns: 42px 1fr;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #25aee8, #f2689f);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.user-item small {
  display: block;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px);
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 44px));
  background: rgba(17, 17, 17, .9);
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  text-align: center;
  z-index: 80;
}

.admin-page {
  width: min(100%, 1080px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 16px 60px;
  color: #1f2937;
}

.login-box {
  width: min(100%, 380px);
  margin: 12vh auto 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .9)),
    #fff;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 26px 70px rgba(20, 32, 54, .18);
}

.login-box h1,
.admin-full h1 {
  margin: 0 0 20px;
  font-size: 24px;
}

.login-box h1::after {
  content: "当前站点后台入口";
  display: block;
  width: max-content;
  margin-top: 8px;
  border-radius: 999px;
  background: #f2f7ff;
  color: #2563eb;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.login-subtitle {
  margin: -8px 0 20px;
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

.login-box .primary {
  width: 100%;
}

.admin-msg {
  min-height: 22px;
  color: #d23b3b;
  margin: 12px 0 0;
  text-align: center;
}

.admin-full {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.admin-full .admin-head {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -24px -24px 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf0f4;
  border-radius: 18px 18px 0 0;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .92);
}

.admin-full .admin-head h1 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

.admin-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.admin-full #adminContent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-overview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 92px;
  border: 1px solid #e7ecf2;
  border-radius: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .96));
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: space-between;
}

.metric-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  color: #0f172a;
  font-size: 32px;
  line-height: 1;
}

.admin-full .admin-block {
  border: 1px solid #e7ecf2;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-full .admin-block:first-child,
.admin-full .admin-block:nth-child(2) {
  grid-column: 1 / -1;
}

.admin-full .admin-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #111827;
  font-size: 18px;
}

.admin-full .admin-block h3::before {
  content: "";
  width: 8px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #25aee8, #f2689f);
}

.admin-full .field input,
.admin-full .field select,
.admin-full .field textarea,
.login-box .field input {
  background: #f8fafc;
  border-color: #e3e8ef;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-full .field input:focus,
.admin-full .field select:focus,
.admin-full .field textarea:focus,
.login-box .field input:focus {
  outline: none;
  border-color: #46a7ee;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(70, 167, 238, .14);
}

.admin-full .primary,
.login-box .primary {
  background: linear-gradient(135deg, #1677ff, #31b4f2);
  box-shadow: 0 10px 20px rgba(22, 119, 255, .22);
}

.admin-full .danger {
  border: 1px solid #ffd4d4;
}

.admin-full .admin-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-full .admin-item {
  background: #fbfcfe;
  transition: transform .15s ease, border-color .15s ease;
}

.admin-full .admin-item:hover {
  transform: translateY(-1px);
  border-color: #dbe7f4;
}

body.admin-body {
  background: #f4f6f8;
}

.admin-body .admin-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #1f2937;
}

.admin-console {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: #f4f6f8;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #111827;
  color: #fff;
}

.admin-brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.admin-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 16px;
}

.admin-brand small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 12px;
}

.admin-nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a:focus,
.admin-nav a.active {
  background: #1f2937;
  color: #fff;
  outline: none;
}

.admin-nav a.active {
  box-shadow: inset 3px 0 0 #3b82f6;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.admin-topbar h1 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
}

.admin-console #adminContent {
  display: grid;
  gap: 22px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.admin-console #adminContent > [hidden] {
  display: none !important;
}

.admin-console .admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  scroll-margin-top: 92px;
}

.admin-console .metric-card {
  min-height: 104px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: none;
}

.admin-console .metric-card span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.admin-console .metric-card strong {
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.admin-section {
  display: grid;
  gap: 12px;
  scroll-margin-top: 92px;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 38px;
}

.admin-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.admin-section-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-card {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.admin-card-wide {
  max-width: none;
}

.admin-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
}

.admin-console .field {
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.admin-console .field input,
.admin-console .field select,
.admin-console .field textarea,
.login-box .field input {
  min-height: 40px;
  border-color: #d9e0e8;
  border-radius: 8px;
  background: #fff;
}

.admin-console .field textarea {
  min-height: 96px;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-console .primary {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  background: #2563eb;
  box-shadow: none;
}

.admin-console .ghost {
  min-height: 40px;
  border-radius: 8px;
  background: #eef2f7;
  color: #1f2937;
}

.admin-console .danger {
  min-height: 36px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #dc2626;
}

.admin-console .admin-list {
  max-height: 430px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-right: 2px;
}

body.admin-body .service-message-editor {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

body.admin-body .service-message-editor-head,
body.admin-body .service-message-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.admin-body .service-message-editor-head span,
body.admin-body .service-message-item-head strong {
  color: #263244;
  font-size: 13px;
  font-weight: 900;
}

body.admin-body .service-message-list {
  display: grid;
  gap: 10px;
}

body.admin-body .service-message-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #f8fbff;
}

body.admin-body .service-message-item textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}

body.admin-body .service-message-item .danger {
  min-height: 32px;
  padding: 0 10px;
}

.admin-console .admin-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
  box-shadow: none;
}

.admin-console .admin-item:hover {
  transform: none;
  border-color: #d9e0e8;
}

.admin-console .admin-item img,
.admin-console .user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.admin-console .admin-item p,
.admin-console .admin-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console .user-item small {
  display: block;
}

.admin-console .empty {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 18px;
  color: #6b7280;
  background: #fbfcfd;
  text-align: center;
}

@media (max-width: 920px) {
  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .admin-brand {
    padding-bottom: 12px;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
  }

  .admin-nav a {
    justify-content: center;
  }

  .admin-console #adminContent {
    padding: 18px 14px 36px;
  }

  .admin-console .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .admin-actions,
  .admin-actions .ghost {
    width: 100%;
  }

  .admin-actions .ghost {
    flex: 1;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-console .admin-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .admin-console .admin-item .danger {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Premium admin polish */
body.admin-body {
  background:
    linear-gradient(180deg, #f7f9fc 0, #eef2f7 100%);
}

.admin-console {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(244, 247, 251, .92)),
    #f3f6fb;
}

.admin-sidebar {
  background:
    linear-gradient(180deg, #0d1423 0%, #111827 48%, #0b1220 100%);
  box-shadow: 18px 0 42px rgba(15, 23, 42, .12);
}

.admin-brand {
  border-bottom-color: rgba(255, 255, 255, .12);
}

.admin-logo {
  background: linear-gradient(135deg, #2f80ff, #68d7ff);
  box-shadow: 0 12px 28px rgba(47, 128, 255, .28);
}

.admin-nav a {
  position: relative;
  color: #b8c2d6;
  letter-spacing: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-nav a:hover {
  transform: translateX(2px);
}

.admin-nav a:hover,
.admin-nav a:focus,
.admin-nav a.active {
  background: rgba(255, 255, 255, .08);
}

.admin-nav a.active {
  color: #fff;
  box-shadow: inset 3px 0 0 #5fb7ff, 0 10px 24px rgba(0, 0, 0, .12);
}

.admin-topbar {
  min-height: 78px;
  border-bottom-color: rgba(213, 221, 232, .78);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.admin-topbar h1 {
  font-size: 24px;
  font-weight: 900;
}

.admin-subtitle {
  color: #758195;
}

.admin-console #adminContent {
  gap: 26px;
  padding-top: 28px;
}

.admin-console .metric-card,
.admin-card {
  border-color: rgba(218, 226, 236, .86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 252, 255, .96));
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.admin-console .metric-card {
  position: relative;
  overflow: hidden;
}

.admin-console .metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.admin-console .metric-card strong {
  margin-top: 16px;
  font-size: 38px;
  letter-spacing: 0;
}

.admin-section-head {
  padding: 0 2px;
}

.admin-section-head h2 {
  font-size: 20px;
  font-weight: 900;
}

.admin-section-head p {
  color: #7b8798;
}

.admin-card {
  border-radius: 10px;
  padding: 20px;
}

.admin-card h3 {
  font-size: 16px;
  font-weight: 900;
}

.admin-console .field input,
.admin-console .field select,
.admin-console .field textarea,
.login-box .field input {
  border-color: #dce4ef;
  background: #f9fbfe;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-console .field input:focus,
.admin-console .field select:focus,
.admin-console .field textarea:focus {
  outline: none;
  border-color: #4f9cf9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 156, 249, .13);
}

.admin-console .primary {
  background: linear-gradient(135deg, #1d6df2, #2eb7ff);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.admin-console .primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, .28);
}

.admin-console .ghost {
  border: 1px solid #dde5f0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.admin-console .admin-item {
  border-color: #e6edf5;
  background: #fff;
}

.admin-console .admin-item:hover {
  border-color: #cfddec;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.account-card {
  margin-top: 16px;
}

.account-hint {
  margin: 8px 0 0;
  color: #7b8798;
  font-size: 13px;
}

/* Light enterprise admin theme */
body.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, .72) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 232, 240, .72) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.admin-body .admin-page {
  background: transparent;
}

.admin-body .login-box {
  position: relative;
  width: min(100% - 32px, 420px);
  margin: clamp(56px, 10vh, 110px) auto 0;
  padding: 34px 32px 32px;
  border: 1px solid rgba(213, 222, 235, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .12);
  backdrop-filter: blur(18px);
}

.admin-body .login-box::before {
  content: attr(data-brand);
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-bottom: 14px;
  padding: 0 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.admin-body .login-box h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.18;
}

.admin-body .login-box h1::after {
  content: none;
}

.admin-body .login-subtitle {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.admin-body .login-box .field {
  margin-bottom: 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.admin-body .login-box .field input {
  min-height: 44px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
}

.admin-body .login-box .field input:focus {
  outline: none;
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .16);
}

.admin-body .login-box .primary {
  min-height: 44px;
  margin-top: 2px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 16px 32px rgba(37, 99, 235, .22);
  font-size: 15px;
  font-weight: 900;
}

.admin-body .admin-msg {
  color: #dc2626;
  font-size: 13px;
}

.admin-console {
  grid-template-columns: 228px minmax(0, 1fr);
  background: #f7f9fc;
}

.admin-sidebar {
  border-right: 1px solid #e6ebf2;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.admin-brand {
  min-height: 66px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid #edf1f6;
}

.admin-logo {
  border-radius: 9px;
  background: linear-gradient(135deg, #2383ff, #39c6f4);
  box-shadow: 0 10px 22px rgba(35, 131, 255, .18);
}

.admin-brand strong {
  color: #0f172a;
  font-weight: 900;
}

.admin-brand small {
  color: #64748b;
}

.admin-nav {
  gap: 8px;
}

.admin-nav a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  transform: none;
}

.admin-nav a:hover,
.admin-nav a:focus {
  background: #f2f6fd;
  color: #2563eb;
}

.admin-nav a.active {
  background: #eef4ff;
  color: #2563eb;
  box-shadow: none;
}

.admin-nav a.active::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 50%;
  background: #2563eb;
}

.admin-topbar {
  min-height: 58px;
  padding: 10px 20px;
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, .9);
  box-shadow: none;
}

.admin-topbar h1 {
  font-size: 18px;
  font-weight: 900;
}

.admin-subtitle {
  margin-top: 4px;
  color: #748198;
  font-size: 12px;
}

.admin-console #adminContent {
  width: 100%;
  max-width: none;
  gap: 20px;
  padding: 18px 20px 36px;
}

.admin-console .admin-overview {
  gap: 18px;
}

.admin-console .metric-card,
.admin-card {
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.admin-console .metric-card {
  min-height: 140px;
  padding: 26px 22px;
}

.admin-console .metric-card::before {
  content: none;
}

.admin-console .metric-card span {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.admin-console .metric-card strong {
  margin-top: 12px;
  color: #172554;
  font-size: 30px;
  font-weight: 500;
}

.admin-section-head {
  min-height: 42px;
  padding: 0;
}

.admin-section-head h2 {
  color: #0f172a;
  font-size: 18px;
}

.admin-section-head p {
  color: #94a3b8;
}

.admin-card {
  padding: 20px;
}

.admin-card h3 {
  color: #0f172a;
  font-size: 16px;
}

.admin-console .field {
  color: #475569;
  font-weight: 700;
}

.admin-console .field input,
.admin-console .field select,
.admin-console .field textarea {
  border-color: #dbe3ee;
  background: #f8fafc;
}

.admin-console .primary {
  background: #2563eb;
  box-shadow: none;
}

.admin-console .primary:hover {
  transform: none;
  background: #1d4ed8;
  box-shadow: none;
}

.admin-console .ghost {
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #1f2937;
  box-shadow: none;
}

.admin-console .admin-item {
  border-color: #e8edf5;
  background: #fff;
}

.admin-console .admin-item:hover {
  border-color: #cbd5e1;
  box-shadow: none;
}

.account-hint {
  color: #94a3b8;
}

/* Refined login entrance */
.admin-body:has(#loginBox:not([hidden])) .admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 16px;
}

.admin-body:has(#loginBox:not([hidden])) {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08) 0%, transparent 34%),
    linear-gradient(315deg, rgba(56, 189, 248, .12) 0%, transparent 30%),
    linear-gradient(90deg, rgba(226, 232, 240, .7) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 232, 240, .7) 1px, transparent 1px),
    #f7faff;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.admin-body .login-box {
  width: min(100%, 448px);
  margin: 0 auto;
  padding: 38px 36px 34px;
  border: 1px solid rgba(214, 224, 238, .96);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 252, 255, .96));
  box-shadow:
    0 34px 90px rgba(15, 23, 42, .14),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}

.admin-body .login-box::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.admin-body .login-box::before {
  height: 32px;
  margin-bottom: 18px;
  padding: 0 12px;
  background: #edf6ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
}

.admin-body .login-box h1 {
  font-size: 30px;
  letter-spacing: 0;
}

.admin-body .login-subtitle {
  max-width: 310px;
  margin-bottom: 28px;
}

.admin-body .login-box .field {
  margin-bottom: 16px;
}

.admin-body .login-box .field input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}

.admin-body .login-box .primary {
  min-height: 46px;
  margin-top: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2185ff 52%, #2bb8f2 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.admin-body .login-box .primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 22px 40px rgba(37, 99, 235, .3);
}

.admin-body .login-box .primary:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .admin-body .login-box {
    padding: 32px 24px 28px;
    border-radius: 14px;
  }

  .admin-body .login-box::after {
    left: 24px;
    right: 24px;
  }

  .admin-body .login-box h1 {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .section h2 {
    font-size: 22px;
  }

  .thumb {
    height: 78px;
  }

  .task-row {
    gap: 16px;
  }

  .task strong {
    font-size: 20px;
  }

  .share-page {
    --share-hero-h: clamp(150px, 24vh, 190px);
    --share-overlap: 48px;
    background:
      linear-gradient(180deg, transparent 0 var(--share-hero-h), #fff var(--share-hero-h) 100%),
      var(--share-bg, linear-gradient(180deg, #70bdf5, #70bdf5));
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% var(--share-hero-h);
    background-position: top center;
    padding-top: calc(var(--share-hero-h) - var(--share-overlap));
  }
}

@media (max-width: 760px) {
  .admin-page {
    padding: 14px 10px 34px;
  }

  .admin-full {
    padding: 14px;
  }

  .admin-full .admin-head {
    margin: -14px -14px 10px;
    padding: 14px;
  }

  .admin-full #adminContent {
    grid-template-columns: 1fr;
  }

  .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 82px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .admin-full .admin-block:first-child,
  .admin-full .admin-block:nth-child(2) {
    grid-column: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Current admin console mobile layout */
@media (max-width: 920px) {
  body.admin-body {
    overflow-x: hidden;
  }

  .admin-body .admin-page {
    min-height: 100dvh;
    padding: 0;
  }

  .admin-console {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    padding: 10px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid #e6ebf2;
  }

  .admin-brand {
    min-height: 50px;
    padding: 0 2px 10px;
  }

  .admin-logo {
    width: 36px;
    height: 36px;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .admin-nav a.active::before {
    content: none;
  }

  .admin-topbar {
    position: static;
    min-height: auto;
    padding: 14px 16px;
  }

  .admin-console #adminContent {
    padding: 16px 14px 34px;
  }

  .admin-console .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-console .metric-card {
    min-height: 104px;
    padding: 18px 16px;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .admin-body:has(#loginBox:not([hidden])) .admin-page {
    padding: 18px 12px;
  }

  .admin-body .login-box {
    width: min(100%, 420px);
    padding: 28px 20px 24px;
  }

  .admin-body .login-box::after {
    left: 20px;
    right: 20px;
  }

  .admin-body .login-subtitle {
    max-width: none;
  }

  .admin-brand {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .admin-brand strong,
  .admin-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .admin-topbar h1 {
    font-size: 20px;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-actions .ghost,
  .admin-link {
    width: 100%;
    min-width: 0;
  }

  .admin-console #adminContent {
    gap: 16px;
    padding: 14px 10px 28px;
  }

  .admin-section {
    gap: 10px;
  }

  .admin-section-head {
    align-items: flex-start;
    min-height: auto;
  }

  .admin-section-head h2 {
    font-size: 17px;
  }

  .admin-section-head p {
    line-height: 1.5;
  }

  .admin-console .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-console .metric-card {
    min-height: 92px;
    padding: 16px;
  }

  .admin-console .metric-card strong {
    font-size: 28px;
  }

  .admin-card {
    padding: 14px;
    border-radius: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-form-actions {
    justify-content: stretch;
  }

  .admin-console .primary,
  .admin-console .ghost,
  .admin-console .danger {
    width: 100%;
  }

  .admin-console .admin-list {
    max-height: none;
    overflow: visible;
  }

  .admin-console .admin-item {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .admin-console .admin-item .danger {
    grid-column: 1 / -1;
  }

  .admin-console .admin-item p,
  .admin-console .admin-item small {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Admin UI refinement */
body.admin-body {
  color: #0f172a;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, .54) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 232, 240, .54) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

.admin-console {
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(241, 245, 249, .72)),
    transparent;
}

.admin-sidebar {
  padding: 18px 16px;
  border-right: 1px solid rgba(203, 213, 225, .72);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

.admin-brand {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 70px;
  padding: 8px 6px 18px;
}

.admin-logo {
  width: 42px;
  height: 42px;
}

.admin-brand strong {
  letter-spacing: 0;
}

.admin-nav {
  gap: 6px;
  margin-top: 18px;
}

.admin-nav a {
  min-height: 44px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #334155;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.admin-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #cbd5e1;
}

.admin-nav a:hover,
.admin-nav a:focus {
  border-color: #dbeafe;
  background: #f8fbff;
  color: #1d4ed8;
}

.admin-nav a.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-nav a.active::before {
  width: 7px;
  height: 7px;
  margin-right: 0;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.admin-main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-topbar {
  min-height: 66px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
}

.admin-topbar h1 {
  font-size: 20px;
}

.admin-subtitle {
  margin: 3px 0 0;
}

.admin-actions {
  gap: 8px;
}

.admin-link,
.admin-console .ghost,
.admin-console .primary,
.admin-console .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-link,
.admin-console .ghost {
  min-height: 38px;
  padding: 0 13px;
}

.admin-console #adminContent {
  width: min(100%, 1280px);
  gap: 22px;
  padding: 24px 28px 42px;
}

.admin-console .admin-overview {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
}

.admin-console .metric-card,
.admin-card {
  border-color: rgba(203, 213, 225, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.admin-console .metric-card {
  position: relative;
  min-height: 128px;
  padding: 22px 20px;
  overflow: hidden;
}

.admin-console .metric-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff6ff;
}

.admin-console .metric-card:nth-child(2)::after {
  background: #ecfdf5;
}

.admin-console .metric-card:nth-child(3)::after {
  background: #fff7ed;
}

.admin-console .metric-card:nth-child(4)::after {
  background: #f5f3ff;
}

.admin-console .metric-card span {
  position: relative;
  z-index: 1;
  color: #64748b;
}

.admin-console .metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
}

.admin-section-head {
  padding: 2px 2px 0;
}

.admin-section-head h2 {
  font-size: 19px;
}

.admin-section-head p {
  color: #64748b;
}

.admin-workspace {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.admin-card {
  padding: 22px;
}

.admin-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.admin-card h3::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
}

.admin-console .field {
  margin-bottom: 14px;
}

.admin-console .field input,
.admin-console .field select,
.admin-console .field textarea {
  min-height: 42px;
  border-radius: 10px;
  color: #0f172a;
}

.admin-console .field textarea {
  line-height: 1.55;
}

.admin-console .field input:hover,
.admin-console .field select:hover,
.admin-console .field textarea:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.admin-console .primary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
}

.admin-console .danger {
  border-color: #fecdd3;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
}

.admin-console .danger:hover,
.admin-console .danger:focus {
  border-color: #fda4af;
  background: #ffe4e6;
}

.admin-console .admin-list {
  max-height: min(56vh, 520px);
  gap: 10px;
  padding: 2px 4px 2px 0;
}

.admin-console .admin-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 11px;
  border-radius: 11px;
}

.admin-console .admin-item img,
.admin-console .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.admin-console .admin-item p {
  margin-bottom: 4px;
  color: #0f172a;
  font-weight: 800;
}

.admin-console .admin-item small {
  color: #64748b;
  line-height: 1.45;
}

.admin-console .admin-ad-editor {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px;
}

.admin-console .admin-ad-editor > img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
}

.admin-ad-edit-body {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.admin-ad-edit-head p {
  margin: 0 0 4px;
}

.admin-ad-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-ad-edit-grid .field {
  gap: 5px;
  margin: 0;
}

.admin-ad-edit-grid .field input {
  min-height: 38px;
  border-radius: 9px;
}

.admin-ad-url {
  grid-column: 1 / -1;
}

.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-item-actions .primary,
.admin-item-actions .danger {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.admin-console .user-avatar {
  display: grid;
  place-items: center;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.admin-console .empty {
  border-color: #cbd5e1;
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .admin-console {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-console .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 10px 14px 12px;
    background: rgba(255, 255, 255, .94);
  }

  .admin-nav {
    margin-top: 10px;
  }

  .admin-nav a::before {
    content: none;
  }

  .admin-topbar {
    padding: 14px 16px;
  }

  .admin-console #adminContent {
    width: 100%;
    padding: 16px 14px 34px;
  }

  .admin-console .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-console .admin-list {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .admin-console #adminContent {
    padding: 14px 10px 28px;
  }

  .admin-console .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-console .metric-card {
    min-height: 96px;
    padding: 16px;
  }

  .admin-console .metric-card::after {
    right: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
  }

  .admin-card {
    padding: 15px;
  }

  .admin-card h3 {
    margin-bottom: 14px;
  }

  .admin-console .admin-item {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: auto;
  }

  .admin-console .admin-ad-editor {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .admin-ad-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .admin-console .admin-item img,
  .admin-console .user-avatar {
    width: 46px;
    height: 46px;
  }
}

/* Final admin layout pass */
body.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, .08) 1px, transparent 1px),
    radial-gradient(circle at 12% 16%, rgba(14, 165, 233, .18), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(244, 114, 182, .14), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #edf6f3 48%, #fff7ed 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.admin-body .admin-page {
  min-height: 100vh;
}

.admin-console {
  min-height: 100vh;
  grid-template-columns: 228px minmax(0, 1fr);
  background: transparent;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid rgba(203, 213, 225, .72);
  background: rgba(255, 255, 255, .86);
  box-shadow: 14px 0 38px rgba(15, 23, 42, .05);
}

.admin-brand {
  min-height: auto;
  padding: 0 4px 24px;
}

.admin-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .2);
}

.admin-nav {
  gap: 8px;
  margin-top: 6px;
}

.admin-nav a {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 12px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid rgba(203, 213, 225, .7);
  background: rgba(255, 255, 255, .88);
}

.admin-topbar h1 {
  font-size: 22px;
}

.admin-console #adminContent {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px clamp(18px, 3vw, 34px) 44px;
}

.admin-console .admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.admin-console .metric-card {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.admin-console .metric-card::after {
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.admin-console .metric-card:nth-child(2)::after {
  background: linear-gradient(135deg, #ccfbf1, #ecfdf5);
}

.admin-console .metric-card:nth-child(3)::after {
  background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

.admin-console .metric-card:nth-child(4)::after {
  background: linear-gradient(135deg, #fbcfe8, #fdf2f8);
}

.admin-console .metric-card span {
  max-width: calc(100% - 56px);
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.admin-console .metric-card strong {
  margin-top: 34px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
}

.admin-console .metric-card::before {
  content: none;
  position: absolute;
  top: auto;
  left: 18px;
  bottom: 18px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.admin-workspace {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
}

.admin-card {
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, .86);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.admin-console .admin-list {
  max-height: min(64vh, 620px);
}

.admin-body:has(#loginBox:not([hidden])) {
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.admin-body:has(#loginBox:not([hidden]))::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .52), rgba(255, 255, 255, .38)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  z-index: -2;
}

.admin-body:has(#loginBox:not([hidden]))::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(14, 165, 233, .28), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(251, 146, 60, .18), transparent 24%),
    linear-gradient(135deg, rgba(15, 23, 42, .1), rgba(255, 255, 255, .18));
  backdrop-filter: blur(2px);
  z-index: -1;
}

.admin-body:has(#loginBox:not([hidden])) .admin-page {
  width: min(100%, 1080px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.admin-body .login-box {
  width: min(100%, 430px);
  min-height: auto;
  padding: 34px 34px 30px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 26px 80px rgba(15, 23, 42, .22);
  backdrop-filter: blur(22px);
}

.admin-body .login-box::before {
  content: "写";
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .28);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.admin-body .login-box::after {
  content: attr(data-brand) " 管理后台";
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: -6px 0 22px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.admin-body .login-box h1 {
  max-width: 100%;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.18;
}

.admin-body .login-box h1::after {
  content: none;
}

.admin-body .login-subtitle {
  margin-bottom: 24px;
  color: #475569;
  line-height: 1.7;
}

.admin-body .login-box .field {
  margin-bottom: 16px;
  color: #334155;
}

.admin-body .login-box .field input {
  min-height: 48px;
  border-radius: 12px;
  background: rgba(248, 250, 252, .95);
}

.admin-body .login-box .primary {
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .28);
}

@media (max-width: 1180px) {
  .admin-console .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-topbar {
    position: static;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-console #adminContent {
    padding: 14px 12px 28px;
  }

  .admin-console .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-console .metric-card {
    min-height: 118px;
  }

  .admin-body .login-box {
    padding: 28px 22px 24px;
    border-radius: 16px;
  }
}

/* Mobile home skin inspired by the provided reference. */
body {
  background: #f5f5f5;
}

.phone {
  max-width: 430px;
  background: #fff7f3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.page {
  padding: 0 10px calc(58px + env(safe-area-inset-bottom));
  background:
    linear-gradient(90deg, rgba(255, 206, 182, .34), transparent 16%, transparent 84%, rgba(195, 244, 245, .4)),
    #fff7f3;
}

.topbar {
  min-height: 42px;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  margin: 0 -10px;
  padding: 0 10px;
  border-bottom: 1px solid #eeeeee;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar h1 {
  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-shadow: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  justify-self: start;
  border: 1px solid #ffd1df;
  border-radius: 50%;
  color: #ff6b92;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.agent-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
}

.agent-btn span {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f04dff, #b22cff);
  position: relative;
}

.agent-btn span::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 5px 0 0 #fff;
}

.back-btn {
  color: #111;
  font-size: 28px;
}

.hero {
  margin: 0 -10px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.hero-link {
  background: #f4edf0;
}

.hero-link::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 60%);
}

.hero img,
.hero-link img {
  aspect-ratio: 400 / 211;
  filter: none;
}

.hero-dot {
  position: absolute;
  left: 53%;
  bottom: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #158bff;
  z-index: 3;
}

.notice {
  background: #fff9dd;
  border: 0;
  color: #ff9f2e;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 0;
}

.notice span {
  animation-duration: 16s;
}

.pill-row {
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  position: relative;
}

.outline-pill,
.tag {
  box-shadow: none;
}

.outline-pill {
  min-width: 77px;
  min-height: 32px;
  padding: 6px 13px;
  border-color: transparent;
  color: #111;
  background: #f7f8fa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.outline-pill.active {
  color: #f03d91;
  border-color: #ff5baa;
  background: #fff;
  font-weight: 700;
}

.pill-more {
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #c9c9c9;
  font-size: 21px;
  line-height: 1;
}

.section {
  min-height: auto;
  margin: 8px 0 10px;
  padding: 12px 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .04);
}

.section::before,
.section::after,
.section h2::before,
.tag::after {
  content: none;
}

.section-title-row {
  margin-bottom: 3px;
}

.section h2 {
  color: #050505;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 500;
  text-shadow: none;
}

.group-cost {
  display: none;
}

.tag {
  margin: 0 0 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dda3ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.thumb {
  height: auto;
  aspect-ratio: 116 / 72;
  border-radius: 5px;
  outline: 1px solid rgba(233, 233, 233, .88);
  background: #7a5f56;
  box-shadow: none;
}

.thumb img,
.thumb video {
  filter: saturate(1.02) contrast(1.01);
  transform: none;
}

.thumb video[data-video-preview] {
  background:
    linear-gradient(135deg, rgba(227, 63, 111, .32), rgba(44, 168, 216, .22)),
    #21151f;
}

.detail-media video[data-video-preview] {
  background:
    linear-gradient(135deg, rgba(227, 63, 111, .28), rgba(44, 168, 216, .2)),
    #21151f;
}

.thumb.locked img,
.thumb.locked video,
.detail-media.locked img,
.detail-media.locked video {
  filter: blur(var(--lock-blur, 6px)) saturate(.86) contrast(.9);
}

.thumb::after {
  background: rgba(0, 0, 0, .08);
}

.play {
  width: 24px;
  height: 24px;
  border-width: 2px;
  font-size: 14px;
  background: rgba(0, 0, 0, .18);
  box-shadow: none;
  backdrop-filter: none;
}

.bottom-nav {
  --nav-h: 57px;
  height: calc(57px + env(safe-area-inset-bottom));
  width: min(100vw, 400px);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #ededed;
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
  backdrop-filter: none;
}

.bottom-nav button {
  gap: 1px;
  color: #151515;
  font-size: 12px;
  font-weight: 500;
}

.bottom-nav button.active {
  transform: none;
}

.bottom-nav button.active::before {
  content: none;
}

.bottom-nav button.active span:last-child {
  color: #111;
}

.bottom-nav button span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  width: 28px;
  height: 27px;
  color: #8e8e8e;
  font-size: 25px;
  background: transparent;
}

.bottom-nav button.active:first-child .nav-icon,
.bottom-nav button.active:nth-child(2) .nav-icon,
.bottom-nav button.active:nth-child(3) .nav-icon {
  color: #ff8c00;
  background: transparent;
  box-shadow: none;
}

.bottom-nav button:nth-child(2) .nav-icon {
  color: #888;
}

.bottom-nav button:nth-child(3) .nav-icon {
  color: #25d4b7;
}

.share-page {
  padding: 0 14px calc(68px + env(safe-area-inset-bottom));
  background:
    linear-gradient(90deg, rgba(255, 206, 182, .34), transparent 16%, transparent 84%, rgba(195, 244, 245, .4)),
    #fff7f3;
}

.share-hero {
  margin: 10px 6px 10px;
  overflow: hidden;
  border-radius: 16px;
  background: #f4edf0;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .04);
}

.share-hero .hero-link {
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  position: relative;
}

.share-hero img {
  width: 100%;
  aspect-ratio: 400 / 211;
  object-fit: cover;
  display: block;
}

.share-page .share-card {
  min-height: auto;
  margin: 0;
  border-radius: 16px;
}

/* Admin feature layout rebuild */
.admin-stack {
  display: grid;
  gap: 22px;
}

.admin-ad-group {
  display: grid;
  gap: 12px;
}

.admin-ad-group > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.admin-ad-group > h3::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
}

.admin-workspace,
.admin-workspace-compact {
  align-items: start;
}

.admin-workspace-compact {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.admin-form-card {
  position: sticky;
  top: 88px;
}

.admin-list-card {
  min-width: 0;
}

.admin-console .admin-editor-list {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.admin-console .admin-editor-item,
.admin-console .admin-ad-editor {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: auto;
  padding: 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff, #f8fafc);
}

.admin-console .admin-editor-item > img,
.admin-console .admin-ad-editor > img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .12);
}

.admin-edit-body,
.admin-ad-edit-body {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.admin-edit-head,
.admin-ad-edit-head {
  min-width: 0;
}

.admin-edit-head p,
.admin-ad-edit-head p {
  margin: 0 0 4px;
}

.admin-edit-head small,
.admin-ad-edit-head small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-edit-grid,
.admin-ad-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.admin-edit-grid .field,
.admin-ad-edit-grid .field {
  min-width: 0;
  margin: 0;
  gap: 5px;
}

.admin-edit-grid .field input,
.admin-edit-grid .field select,
.admin-ad-edit-grid .field input,
.admin-ad-edit-grid .field select {
  width: 100%;
  min-height: 38px;
  border-radius: 9px;
}

.admin-edit-cover,
.admin-ad-url {
  grid-column: span 2;
}

.admin-item-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-item-actions .primary,
.admin-item-actions .danger {
  width: auto;
  min-width: 76px;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .admin-workspace-compact {
    grid-template-columns: 1fr;
  }

  .admin-form-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-edit-grid,
  .admin-ad-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-edit-cover,
  .admin-ad-url {
    grid-column: 1 / -1;
  }
}

/* Flat admin redesign: spacious rows, no nested cramped editors */
.admin-console #adminContent {
  max-width: 1320px;
}

.admin-workspace,
.admin-workspace-compact,
.admin-settings-grid,
.admin-users-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-form-card {
  position: static;
}

.admin-list-card {
  padding: 18px;
}

.admin-stack {
  gap: 26px;
}

.admin-ad-group {
  padding: 0;
}

.admin-ad-group > h3 {
  margin-bottom: 2px;
}

.admin-console .admin-editor-list {
  display: grid;
  gap: 14px;
}

.admin-flat-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.admin-flat-preview {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-flat-preview img {
  grid-row: span 2;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f5f9;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.admin-flat-preview strong {
  min-width: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-flat-preview small {
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-flat-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.admin-flat-fields .field {
  min-width: 0;
  margin: 0;
  gap: 6px;
}

.admin-flat-fields .field input,
.admin-flat-fields .field select,
.admin-flat-fields .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

.admin-flat-fields .field input,
.admin-flat-fields .field select {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-flat-fields .field textarea {
  min-height: 74px;
  resize: vertical;
}

.admin-flat-fields .field input[type="file"] {
  padding: 8px 10px;
  font-size: 12px;
}

.admin-flat-fields .span-2 {
  grid-column: span 2;
}

.admin-flat-actions {
  display: grid;
  gap: 10px;
}

.admin-flat-actions .primary,
.admin-flat-actions .danger {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.admin-console .admin-list:not(.admin-editor-list) {
  max-height: none;
  overflow: visible;
}

@media (max-width: 1180px) {
  .admin-flat-row {
    grid-template-columns: 1fr;
  }

  .admin-flat-preview {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .admin-flat-actions {
    display: flex;
    justify-content: flex-end;
  }

  .admin-flat-actions .primary,
  .admin-flat-actions .danger {
    width: auto;
    min-width: 86px;
  }
}

@media (max-width: 860px) {
  .admin-flat-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-flat-row {
    padding: 14px;
    gap: 14px;
  }

  .admin-flat-preview {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .admin-flat-preview img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .admin-flat-fields {
    grid-template-columns: 1fr;
  }

  .admin-flat-fields .span-2 {
    grid-column: auto;
  }

  .admin-flat-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-flat-actions .primary,
  .admin-flat-actions .danger {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .admin-console .admin-editor-item,
  .admin-console .admin-ad-editor {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 13px;
  }

  .admin-console .admin-editor-item > img,
  .admin-console .admin-ad-editor > img {
    width: 52px;
    height: 52px;
  }

  .admin-edit-grid,
  .admin-ad-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-item-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .admin-item-actions .primary,
  .admin-item-actions .danger {
    flex: 1;
    width: auto;
  }
}

/* Final admin secondary-page layout */
body.admin-body {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, .1) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(14, 165, 233, .18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(244, 114, 182, .12), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef8f7 46%, #fff7ed 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.admin-console #adminContent {
  width: 100%;
  max-width: 1180px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px clamp(18px, 3vw, 34px) 44px;
}

.admin-section {
  align-content: start;
  gap: 14px;
}

.admin-section-head {
  min-height: 0;
  padding: 0 2px;
}

.admin-section-head h2 {
  color: #071428;
  font-size: 20px;
  font-weight: 900;
}

.admin-section-head p {
  color: #47617d;
  font-size: 13px;
}

.admin-section-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.mini-metric {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 219, 254, .85);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.mini-metric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mini-metric strong {
  color: #0f172a;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
}

.mini-metric-clear {
  justify-self: start;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.admin-workspace {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
}

.admin-settings-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
}

.admin-users-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.admin-card {
  height: auto;
  min-height: 0;
  border-radius: 16px;
  border-color: rgba(203, 213, 225, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
}

.admin-card h3 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.admin-form-card {
  position: sticky;
  top: 88px;
}

.admin-list-card {
  min-height: 0;
}

.admin-console .admin-list,
.admin-console .admin-editor-list,
.admin-console .admin-user-list,
.admin-console .admin-activity-list {
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.admin-console .admin-item {
  border-radius: 14px;
}

.admin-console .admin-editor-item,
.admin-console .admin-ad-editor {
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 16px;
}

.admin-console .admin-editor-item > img,
.admin-console .admin-ad-editor > img {
  width: 68px;
  height: 68px;
}

.admin-edit-grid,
.admin-ad-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-edit-cover,
.admin-ad-url {
  grid-column: span 2;
}

.admin-item-actions {
  grid-column: 2;
  justify-content: flex-start;
  padding-top: 2px;
}

.admin-console .user-item,
.admin-console .activity-item {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
}

.activity-item p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.point-up {
  color: #059669;
  font-weight: 900;
}

.point-down {
  color: #e11d48;
  font-weight: 900;
}

.admin-console .empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .admin-workspace,
  .admin-settings-grid,
  .admin-users-grid,
  .admin-workspace-compact {
    grid-template-columns: 1fr;
  }

  .admin-form-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-section-metrics {
    grid-template-columns: 1fr;
  }

  .admin-edit-grid,
  .admin-ad-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-edit-cover,
  .admin-ad-url {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .admin-console #adminContent {
    padding: 14px 10px 28px;
  }

  .admin-console .admin-editor-item,
  .admin-console .admin-ad-editor {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .admin-console .admin-editor-item > img,
  .admin-console .admin-ad-editor > img {
    width: 52px;
    height: 52px;
  }

  .admin-edit-grid,
  .admin-ad-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-item-actions {
    grid-column: 1 / -1;
  }
}

/* Admin layout guard: keep editors flat and non-overlapping. */
body.admin-body .admin-console #adminContent {
  width: 100%;
  max-width: min(1480px, calc(100vw - 248px));
  margin: 0 auto;
  padding: 22px clamp(16px, 2.4vw, 32px) 48px;
}

body.admin-body .admin-workspace,
body.admin-body .admin-workspace-compact,
body.admin-body .admin-settings-grid,
body.admin-body .admin-users-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

body.admin-body .admin-form-card {
  position: static;
}

body.admin-body .admin-list-card,
body.admin-body .admin-card {
  min-width: 0;
  overflow: visible;
}

body.admin-body .admin-console .admin-editor-list {
  display: grid;
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

body.admin-body .content-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.admin-body .category-sidebar-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

body.admin-body .category-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

body.admin-body .category-add-row input {
  min-width: 0;
}

body.admin-body .category-nav-list {
  display: grid;
  gap: 8px;
}

body.admin-body .category-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

body.admin-body .category-nav-item > button:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 900;
}

body.admin-body .category-nav-item.active > button:first-child {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

body.admin-body .category-nav-item small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .ghost-small {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

body.admin-body .category-content-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

body.admin-body .category-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

body.admin-body .category-group-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

body.admin-body .category-group-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .content-create-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 12px;
  align-items: start;
}

body.admin-body .category-create-grid {
  gap: 12px;
}

body.admin-body .content-create-card {
  padding: 0;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

body.admin-body .content-create-card summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
  color: #0f172a;
  font-weight: 900;
  list-style: none;
}

body.admin-body .content-create-card summary::-webkit-details-marker {
  display: none;
}

body.admin-body .content-create-card summary::after {
  content: "+";
  margin-left: auto;
  color: #2563eb;
  font-size: 20px;
}

body.admin-body .content-create-card[open] summary::after {
  content: "-";
}

body.admin-body .content-create-card .quick-form-grid,
body.admin-body .content-create-card .admin-form-actions {
  padding: 0 14px 14px;
}

body.admin-body .content-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.admin-body .content-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.admin-body .content-card-head h3 {
  margin: 0;
}

body.admin-body .content-card-head span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .quick-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.admin-body .quick-form-grid .field,
body.admin-body .quick-form-grid input,
body.admin-body .quick-form-grid select,
body.admin-body .quick-form-grid textarea {
  min-width: 0;
  max-width: 100%;
}

body.admin-body .quick-form-grid .span-2 {
  grid-column: 1 / -1;
}

body.admin-body .quick-form-grid textarea {
  min-height: 86px;
}

body.admin-body .content-create-card {
  border-top: 3px solid #2563eb;
}

body.admin-body .content-create-card.photo-card {
  border-top-color: #0f9f7a;
}

body.admin-body .content-list-card {
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: #fff;
}

body.admin-body .album-compact-row {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

body.admin-body .album-compact-row summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

body.admin-body .album-compact-row summary::-webkit-details-marker {
  display: none;
}

body.admin-body .album-compact-preview img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
}

body.admin-body .album-compact-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.admin-body .album-compact-main strong,
body.admin-body .album-compact-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-body .album-compact-main strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

body.admin-body .album-compact-main small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .album-compact-edit {
  border-radius: 999px;
  padding: 6px 10px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .compact-edit-body {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
}

body.admin-body .admin-flat-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  overflow: visible;
}

body.admin-body .admin-flat-preview {
  min-width: 0;
}

body.admin-body .admin-flat-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
}

body.admin-body .admin-flat-fields .field,
body.admin-body .admin-flat-fields input,
body.admin-body .admin-flat-fields select,
body.admin-body .admin-flat-fields textarea {
  min-width: 0;
  max-width: 100%;
}

body.admin-body .admin-flat-fields .span-2 {
  grid-column: span 2;
}

body.admin-body .admin-flat-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

body.admin-body .admin-flat-actions .primary,
body.admin-body .admin-flat-actions .danger {
  width: auto;
  min-width: 88px;
  flex: 0 0 auto;
}

body.admin-body .admin-console .primary,
body.admin-body .admin-console .danger,
body.admin-body .admin-console .ghost {
  white-space: nowrap;
}

@media (max-width: 920px) {
  body.admin-body .admin-console #adminContent {
    max-width: 100%;
  }

  body.admin-body .content-workbench {
    grid-template-columns: 1fr;
  }

  body.admin-body .category-sidebar-panel {
    position: static;
  }

  body.admin-body .content-create-grid {
    grid-template-columns: 1fr;
  }

  body.admin-body .admin-flat-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.admin-body .quick-form-grid,
  body.admin-body .admin-flat-fields {
    grid-template-columns: 1fr;
  }

  body.admin-body .category-add-row {
    grid-template-columns: 1fr;
  }

  body.admin-body .album-compact-row summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body.admin-body .album-compact-edit {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  body.admin-body .quick-form-grid .span-2,
  body.admin-body .admin-flat-fields .span-2 {
    grid-column: 1 / -1;
  }

  body.admin-body .content-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.admin-body .admin-flat-row {
    grid-template-columns: 1fr;
  }

  body.admin-body .admin-flat-actions {
    justify-content: stretch;
  }

  body.admin-body .admin-flat-actions .primary,
  body.admin-body .admin-flat-actions .danger {
    flex: 1;
    min-width: 0;
  }
}

/* Share page text blocks final tuning */
.share-page .share-text {
  min-height: 128px;
  border: 2px solid rgba(136, 204, 232, .9);
  border-radius: 14px;
  padding: 16px 18px;
  line-height: 1.65;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(136, 204, 232, .14), 0 8px 20px rgba(72, 151, 184, .08);
}

.share-page .copy-btn {
  margin: 16px auto 18px;
}

.share-page .rule-box {
  padding: 16px 18px;
  border-radius: 14px;
  line-height: 1.62;
  font-size: 14px;
  font-weight: 800;
  margin-top: 0;
  box-shadow: 0 8px 18px rgba(43, 27, 40, .07);
}

/* Front background refresh */
body:not(.admin-body) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #e8f6ff 0%, #f3fbf7 48%, #fff8ef 100%);
}

body:not(.admin-body) .phone {
  background: #eef8f7;
  box-shadow: 0 0 0 1px rgba(44, 62, 80, .08), 0 28px 72px rgba(32, 82, 104, .16);
}

body:not(.admin-body) .page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .56) 0, rgba(255, 255, 255, .18) 170px, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 0 20%, rgba(82, 173, 205, .2), transparent 34%),
    radial-gradient(circle at 100% 58%, rgba(101, 202, 166, .2), transparent 32%),
    linear-gradient(145deg, #eaf7ff 0%, #f6fbf3 54%, #fff4eb 100%);
}

body:not(.admin-body) .topbar {
  border-bottom-color: rgba(63, 111, 130, .1);
  background: rgba(250, 253, 251, .94);
}

body:not(.admin-body) .hero,
body:not(.admin-body) .share-hero {
  background: #dfeff3;
  box-shadow: 0 12px 30px rgba(35, 76, 96, .12);
}

body:not(.admin-body) .share-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0, rgba(255, 255, 255, .04) 150px, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 0 24%, rgba(80, 169, 205, .2), transparent 36%),
    radial-gradient(circle at 105% 72%, rgba(105, 204, 166, .22), transparent 34%),
    linear-gradient(145deg, #e8f6ff 0%, #f4fbf5 54%, #fff3e9 100%);
}

body:not(.admin-body) .share-page .share-card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 22px 48px rgba(42, 79, 88, .14);
  backdrop-filter: blur(14px) saturate(1.06);
}

body:not(.admin-body) .task {
  border-color: rgba(66, 153, 175, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 253, 251, .92)),
    #fff;
  box-shadow: 0 10px 24px rgba(47, 92, 108, .09);
}

body:not(.admin-body) .share-page .share-text {
  border-color: rgba(72, 178, 209, .76);
  background: rgba(250, 253, 255, .94);
  box-shadow: 0 0 0 4px rgba(72, 178, 209, .13), 0 10px 24px rgba(48, 118, 140, .08);
}

body:not(.admin-body) .share-page .copy-btn,
body:not(.admin-body) .copy-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 44%),
    linear-gradient(135deg, #18a6d9 0%, #2d87e8 54%, #6977ee 100%);
  box-shadow: 0 14px 28px rgba(45, 135, 232, .28);
}

body:not(.admin-body) .share-page .rule-box {
  border-color: rgba(70, 104, 116, .1);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 24px rgba(42, 79, 88, .09);
}

body:not(.admin-body) .bottom-nav {
  border-top-color: rgba(63, 111, 130, .1);
  background: rgba(252, 254, 253, .96);
  box-shadow: 0 -10px 28px rgba(48, 86, 94, .08);
}

/* Front dark cinema skin based on the provided reference. */
body:not(.admin-body) {
  --text: #f7f7f7;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, .08);
  --pink: #f35aa8;
  --pink-strong: #ff5d73;
  --gold: #ffcd64;
  --blue: #35aaf0;
  --indigo: #0b78c7;
  --green: #43c684;
  --surface: #1b1b1b;
  --soft: #171717;
  --shadow: 0 16px 36px rgba(0, 0, 0, .42);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, .3);
  --glow: 0 0 22px rgba(255, 93, 115, .16);
  background: #0b0b0b;
  color: var(--text);
}

body:not(.admin-body) .phone {
  background: #191919;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 28px 72px rgba(0, 0, 0, .48);
}

body:not(.admin-body) .page {
  background: #191919;
  color: var(--text);
}

body:not(.admin-body) .topbar {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: #ffffff;
  color: #111;
  box-shadow: none;
}

body:not(.admin-body) .topbar h1 {
  color: #222;
  text-shadow: none;
}

body:not(.admin-body) .icon-btn,
body:not(.admin-body) .back-btn,
body:not(.admin-body) .agent-btn {
  color: #151515;
}

body:not(.admin-body) .brand-mark {
  border-color: transparent;
  color: #151515;
  background: transparent;
}

body:not(.admin-body) .hero,
body:not(.admin-body) .share-hero {
  background: #000;
  border-radius: 0;
  box-shadow: none;
}

body:not(.admin-body) .hero-link,
body:not(.admin-body) .share-hero .hero-link {
  background: #000;
}

body:not(.admin-body) .hero-link::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), transparent 58%, rgba(0, 0, 0, .28));
}

body:not(.admin-body) .hero img,
body:not(.admin-body) .hero-link img,
body:not(.admin-body) .share-hero img {
  filter: saturate(1.02) contrast(1.04);
}

body:not(.admin-body) .notice {
  background: #2a2a2a;
  border: 0;
  color: #eeeeee;
  font-weight: 500;
}

body:not(.admin-body) .notice span {
  text-shadow: none;
}

body:not(.admin-body) .notice b,
body:not(.admin-body) .notice em,
body:not(.admin-body) .notice strong {
  color: #ff4d66;
}

body:not(.admin-body) .pill-row {
  background: #191919;
}

body:not(.admin-body) .outline-pill {
  border-color: rgba(255, 255, 255, .08);
  color: #f5f5f5;
  background: linear-gradient(135deg, #42b8f7 0%, #0780d4 100%);
  box-shadow: 0 10px 22px rgba(13, 130, 212, .28);
}

body:not(.admin-body) .outline-pill.active {
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  background: linear-gradient(135deg, #5fc0fb 0%, #1189dd 100%);
}

body:not(.admin-body) .pill-more {
  color: #f6f6f6;
  background: #2b2b2b;
}

body:not(.admin-body) .section,
body:not(.admin-body) .share-page .share-card,
body:not(.admin-body) .app-ad-row,
body:not(.admin-body) .rule-box,
body:not(.admin-body) .meta {
  border-color: rgba(255, 255, 255, .08);
  background: #1f1f1f;
  color: #f5f5f5;
  box-shadow: none;
}

body:not(.admin-body) .section h2,
body:not(.admin-body) .section-title-row h2,
body:not(.admin-body) .resource-title,
body:not(.admin-body) .task strong,
body:not(.admin-body) .meta strong {
  color: #f8f8f8;
  text-shadow: none;
}

body:not(.admin-body) .tag,
body:not(.admin-body) .group-cost {
  border-color: rgba(255, 255, 255, .08);
  color: #f7f7f7;
  background: linear-gradient(135deg, #fb5d74 0%, #d61f1f 100%);
  box-shadow: 0 8px 18px rgba(232, 45, 53, .24);
}

body:not(.admin-body) .thumb {
  outline-color: rgba(255, 255, 255, .1);
  background: #050505;
}

body:not(.admin-body) .play {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .82);
}

body:not(.admin-body) .detail-copy,
body:not(.admin-body) .task span:last-child,
body:not(.admin-body) .rule-box {
  color: #aaa;
}

body:not(.admin-body) .unlock-btn,
body:not(.admin-body) .copy-btn,
body:not(.admin-body) .wide-ad {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #ff626d 0%, #df2525 100%) !important;
  box-shadow: 0 0 18px rgba(255, 91, 91, .22), 0 12px 24px rgba(0, 0, 0, .34);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .copy-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #55c0ff 0%, #0b82d5 100%) !important;
  box-shadow: 0 0 18px rgba(67, 173, 239, .28), 0 12px 24px rgba(0, 0, 0, .34);
}

body:not(.admin-body) .unlock-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #ff6d77 0%, #ff4b9d 52%, #df287a 100%) !important;
  box-shadow: 0 0 18px rgba(255, 86, 148, .28), 0 12px 24px rgba(0, 0, 0, .34);
}

body:not(.admin-body) .wide-ad:nth-of-type(3n + 1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #ff6c72 0%, #dc2020 100%) !important;
}

body:not(.admin-body) .wide-ad:nth-of-type(3n + 2) {
  color: #2b2210;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #ffe08b 0%, #ff8c12 100%) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 0 18px rgba(255, 177, 37, .24), 0 12px 24px rgba(0, 0, 0, .34);
}

body:not(.admin-body) .wide-ad:nth-of-type(3n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #ff68b2 0%, #de1d8f 100%) !important;
  box-shadow: 0 0 18px rgba(255, 79, 166, .24), 0 12px 24px rgba(0, 0, 0, .34);
}

body:not(.admin-body) .task {
  border-color: rgba(255, 255, 255, .08);
  background: #222;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .task:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .15), transparent 50%),
    linear-gradient(135deg, #55c0ff 0%, #0b82d5 100%);
}

body:not(.admin-body) .task:last-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 50%),
    linear-gradient(135deg, #ffdd80 0%, #ff8a13 100%);
}

body:not(.admin-body) .task:first-child strong,
body:not(.admin-body) .task:first-child span:last-child {
  color: #fff;
}

body:not(.admin-body) .points-badge {
  border-color: rgba(255, 205, 100, .38);
  color: #f7d89a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    #292313;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
}

body:not(.admin-body) .points-badge strong {
  color: #ffcd64;
}

body:not(.admin-body) .task:last-child strong,
body:not(.admin-body) .task:last-child span:last-child {
  color: #2a2110;
}

body:not(.admin-body) .task-icon {
  background: rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32);
}

body:not(.admin-body) .share-page {
  background: #191919;
}

body:not(.admin-body) .share-page .share-card {
  backdrop-filter: none;
}

body:not(.admin-body) .share-page .share-text {
  border-color: rgba(255, 255, 255, .12);
  background: #101010;
  color: #f3f3f3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

body:not(.admin-body) .resource-title {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 48%),
    linear-gradient(135deg, #ff626d 0%, #df2525 100%);
  box-shadow: 0 0 18px rgba(255, 91, 91, .2);
}

body:not(.admin-body) .app-ad {
  color: #eeeeee;
}

body:not(.admin-body) .app-ad img {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .bottom-nav {
  border-top-color: rgba(255, 255, 255, .08);
  background: rgba(24, 24, 24, .96);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .bottom-nav button {
  color: #d8d8d8;
}

body:not(.admin-body) .bottom-nav button.active span:last-child {
  color: #fff;
}

body:not(.admin-body) .nav-icon,
body:not(.admin-body) .bottom-nav button:nth-child(2) .nav-icon,
body:not(.admin-body) .bottom-nav button:nth-child(3) .nav-icon {
  color: #b9b9b9;
}

body:not(.admin-body) .bottom-nav button.active:first-child .nav-icon,
body:not(.admin-body) .bottom-nav button.active:nth-child(2) .nav-icon,
body:not(.admin-body) .bottom-nav button.active:nth-child(3) .nav-icon {
  color: #ffcd64;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-body) .toast {
  background: rgba(0, 0, 0, .9);
  color: #fff;
}

body:not(.admin-body) .share-page .rule-box {
  border-color: rgba(255, 255, 255, .08);
  background: #202020;
  color: #d8d8d8;
  box-shadow: none;
}

body:not(.admin-body) .wide-ad {
  width: calc(100% - 56px);
  margin: 0 auto 16px;
  border-radius: 16px;
}

/* Final front-page overrides for the simplified dark header. */
body:not(.admin-body) .topbar {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 44px;
  border-bottom-color: rgba(255, 255, 255, .08);
  background: #0b0b0b;
  color: #fff;
}

body:not(.admin-body) .topbar h1 {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: none;
}

body:not(.admin-body) .brand-mark,
body:not(.admin-body) .pill-row,
body:not(.admin-body) .pill-more {
  display: none !important;
}

body:not(.admin-body) .icon-btn,
body:not(.admin-body) .back-btn {
  color: #fff;
}

body:not(.admin-body) .detail-page {
  padding: 0 6px calc(var(--nav-h) + 10px);
  background: #191919;
}

body:not(.admin-body) .detail-page .meta {
  margin: 0 0 8px;
  border-radius: 6px;
}

body:not(.admin-body) .detail-gallery {
  display: grid;
  gap: 7px;
  margin: 0 -2px;
}

body:not(.admin-body) .detail-media {
  margin: 0;
  border-radius: 5px;
  background: #030303;
  box-shadow: none;
  outline: 1px solid rgba(255, 255, 255, .08);
}

body:not(.admin-body) .detail-media[data-action="open-image"] {
  cursor: zoom-in;
}

body:not(.admin-body) .detail-media img,
body:not(.admin-body) .detail-video {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.image-viewer-open {
  overflow: hidden;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 48px 12px 28px;
  background: rgba(0, 0, 0, .94);
}

.image-viewer img {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  display: block;
}

.image-viewer-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  font-size: 30px;
  line-height: 1;
}

body:not(.admin-body) .detail-media .play {
  width: 62px;
  height: 62px;
  border-width: 4px;
  border-color: rgba(255, 156, 199, .92);
  color: #ff9cc7;
  font-size: 34px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(255, 156, 199, .22);
}

/* Locked paid video previews: blur the cover until the user unlocks with points. */
.thumb.locked-video,
.detail-media.locked-video {
  isolation: isolate;
  background: #0b090b;
}

.thumb.locked-video img,
.thumb.locked-video video,
.detail-media.locked-video img,
.detail-media.locked-video video {
  filter: blur(var(--lock-blur, 6px)) saturate(.78) contrast(.88) brightness(.82) !important;
  transform: scale(1.08) !important;
}

.thumb.locked-video::after,
.detail-media.locked-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 20%, rgba(0, 0, 0, .28) 100%),
    radial-gradient(circle at 50% 46%, rgba(255, 154, 205, .18), transparent 0 19%, rgba(0, 0, 0, .38) 64%, rgba(0, 0, 0, .58) 100%);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .18);
}

.thumb.locked-video .play,
.detail-media.locked-video .play,
body:not(.admin-body) .thumb.locked-video .play,
body:not(.admin-body) .detail-media.locked-video .play {
  z-index: 2;
  border-color: rgba(255, 165, 207, .88);
  color: #ffafd2;
  background: rgba(255, 190, 219, .12);
  box-shadow:
    0 0 0 1px rgba(255, 165, 207, .3),
    0 0 22px rgba(255, 142, 198, .28),
    inset 0 0 12px rgba(255, 183, 217, .16);
  backdrop-filter: blur(3px);
}

.thumb.locked-video .play {
  width: 34px;
  height: 34px;
  font-size: 20px;
}

/* Admin uploader redesign. */
body.admin-body .content-workbench-main {
  display: grid;
  gap: 14px;
}

body.admin-body .category-content-group {
  padding: 16px;
  border-radius: 14px;
}

body.admin-body .content-create-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

body.admin-body .upload-lane {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 0;
  border-color: #d7e2ef;
  border-radius: 12px;
  background: #fff;
}

body.admin-body .upload-lane.video-card {
  border-left: 4px solid #2563eb;
}

body.admin-body .upload-lane.photo-card {
  border-left: 4px solid #0f9f7a;
}

body.admin-body .upload-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.admin-body .upload-lane-head strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

body.admin-body .upload-lane-head small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .upload-drop {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  border: 1.5px dashed #bdd0e7;
  border-radius: 12px;
  background: #f8fbff;
  cursor: pointer;
}

body.admin-body .upload-drop.photo {
  background: #f6fffb;
}

body.admin-body .upload-drop.is-dragging,
body.admin-body .upload-drop.has-files {
  border-color: #2563eb;
  background: #eff6ff;
}

body.admin-body .upload-drop.photo.is-dragging,
body.admin-body .upload-drop.photo.has-files {
  border-color: #0f9f7a;
  background: #effcf7;
}

body.admin-body .upload-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

body.admin-body .upload-drop-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

body.admin-body .upload-drop.photo .upload-drop-mark {
  background: #0f9f7a;
}

body.admin-body .upload-drop-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.admin-body .upload-drop-copy strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

body.admin-body .upload-drop-copy small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-body .upload-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

body.admin-body .upload-main-row .primary {
  min-height: 42px;
  padding: 0 18px;
}

body.admin-body .upload-more {
  border-top: 1px solid #e2e8f0;
  padding-top: 2px;
}

body.admin-body .upload-more summary {
  min-height: 34px;
  padding: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

body.admin-body .upload-more summary::-webkit-details-marker {
  display: none;
}

body.admin-body .upload-more .quick-form-grid {
  padding: 8px 0 0;
}

body.admin-body .compact-category-settings {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

body.admin-body .compact-category-settings > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}

body.admin-body .compact-category-settings > summary::-webkit-details-marker {
  display: none;
}

body.admin-body .compact-category-settings > summary span {
  display: grid;
  gap: 3px;
}

body.admin-body .compact-category-settings > summary strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

body.admin-body .compact-category-settings > summary small,
body.admin-body .compact-category-settings > summary b {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .compact-category-settings[open] > summary b {
  color: #2563eb;
}

body.admin-body .compact-category-settings .quick-form-grid {
  padding: 0 16px 14px;
}

body.admin-body .compact-category-settings .admin-form-actions {
  padding: 0 16px 16px;
}

@media (max-width: 760px) {
  body.admin-body .content-create-grid,
  body.admin-body .upload-main-row {
    grid-template-columns: 1fr;
  }

  body.admin-body .upload-drop {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 104px;
  }

  body.admin-body .upload-drop-mark {
    width: 48px;
    height: 48px;
  }
}

/* Content management full redesign. */
body.admin-body .admin-console.content-fullscreen #adminContent {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px clamp(18px, 2vw, 28px) 44px;
}

body.admin-body .admin-console.content-fullscreen .admin-main {
  min-width: 0;
}

body.admin-body .admin-console.content-fullscreen #albums {
  width: 100%;
}

body.admin-body .admin-console.content-fullscreen .admin-section-head {
  max-width: none;
}

body.admin-body .content-workbench-redesign {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}

body.admin-body .content-category-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

body.admin-body .content-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.admin-body .content-rail-head strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

body.admin-body .content-rail-head small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-category-rail .category-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

body.admin-body .content-category-rail .category-add-row input {
  min-height: 38px;
}

body.admin-body .content-category-rail .category-add-row .primary {
  min-height: 38px;
  padding: 0 13px;
}

body.admin-body .content-category-rail .category-nav-list {
  gap: 8px;
}

body.admin-body .content-category-rail .category-nav-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.admin-body .content-category-btn {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  text-align: left;
}

body.admin-body .content-category-btn span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.admin-body .content-category-btn strong,
body.admin-body .content-category-btn small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-body .content-category-btn strong {
  font-size: 14px;
  font-weight: 900;
}

body.admin-body .content-category-btn small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-category-btn em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: #2563eb;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

body.admin-body .category-nav-item.active .content-category-btn {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 #2563eb;
}

body.admin-body .content-studio {
  display: grid;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

body.admin-body .content-active-card,
body.admin-body .content-panel {
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.admin-body .content-active-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 14px;
  align-items: start;
  padding: 16px;
}

body.admin-body .content-active-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

body.admin-body .content-kicker {
  width: max-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .content-active-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.admin-body .content-active-title-row h3 {
  margin: 0;
  min-width: 0;
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

body.admin-body .content-cost-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .content-cost-badge.paid {
  color: #b45309;
  background: #fffbeb;
}

body.admin-body .content-active-main p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  max-width: 720px;
}

body.admin-body .content-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

body.admin-body .content-stat {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

body.admin-body .content-stat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-stat strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

body.admin-body .content-settings-panel {
  align-self: stretch;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.admin-body .content-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

body.admin-body .content-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.admin-body .content-panel-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

body.admin-body .content-panel-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-panel-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .content-upload-panel .content-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

body.admin-body .content-upload-card {
  min-width: 0;
  border-radius: 13px;
  border-color: #dbe7f5;
}

body.admin-body .content-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 14px;
}

body.admin-body .content-library-panel .content-list-card {
  min-width: 0;
  padding: 14px;
  border-radius: 13px;
  background: #f8fafc;
}

body.admin-body .content-library-panel .content-card-head {
  margin-bottom: 12px;
}

body.admin-body .video-list-card {
  border-left: 4px solid #2563eb;
}

body.admin-body .photo-list-card {
  border-left: 4px solid #0f9f7a;
}

@media (max-width: 1180px) {
  body.admin-body .content-active-card,
  body.admin-body .content-library-grid {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body.admin-body .content-workbench-redesign {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-category-rail {
    position: static;
  }

  body.admin-body .content-upload-panel .content-create-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.admin-body .content-active-card,
  body.admin-body .content-panel,
  body.admin-body .content-category-rail {
    padding: 12px;
  }

  body.admin-body .content-active-title-row,
  body.admin-body .content-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.admin-body .content-stat-row {
    grid-template-columns: 1fr;
  }
}

/* Final admin-wide fullscreen override. */
body.admin-body .admin-console #adminContent {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px clamp(18px, 2vw, 30px) 48px !important;
}

body.admin-body .admin-main,
body.admin-body .admin-section,
body.admin-body .admin-overview,
body.admin-body .admin-workspace,
body.admin-body .admin-workspace-compact,
body.admin-body .admin-settings-grid,
body.admin-body .admin-users-grid {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.admin-body .admin-overview {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.admin-body .admin-section-metrics {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.admin-body .admin-settings-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
}

body.admin-body .admin-users-grid,
body.admin-body #carousels .admin-workspace {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

body.admin-body .admin-workspace-compact {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

body.admin-body input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-body .admin-flat-row,
body.admin-body .admin-flat-fields,
body.admin-body .admin-flat-fields .field {
  min-width: 0;
  max-width: 100%;
}

body.admin-body #carousels .admin-flat-row {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}

body.admin-body #carousels .admin-flat-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

body.admin-body #carousels .admin-flat-actions .primary,
body.admin-body #carousels .admin-flat-actions .danger {
  width: auto;
  min-width: 88px;
}

body.admin-body #carousels .admin-flat-fields {
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr);
}

body.admin-body #carousels .admin-flat-fields .span-2 {
  grid-column: auto;
}

@media (max-width: 920px) {
  body.admin-body .admin-settings-grid,
  body.admin-body .admin-users-grid,
  body.admin-body #carousels .admin-workspace,
  body.admin-body .admin-workspace-compact {
    grid-template-columns: 1fr;
  }

  body.admin-body #carousels .admin-flat-row,
  body.admin-body #carousels .admin-flat-fields {
    grid-template-columns: 1fr;
  }
}

/* Content management operation redesign. */
body.admin-body .content-top-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.admin-body .content-top-command > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.admin-body .content-top-command span,
body.admin-body .content-top-command small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-top-command strong {
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

body.admin-body .content-top-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
}

body.admin-body .content-top-stats .content-stat {
  min-width: 92px;
  padding: 10px 12px;
}

body.admin-body .content-console-v2 {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

body.admin-body .content-console-v2 .content-category-rail {
  top: 86px;
}

body.admin-body .content-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

body.admin-body .content-main-column,
body.admin-body .content-side-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}

body.admin-body .content-side-panel {
  position: sticky;
  top: 86px;
}

body.admin-body .content-active-compact {
  grid-template-columns: 1fr;
}

body.admin-body .content-upload-panel .content-panel-head {
  align-items: flex-start;
}

body.admin-body .content-side-panel .content-upload-panel .content-create-grid {
  grid-template-columns: 1fr;
}

body.admin-body .content-side-panel .upload-drop {
  min-height: 96px;
}

body.admin-body .content-side-panel .upload-main-row {
  grid-template-columns: 1fr;
}

body.admin-body .content-side-panel .upload-main-row .primary {
  width: 100%;
}

body.admin-body .content-library-grid {
  grid-template-columns: 1fr;
}

body.admin-body .content-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

body.admin-body .content-card-grid .album-compact-row {
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

body.admin-body .content-card-grid .album-compact-row > summary {
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 112px;
  padding: 12px;
}

body.admin-body .content-card-grid .album-compact-preview img {
  width: 78px;
  height: 78px;
  border-radius: 12px;
}

body.admin-body .content-card-grid .album-compact-main {
  align-self: stretch;
  align-content: center;
}

body.admin-body .content-card-grid .album-compact-main strong {
  white-space: normal;
  line-height: 1.35;
}

body.admin-body .content-card-grid .album-compact-edit {
  grid-column: 1 / -1;
  justify-self: stretch;
  text-align: center;
}

body.admin-body .content-card-grid .compact-edit-body {
  grid-template-columns: 1fr;
}

body.admin-body .content-card-grid .compact-edit-body .admin-flat-preview {
  display: none;
}

body.admin-body .content-card-grid .admin-flat-fields {
  grid-template-columns: 1fr;
}

body.admin-body .content-card-grid .admin-flat-fields .span-2 {
  grid-column: auto;
}

body.admin-body .content-card-grid .admin-flat-actions {
  justify-content: stretch;
}

body.admin-body .content-card-grid .admin-flat-actions .primary,
body.admin-body .content-card-grid .admin-flat-actions .danger {
  flex: 1;
  width: auto;
}

body.admin-body .content-side-panel .compact-category-settings {
  background: #fff;
}

@media (max-width: 1280px) {
  body.admin-body .content-main-grid {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-side-panel {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body.admin-body .content-top-command {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-top-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.admin-body .content-console-v2 {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Content management layout V3: horizontal categories and flat workflow. */
body.admin-body .content-board-v3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body.admin-body .content-board-v3 .content-category-strip {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.admin-body .content-board-v3 .content-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.admin-body .content-board-v3 .category-add-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto;
  justify-content: start;
  gap: 10px;
}

body.admin-body .content-board-v3 .category-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.admin-body .content-board-v3 .category-nav-item {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

body.admin-body .content-board-v3 .content-category-btn {
  min-width: 190px;
  max-width: 260px;
  min-height: 54px !important;
  background: #fff !important;
}

body.admin-body .content-board-v3 .category-nav-item.active .content-category-btn {
  background: #eff6ff !important;
}

body.admin-body .content-board-v3 .content-studio,
body.admin-body .content-board-stack {
  display: grid;
  gap: 14px;
  width: 100%;
}

body.admin-body .content-board-v3 .content-current-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
}

body.admin-body .content-board-v3 .content-current-banner .content-stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

body.admin-body .content-board-v3 .content-upload-panel .content-create-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

body.admin-body .content-board-v3 .content-upload-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: start;
}

body.admin-body .content-board-v3 .upload-lane-head {
  align-items: flex-start;
}

body.admin-body .content-board-v3 .upload-drop {
  min-height: 118px;
}

body.admin-body .content-board-v3 .upload-main-row {
  grid-column: 1 / -1;
}

body.admin-body .content-board-v3 .upload-more {
  grid-column: 1 / -1;
}

body.admin-body .content-board-v3 .content-library-grid {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

body.admin-body .content-board-v3 .content-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

body.admin-body .content-board-v3 .content-settings-panel {
  background: #fff;
}

@media (max-width: 1180px) {
  body.admin-body .content-board-v3 .content-current-banner,
  body.admin-body .content-board-v3 .content-upload-card,
  body.admin-body .content-board-v3 .content-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.admin-body .content-board-v3 .category-add-row,
  body.admin-body .content-board-v3 .content-upload-panel .content-create-grid {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-board-v3 .content-category-btn {
    max-width: none;
    width: 100%;
  }

  body.admin-body .content-board-v3 .category-nav-item {
    width: 100%;
  }
}

/* Content library final redesign: global list + quick filters. */
body.admin-body .content-library-global {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

body.admin-body .content-library-global .content-command-center {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.admin-body .content-command-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

body.admin-body .content-command-copy span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .content-command-copy strong {
  color: #0f172a;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

body.admin-body .content-command-copy small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

body.admin-body .content-command-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 10px;
}

body.admin-body .content-command-stats .content-stat,
body.admin-body .content-filter-summary span {
  min-width: 0;
}

body.admin-body .content-command-stats .content-stat {
  display: grid;
  align-content: center;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #e5edf6;
  border-radius: 10px;
  background: #f8fafc;
}

body.admin-body .content-command-stats .content-stat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-command-stats .content-stat strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

body.admin-body .content-library-global .content-panel {
  min-width: 0;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.admin-body .content-global-publish .content-panel-head,
body.admin-body .content-global-list .content-panel-head,
body.admin-body .content-category-maintenance .content-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.admin-body .content-panel-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

body.admin-body .content-panel-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

body.admin-body .content-panel-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .publish-target-bar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5edf6;
  border-radius: 12px;
  background: #f8fafc;
}

body.admin-body .publish-target-note {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

body.admin-body .publish-target-note strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

body.admin-body .publish-target-note small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

body.admin-body .content-global-publish .content-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

body.admin-body .content-global-publish .content-upload-card {
  min-width: 0;
  border-radius: 12px;
  box-shadow: none;
}

body.admin-body .content-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: start;
}

body.admin-body .content-filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

body.admin-body .content-filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(170px, .75fr) minmax(132px, .55fr) minmax(150px, .65fr) auto auto;
  gap: 10px;
  align-items: end;
}

body.admin-body .content-filter-row .primary,
body.admin-body .content-filter-row .ghost {
  min-height: 40px;
  white-space: nowrap;
}

body.admin-body .content-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.admin-body .content-category-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 220px;
  padding: 0 11px;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

body.admin-body .content-category-chips button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

body.admin-body .content-category-chips button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-body .content-category-chips button small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
}

body.admin-body .content-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .content-global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding-right: 0;
}

body.admin-body .content-global-grid .empty {
  grid-column: 1 / -1;
}

body.admin-body .content-global-grid .album-compact-row {
  min-width: 0;
  border: 1px solid #e5edf6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.admin-body .content-global-grid .album-compact-row > summary {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  min-height: 104px;
  padding: 12px;
}

body.admin-body .content-global-grid .album-compact-preview img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

body.admin-body .content-global-grid .album-compact-main {
  align-self: center;
}

body.admin-body .content-global-grid .album-compact-main strong {
  white-space: normal;
  line-height: 1.35;
}

body.admin-body .content-global-grid .album-compact-edit {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
}

body.admin-body .content-global-grid .compact-edit-body {
  grid-template-columns: 1fr;
  padding: 12px;
}

body.admin-body .content-global-grid .compact-edit-body .admin-flat-preview {
  display: none;
}

body.admin-body .content-global-grid .admin-flat-fields {
  grid-template-columns: 1fr;
}

body.admin-body .content-global-grid .admin-flat-fields .span-2 {
  grid-column: auto;
}

body.admin-body .content-global-grid .admin-flat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.admin-body .content-global-grid .admin-flat-actions .primary,
body.admin-body .content-global-grid .admin-flat-actions .danger {
  width: 100%;
}

body.admin-body .content-category-maintenance {
  position: sticky;
  top: 92px;
}

body.admin-body .category-create-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

body.admin-body .category-create-inline input {
  min-height: 40px;
  min-width: 0;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafc;
}

body.admin-body .category-editor-list {
  display: grid;
  gap: 10px;
}

body.admin-body .category-editor-row {
  border: 1px solid #e5edf6;
  border-radius: 12px;
  overflow: hidden;
  background: #fbfdff;
}

body.admin-body .category-editor-row > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

body.admin-body .category-editor-row > summary::-webkit-details-marker {
  display: none;
}

body.admin-body .category-editor-row > summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.admin-body .category-editor-row > summary strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-body .category-editor-row > summary small,
body.admin-body .category-editor-row > summary b {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .category-editor-row[open] > summary b {
  color: #2563eb;
}

body.admin-body .category-editor-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 12px 12px;
}

body.admin-body .category-editor-fields .span-2 {
  grid-column: auto;
}

body.admin-body .category-editor-fields textarea {
  min-height: 92px;
}

body.admin-body .category-editor-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 12px 12px;
}

body.admin-body .category-editor-actions .primary,
body.admin-body .category-editor-actions .danger {
  min-height: 38px;
}

@media (max-width: 1380px) {
  body.admin-body .content-command-stats {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }

  body.admin-body .content-filter-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  body.admin-body .content-filter-row .primary,
  body.admin-body .content-filter-row .ghost {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  body.admin-body .content-library-global .content-command-center,
  body.admin-body .content-management-grid,
  body.admin-body .content-global-publish .content-create-grid {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-category-maintenance {
    position: static;
  }
}

@media (max-width: 760px) {
  body.admin-body .content-command-stats,
  body.admin-body .publish-target-bar,
  body.admin-body .content-filter-row,
  body.admin-body .content-global-grid {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-filter-summary,
  body.admin-body .content-global-publish .content-panel-head,
  body.admin-body .content-global-list .content-panel-head,
  body.admin-body .content-category-maintenance .content-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.admin-body .category-create-inline,
  body.admin-body .category-editor-actions,
  body.admin-body .content-global-grid .admin-flat-actions {
    grid-template-columns: 1fr;
  }

  body.admin-body .content-category-chips button {
    max-width: 100%;
  }
}

/* Hard stop for legacy nested content layouts. */
body.admin-body #albums .content-library-global {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
}

body.admin-body #albums .content-library-global > .content-command-center,
body.admin-body #albums .content-library-global > .content-global-publish,
body.admin-body #albums .content-library-global > .content-global-list {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}

body.admin-body #albums .content-global-list {
  min-width: 0 !important;
}

body.admin-body #albums .content-category-maintenance {
  display: none !important;
}

body.admin-body #albums .content-global-publish .content-create-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 14px !important;
}

body.admin-body #albums .content-filter-row {
  display: grid !important;
}

@media (max-width: 1180px) {
  body.admin-body #albums .content-global-publish .content-create-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Standalone category maintenance page. */
body.admin-body #categories {
  width: 100%;
}

body.admin-body .category-maintenance-page {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

body.admin-body .category-maintenance-hero,
body.admin-body .category-maintenance-create,
body.admin-body .category-maintenance-list {
  min-width: 0;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.admin-body .category-maintenance-hero {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

body.admin-body .category-maintenance-hero > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.admin-body .category-maintenance-hero span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .category-maintenance-hero strong {
  color: #0f172a;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 1.15;
}

body.admin-body .category-maintenance-hero small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

body.admin-body .category-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

body.admin-body .category-hero-stats .content-stat {
  display: grid;
  align-content: center;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #e5edf6;
  border-radius: 10px;
  background: #f8fafc;
}

body.admin-body .category-hero-stats .content-stat span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .category-hero-stats .content-stat strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

body.admin-body .category-maintenance-create {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: end;
  padding: 16px;
}

body.admin-body .category-maintenance-create h3,
body.admin-body .category-list-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

body.admin-body .category-maintenance-create p,
body.admin-body .category-list-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.admin-body .category-maintenance-create .category-create-inline {
  margin: 0;
}

body.admin-body .category-maintenance-list {
  padding: 16px;
}

body.admin-body .category-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.admin-body .category-list-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.admin-body .category-editor-list-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

body.admin-body #categories .category-editor-row {
  background: #fff;
}

body.admin-body #categories .category-editor-row > summary {
  min-height: 66px;
  padding: 12px 14px;
}

body.admin-body #categories .category-editor-row > summary strong {
  font-size: 15px;
}

body.admin-body #categories .category-editor-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 14px 14px;
}

body.admin-body #categories .category-editor-fields .span-2 {
  grid-column: 1 / -1;
}

body.admin-body #categories .category-editor-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 14px 14px;
}

@media (max-width: 1180px) {
  body.admin-body .category-maintenance-hero,
  body.admin-body .category-maintenance-create {
    grid-template-columns: 1fr;
  }

  body.admin-body .category-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.admin-body .category-hero-stats,
  body.admin-body .category-editor-list-full,
  body.admin-body #categories .category-editor-fields,
  body.admin-body #categories .category-editor-actions {
    grid-template-columns: 1fr;
  }

  body.admin-body .category-list-head {
    flex-direction: column;
  }
}

.friend-links {
  margin: 14px 0 20px;
  padding: 14px 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.friend-links-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid #e8e8e8;
}

.friend-links-title {
  position: relative;
  padding: 0 0 10px;
  color: var(--friend-link-text-color, #303030);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

.friend-links-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 116px;
  height: 3px;
  background: #10a99b;
}

.friend-links-contact {
  padding-bottom: 11px;
  color: var(--friend-link-text-color, #5f5f5f);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 26px;
}

.friend-link {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--friend-link-text-color, #151515);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  text-align: left;
}

.friend-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-stat-value {
  margin: 6px 0 8px;
  color: #111827;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

/* QQ-style admin login */
body.admin-body:has(#loginBox:not([hidden])) {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 150, 219, .12), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(89, 175, 255, .14), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

body.admin-body:has(#loginBox:not([hidden]))::before,
body.admin-body:has(#loginBox:not([hidden]))::after {
  content: none;
}

body.admin-body:has(#loginBox:not([hidden])) .admin-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box {
  position: relative;
  width: min(100%, 430px);
  min-height: 520px;
  margin: 0 auto;
  padding: 58px 48px 34px;
  border: 1px solid rgba(224, 236, 250, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 70px rgba(33, 89, 146, .14);
  backdrop-filter: none;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box::before {
  content: "Q";
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #18a8ff 0%, #1684f2 100%);
  box-shadow: 0 14px 28px rgba(24, 132, 242, .24);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box::after {
  content: attr(data-brand) " 管理后台";
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 28px;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
  color: #9aa8b8;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box h1,
body.admin-body:has(#loginBox:not([hidden])) .login-subtitle,
body.admin-body:has(#loginBox:not([hidden])) .login-box .field,
body.admin-body:has(#loginBox:not([hidden])) .login-box .primary,
body.admin-body:has(#loginBox:not([hidden])) .admin-msg {
  position: relative;
  z-index: 2;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box h1 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box h1::after {
  content: none;
}

body.admin-body:has(#loginBox:not([hidden])) .login-subtitle {
  max-width: 280px;
  margin: 0 auto 30px;
  color: #8b98a8;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .field {
  display: block;
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .field input {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #dce7f3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .field input:hover {
  border-color: #b9d8f5;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .field input:focus {
  border-color: #12a4ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 164, 255, .12);
  outline: none;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .primary {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border-radius: 4px;
  background: #12a4ff;
  box-shadow: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .18s ease, transform .12s ease;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .primary:hover {
  background: #0096f2;
  transform: none;
  filter: none;
  box-shadow: none;
}

body.admin-body:has(#loginBox:not([hidden])) .login-box .primary:active {
  transform: translateY(1px);
}

body.admin-body:has(#loginBox:not([hidden])) .admin-msg {
  min-height: 22px;
  margin: 12px 0 30px;
  color: #f04438;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 520px) {
  body.admin-body:has(#loginBox:not([hidden])) .admin-page {
    padding: 16px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .login-box {
    min-height: 500px;
    padding: 44px 24px 32px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .login-box::after {
    left: 24px;
    right: 24px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .login-box h1 {
    font-size: 22px;
  }
}

body.admin-body:has(#adminBox:not([hidden])) {
  display: block;
  min-height: 100vh;
  overflow: auto;
}

body.admin-body:has(#adminBox:not([hidden])) .admin-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: block;
  padding: 0;
}

body.admin-body:has(#adminBox:not([hidden])) .admin-console {
  position: relative;
  z-index: 1;
}

body.admin-body:has(#adminBox:not([hidden])) .admin-console #adminContent {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 82px);
}

body.admin-body:has(#adminBox:not([hidden])) .admin-console #adminContent > :not([hidden]) {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* QQ mobile login replica */
body.admin-body:has(#loginBox:not([hidden])) {
  display: block;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 4%, rgba(245, 212, 255, .9), transparent 30%),
    radial-gradient(circle at 28% 22%, rgba(221, 231, 255, .85), transparent 34%),
    radial-gradient(circle at 77% 23%, rgba(205, 246, 255, .75), transparent 36%),
    linear-gradient(180deg, #f4f6ff 0%, #f7f7fb 52%, #f7f7fb 100%);
}

body.admin-body:has(#loginBox:not([hidden])) .admin-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login {
  position: relative;
  width: min(100vw, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 72px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 7%, rgba(245, 210, 255, .9), transparent 28%),
    radial-gradient(circle at 26% 25%, rgba(220, 235, 255, .9), transparent 34%),
    radial-gradient(circle at 78% 26%, rgba(203, 249, 255, .78), transparent 36%),
    linear-gradient(180deg, #f7f7ff 0%, #f7f7fb 100%);
  box-shadow: none;
  overflow: hidden;
  color: #121826;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login::before,
body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login::after {
  content: none;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-statusbar {
  position: absolute;
  top: 26px;
  left: 50px;
  right: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #030712;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.qq-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #030712;
  font-size: 21px;
  font-weight: 800;
}

.qq-status-icons b {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: #030712;
}

.qq-status-icons b:nth-child(1) {
  height: 9px;
}

.qq-status-icons b:nth-child(2) {
  height: 14px;
}

.qq-status-icons b:nth-child(3) {
  height: 20px;
}

.qq-status-icons i {
  display: block;
  width: 36px;
  height: 18px;
  border: 3px solid #030712;
  border-radius: 5px;
  background: linear-gradient(90deg, #030712 80%, transparent 80%);
}

body.admin-body:has(#loginBox:not([hidden])) .qq-back {
  position: absolute;
  top: 100px;
  left: 36px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 0;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-back::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 22px;
  height: 22px;
  border-left: 3px solid #1f2933;
  border-bottom: 3px solid #1f2933;
  transform: rotate(45deg);
}

body.admin-body:has(#loginBox:not([hidden])) .qq-logo {
  position: absolute;
  top: 187px;
  left: 0;
  right: 0;
  text-align: center;
  color: transparent;
  background: linear-gradient(90deg, #68dbff, #d7a2ff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login h1,
body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .login-subtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .friend-links {
    padding: 12px 10px 16px;
  }

  .friend-links-title {
    font-size: 22px;
  }

  .friend-links-contact {
    font-size: 13px;
  }

  .friend-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 18px;
  }

  .friend-link {
    font-size: 18px;
  }
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field {
  position: absolute;
  left: 72px;
  right: 72px;
  display: block;
  margin: 0;
  font-size: 0;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field:nth-of-type(1) {
  top: 392px;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field:nth-of-type(2) {
  top: 514px;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field input {
  width: 100%;
  height: 90px;
  min-height: 90px;
  margin: 0;
  padding: 0 30px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(31, 54, 82, .08);
  color: #111827;
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  outline: none;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field input::placeholder {
  color: #c7c7cc;
  opacity: 1;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field input:focus {
  box-shadow: 0 12px 28px rgba(31, 54, 82, .08), 0 0 0 2px rgba(116, 196, 242, .3);
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login #loginBtn {
  position: absolute;
  left: 72px;
  right: 72px;
  top: 664px;
  width: auto;
  height: 73px;
  min-height: 73px;
  margin: 0;
  border: 0;
  border-radius: 19px;
  background: #75c3f2;
  box-shadow: none;
  color: rgba(255, 255, 255, .72);
  font-size: 28px;
  font-weight: 700;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login #loginBtn:hover {
  background: #75c3f2;
  transform: none;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-agree {
  position: absolute;
  top: 768px;
  left: 110px;
  right: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9297a1;
  font-size: 18px;
  line-height: 1.3;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-agree input {
  appearance: none;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border: 1.5px solid #c8ccd3;
  border-radius: 50%;
  background: transparent;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-agree input:checked {
  border-color: #3aa7ee;
  background: radial-gradient(circle at center, #3aa7ee 0 45%, transparent 48%);
}

body.admin-body:has(#loginBox:not([hidden])) .qq-agree a {
  color: #2289d8;
  text-decoration: none;
}

body.admin-body:has(#loginBox:not([hidden])) .admin-msg {
  position: absolute;
  top: 812px;
  left: 72px;
  right: 72px;
  min-height: 24px;
  margin: 0;
  color: #ef4444;
  font-size: 15px;
  text-align: center;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions div {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  color: #191f2a;
}

.qq-action-icon {
  position: relative;
  width: 67px;
  height: 67px;
  border: 1px solid #dde0e8;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.qq-action-icon::before,
.qq-action-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.qq-phone::before {
  width: 18px;
  height: 28px;
  border: 3px solid #1f2933;
  border-radius: 4px;
}

.qq-phone::after {
  top: 68%;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: #1f2933;
}

.qq-user::before {
  top: 42%;
  width: 13px;
  height: 13px;
  border: 3px solid #1f2933;
  border-radius: 50%;
}

.qq-user::after {
  top: 62%;
  width: 26px;
  height: 14px;
  border: 3px solid #1f2933;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 0;
}

.qq-plus::before {
  width: 27px;
  height: 3px;
  border-radius: 999px;
  background: #1f2933;
}

.qq-plus::after {
  width: 3px;
  height: 27px;
  border-radius: 999px;
  background: #1f2933;
}

.qq-more::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1f2933;
  box-shadow: -12px 0 #1f2933, 12px 0 #1f2933;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions small {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

body.admin-body:has(#loginBox:not([hidden])) .qq-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 212px;
  height: 6px;
  border-radius: 999px;
  background: #030303;
  transform: translateX(-50%);
}

@media (min-width: 561px) {
  body.admin-body:has(#loginBox:not([hidden])) {
    background: #eef2f8;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login {
    min-height: min(100vh, 1030px);
    aspect-ratio: 560 / 996;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .12);
  }
}

@media (max-width: 520px) {
  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login {
    width: 100vw;
    padding: 0 13vw;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-statusbar {
    top: 24px;
    left: 9vw;
    right: 8vw;
    font-size: 22px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-back {
    left: 6vw;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field,
  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login #loginBtn,
  body.admin-body:has(#loginBox:not([hidden])) .admin-msg,
  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions {
    left: 13vw;
    right: 13vw;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field input {
    height: 78px;
    min-height: 78px;
    font-size: 24px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field:nth-of-type(1) {
    top: 38vh;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field:nth-of-type(2) {
    top: calc(38vh + 105px);
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login #loginBtn {
    top: calc(38vh + 235px);
    height: 68px;
    min-height: 68px;
    font-size: 25px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-agree {
    top: calc(38vh + 330px);
    left: 18vw;
    right: 11vw;
    font-size: 14px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions {
    bottom: 78px;
    gap: 12px;
  }

  .qq-action-icon {
    width: 56px;
    height: 56px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions small {
    font-size: 14px;
  }
}

/* Mobile admin final pass: keep login controls tappable and console pages readable. */
@media (max-width: 640px) {
  body.admin-body,
  body.admin-body *,
  body.admin-body *::before,
  body.admin-body *::after {
    box-sizing: border-box;
  }

  html,
  body.admin-body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.admin-body:has(#loginBox:not([hidden])) {
    overflow-y: auto;
    min-height: 100dvh;
  }

  body.admin-body:has(#loginBox:not([hidden])) .admin-page {
    min-height: 100dvh;
    align-items: stretch;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login {
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: max(28px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    overflow-x: clip;
    overflow-y: visible;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-statusbar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    font-size: 16px;
    padding: 0 4px;
  }

  .qq-status-icons {
    gap: 4px;
    font-size: 14px;
  }

  .qq-status-icons b:nth-child(1) {
    height: 6px;
  }

  .qq-status-icons b:nth-child(2) {
    height: 9px;
  }

  .qq-status-icons b:nth-child(3) {
    height: 13px;
  }

  .qq-status-icons i {
    width: 26px;
    height: 14px;
    border-width: 2px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-back {
    position: absolute;
    top: calc(max(28px, env(safe-area-inset-top)) + 48px);
    left: 16px;
    width: 36px;
    height: 36px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-logo {
    position: static;
    margin: clamp(52px, 9vh, 86px) auto 8px;
    font-size: clamp(48px, 15vw, 62px);
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field,
  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login #loginBtn,
  body.admin-body:has(#loginBox:not([hidden])) .admin-msg,
  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field {
    max-width: 100%;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field:nth-of-type(1),
  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field:nth-of-type(2) {
    top: auto;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login .field input {
    height: clamp(64px, 10vh, 78px);
    min-height: 64px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: clamp(20px, 6vw, 25px);
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login #loginBtn {
    top: auto;
    height: clamp(60px, 9vh, 70px);
    min-height: 60px;
    margin-top: 12px;
    border-radius: 17px;
    font-size: clamp(22px, 6.5vw, 27px);
    touch-action: manipulation;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-agree {
    position: static;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-agree span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-agree input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .admin-msg {
    min-height: 20px;
    margin: 0;
    font-size: 13px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions {
    display: none;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions div {
    gap: 8px;
  }

  .qq-action-icon {
    width: 48px;
    height: 48px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions small {
    max-width: 100%;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-home-indicator {
    position: static;
    flex: 0 0 auto;
    width: min(150px, 42vw);
    height: 5px;
    margin: auto auto 0;
    transform: none;
  }

  body.admin-body:has(#adminBox:not([hidden])) {
    overflow-x: hidden;
  }

  body.admin-body:has(#adminBox:not([hidden])) .admin-page {
    min-width: 0;
  }

  body.admin-body:has(#adminBox:not([hidden])) .admin-console {
    width: 100%;
    min-height: 100dvh;
    display: block;
    overflow: visible;
  }

  body.admin-body .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-width: 0;
    padding: 12px 12px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(203, 213, 225, .8);
    background: rgba(248, 250, 252, .96);
    backdrop-filter: blur(14px);
  }

  body.admin-body .admin-brand {
    margin-bottom: 10px;
  }

  body.admin-body .admin-brand small {
    display: none;
  }

  body.admin-body .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-body .admin-nav::-webkit-scrollbar {
    display: none;
  }

  body.admin-body .admin-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  body.admin-body .admin-main {
    width: 100%;
    min-width: 0;
  }

  body.admin-body .admin-topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 14px 10px;
  }

  body.admin-body .admin-topbar h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  body.admin-body .admin-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body.admin-body .admin-actions .ghost,
  body.admin-body .admin-actions .admin-link {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  body.admin-body .admin-console #adminContent {
    min-width: 0;
    padding: 12px 12px 28px !important;
  }

  body.admin-body .admin-overview,
  body.admin-body .admin-section-metrics,
  body.admin-body .admin-settings-grid,
  body.admin-body .admin-users-grid,
  body.admin-body .admin-workspace,
  body.admin-body .admin-workspace-compact,
  body.admin-body #carousels .admin-workspace,
  body.admin-body .content-global-publish .content-create-grid,
  body.admin-body .content-management-grid,
  body.admin-body .content-library-global .content-command-center,
  body.admin-body .publish-target-bar,
  body.admin-body .content-filter-row,
  body.admin-body #albums .content-global-publish .content-create-grid,
  body.admin-body .category-maintenance-hero,
  body.admin-body .category-maintenance-create {
    grid-template-columns: 1fr !important;
  }

  body.admin-body .admin-card,
  body.admin-body .admin-list-card,
  body.admin-body .content-panel,
  body.admin-body .content-current-banner,
  body.admin-body .category-maintenance-hero,
  body.admin-body .category-maintenance-create,
  body.admin-body .category-maintenance-list {
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
  }

  body.admin-body .content-command-stats,
  body.admin-body .category-hero-stats,
  body.admin-body .content-top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.admin-body .content-global-grid,
  body.admin-body .content-card-grid,
  body.admin-body .category-editor-list-full {
    grid-template-columns: 1fr !important;
  }

  body.admin-body .quick-form-grid,
  body.admin-body .admin-flat-fields,
  body.admin-body .category-editor-fields,
  body.admin-body .compact-edit-body,
  body.admin-body #carousels .admin-flat-row,
  body.admin-body #carousels .admin-flat-fields {
    grid-template-columns: 1fr !important;
  }

  body.admin-body .quick-form-grid .span-2,
  body.admin-body .admin-flat-fields .span-2,
  body.admin-body .category-editor-fields .span-2 {
    grid-column: auto !important;
  }

  body.admin-body .admin-flat-row,
  body.admin-body .album-compact-row summary,
  body.admin-body .content-global-grid .album-compact-row > summary {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  body.admin-body .admin-flat-preview,
  body.admin-body .album-compact-preview img,
  body.admin-body .content-global-grid .album-compact-preview img {
    width: 64px;
    height: 64px;
  }

  body.admin-body .admin-flat-actions,
  body.admin-body .category-editor-actions,
  body.admin-body .content-filter-row,
  body.admin-body .category-create-inline {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  body.admin-body .admin-console .primary,
  body.admin-body .admin-console .ghost,
  body.admin-body .admin-console .danger,
  body.admin-body .admin-flat-actions .primary,
  body.admin-body .admin-flat-actions .danger,
  body.admin-body .category-editor-actions .primary,
  body.admin-body .category-editor-actions .danger {
    width: 100% !important;
    min-height: 42px;
  }

  body.admin-body .admin-console input,
  body.admin-body .admin-console select,
  body.admin-body .admin-console textarea {
    max-width: 100%;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  body.admin-body:has(#loginBox:not([hidden])) .qq-mobile-login {
    gap: 11px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-logo {
    margin-top: 44px;
  }

  body.admin-body:has(#loginBox:not([hidden])) .qq-login-actions {
    gap: 6px;
  }

  .qq-action-icon {
    width: 42px;
    height: 42px;
  }
}

/* Admin overview requested layout. */
body.admin-body .admin-subtitle {
  display: none;
}

body.admin-body .admin-console .admin-overview {
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr) !important;
  align-items: stretch;
  gap: 16px !important;
}

body.admin-body .admin-console .metric-card.version-card {
  min-height: 156px !important;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
  padding: 16px !important;
}

body.admin-body .version-card-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
}

body.admin-body .version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  background: #f04f55;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1;
  font-weight: 900 !important;
  writing-mode: horizontal-tb;
  white-space: nowrap;
}

body.admin-body .version-card-main strong {
  align-self: center;
  grid-column: 3;
  padding-top: 34px;
  padding-left: 0;
  color: #0f172a;
  font-size: 22px !important;
  font-weight: 900;
  line-height: 1;
}

body.admin-body .version-pill-bottom {
  align-self: end;
  justify-self: start;
}

body.admin-body .admin-console .metric-card.time-card {
  min-height: 156px !important;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 16px !important;
}

body.admin-body .admin-console .metric-card.time-card strong {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
}

/* Front loading polish: keep the first screen intentional while content preloads. */
body:not(.admin-body) .loading-page {
  min-height: 100vh;
  display: block;
  padding: 0 16px calc(var(--nav-h) + 22px);
  background:
    radial-gradient(circle at 50% 118px, rgba(53, 170, 240, .14), transparent 126px),
    linear-gradient(180deg, #151515 0%, #191919 52%, #151515 100%);
}

body:not(.admin-body) .loading-page .topbar {
  margin-bottom: 0;
}

body:not(.admin-body) .mobile-only-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(53, 170, 240, .16), transparent 190px),
    linear-gradient(180deg, #151515 0%, #191919 52%, #151515 100%);
}

body:not(.admin-body) .mobile-only-card {
  width: min(360px, 100%);
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(31, 31, 31, .92);
  color: #fff;
  text-align: center;
}

body:not(.admin-body) .mobile-only-card strong {
  font-size: 22px;
  line-height: 1.35;
}

body:not(.admin-body) .loading-hero {
  position: relative;
  height: 214px;
  margin: 0 -16px;
  overflow: hidden;
  background:
    linear-gradient(115deg, #222 0%, #292929 34%, #1b1b1b 68%, #252525 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

body:not(.admin-body) .loading-shimmer,
body:not(.admin-body) .loading-grid i,
body:not(.admin-body) .loading-section-head span,
body:not(.admin-body) .loading-section-head em {
  position: relative;
  overflow: hidden;
  background: #292929;
}

body:not(.admin-body) .loading-shimmer::after,
body:not(.admin-body) .loading-grid i::after,
body:not(.admin-body) .loading-section-head span::after,
body:not(.admin-body) .loading-section-head em::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  animation: loading-sweep 1.45s ease-in-out infinite;
}

body:not(.admin-body) .loading-shimmer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 36%, rgba(255, 255, 255, .08), transparent 30%),
    linear-gradient(115deg, #232323 0%, #303030 42%, #1c1c1c 100%);
}

body:not(.admin-body) .loading-orbit {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}

body:not(.admin-body) .loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: #35aaf0;
  border-right-color: #ffcd64;
}

body:not(.admin-body) .loading-section {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: #1f1f1f;
}

body:not(.admin-body) .loading-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

body:not(.admin-body) .loading-section-head span {
  width: 116px;
  height: 26px;
  border-radius: 5px;
}

body:not(.admin-body) .loading-section-head em {
  width: 48px;
  height: 24px;
  border-radius: 999px;
}

body:not(.admin-body) .loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body:not(.admin-body) .loading-grid i {
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  outline: 1px solid rgba(255, 255, 255, .06);
}

body:not(.admin-body) .loading-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 22px auto 0;
  color: #f5f5f5;
  text-align: center;
}

body:not(.admin-body) .loading-card strong {
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}

body:not(.admin-body) .loading-card span {
  font-size: 12px;
  line-height: 1.4;
  color: #8f8f8f;
}

@keyframes loading-sweep {
  100% { transform: translateX(110%); }
}

body:not(.admin-body) .bottom-nav {
  display: grid;
}

body:not(.admin-body) .page,
body:not(.admin-body) .loading-page,
body:not(.admin-body) .share-page,
body:not(.admin-body) .detail-page {
  padding-bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)) !important;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) {
  padding-left: 12px;
  padding-right: 12px;
  background:
    radial-gradient(circle at 50% -72px, rgba(53, 170, 240, .16), transparent 210px),
    linear-gradient(180deg, #111 0, #191919 34%, #151515 100%);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .topbar {
  margin-left: -12px;
  margin-right: -12px;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, .98), rgba(10, 10, 10, .96));
  border-bottom-color: rgba(255, 255, 255, .06);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .hero {
  margin: 10px -12px 12px;
  border-radius: 0;
  border: 0;
  background: #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .hero-link {
  min-height: 210px;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .hero-link::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02), transparent 44%, rgba(0, 0, 0, .56)),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, .12), transparent 30%);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .hero img,
body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .hero-link img {
  aspect-ratio: 16 / 8.2;
  filter: saturate(1.08) contrast(1.06) brightness(.98);
}

body:not(.admin-body) .hero-badge,
body:not(.admin-body) .hero-count {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

body:not(.admin-body) .hero-badge {
  left: 14px;
  bottom: 16px;
  padding: 0 11px;
  background: linear-gradient(135deg, rgba(255, 94, 115, .92), rgba(220, 32, 32, .9));
  box-shadow: 0 8px 18px rgba(220, 32, 32, .24);
}

body:not(.admin-body) .hero-count {
  right: 14px;
  bottom: 16px;
  padding: 0 12px;
  background: rgba(0, 0, 0, .46);
}

body:not(.admin-body) .hero-dot {
  bottom: 24px;
  box-shadow: 0 0 0 5px rgba(53, 170, 240, .12);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .notice {
  padding: 9px 12px;
  color: #d7d7d7;
  background: linear-gradient(90deg, #272727, #202020);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .category-section {
  margin: 12px 0 16px;
  padding: 16px 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 42%),
    #202020;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .category-section::before,
body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .category-section::after {
  display: none;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .section-title-row {
  align-items: center;
  margin-bottom: 8px;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .section-title-row h2 {
  display: block;
  color: #fff;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .42);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .section-title-row h2::before {
  display: none;
}

body:not(.admin-body) .section-title-row small {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #b8b8b8;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .tag {
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff6575 0%, #dc2020 100%);
  box-shadow: 0 8px 18px rgba(220, 32, 32, .22);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .grid {
  gap: 8px;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .thumb {
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  outline: 1px solid rgba(255, 255, 255, .08);
  background: #080808;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .thumb::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%, rgba(0, 0, 0, .28)),
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 34%, rgba(0, 0, 0, .12));
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page) .thumb:active {
  transform: scale(.985);
}

@media (max-width: 640px) {
  body.admin-body .admin-console .admin-overview {
    grid-template-columns: 1fr !important;
  }

  body.admin-body .admin-console .metric-card.version-card,
  body.admin-body .admin-console .metric-card.time-card {
    min-height: 120px !important;
  }

  body.admin-body .version-card-main strong {
    padding-top: 22px;
  }
}

body:not(.admin-body) .page.claim-page {
  min-height: 100vh;
  padding: 8px 22px 34px;
  background: linear-gradient(180deg, #291704 0, #241305 34%, #241506 100%);
  color: #141414;
}

body:not(.admin-body) .page.claim-page .claim-hero {
  height: 145px;
  margin: 0 -16px;
}

body:not(.admin-body) .page.claim-page .claim-panel {
  background: #f6f7f9;
  border-left: 5px solid #ffce00;
  box-shadow: 0 2px 0 rgba(255, 214, 0, .9), 0 10px 22px rgba(0, 0, 0, .18);
}

body:not(.admin-body) .page.claim-page .claim-copy-box {
  background: #fff;
  color: #214bb5;
}

body:not(.admin-body) .page.claim-page .claim-service-btn {
  background: linear-gradient(180deg, #ffad1d, #ff7500);
  color: #fff;
}

body:not(.admin-body) .page.claim-page .claim-home-btn {
  background: #fff;
  color: #f05c5f;
}

body:not(.admin-body) .resource-page .app-ad-row,
body:not(.admin-body) .home-resource-ads .app-ad-row {
  padding: 14px 8px;
  gap: 8px;
}

body:not(.admin-body) .resource-page .app-ad,
body:not(.admin-body) .home-resource-ads .app-ad {
  gap: 6px;
  font-size: 14px;
  line-height: 1.15;
}

body:not(.admin-body) .resource-page .app-ad img,
body:not(.admin-body) .home-resource-ads .app-ad img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

body:not(.admin-body) .resource-page .wide-ad img,
body:not(.admin-body) .home-resource-ads .wide-ad img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

body:not(.admin-body) .home-resource-ads {
  display: block;
  margin: 10px 0 18px;
}

body:not(.admin-body) .home-resource-ads:empty {
  display: none;
}

body:not(.admin-body) .home-resource-ads .app-ad-row {
  margin-bottom: 14px;
}

body:not(.admin-body) .home-resource-ads .wide-ad {
  width: calc(100% - 24px);
  min-height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
}

body:not(.admin-body) .page[style*="--home-bg-image"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: none !important;
  background-color: #0b0b0b;
}

body:not(.admin-body) .page[style*="--home-bg-image"]::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -2;
  background-image: var(--home-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(12px) saturate(1.06);
  transform: scale(1.04);
}

body:not(.admin-body) .page[style*="--home-bg-image"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(12, 12, 12, .28);
}

body:not(.admin-body) .page[style*="--home-bg-image"] > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-body) .bottom-nav {
  display: none !important;
}

body:not(.admin-body) .page {
  padding-bottom: 24px !important;
}

body:not(.admin-body) .home-resource-ads .app-ad-row {
  padding: 24px 20px 22px;
  gap: 24px 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 28px rgba(0, 0, 0, .2);
}

body:not(.admin-body) .home-resource-ads .app-ad {
  gap: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

body:not(.admin-body) .home-resource-ads .app-ad img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 0;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 10px rgba(0, 0, 0, .22);
}

body:not(.admin-body) .service-page {
  min-height: 100vh;
  padding: 58px 18px 86px !important;
  background: #f2eef4;
  color: #222;
}

body:not(.admin-body) .service-head {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100vw, 430px);
  height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #2d86df;
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

body:not(.admin-body) .service-back {
  width: 30px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

body:not(.admin-body) .service-back > span,
body:not(.admin-body) .navigation-back > span {
  display: block;
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body:not(.admin-body) .service-head img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

body:not(.admin-body) .service-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
}

body:not(.admin-body) .service-chat {
  min-height: calc(100vh - 144px);
  padding-top: 28px;
}

body:not(.admin-body) .service-day {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  margin: 0 0 24px;
  color: #aaa2ad;
  font-size: 14px;
}

body:not(.admin-body) .service-day span {
  height: 1px;
  background: #ddd6df;
}

body:not(.admin-body) .service-day em {
  font-style: normal;
}

body:not(.admin-body) .service-message-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .24s ease;
}

body:not(.admin-body) .service-message-row.show {
  opacity: 1;
  transform: translateY(0);
}

body:not(.admin-body) .service-message-row > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

body:not(.admin-body) .service-message-row p {
  position: relative;
  width: fit-content;
  max-width: 286px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 7px;
  background: #fff;
  color: #5c535b;
  font-size: 16px;
  line-height: 1.55;
}

body:not(.admin-body) .service-message-row p::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid #fff;
}

body:not(.admin-body) .service-message-row time {
  display: block;
  margin: 6px 0 0 8px;
  color: #aaa2ad;
  font-size: 13px;
}

body:not(.admin-body) .service-message-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 0 14px;
}

body:not(.admin-body) .service-user-bubble,
body:not(.admin-body) .service-user-image {
  position: relative;
  max-width: 286px;
  border-radius: 7px;
  background: #95ec69;
  color: #222;
}

body:not(.admin-body) .service-user-bubble {
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

body:not(.admin-body) .service-user-bubble::after,
body:not(.admin-body) .service-user-image::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 14px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid #95ec69;
}

body:not(.admin-body) .service-user-image {
  padding: 4px;
}

body:not(.admin-body) .service-user-image img {
  display: block;
  max-width: min(220px, 56vw);
  max-height: 260px;
  border-radius: 5px;
  object-fit: cover;
}

body:not(.admin-body) .service-message-user time {
  margin: 6px 8px 0 0;
}

body:not(.admin-body) .service-inputbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100vw, 430px);
  min-height: 66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 28px 28px 1fr 58px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #f8f8fb;
  border-top: 1px solid #dedee6;
}

body:not(.admin-body) .service-inputbar button {
  border: 0;
  background: transparent;
  font-size: 22px;
}

body:not(.admin-body) .service-inputbar input {
  min-width: 0;
  height: 54px;
  border: 1px solid #d8d8e2;
  border-radius: 5px;
  padding: 0 16px;
  background: #fff;
  color: #222;
  font-size: 16px;
}

body:not(.admin-body) .service-inputbar input[hidden] {
  display: none;
}

body:not(.admin-body) .service-inputbar .service-send {
  height: 44px;
  border-radius: 4px;
  background: #58b7ff;
  color: #fff;
  font-size: 18px;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) {
  background: transparent !important;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .topbar {
  background: rgba(255, 255, 255, .08) !important;
  border-bottom-color: rgba(255, 255, 255, .14) !important;
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: none !important;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .hero,
body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .hero-link,
body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .section,
body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .category-section,
body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .thumb {
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .category-section {
  border-color: rgba(255, 255, 255, .16) !important;
  backdrop-filter: blur(10px) saturate(1.05);
}

body:not(.admin-body) .page:not(.detail-page):not(.share-page):not(.resource-page):not(.loading-page):not(.claim-page):not(.service-page) .notice {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border-top-color: rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(12px) saturate(1.08);
}

body:not(.admin-body) .home-resource-ads .app-ad-row {
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  box-shadow: none !important;
}

body:not(.admin-body) .home-resource-ads .wide-ad {
  width: calc(100% - 16px);
  min-height: 52px;
  margin: 0 auto 12px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #5bc0ff 0%, #268bd8 100%) !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .24) !important;
  backdrop-filter: none;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .home-resource-ads .wide-ad:nth-of-type(3n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #ff7478 0%, #ec4ba5 100%) !important;
}

body:not(.admin-body) .home-resource-ads .wide-ad:nth-of-type(3n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #ff625f 0%, #c92d22 100%) !important;
}

body:not(.admin-body) .home-resource-ads .wide-ad:nth-of-type(4n) {
  color: #2b2210;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #ffe08a 0%, #ff9418 100%) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}

body:not(.admin-body) .home-resource-ads .wide-ad:nth-of-type(6n + 5) {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #f765b2 0%, #d71992 100%) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

body:not(.admin-body) .home-resource-ads .wide-ad span {
  width: auto;
  text-align: center;
  line-height: 1.2;
}

body:not(.admin-body) .home-resource-ads .wide-ad img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

body:not(.admin-body) .share-home-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #f2f2f2;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

body:not(.admin-body) .promo-page {
  min-height: 100vh;
  padding: 0 16px calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)) !important;
  background: #070707 !important;
  color: #f4f4f4;
}

body:not(.admin-body) .promo-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body:not(.admin-body) .promo-head h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

body:not(.admin-body) .promo-points {
  padding: 32px 0 24px;
  text-align: center;
}

body:not(.admin-body) .promo-points div {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #9e9e9e;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

body:not(.admin-body) .promo-points strong {
  color: #ff9f12;
  font-size: 62px;
  line-height: .86;
}

body:not(.admin-body) .promo-points p,
body:not(.admin-body) .promo-section-title {
  margin: 14px 0 0;
  color: #9a9a9a;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
}

body:not(.admin-body) .promo-card {
  overflow: hidden;
  border-radius: 16px;
  background: #202124;
  box-shadow: none;
}

body:not(.admin-body) .promo-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body:not(.admin-body) .promo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #1dd05b;
  background: rgba(29, 208, 91, .16);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

body:not(.admin-body) .promo-icon.blue {
  color: #1593ff;
  background: rgba(21, 147, 255, .14);
}

body:not(.admin-body) .promo-row h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
}

body:not(.admin-body) .promo-row p {
  margin: 0;
  color: #969696;
  font-size: 15px;
  line-height: 1.35;
}

body:not(.admin-body) .promo-row p strong {
  color: #ff9f12;
}

body:not(.admin-body) .promo-sign-btn,
body:not(.admin-body) .promo-copy-btn {
  width: calc(100% - 60px);
  min-height: 46px;
  margin: 0 30px 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #35dd68, #28cc58);
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 900;
}

body:not(.admin-body) .promo-section-title {
  margin: 36px 0 16px;
}

body:not(.admin-body) .promo-copy-box {
  margin: 24px 30px 20px;
  padding: 16px 14px;
  border-radius: 12px;
  background: #343437;
  color: #aaa;
  font-size: 15px;
  line-height: 1.55;
}

body:not(.admin-body) .promo-copy-box p {
  margin: 0;
  white-space: pre-wrap;
}

body:not(.admin-body) .promo-copy-box span {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(20, 124, 198, .28);
  color: #158dff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body:not(.admin-body) .promo-copy-btn {
  background: linear-gradient(180deg, #1d97ff, #127fe5);
}

body:not(.admin-body) .promo-page .share-home-btn {
  margin: 20px auto 0;
}

body:not(.admin-body) .promo-page::after {
  content: "\5206\4EAB\540E\9700\8981\901A\77E5\597D\53CB\8FDB\5165\5206\4EAB\9875\9762\624D\80FD\83B7\5F97\89C2\770B\0028\79EF\5206\0029\673A\4F1A\A\6BCF\4E2A\597D\53CB\8FDB\5165\540E\83B7\5F97\002B\0031\0030\79EF\5206\89C2\770B\5956\52B1";
  display: block;
  margin: 14px 0 0;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: #b9b9b9;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  white-space: pre-line;
}

@media (max-width: 360px) {
  body:not(.admin-body) .promo-page {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body:not(.admin-body) .promo-points {
    padding-top: 28px;
  }

  body:not(.admin-body) .promo-points strong {
    font-size: 56px;
  }

  body:not(.admin-body) .promo-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 20px 16px;
  }

  body:not(.admin-body) .promo-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  body:not(.admin-body) .promo-row h2 {
    font-size: 20px;
  }

  body:not(.admin-body) .promo-sign-btn,
  body:not(.admin-body) .promo-copy-btn {
    width: calc(100% - 40px);
    min-height: 44px;
    margin-left: 20px;
    margin-right: 20px;
  }

  body:not(.admin-body) .promo-copy-box {
    margin-left: 20px;
    margin-right: 20px;
    padding: 14px 12px;
    font-size: 14px;
  }
}

/* Online service chat: screenshot-style customer service view. */
body:not(.admin-body) .service-page {
  min-height: 100vh;
  padding: 64px 22px 94px !important;
  background: #eeeeee !important;
  color: #222;
}

body:not(.admin-body) .service-head {
  height: 64px;
  padding: 0 18px;
  gap: 10px;
  background: #1e88e5;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

body:not(.admin-body) .service-back {
  width: 22px;
  height: 42px;
  margin-right: -2px;
  color: #fff;
  font-size: 34px;
  font-weight: 300;
}

body:not(.admin-body) .service-head img {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .7);
  background: #fff;
}

body:not(.admin-body) .service-head strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
}

body:not(.admin-body) .service-chat {
  min-height: calc(100vh - 158px);
  padding: 28px 0 10px;
}

body:not(.admin-body) .service-day {
  margin: 0 0 22px;
  color: #9a9a9a;
  font-size: 13px;
}

body:not(.admin-body) .service-day span {
  background: #d7d7d7;
}

body:not(.admin-body) .service-message-row {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 28px;
}

body:not(.admin-body) .service-agent,
body:not(.admin-body) .service-visitor {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #666;
  font-size: 14px;
  line-height: 1.15;
}

body:not(.admin-body) .service-agent img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

body:not(.admin-body) .service-agent span,
body:not(.admin-body) .service-visitor span:last-child {
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-body) .service-bubble-wrap {
  min-width: 0;
}

body:not(.admin-body) .service-message-row p {
  max-width: min(315px, calc(100vw - 128px));
  min-height: 44px;
  padding: 13px 16px;
  border-radius: 4px 20px 20px 20px;
  background: #fff;
  color: #202020;
  font-size: 17px;
  line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
  word-break: break-word;
}

body:not(.admin-body) .service-quick-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  color: #1686e8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

body:not(.admin-body) .service-message-row p::before {
  left: -6px;
  top: 15px;
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-right-width: 7px;
}

body:not(.admin-body) .service-message-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  margin: 7px 0 0 2px;
  color: #8c8c8c;
  font-size: 13px;
}

body:not(.admin-body) .service-read-state {
  color: #8a8a8a;
}

body:not(.admin-body) .service-message-unread .service-read-state {
  color: #f39c12;
  font-weight: 700;
}

body:not(.admin-body) .service-message-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: start;
  justify-items: end;
  margin: 0 0 30px;
}

body:not(.admin-body) .service-user-content {
  min-width: 0;
  display: grid;
  justify-items: end;
}

body:not(.admin-body) .service-user-bubble,
body:not(.admin-body) .service-user-image {
  max-width: min(286px, calc(100vw - 132px));
  border-radius: 20px 4px 20px 20px;
  background: #22a4f4;
  color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

body:not(.admin-body) .service-user-bubble {
  min-width: 58px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 11px 18px;
  font-size: 18px;
  line-height: 1.35;
}

body:not(.admin-body) .service-user-bubble::after,
body:not(.admin-body) .service-user-image::after {
  right: -6px;
  top: 15px;
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left: 7px solid #22a4f4;
}

body:not(.admin-body) .service-user-image {
  padding: 5px;
}

body:not(.admin-body) .service-user-image img {
  max-width: min(210px, 54vw);
  max-height: 250px;
  border-radius: 15px 2px 15px 15px;
}

body:not(.admin-body) .service-user-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-height: 20px;
  margin: 7px 3px 0 0;
  color: #8a8a8a;
  font-size: 13px;
}

body:not(.admin-body) .service-user-meta time {
  display: none;
}

body:not(.admin-body) .service-visitor-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f7fbff;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  overflow: hidden;
}

body:not(.admin-body) .service-visitor-avatar::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4a3b2a;
}

body:not(.admin-body) .service-visitor-avatar::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 5px;
  width: 30px;
  height: 18px;
  border-radius: 18px 18px 8px 8px;
  background: #208ff0;
}

body:not(.admin-body) .service-inputbar {
  min-height: 72px;
  grid-template-columns: 34px 34px 1fr 62px;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fbfbfb;
  border-top: 1px solid #d6d6d6;
}

body:not(.admin-body) .service-inputbar button {
  width: 34px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #f2b600;
  font-size: 25px;
}

body:not(.admin-body) .service-inputbar input {
  height: 44px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 0 18px;
  background: #fff;
  color: #222;
  font-size: 17px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}

body:not(.admin-body) .service-inputbar .service-send {
  width: 62px;
  height: 44px;
  border-radius: 4px;
  background: #2da8ff;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(45, 168, 255, .24);
}

body:not(.admin-body) .service-emoji-wrap {
  position: relative;
  width: 34px;
  height: 44px;
}

body:not(.admin-body) .service-emoji-panel {
  position: absolute;
  left: -2px;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: min(276px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

body:not(.admin-body) .service-emoji-panel[hidden] {
  display: none;
}

body:not(.admin-body) .service-emoji-panel button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #222;
  font-size: 22px;
}

body:not(.admin-body) .service-emoji-panel button:active {
  background: #eaf4ff;
}

@media (max-width: 430px) {
  body:not(.admin-body) .service-page {
    padding: 64px 6px 94px !important;
  }

  body:not(.admin-body) .service-head {
    padding: 0 6px;
    gap: 7px;
  }

  body:not(.admin-body) .service-back {
    width: 24px;
  }

  body:not(.admin-body) .service-head img {
    width: 36px;
    height: 36px;
  }

  body:not(.admin-body) .service-head strong {
    font-size: 17px;
  }

  body:not(.admin-body) .service-chat {
    padding-top: 22px;
  }

  body:not(.admin-body) .service-message-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 24px;
  }

  body:not(.admin-body) .service-agent img {
    width: 42px;
    height: 42px;
  }

  body:not(.admin-body) .service-agent span,
  body:not(.admin-body) .service-visitor span:last-child {
    max-width: 52px;
  }

  body:not(.admin-body) .service-message-row p {
    max-width: min(318px, calc(100vw - 78px));
    padding: 12px 14px;
    font-size: 17px;
  }

  body:not(.admin-body) .service-message-user {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 6px;
  }

  body:not(.admin-body) .service-user-bubble,
  body:not(.admin-body) .service-user-image {
    max-width: min(286px, calc(100vw - 88px));
  }

  body:not(.admin-body) .service-visitor-avatar {
    width: 44px;
    height: 44px;
  }

  body:not(.admin-body) .service-inputbar {
    grid-template-columns: 34px 30px minmax(0, 1fr) 56px;
    gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  body:not(.admin-body) .service-inputbar input {
    padding: 0 12px;
    font-size: 16px;
  }

  body:not(.admin-body) .service-inputbar .service-send {
    width: 56px;
  }
}

/* Navigation page follows the home page background layer and keeps its cards readable. */
body:not(.admin-body):has(.navigation-page),
body:not(.admin-body):has(.navigation-page) .app-shell,
body:not(.admin-body):has(.navigation-page) .phone {
  background: #0b0b0b !important;
}

body:not(.admin-body):has(.navigation-page) .site-background {
  display: block !important;
}

body:not(.admin-body):has(.navigation-page) .phone .navigation-page,
body:not(.admin-body).has-site-background .phone .navigation-page {
  background: rgba(10, 12, 18, .15) !important;
  background-image: none !important;
  color: #fff !important;
}

body:not(.admin-body):has(.navigation-page) .navigation-intro h1,
body:not(.admin-body):has(.navigation-page) .navigation-section-head h2 {
  color: #fff !important;
}

body:not(.admin-body):has(.navigation-page) .navigation-intro p,
body:not(.admin-body):has(.navigation-page) .navigation-section-head p {
  color: rgba(255, 255, 255, .78) !important;
}

@media (max-width: 360px) {
  body:not(.admin-body) .service-inputbar {
    grid-template-columns: 30px 28px minmax(0, 1fr) 52px;
    gap: 5px;
    padding-left: 6px;
    padding-right: 6px;
  }

  body:not(.admin-body) .service-inputbar button,
  body:not(.admin-body) .service-emoji-wrap {
    width: 30px;
  }

  body:not(.admin-body) .service-inputbar .service-send {
    width: 52px;
    font-size: 16px;
  }

  body:not(.admin-body) .service-emoji-panel {
    width: calc(100vw - 12px);
  }
}

/* Final service mobile alignment pass. */
body:not(.admin-body) .service-page {
  width: 100vw !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  padding-left: 8px !important;
  padding-right: 8px !important;
  overflow-x: hidden;
}

body:not(.admin-body):has(.service-page) .phone,
body:not(.admin-body).service-route .phone {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

body:not(.admin-body).service-route,
body:not(.admin-body).service-route .app-shell,
body:not(.admin-body).service-route .phone,
body:not(.admin-body).service-route .service-page,
body:not(.admin-body).service-route .service-chat {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body:not(.admin-body) .service-head {
  left: 0;
  right: 0;
  transform: none;
  width: 100vw;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 4px;
  gap: 2px;
  justify-content: flex-start;
}

body:not(.admin-body) .service-back {
  width: 16px;
  min-width: 16px;
  padding: 0;
  margin-right: 0;
}

body:not(.admin-body) .service-head img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

body:not(.admin-body) .service-head strong {
  font-size: 17px;
  min-width: 0;
  flex: 1;
  margin-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.admin-body) .service-message-row {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
}

body:not(.admin-body) .service-agent img {
  width: 40px;
  height: 40px;
}

body:not(.admin-body) .service-agent span,
body:not(.admin-body) .service-visitor span:last-child {
  max-width: 48px;
}

body:not(.admin-body) .service-message-row p {
  max-width: min(300px, calc(100vw - 96px));
}

body:not(.admin-body) .service-message-user {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 6px;
}

body:not(.admin-body) .service-user-bubble,
body:not(.admin-body) .service-user-image {
  max-width: min(300px, calc(100vw - 76px));
}

body:not(.admin-body) .service-visitor-avatar {
  width: 42px;
  height: 42px;
}

body:not(.admin-body) .service-inputbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  display: block;
  height: calc(66px + env(safe-area-inset-bottom));
  min-height: 66px;
  padding: 10px max(4px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(2px, env(safe-area-inset-left));
  grid-template-columns: none;
}

body:not(.admin-body) .service-input-tools {
  position: absolute;
  left: max(2px, env(safe-area-inset-left));
  top: 10px;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 44px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow: visible;
}

body:not(.admin-body) .service-inputbar button,
body:not(.admin-body) .service-emoji-wrap {
  width: 26px;
  min-width: 26px;
  flex: 0 0 26px;
  box-sizing: border-box;
}

body:not(.admin-body) .service-inputbar button {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  overflow: hidden;
}

body:not(.admin-body) .service-icon-emoji,
body:not(.admin-body) .service-icon-file {
  display: block;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
}

body:not(.admin-body) .service-icon-emoji {
  width: 23px;
  height: 23px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #ffd84a;
}

body:not(.admin-body) .service-icon-emoji::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #111;
  box-shadow: 8px 0 0 #111;
}

body:not(.admin-body) .service-icon-emoji::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #111;
  border-radius: 0 0 12px 12px;
}

body:not(.admin-body) .service-icon-file {
  width: 23px;
  height: 17px;
  margin-top: 3px;
  border: 2px solid #111;
  border-radius: 2px;
  background: #ffd966;
  transform: skewX(-8deg);
}

body:not(.admin-body) .service-icon-file::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -7px;
  width: 11px;
  height: 7px;
  border: 2px solid #111;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #ffd966;
}

body:not(.admin-body) .service-input-field {
  position: absolute;
  left: calc(max(2px, env(safe-area-inset-left)) + 64px);
  right: calc(max(4px, env(safe-area-inset-right)) + 58px);
  top: 10px;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

body:not(.admin-body) .service-inputbar .service-image-input {
  display: none !important;
}

body:not(.admin-body) .service-inputbar input.service-text-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 14px;
  padding-right: 14px;
}

body:not(.admin-body) .service-inputbar [data-action="service-file"] {
  width: 26px;
  min-width: 26px;
  flex: 0 0 26px;
  font-size: 20px;
}

body:not(.admin-body) .service-inputbar .service-send {
  position: absolute;
  right: max(4px, env(safe-area-inset-right));
  top: 10px;
  width: 52px;
  min-width: 52px;
  flex: 0 0 52px;
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 360px) {
  body:not(.admin-body) .service-page {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  body:not(.admin-body) .service-message-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 5px;
  }

  body:not(.admin-body) .service-agent img {
    width: 38px;
    height: 38px;
  }

  body:not(.admin-body) .service-message-row p {
    max-width: calc(100vw - 58px);
    padding: 11px 12px;
  }

  body:not(.admin-body) .service-inputbar {
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: none;
  }

  body:not(.admin-body) .service-input-tools {
    left: max(2px, env(safe-area-inset-left));
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    gap: 5px;
  }

  body:not(.admin-body) .service-inputbar button,
  body:not(.admin-body) .service-emoji-wrap {
    width: 24px;
    min-width: 24px;
    flex-basis: 24px;
  }

  body:not(.admin-body) .service-inputbar [data-action="service-file"] {
    width: 24px;
    min-width: 24px;
    flex-basis: 24px;
    font-size: 19px;
  }

  body:not(.admin-body) .service-inputbar .service-send {
    right: max(4px, env(safe-area-inset-right));
    width: 46px;
    min-width: 46px;
    flex-basis: 46px;
    font-size: 15px;
  }

  body:not(.admin-body) .service-input-field {
    left: calc(max(2px, env(safe-area-inset-left)) + 58px);
    right: calc(max(4px, env(safe-area-inset-right)) + 52px);
  }

  body:not(.admin-body) .service-inputbar input.service-text-input {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 340px) {
  body:not(.admin-body) .service-inputbar {
    padding-left: 3px;
    padding-right: 3px;
  }

  body:not(.admin-body) .service-input-tools {
    left: max(1px, env(safe-area-inset-left));
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    gap: 4px;
  }

  body:not(.admin-body) .service-inputbar button,
  body:not(.admin-body) .service-emoji-wrap,
  body:not(.admin-body) .service-inputbar [data-action="service-file"] {
    width: 24px;
    min-width: 24px;
    flex-basis: 24px;
  }

  body:not(.admin-body) .service-inputbar .service-send {
    right: max(3px, env(safe-area-inset-right));
    width: 42px;
    min-width: 42px;
    flex-basis: 42px;
    font-size: 14px;
  }

  body:not(.admin-body) .service-input-field {
    left: calc(max(1px, env(safe-area-inset-left)) + 54px);
    right: calc(max(3px, env(safe-area-inset-right)) + 48px);
  }
}

/* Reference screenshot replica: home page only. */
body:not(.admin-body) {
  background: #0d0d0d;
}

body:not(.admin-body) .app-shell {
  background: #0d0d0d;
}

body:not(.admin-body) .phone {
  width: min(100vw, 502px);
  max-width: 502px;
  background: #121212;
  box-shadow: 0 0 0 1px #333;
}

body:not(.admin-body) .home-page {
  min-height: 100vh;
  padding: 0 14px 28px !important;
  overflow: hidden;
  color: #f5f5f5;
  background: #121212 !important;
}

body:not(.admin-body) .home-page .topbar {
  min-height: 43px;
  height: 43px;
  margin: 0 -14px;
  padding: 0 14px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  border-bottom: 1px solid #484848 !important;
  background: #252525 !important;
  backdrop-filter: none;
}

body:not(.admin-body) .home-page .topbar h1 {
  color: #f6f6f6;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.3px;
  text-shadow: 0 1px 2px #000;
}

body:not(.admin-body) .home-page .hero {
  position: relative;
  margin: 0 -14px !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #080808 !important;
}

body:not(.admin-body) .home-page .hero-link {
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080808 !important;
}

body:not(.admin-body) .home-page .hero-link::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .7)),
    radial-gradient(circle at 52% 22%, rgba(255, 255, 255, .07), transparent 35%);
}

body:not(.admin-body) .home-page .hero img,
body:not(.admin-body) .home-page .hero-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  object-fit: cover;
  filter: brightness(.72) saturate(.72) contrast(1.05);
}

body:not(.admin-body) .home-page .hero-badge,
body:not(.admin-body) .home-page .hero-count {
  z-index: 3;
  min-height: 29px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: none;
}

body:not(.admin-body) .home-page .hero-badge {
  left: 16px;
  bottom: 16px;
  padding: 0 12px;
  background: linear-gradient(180deg, #ef4556, #d91f32);
  box-shadow: 0 8px 18px rgba(221, 32, 50, .34);
}

body:not(.admin-body) .home-page .hero-count {
  right: 12px;
  bottom: 16px;
  padding: 0 12px;
  border-color: #3e3e3e;
  background: rgba(5, 5, 5, .78);
  color: #f1f1f1;
}

body:not(.admin-body) .home-page .hero-dot {
  left: 57%;
  bottom: 24px;
  z-index: 3;
  width: 8px;
  height: 8px;
  background: #159cf1;
  box-shadow: 0 0 0 5px rgba(21, 156, 241, .17);
}

body:not(.admin-body) .home-separator {
  height: 38px;
  margin: 0 -14px 12px;
  border-top: 1px solid #3b3b3b;
  border-bottom: 1px solid #303030;
  background: #2d2d2d;
}

body:not(.admin-body) .home-page .home-resource-ads {
  margin: 0 0 18px;
}

body:not(.admin-body) .home-page .home-resource-ads .app-ad-row {
  min-height: 127px;
  margin: 0;
  padding: 27px 12px 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #595959 !important;
  border-radius: 22px;
  background: #2b2b2b !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

body:not(.admin-body) .home-page .home-resource-ads .app-ad {
  gap: 8px;
  padding: 0;
  color: #f4f4f4;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 1px 2px #000;
}

body:not(.admin-body) .home-page .home-resource-ads .app-ad img {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: #f4f4f4;
  box-shadow: none;
}

body:not(.admin-body) .home-page .home-resource-ads .wide-ad {
  margin-top: 12px;
}

body:not(.admin-body) .home-page .category-section {
  margin: 0 0 20px !important;
  padding: 16px 14px 20px !important;
  overflow: hidden;
  border: 1px solid #3e3e3e !important;
  border-radius: 11px !important;
  background: #121212 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body:not(.admin-body) .home-page .category-section::before,
body:not(.admin-body) .home-page .category-section::after {
  display: none !important;
}

body:not(.admin-body) .home-page .section-title-row {
  min-height: 32px;
  margin: 0 0 8px;
  align-items: center;
}

body:not(.admin-body) .home-page .section-title-row h2 {
  color: #f4f4f4;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.6px;
  text-shadow: 0 1px 2px #000;
}

body:not(.admin-body) .home-page .section-title-row small {
  padding: 6px 9px;
  border-radius: 999px;
  color: #c4c4c4;
  background: #282828;
  font-size: 12px;
  font-weight: 900;
}

body:not(.admin-body) .home-page .tag {
  min-height: 27px;
  margin: 0 0 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #fb4453, #e82535);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(232, 37, 53, .3);
}

body:not(.admin-body) .home-page .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

body:not(.admin-body) .home-page .media-card {
  min-width: 0;
  overflow: hidden;
}

body:not(.admin-body) .home-page .home-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  outline: 1px solid #353535;
  background: #191919 !important;
  box-shadow: none !important;
}

body:not(.admin-body) .home-page .home-thumb > img,
body:not(.admin-body) .home-page .home-thumb > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}

body:not(.admin-body) .home-page .home-thumb::after {
  z-index: 1;
  background: none;
}

body:not(.admin-body) .home-page .home-thumb .play {
  display: none;
}

body:not(.admin-body) .home-page .media-free-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  min-width: 40px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 8px 0 9px 0;
  color: #fff;
  background: linear-gradient(135deg, #8a3df2, #4b32d3);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

body:not(.admin-body) .home-page .media-folder-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 31px;
  transform: translate(-50%, -50%);
  border-radius: 4px 5px 5px 5px;
  background: #ff7654;
  box-shadow: 0 4px 11px rgba(49, 17, 13, .28);
}

body:not(.admin-body) .home-page .media-folder-lock::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -7px;
  width: 18px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  background: #ff7654;
}

body:not(.admin-body) .home-page .media-folder-lock::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .26);
}

body:not(.admin-body) .home-page .media-folder-lock i::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 9px;
  width: 10px;
  height: 9px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

body:not(.admin-body) .home-page .media-folder-lock i::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 14px;
  height: 11px;
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 -4px 0 rgba(255, 118, 84, .14);
}

body:not(.admin-body) .home-page .media-stats {
  position: absolute;
  bottom: 7px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(11px, 3.1vw, 15px);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

body:not(.admin-body) .home-page .media-views {
  left: 9px;
}

body:not(.admin-body) .home-page .media-duration {
  right: 9px;
}

body:not(.admin-body) .home-page .media-views i {
  position: relative;
  width: 16px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50% / 58%;
}

body:not(.admin-body) .home-page .media-views i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
}

body:not(.admin-body) .home-page .media-duration i {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

body:not(.admin-body) .home-page .media-duration i::before,
body:not(.admin-body) .home-page .media-duration i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 1px 5px;
}

body:not(.admin-body) .home-page .media-duration i::after {
  transform: rotate(120deg);
}

body:not(.admin-body) .home-page .media-video-title {
  margin: 8px 4px 0;
  overflow: hidden;
  color: #f2f2f2;
  font-size: clamp(12px, 3.45vw, 17px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-body) .home-page .home-thumb:focus-visible,
body:not(.admin-body) .home-page .app-ad:focus-visible,
body:not(.admin-body) .home-page .hero-link:focus-visible {
  outline: 2px solid #159cf1;
  outline-offset: 2px;
}

@media (max-width: 370px) {
  body:not(.admin-body) .home-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body:not(.admin-body) .home-page .topbar,
  body:not(.admin-body) .home-page .hero,
  body:not(.admin-body) .home-separator {
    margin-left: -10px !important;
    margin-right: -10px !important;
  }

  body:not(.admin-body) .home-page .home-resource-ads .app-ad-row {
    padding-left: 8px;
    padding-right: 8px;
    gap: 7px;
  }

  body:not(.admin-body) .home-page .home-resource-ads .app-ad {
    font-size: 13px;
  }

  body:not(.admin-body) .home-page .grid {
    gap: 13px 9px;
  }
}

body:not(.admin-body) .share-page.promo-page .promo-head,
body:not(.admin-body) .share-page.promo-page .promo-points {
  position: relative;
  z-index: 1;
}

.agent-split-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.agent-split-status span {
  color: var(--muted, #64748b);
  font-size: 13px;
}

.agent-split-card {
  display: grid;
  gap: 14px;
}

.agent-split-card p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.7;
}

.admin-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Video detail: compact chat-style content card with a five-second preview gate. */
body:not(.admin-body) .detail-page {
  position: relative;
  min-height: 100vh;
  padding: 0 0 32px;
  overflow: hidden;
  isolation: isolate;
  color: #202124;
  background: #eef0f3;
}

body:not(.admin-body) .detail-page .topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 42px;
  border-bottom: 1px solid #222;
  color: #fff;
  background: #090909;
}

body:not(.admin-body) .detail-page .topbar h1 {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-body) .detail-page .back-btn {
  color: #fff;
  font-size: 27px;
}

/* Keep the back affordance independent from source-file character encoding. */
body:not(.admin-body) .back-btn > span {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body:not(.admin-body) .detail-chat-stage {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 12px 9px 30px;
  gap: 12px;
}

body:not(.admin-body) .detail-page .detail-copy {
  width: 100%;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  color: #4b5563;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .05);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

body:not(.admin-body) .detail-content-card {
  overflow: hidden;
  padding: 11px 9px 12px;
  border: 1px solid #dfe3e9;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(16, 24, 40, .08);
}

body:not(.admin-body) .video-service-list { display: grid; gap: 12px; }

body:not(.admin-body) .video-service-card {
  display: grid;
  padding: 14px;
  align-items: stretch;
  border: 1px solid #dfe3e9;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(16, 24, 40, .08);
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 16px;
}

body:not(.admin-body) .video-service-photo-column { display: grid; align-self: start; gap: 7px; }
body:not(.admin-body) .video-service-photo-wrap { position: relative; align-self: start; }
body:not(.admin-body) .video-service-photo { display: block; width: 100%; border-radius: 8px; background: #edf0f3; aspect-ratio: 4 / 5; object-fit: cover; }
body:not(.admin-body) .video-service-photo-empty { display: grid; place-items: center; color: #98a2b3; font-weight: 800; }
body:not(.admin-body) .video-service-badge { position: static; justify-self: center; padding: 5px 11px; border-radius: 5px; color: white; background: #83ce0e; box-shadow: 0 3px 8px rgba(85, 147, 0, .22); font-size: 13px; font-weight: 900; }
body:not(.admin-body) .video-service-info { display: flex; min-width: 0; padding: 3px 0 0; flex-direction: column; align-items: flex-start; }
body:not(.admin-body) .video-service-info h2 { margin: 0 0 10px; color: #db353e; font-size: clamp(22px, 5.7vw, 29px); font-weight: 950; line-height: 1.2; overflow-wrap: anywhere; }
body:not(.admin-body) .video-service-signature { margin: 0 0 10px; color: #30343b; font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
body:not(.admin-body) .video-service-tags { display: flex; margin: 0 0 8px; flex-wrap: wrap; gap: 7px; }
body:not(.admin-body) .video-service-tags span { padding: 5px 9px; border-radius: 5px; color: white; background: #e4454d; font-size: 13px; font-weight: 900; }
body:not(.admin-body) .video-service-tags span:nth-child(3n+2) { background: #16a9de; }
body:not(.admin-body) .video-service-tags span:nth-child(3n) { background: #f38a28; }
body:not(.admin-body) .video-service-nearby { margin: 0 0 9px; color: #222831; font-size: 14px; font-weight: 900; }
body:not(.admin-body) .video-service-contact { min-height: 42px; padding: 7px 13px; border: 0; border-radius: 7px; color: white; background: linear-gradient(135deg, #ff5960, #e64149); box-shadow: 0 5px 12px rgba(222, 52, 62, .2); cursor: pointer; font-size: clamp(15px, 4.1vw, 19px); font-weight: 950; }
body:not(.admin-body) .video-service-contact span { display: inline-block; margin-right: 4px; transform: rotate(-25deg); }

body:not(.admin-body) .detail-content-head {
  display: flex;
  padding: 0 5px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body:not(.admin-body) .detail-content-head strong {
  color: #1d2939;
  font-size: 17px;
}

body:not(.admin-body) .detail-content-head span {
  color: #9aa1ab;
  font-size: 12px;
  white-space: nowrap;
}

body:not(.admin-body) .detail-content-card .detail-gallery {
  margin: 0;
  gap: 9px;
}

body:not(.admin-body) .detail-content-card .detail-media {
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #050607;
  box-shadow: none;
  outline: 1px solid #d7dbe1;
}

body:not(.admin-body) .detail-content-card .detail-video,
body:not(.admin-body) .detail-content-card .detail-media img {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: 68vh;
  aspect-ratio: 16 / 10;
  background: #050607;
  object-fit: contain;
}

body:not(.admin-body) .detail-video-shell.preview-gated .detail-video {
  filter: none !important;
  transform: none !important;
}

body:not(.admin-body) .detail-preview-hint {
  margin: 10px 2px 0;
  color: #8a9099;
  font-size: 12px;
  text-align: center;
}

body:not(.admin-body) .detail-content-card .unlock-btn {
  width: min(290px, 88%);
  margin: 16px auto 5px;
  background: linear-gradient(135deg, #ff5b72, #ed2f87);
  font-size: 18px;
}

body:not(.admin-body) .detail-video-locked {
  width: 100%;
  padding: 18px;
  border: 0;
  cursor: pointer;
  text-align: center;
}

body:not(.admin-body) .detail-video-locked[hidden],
body:not(.admin-body) .video-popup[hidden] {
  display: none !important;
}

body:not(.admin-body) .video-popup-card {
  width: min(100%, 360px);
  padding: 30px 22px 22px;
  border-radius: 22px;
}

body:not(.admin-body) .video-popup-lock {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #ff6679, #ef3187);
  box-shadow: 0 10px 24px rgba(239, 49, 135, .22);
  font-size: 25px;
}

body:not(.admin-body) .video-popup-card h2 {
  margin-bottom: 6px;
  font-size: 23px;
}

body:not(.admin-body) .video-popup-subtitle {
  margin: 0 0 18px;
  color: #7b8491;
  font-size: 13px;
}

body:not(.admin-body) .video-popup-actions {
  display: grid;
  gap: 10px;
}

body:not(.admin-body) .video-popup-actions > button {
  display: grid;
  width: min(100%, 280px);
  min-height: 65px;
  justify-self: center;
  padding: 10px 14px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  gap: 3px;
}

body:not(.admin-body) .video-popup-actions strong {
  font-size: 17px;
}

body:not(.admin-body) .video-popup-actions span {
  font-size: 12px;
}

body:not(.admin-body) .video-popup-claim {
  color: #1769aa;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px #b9ddfb;
}

body:not(.admin-body) .video-popup-unlock {
  color: #fff;
  background: linear-gradient(135deg, #ff5b72, #ed2f87);
  box-shadow: 0 10px 22px rgba(239, 49, 135, .2);
}

body:not(.admin-body) .video-popup-unlock span {
  color: rgba(255, 255, 255, .82);
}

body:not(.admin-body) .video-popup-ad {
  min-height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #ff9a3d, #f35b38);
  box-shadow: 0 8px 18px rgba(243, 91, 56, .2);
}

body:not(.admin-body) .video-popup-ad strong {
  font-size: 15px;
}

.admin-body .video-popup-ad-settings {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  background: #f8fafc;
}

.admin-body .video-popup-ad-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-body .video-popup-ad-settings-head > div {
  display: grid;
  gap: 3px;
}

.admin-body .video-popup-ad-settings-head small {
  color: #667085;
}

.admin-body .video-popup-ad-settings-list {
  display: grid;
  gap: 10px;
}

.admin-body .video-popup-ad-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  background: #fff;
}

.admin-body .video-popup-ad-settings-row .field {
  margin: 0;
}

.admin-body .video-popup-ad-settings-row > button {
  min-height: 42px;
}

@media (max-width: 370px) {
  body:not(.admin-body) .detail-content-head span { font-size: 11px; }
  body:not(.admin-body) .video-popup { padding: 14px; }
}

/* Simplified video-only publishing workspace. */
.admin-body .simple-video-manager { display: grid; gap: 18px; }
.admin-body .simple-video-publish { display: grid; gap: 16px; }
.admin-body .simple-video-publish-fields { display: grid; align-items: end; grid-template-columns: minmax(0, 1.4fr) minmax(150px, .6fr) auto; gap: 12px; }
.admin-body .simple-video-publish-fields .field { margin: 0; }
.admin-body .simple-video-publish-fields .span-2 { grid-column: span 2; }
.admin-body .simple-video-publish-fields > button { min-height: 42px; }
.admin-body .simple-video-library { padding: 0; overflow: hidden; }
.admin-body .simple-video-library .content-panel-head { padding: 18px 20px; border-bottom: 1px solid #e8edf3; }
.admin-body .simple-video-list { display: grid; }
.admin-body .simple-video-row { border-bottom: 1px solid #e8edf3; background: #fff; }
.admin-body .simple-video-row:last-child { border-bottom: 0; }
.admin-body .simple-video-row > summary { display: grid; padding: 15px 18px; align-items: center; cursor: pointer; list-style: none; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 13px; }
.admin-body .simple-video-row > summary::-webkit-details-marker { display: none; }
.admin-body .simple-video-mark { display: grid; height: 42px; place-items: center; border-radius: 9px; color: #fff; background: #111827; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.admin-body .simple-video-summary { display: grid; min-width: 0; gap: 4px; }
.admin-body .simple-video-summary strong { overflow: hidden; color: #1d2939; text-overflow: ellipsis; white-space: nowrap; }
.admin-body .simple-video-summary small { color: #667085; }
.admin-body .simple-video-edit-grid { display: grid; padding: 18px; border-top: 1px solid #eef1f5; background: #f8fafc; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-body .simple-video-edit-grid .field { margin: 0; }
.admin-body .simple-video-source { overflow: hidden; align-self: center; color: #667085; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-body .simple-video-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-body .service-card-manager { padding: 0; overflow: hidden; }
.admin-body .service-card-manager .content-panel-head { padding: 18px 20px; border-bottom: 1px solid #e8edf3; }
.admin-body .service-card-create-grid { display: grid; padding: 18px 20px; align-items: end; background: #f8fafc; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-body .service-card-create-grid .field { margin: 0; }
.admin-body .service-card-create-grid .span-2,
.admin-body .service-card-edit-grid .span-2 { grid-column: 1 / -1; }
.admin-body .service-card-admin-list { display: grid; border-top: 1px solid #e8edf3; }
.admin-body .service-card-admin-row { border-bottom: 1px solid #e8edf3; background: #fff; }
.admin-body .service-card-admin-row:last-child { border-bottom: 0; }
.admin-body .service-card-admin-row > summary { display: grid; padding: 15px 18px; align-items: center; cursor: pointer; list-style: none; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; }
.admin-body .service-card-admin-row > summary::-webkit-details-marker { display: none; }
.admin-body .service-card-admin-row > summary > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.admin-body .service-card-admin-row > summary strong,
.admin-body .service-card-admin-row > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-body .service-card-admin-row > summary small { color: #667085; }
.admin-body .service-card-admin-index { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #fff; background: #83ce0e; font-weight: 900; }
.admin-body .service-card-edit-grid { display: grid; padding: 18px; border-top: 1px solid #eef1f5; background: #f8fafc; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-body .service-card-edit-grid .field { margin: 0; }

@media (max-width: 760px) {
  .admin-body .video-popup-ad-settings-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .video-popup-ad-settings-row {
    grid-template-columns: 1fr;
  }

  .admin-body .simple-video-publish-fields,
  .admin-body .simple-video-edit-grid,
  .admin-body .service-card-create-grid,
  .admin-body .service-card-edit-grid { grid-template-columns: 1fr; }
  .admin-body .simple-video-publish-fields .span-2,
  .admin-body .simple-video-edit-grid .span-2,
  .admin-body .service-card-create-grid .span-2,
  .admin-body .service-card-edit-grid .span-2 { grid-column: auto; }
  .admin-body .simple-video-actions { justify-content: stretch; }
  .admin-body .simple-video-actions button { flex: 1; }
}

/* Last-resort cascade guard for the share points page background. */
html body:not(.admin-body).has-site-background #app.phone > .page.share-page.promo-page {
  background-color: #070707 !important;
  background-image:
    linear-gradient(180deg, rgba(10, 12, 18, .52), rgba(10, 12, 18, .66)),
    var(--site-bg-image) !important;
  background-size: 100% 100%, cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html body:not(.admin-body) #app.phone > .page.share-page.promo-page {
  background-color: rgba(10, 12, 18, .56) !important;
}

@media (max-width: 390px) {
  body:not(.admin-body) .video-service-card { grid-template-columns: minmax(108px, 36%) minmax(0, 1fr); gap: 12px; }
  body:not(.admin-body) .video-service-info h2 { font-size: 21px; }
  body:not(.admin-body) .video-service-contact { padding-right: 10px; padding-left: 10px; font-size: 14px; }
}

/* Video-only home: remove every header and promotional block. */
body:not(.admin-body) .video-grid-page {
  min-height: 100vh;
  padding: 14px 14px 30px !important;
  overflow: visible;
  background: #171622 !important;
}

body:not(.admin-body) .home-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
  align-items: start;
}

body:not(.admin-body) .home-video-grid > .empty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #8c8996;
}

@media (max-width: 370px) {
  body:not(.admin-body) .video-grid-page {
    padding: 10px 10px 24px !important;
  }

  body:not(.admin-body) .home-video-grid {
    gap: 18px 9px;
  }
}

/* One shared blurred background and glass surfaces for every public page. */
body:not(.admin-body) .site-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #151515;
  pointer-events: none;
}

body:not(.admin-body) .site-background[hidden] { display: none; }

body:not(.admin-body) .site-background img {
  position: absolute;
  inset: -6%;
  display: block;
  width: 112%;
  height: 112%;
  max-width: none;
  transform: scale(1.08);
  filter: blur(24px) saturate(1.12) brightness(.78);
  object-fit: cover;
  object-position: center center;
}

body:not(.admin-body) .site-background span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 18, .12), rgba(10, 12, 18, .28));
}

body:not(.admin-body).has-site-background .app-shell {
  position: relative;
  z-index: 0;
}

body:not(.admin-body).has-site-background .phone {
  z-index: 1;
  background: transparent !important;
}

body:not(.admin-body).has-site-background .phone .page,
body:not(.admin-body).has-site-background .phone .loading-page,
body:not(.admin-body).has-site-background .phone .share-page,
body:not(.admin-body).has-site-background .phone .resource-page,
body:not(.admin-body).has-site-background .phone .detail-page,
body:not(.admin-body).has-site-background .phone .claim-page,
body:not(.admin-body).has-site-background .phone .service-page,
body:not(.admin-body).has-site-background .phone .video-grid-page {
  background-color: rgba(10, 12, 18, .15) !important;
  background-image: none !important;
}

body:not(.admin-body).has-site-background .phone .share-page[style*="--share-bg"] {
  background-image:
    linear-gradient(180deg, rgba(25, 12, 22, .14) 0 var(--share-hero-h), #fff var(--share-hero-h) 100%),
    var(--share-bg) !important;
  background-size: 100% 100%, 100% var(--share-hero-h) !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
}

body:not(.admin-body).has-site-background .phone .resource-page[style*="--resource-bg-image"] {
  background-image: var(--resource-bg-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body:not(.admin-body).has-site-background .topbar,
body:not(.admin-body).has-site-background .detail-page .topbar {
  border-bottom-color: rgba(255, 255, 255, .18) !important;
  background: rgba(7, 9, 13, .68) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
}

body:not(.admin-body).has-site-background .detail-content-card,
body:not(.admin-body).has-site-background .video-service-card {
  border-color: rgba(255, 255, 255, .62) !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .2) !important;
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

body:not(.admin-body).has-site-background .home-icon-ad-strip,
body:not(.admin-body).has-site-background .app-ad-row,
body:not(.admin-body).has-site-background .share-card,
body:not(.admin-body).has-site-background .rule-box {
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(24, 24, 28, .48) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2) !important;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

body:not(.admin-body).has-site-background .service-head {
  background: rgba(255, 255, 255, .76) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

body:not(.admin-body).has-site-background .bottom-nav {
  border-top-color: rgba(255, 255, 255, .18) !important;
  background: rgba(12, 14, 20, .72) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* Video playback reminder ported from new8.3. */
body:not(.admin-body) .detail-video-shell {
  position: relative;
}

body:not(.admin-body) .detail-video-fullscreen {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 24, 40, .74);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

body:not(.admin-body) .detail-video-fullscreen:active {
  background: rgba(16, 24, 40, .94);
}

body:not(.admin-body) .detail-video-locked {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(16, 24, 40, .76);
  font-size: 16px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

body:not(.admin-body) .video-popup {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
}

body:not(.admin-body) .video-popup-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(16, 24, 40, .62);
  backdrop-filter: blur(4px);
}

body:not(.admin-body) .video-popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .28);
  text-align: center;
}

body:not(.admin-body) .video-popup-card h2 {
  margin: 0 0 14px;
  color: #202b3c;
  font-size: 21px;
}

body:not(.admin-body) .video-popup-fixed-copy {
  display: grid;
  gap: 6px;
  margin: -2px 0 16px;
  color: #344054;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

body:not(.admin-body) .video-popup-fixed-copy p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body:not(.admin-body) .video-popup-content-link p {
  margin: 0;
  color: var(--popup-text-color, #1677ff);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body:not(.admin-body) .video-popup-content-link {
  --popup-accent: #24b8ca;
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--popup-accent);
  border-radius: 12px;
  background: #f8fafb;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

body:not(.admin-body) .video-popup-content-link:hover {
  box-shadow: 0 9px 24px rgba(16, 24, 40, .1);
  transform: translateY(-1px);
}

body:not(.admin-body) .video-popup-content-link:focus-visible {
  outline: 3px solid rgba(36, 184, 202, .3);
  outline-offset: 3px;
}

body:not(.admin-body) .video-popup-close {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #667085;
  background: #f2f4f7;
  font-size: 23px;
  line-height: 1;
}

/* Home carousel and backend-managed icon advertisements. */
body:not(.admin-body) .home-with-promos {
  padding: 10px 10px 30px !important;
}

body:not(.admin-body) .home-with-promos .home-carousel {
  margin: 0 0 12px !important;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 10px;
  background: #09090c !important;
}

body:not(.admin-body) .home-with-promos .home-carousel .hero-link {
  display: block;
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 400 / 211 !important;
  overflow: hidden;
  background: #09090c !important;
}

body:not(.admin-body) .home-with-promos .home-carousel .hero-link::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), transparent 68%, rgba(0, 0, 0, .16));
}

body:not(.admin-body) .home-with-promos .home-carousel img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

body:not(.admin-body) .share-hero .hero-link {
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

body:not(.admin-body) .share-hero img {
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: auto !important;
  object-fit: contain;
  object-position: center center;
}

body:not(.admin-body) .home-with-promos .home-carousel .hero-dot {
  left: 50%;
  bottom: 10px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  background: #159cf1;
  box-shadow: 0 0 0 4px rgba(21, 156, 241, .16);
}

/* Keep page-specific uploaded artwork independent from the fixed home banner. */
body:not(.admin-body) .home-with-promos .home-carousel,
body:not(.admin-body) .claim-page .claim-hero,
body:not(.admin-body) .share-hero {
  background: #09090c !important;
}

body:not(.admin-body) .claim-page .claim-hero {
  height: auto !important;
  min-height: 145px;
  aspect-ratio: 400 / 211;
  overflow: hidden;
}

body:not(.admin-body) .claim-page .claim-hero img {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

body:not(.admin-body) .has-site-background .phone .claim-page {
  background:
    linear-gradient(180deg, rgba(10, 12, 18, .56), rgba(10, 12, 18, .72)) !important;
}

body:not(.admin-body) .has-site-background .phone .share-page[style*="--site-bg-image"] {
  background-image:
    linear-gradient(180deg, rgba(10, 12, 18, .52), rgba(10, 12, 18, .66)),
    var(--site-bg-image) !important;
  background-color: rgba(10, 12, 18, .56) !important;
  background-size: 100% 100%, cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Keep the points page dark even when the global background image is bright. */
body:not(.admin-body) #app.phone > .share-page.promo-page {
  background-color: rgba(10, 12, 18, .56) !important;
}

/* Let the configured global background pass through the public app shell. */
html body:not(.admin-body).has-site-background .app-shell {
  background: transparent !important;
}

body:not(.admin-body) .home-icon-ad-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 2px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

body:not(.admin-body) .home-icon-ad-strip::-webkit-scrollbar {
  display: none;
}

body:not(.admin-body) .home-icon-ad-strip .home-icon-ad {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  color: #f3f3f3;
  background: transparent;
  font-size: clamp(12px, 3.4vw, 16px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

body:not(.admin-body) .home-icon-ad-strip .home-icon-ad img {
  width: clamp(58px, 15vw, 76px);
  height: clamp(58px, 15vw, 76px);
  border: 0;
  border-radius: 15px;
  background: #f4f4f4;
  box-shadow: none;
  object-fit: cover;
}

body:not(.admin-body) .home-icon-ad-strip .home-icon-ad span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-body) .home-with-promos .home-video-grid {
  margin-top: 2px;
}

body:not(.admin-body) .home-wide-ad-stack {
  display: grid;
  gap: 7px;
  margin: -4px 0 18px;
}

body:not(.admin-body) .home-wide-ad {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 52%),
    var(--wide-ad-color, #2fb3ed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 9px rgba(0, 0, 0, .24);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

body:not(.admin-body) .home-wide-ad:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 52%),
    linear-gradient(135deg, #f9789a, #e94778);
}

body:not(.admin-body) .home-wide-ad:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 52%),
    linear-gradient(135deg, #f36e61, #d94a3f);
}

body:not(.admin-body) .home-wide-ad img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

body:not(.admin-body) .home-wide-ad:active {
  transform: scale(.99);
}

body:not(.admin-body) .navigation-page {
  min-height: 100dvh;
  padding: 18px 14px 34px;
  background: #f4f9fd;
  color: #142235;
}

body:not(.admin-body) .navigation-notice {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 5px 10px 5px 4px;
  border: 1px solid #d8e6f1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(33, 91, 132, .1);
  color: #152235;
}

body:not(.admin-body) .navigation-notice .navigation-back {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 21px;
}

body:not(.admin-body) .navigation-notice-speaker {
  flex: 0 0 auto;
  color: #6f8495;
  font-size: 18px;
  transform: rotate(-20deg);
}

body:not(.admin-body) .navigation-notice strong {
  flex: 0 0 auto;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

body:not(.admin-body) .navigation-notice-window {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #e04c35;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

body:not(.admin-body) .navigation-notice-window b {
  display: inline-block;
  padding-left: 100%;
  animation: navigation-notice-marquee 12s linear infinite;
}

@keyframes navigation-notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

body:not(.admin-body) .navigation-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(33, 91, 132, .08);
}

body:not(.admin-body) .navigation-back {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #167dc1;
  font-size: 26px;
  line-height: 1;
}

body:not(.admin-body) .navigation-topbar div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body:not(.admin-body) .navigation-topbar strong {
  font-size: 16px;
  line-height: 1.2;
}

body:not(.admin-body) .navigation-topbar span {
  color: #6a7b8d;
  font-size: 12px;
}

body:not(.admin-body) .navigation-intro {
  padding: 22px 6px 14px;
}

body:not(.admin-body) .navigation-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #1687cc;
  font-size: 13px;
  font-weight: 800;
}

body:not(.admin-body) .navigation-intro h1,
body:not(.admin-body) .navigation-section-head h2 {
  margin: 0;
  color: #102033;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

body:not(.admin-body) .navigation-intro p,
body:not(.admin-body) .navigation-section-head p {
  margin: 6px 0 0;
  color: #728194;
  font-size: 13px;
  line-height: 1.5;
}

body:not(.admin-body) .navigation-directory {
  padding: 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(33, 91, 132, .1);
}

body:not(.admin-body) .navigation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 10px;
}

body:not(.admin-body) .navigation-item {
  min-width: 0;
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px 5px 8px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 0 #e4ebf1;
  color: #26374a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

body:not(.admin-body) .navigation-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #edf5fb;
}

body:not(.admin-body) .navigation-item span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-body) .navigation-item:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #e4ebf1;
}

body:not(.admin-body) .navigation-contact {
  margin-top: 26px;
}

body:not(.admin-body) .navigation-section-head {
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 4px solid #1687cc;
}

body:not(.admin-body) .navigation-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:not(.admin-body) .navigation-contact-item {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e3ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(33, 91, 132, .08);
  color: #142235;
  text-decoration: none;
}

body:not(.admin-body) .navigation-contact-item img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #edf5fb;
}

body:not(.admin-body) .navigation-contact-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body:not(.admin-body) .navigation-contact-item small {
  color: #718196;
  font-size: 11px;
}

body:not(.admin-body) .navigation-contact-item strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

body:not(.admin-body) .navigation-empty {
  grid-column: 1 / -1;
  padding: 28px 12px;
  color: #78889a;
  text-align: center;
}

body:not(.admin-body).has-site-background .navigation-page {
  background: rgba(244, 249, 253, .18);
  backdrop-filter: none;
}

body:not(.admin-body).has-site-background .navigation-notice,
body:not(.admin-body).has-site-background .navigation-topbar,
body:not(.admin-body).has-site-background .navigation-directory,
body:not(.admin-body).has-site-background .navigation-item,
body:not(.admin-body).has-site-background .navigation-contact-item {
  border-color: rgba(255, 255, 255, .34);
  background: transparent;
  box-shadow: none;
}

body:not(.admin-body).has-site-background .navigation-notice,
body:not(.admin-body).has-site-background .navigation-topbar,
body:not(.admin-body).has-site-background .navigation-item,
body:not(.admin-body).has-site-background .navigation-contact-item {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}

body:not(.admin-body).has-site-background .navigation-notice-speaker,
body:not(.admin-body).has-site-background .navigation-topbar span,
body:not(.admin-body).has-site-background .navigation-contact-item small,
body:not(.admin-body).has-site-background .navigation-empty {
  color: rgba(255, 255, 255, .82);
}

body:not(.admin-body).has-site-background .navigation-item img,
body:not(.admin-body).has-site-background .navigation-contact-item img {
  background: transparent;
}

body:not(.admin-body).has-site-background .navigation-item:active {
  box-shadow: none;
}

@media (max-width: 430px) {
  body:not(.admin-body) .navigation-page {
    padding: 12px 10px 28px;
  }

  body:not(.admin-body) .navigation-notice strong {
    max-width: 44%;
    font-size: 11px;
  }

  body:not(.admin-body) .navigation-notice-window {
    font-size: 15px;
  }

  body:not(.admin-body) .navigation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
  }

  body:not(.admin-body) .navigation-item {
    min-height: 82px;
    padding-inline: 3px;
  }

  body:not(.admin-body) .navigation-item img {
    width: 44px;
    height: 44px;
  }

  body:not(.admin-body) .navigation-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  body:not(.admin-body) .home-with-promos {
    padding: 7px 7px 24px !important;
  }

  body:not(.admin-body) .home-icon-ad-strip {
    grid-auto-columns: minmax(64px, 1fr);
    gap: 7px;
  }

  body:not(.admin-body) .home-wide-ad {
    min-height: 35px;
    font-size: 13px;
  }
}

/* Keep every carousel artwork rounded, including pages that override the shell radius. */
body:not(.admin-body) .home-carousel img,
body:not(.admin-body) .share-hero img,
body:not(.admin-body) .claim-page .claim-hero img {
  border-radius: 12px;
}

body:not(.admin-body) .home-carousel,
body:not(.admin-body) .share-hero,
body:not(.admin-body) .claim-page .claim-hero {
  overflow: hidden;
  border-radius: 12px;
}

/* Let carousel artwork start at the top edge without the page's default inset. */
body:not(.admin-body) .home-with-promos,
body:not(.admin-body) .claim-page {
  padding-top: 0 !important;
}

/* All carousel artwork uses one responsive frame and fills it completely. */
body:not(.admin-body) .home-carousel,
body:not(.admin-body) .share-hero,
body:not(.admin-body) .claim-page .claim-hero {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  aspect-ratio: 400 / 211;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
}

body:not(.admin-body) .home-carousel .hero-link,
body:not(.admin-body) .share-hero .hero-link,
body:not(.admin-body) .claim-page .claim-hero img,
body:not(.admin-body) .home-carousel img,
body:not(.admin-body) .share-hero img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center center;
}

body:not(.admin-body) .home-carousel .hero-link,
body:not(.admin-body) .home-carousel .hero-link img,
body:not(.admin-body) .share-hero .hero-link,
body:not(.admin-body) .share-hero .hero-link img {
  border-radius: 12px !important;
  overflow: hidden;
}

body:not(.admin-body) .home-with-promos .home-carousel,
body:not(.admin-body) .home-with-promos .home-carousel .hero-link,
body:not(.admin-body) .home-with-promos .home-carousel img {
  border-radius: 12px !important;
  overflow: hidden !important;
}

body:not(.admin-body) .detail-video-shell.web-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #000;
}

body:not(.admin-body) .detail-video-shell.web-fullscreen .detail-video {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  aspect-ratio: auto;
  object-fit: contain;
}

body.video-web-fullscreen {
  overflow: hidden;
}
