﻿:root {
  --primary-color: #0071e3;
  --button-color: #0071e3;
  --nav-active-color: #1d1d1f;
  --link-color: #0066cc;
  --page-background: #f5f5f7;
  --sidebar-color: #ffffff;
  --text-color: #1d1d1f;
  --muted-color: #6e6e73;
  --line-color: #e2e2e7;
  --card-radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--page-background);
  color: var(--text-color);
}

body.app-booting .home-content,
body.app-booting .detail-layout {
  opacity: 0;
}

body.app-ready .home-content,
body.app-ready .detail-layout {
  opacity: 1;
  transition: opacity .16s ease;
}

.page-leaving body::after {
  content: "";
  position: fixed;
  inset: 52px 0 0;
  z-index: 999;
  background: rgba(245,245,247,.82);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.top-nav {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, .94);
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: #424245;
  font-size: 14px;
  overflow: hidden;
}

.top-nav-actions {
  width: 560px;
  min-width: 560px;
  margin-left: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-tab {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: var(--card-radius);
  background: transparent;
  color: #424245;
  padding: 0 10px;
  font-size: 14px;
}

.top-tab.active {
  background: var(--nav-active-color);
  color: #fff;
  font-weight: 700;
}

.brand {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 760;
  width: 224px;
  min-width: 224px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-interface-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 430px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid #dfe5ec;
  border-radius: var(--card-radius);
  background: #fff;
}

.top-interface-label {
  flex: 0 0 auto;
  padding: 0 8px;
  color: var(--muted-color);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.top-interface-item {
  height: 30px;
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #424245;
  padding: 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

.top-interface-item.active {
  background: var(--button-color);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,113,227,.18);
}

.top-return-home {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d8d8df;
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 700;
}

.nav-account {
  position: absolute;
  right: 34px;
  color: var(--link-color);
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-links .btn {
  height: 34px;
}

.admin-link-item {
  color: #424245;
}

.btn {
  height: 40px;
  border: 1px solid #d2d2d7;
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--text-color);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 650;
}

.btn.primary {
  border-color: var(--button-color);
  background: var(--button-color);
  color: #fff;
}

.btn.dark {
  border-color: var(--nav-active-color);
  background: var(--nav-active-color);
  color: #fff;
}

.btn.full {
  width: 100%;
}

.muted {
  color: var(--muted-color);
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-color);
  font-size: 13px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d2d2d7;
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--text-color);
  padding: 0 13px;
}

.textarea {
  min-height: 90px;
  padding: 12px 13px;
  resize: vertical;
}

.message {
  margin-top: 12px;
  color: #b42318;
  font-size: 14px;
}

.modal-open,
.modal-open body {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 22px;
}

.login-modal.open {
  display: grid;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, .42);
  backdrop-filter: blur(10px);
}

.login-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  padding: 28px;
}

.login-dialog h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.login-dialog p {
  margin: 0 0 18px;
  color: var(--muted-color);
  line-height: 1.55;
}

.login-register-row {
  margin-top: 16px !important;
  font-size: 14px;
}

.login-register-row a {
  color: var(--link-color);
  font-weight: 800;
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f5;
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--card-radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 58px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.home-detail-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  gap: 26px;
  align-items: center;
  padding: 42px 0 24px;
}

.home-detail-panel {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  color: var(--link-color);
  font-size: 13px;
  font-weight: 760;
}

.home-detail-copy h1 {
  margin: 16px 0 10px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-detail-copy p {
  margin: 0;
  color: #515154;
  font-size: 18px;
  line-height: 1.55;
}

.home-search-box {
  margin-top: 24px;
}

.home-feature-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.home-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.home-visual-panel {
  min-width: 0;
}

.home-carousel {
  box-shadow: 0 24px 68px rgba(0,0,0,.16);
}

.search-results {
  display: none;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--card-radius);
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 52px rgba(0,0,0,.14);
}

.search-results.visible {
  display: block;
}

.result-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #eeeeF2;
  color: var(--muted-color);
  font-size: 13px;
}

.result-item {
  display: grid;
  grid-template-columns: 96px 1fr 88px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f3;
  background: #fff;
}

.result-item:last-child { border-bottom: 0; }

.result-item img {
  width: 96px;
  height: 58px;
  border-radius: var(--card-radius);
  object-fit: cover;
}

.result-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.result-item p {
  margin: 0;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.4;
}

.result-link {
  color: var(--link-color);
  font-weight: 700;
  text-align: right;
}

.home-content {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 52px);
}

.home-catalog-layout {
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-directory-panel {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-right: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,248,250,.96)),
    var(--sidebar-color);
  padding: 32px 28px;
  scrollbar-width: none;
}

.home-directory-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-search-form {
  margin-bottom: 10px;
}

.home-search-wrap {
  position: relative;
}

.home-search-wrap .input {
  height: 50px;
  border: 2px solid #1d1d1f;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  padding-right: 46px;
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
}

.home-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef0f2;
  color: #6e6e73;
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-50%);
}

.home-search-clear[hidden] {
  display: none;
}

.home-search-status {
  min-height: 20px;
  margin: 0 0 16px;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.45;
}

.home-search-status strong {
  color: var(--text-color);
}

.home-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.home-search-suggestions button {
  min-height: 32px;
  border: 1px solid #dfe1e6;
  border-radius: 999px;
  background: #fff;
  color: #4f5661;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
}

.home-directory-tree {
  max-height: calc(100vh - 236px);
  overflow-y: auto;
  padding-right: 2px;
}

.home-tree-brand {
  margin-bottom: 8px;
}

.home-right-panel {
  min-width: 0;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 56px;
  display: grid;
  gap: 18px;
}

.interface-switcher {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.interface-pill {
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe5ec;
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, #fff, #f7f9fb);
  color: var(--text-color);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 35, 55, .05);
}

.interface-pill.active {
  border-color: var(--button-color);
  background: #eef6ff;
  color: var(--button-color);
}

.interface-pill img,
.interface-pill span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf1f5;
  object-fit: cover;
  font-size: 16px;
}

.home-poster {
  min-height: 300px;
  aspect-ratio: 16 / 5.2;
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #111;
  box-shadow: 0 24px 60px rgba(0,0,0,.1);
}

.home-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18) 46%, rgba(0,0,0,.04));
}

.home-poster-copy {
  width: min(520px, 72%);
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 1;
  color: #fff;
}

.home-poster-copy span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 760;
  opacity: .82;
}

.home-poster-copy h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-poster-copy p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 17px;
  line-height: 1.55;
}

.home-recent-panel {
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 16px;
}

.home-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-recent-head h2 {
  margin: 0;
  font-size: 18px;
}

.home-recent-head button {
  border: 0;
  background: transparent;
  color: var(--muted-color);
  font-size: 13px;
  font-weight: 700;
}

.home-recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-recent-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #ececf1;
  border-radius: var(--card-radius);
  background: #fbfbfd;
}

.home-recent-card img {
  width: 58px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f7;
}

.home-recent-card span {
  min-width: 0;
}

.home-recent-card strong,
.home-recent-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recent-card strong {
  font-size: 14px;
}

.home-recent-card small {
  margin-top: 4px;
  color: var(--muted-color);
  font-size: 12px;
}

.hot-model-grid {
  --hot-columns: 8;
  display: grid;
  grid-template-columns: repeat(var(--hot-columns), minmax(0, 1fr));
  gap: 12px;
}

.hot-model-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fbfbfd;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hot-model-card:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 14px 34px rgba(0,0,0,.09);
}

.hot-model-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f5f5f7;
}

.hot-model-card div {
  padding: 10px;
}

.hot-model-card strong,
.hot-model-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-model-card strong {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.2;
}

.hot-model-card span {
  color: var(--muted-color);
  font-size: 12px;
}

.hot-model-card mark {
  border-radius: 3px;
  background: rgba(255, 212, 102, .55);
  color: inherit;
  padding: 0 1px;
}

.model-badges {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  overflow: hidden;
}

.model-badges em {
  max-width: 72px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f1f3;
  color: #60656b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.model-interface-badge {
  width: fit-content;
  max-width: 100%;
  height: 22px;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(236,58,14,.09);
  color: var(--button-color);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.home-empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #d8d8df;
  border-radius: var(--card-radius);
  background: #fbfbfd;
  color: var(--muted-color);
  text-align: center;
  padding: 24px;
}

.home-empty-state strong {
  color: var(--text-color);
  font-size: 18px;
}

.skeleton-list {
  display: grid;
  gap: 8px;
}

.skeleton-list span,
.skeleton-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #ececf1;
}

.skeleton-list span {
  height: 44px;
}

.skeleton-card {
  min-height: 188px;
}

.skeleton-list span::after,
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: skeleton-shine 1.2s infinite;
  transform: translateX(-100%);
}

@keyframes skeleton-shine {
  to { transform: translateX(100%); }
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #fff;
}

.panel-pad {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
  font-size: 26px;
}

.series-row,
.menu-row {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: var(--card-radius);
  background: transparent;
  padding: 0 12px;
  margin-bottom: 8px;
  color: #424245;
  font-size: 15px;
  text-align: left;
}

.series-row.active,
.menu-row.active {
  background: var(--nav-active-color);
  color: #fff;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: #fbfbfd;
  color: #515154;
  font-size: 13px;
}

.chip.active {
  border-color: var(--nav-active-color);
  background: var(--nav-active-color);
  color: #fff;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fbfbfd;
}

.model-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: block;
}

.model-card-body {
  padding: 15px 18px;
}

.model-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.model-card p {
  margin: 0 0 13px;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 52px);
}

.detail-side {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sidebar-color);
  border-right: 1px solid var(--line-color);
  padding: 30px 28px;
}

.detail-side h2 {
  margin: 0;
  font-size: 28px;
}

.directory-search {
  margin-bottom: 14px;
}

.detail-search-form {
  margin-bottom: 10px;
}

.detail-side .home-search-status {
  margin-bottom: 12px;
}

.detail-side .home-directory-tree {
  max-height: calc(100vh - 232px);
}

.brand-row {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(22, 32, 46, .08);
  border-radius: var(--card-radius);
  padding: 0 12px;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #fbfcfd 0%, #edf1f5 100%);
  color: #182231;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 4px 14px rgba(15,23,42,.035);
}

.brand-row.active {
  border-color: rgba(18, 91, 151, .24);
  background: linear-gradient(180deg, #f6fbff 0%, #e6f1fb 100%);
  color: #0f4c81;
}

.brand-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-main > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  background: #fff;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-logo.empty {
  background: linear-gradient(145deg, #ffffff 0%, #edf1f5 100%);
}

.tree-toggle {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.series-child {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(26, 92, 68, .08);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, #f8fbf9 0%, #eef5f1 100%);
  padding: 0 12px 0 26px;
  margin-bottom: 5px;
  color: #244c3d;
  font-size: 14px;
  text-align: left;
}

.series-child.active {
  border-color: rgba(26, 92, 68, .18);
  background: linear-gradient(180deg, #f1faf5 0%, #dfeee6 100%);
  color: #153e2d;
  font-weight: 700;
}

.tree-count {
  flex-shrink: 0;
  color: currentColor;
  opacity: .7;
  font-size: 12px;
}

.model-child {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(112, 82, 42, .08);
  border-radius: var(--card-radius);
  padding: 0 12px 0 42px;
  margin-bottom: 5px;
  background: linear-gradient(180deg, #fffdf9 0%, #f5efe5 100%);
  color: #6a4d24;
  font-size: 13px;
}

.brand-row:hover,
.series-child:hover,
.model-child:hover {
  border-color: rgba(0, 102, 204, .18);
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.model-child span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-child small {
  flex-shrink: 0;
  color: currentColor;
  opacity: .72;
}

.tree-series-list,
.tree-models {
  display: none;
}

.tree-series-list.open,
.tree-models.open {
  display: block;
}

.model-child.active {
  border-color: rgba(112, 82, 42, .2);
  background: linear-gradient(180deg, #fff5df 0%, #f0d29a 100%);
  color: #3f2c11;
  font-weight: 700;
}

.mobile-picker {
  display: none;
}

.mobile-action-bar,
.mobile-catalog-drawer,
.mobile-hero-info {
  display: none;
}

.detail-main-wrap {
  padding: 34px 28px 64px;
}

.detail-main {
  max-width: 990px;
  margin: 0 auto;
  transition: opacity .18s ease, transform .18s ease;
}

.detail-side {
  transition: opacity .18s ease;
}

body.detail-navigating .detail-main {
  opacity: .72;
  transform: translateY(6px);
}

body.detail-navigating .detail-side {
  opacity: .9;
}

body.detail-navigating .detail-side .home-directory-tree {
  pointer-events: none;
}

body.detail-navigating .top-nav::after {
  content: "";
  position: absolute;
  left: -36%;
  bottom: 0;
  width: 36%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: detail-progress 1.05s linear infinite;
}

@keyframes detail-progress {
  from { transform: translateX(0); }
  to { transform: translateX(380%); }
}

.detail-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.detail-title h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.1;
}

.detail-title p {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.5;
}

.share-row {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.42);
  padding: 20px;
}

.qr-card {
  width: min(360px, 100%);
  position: relative;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  padding: 24px;
  text-align: center;
}

.qr-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.qr-card img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 14px;
}

.qr-card p {
  overflow-wrap: anywhere;
  color: var(--muted-color);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.qr-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted-color);
  font-size: 26px;
}

.site-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line-color);
  background: rgba(255,255,255,.72);
  color: var(--muted-color);
  font-size: 13px;
  padding: 14px 18px;
}

.auth-page .site-footer {
  min-height: 34px;
  gap: 12px;
  font-size: 12px;
  padding: 7px 14px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-color);
}

.site-footer a:hover {
  color: var(--primary-color);
}

.police-beian-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.police-beian-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 4px;
  border-top: 1.5px solid currentColor;
  border-radius: 50% 50% 0 0;
}

.beian-config-card {
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin: 14px 0;
}

.detail-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1100;
  transform: translate(-50%, 12px);
  opacity: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(29,29,31,.92);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  transition: opacity .18s ease, transform .18s ease;
}

.detail-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-carousel {
  width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  overflow: hidden;
  position: relative;
  border-radius: var(--card-radius);
  background: #111;
  box-shadow: 0 20px 48px rgba(0,0,0,.08);
}

.detail-hero-full {
  width: min(calc(100vw - 288px), 1280px);
  margin-inline: 50%;
  transform: translateX(-50%);
  aspect-ratio: var(--media-ratio, 16 / 9);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

.hero-carousel.portrait-media {
  width: min(100%, 520px);
  margin-inline: auto;
}

.detail-hero-full.portrait-media {
  width: min(560px, calc(100vw - 320px));
}

.detail-hero-full.landscape-media > img {
  object-fit: cover;
}

.hero-carousel > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.detail-hero-full > img {
  position: absolute;
  inset: 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.arrow.left { left: 18px; }
.arrow.right { right: 18px; }

.detail-hero-full .arrow {
  display: none;
}

.carousel-thumbs {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.carousel-thumbs button {
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 0;
}

.carousel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.94);
  padding: 18px;
  touch-action: pan-y;
}

.image-lightbox img {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.lightbox-open,
.lightbox-open body {
  overflow: hidden;
}

.image-lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #1d1d1f;
  font-size: 30px;
  line-height: 1;
}

.image-lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #1d1d1f;
  font-size: 42px;
  line-height: 1;
}

.image-lightbox-prev {
  left: 18px;
}

.image-lightbox-next {
  right: 18px;
}

.image-lightbox-arrow {
  display: none;
}

.detail-section {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #fff;
}

.spec-section {
  margin-top: 14px;
}

.detail-action-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #eeeeF2;
  background: #fff;
}

.detail-action-strip .btn {
  height: 34px;
  min-width: 86px;
  padding: 0 12px;
  font-size: 13px;
}

.section-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid #eeeeF2;
  font-size: 15px;
  font-weight: 760;
}

.section-head span:last-child {
  color: var(--muted-color);
  font-size: 12px;
  font-weight: 500;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: #fbfbfd;
}

.spec {
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fff;
}

.spec label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-color);
  font-size: 12px;
}

.spec strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.video-box {
  width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  position: relative;
  overflow: hidden;
  background: #111;
}

.video-box.portrait-media {
  width: min(100%, 420px);
  margin-inline: auto;
}

.video-box img,
.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-box img {
  opacity: .78;
}

.video-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #111827, #273142);
  color: #fff;
  text-align: center;
}

.video-cover-placeholder strong {
  font-size: 22px;
}

.video-cover-placeholder span {
  color: rgba(255,255,255,.72);
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
}

.play-btn:after {
  content: "";
  position: absolute;
  left: 30px;
  top: 22px;
  border-left: 23px solid #1d1d1f;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.video-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.video-caption .btn {
  background: rgba(255,255,255,.94);
}

.detail-blocks {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: #fbfbfd;
}

.interior-color-section {
  margin-top: 14px;
}

.interior-color-blocks {
  background: #fff;
}

.interior-color-blocks .detail-image img {
  max-height: 380px;
  object-fit: contain;
}

.detail-image,
.detail-text {
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fff;
}

.detail-image {
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}

.detail-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.detail-image-caption {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid #eef0f4;
  color: var(--muted-color);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.detail-text {
  padding: 22px;
}

.detail-text h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.detail-text p {
  margin: 0;
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.65;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 52px);
}

.admin-side {
  background: var(--sidebar-color);
  border-right: 1px solid var(--line-color);
  padding: 24px 18px;
}

.admin-main {
  padding: 28px;
}

.admin-nav-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: var(--card-radius);
  background: transparent;
  color: #424245;
  padding: 0 12px;
  margin-bottom: 7px;
  text-align: left;
  font-size: 14px;
}

.admin-nav-item.active {
  background: var(--nav-active-color);
  color: #fff;
  font-weight: 700;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-mobile-tabs {
  display: none;
}

.admin-title h1 {
  margin: 0;
  font-size: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeF2;
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted-color);
  font-size: 12px;
  font-weight: 650;
}

.action-cell {
  min-width: 360px;
}

.action-cell .btn {
  height: 32px;
  margin: 2px;
  padding: 0 10px;
  font-size: 12px;
}

.traffic-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 14px;
  margin-bottom: 18px;
}

.traffic-bars {
  display: grid;
  gap: 11px;
}

.traffic-day {
  display: grid;
  grid-template-columns: 52px 1fr 40px;
  align-items: center;
  gap: 10px;
  color: var(--muted-color);
  font-size: 13px;
}

.traffic-day div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f5;
}

.traffic-day i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--button-color);
}

.traffic-day strong {
  color: var(--text-color);
  text-align: right;
}

.logo-preview {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fbfbfd;
  color: var(--muted-color);
  font-size: 12px;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.series-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 12px;
  align-items: end;
}

.logo-upload-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  align-items: end;
}

.catalog-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.catalog-admin {
  display: grid;
  gap: 16px;
}

.catalog-subnav {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.catalog-subtab {
  min-height: 46px;
  border: 1px solid #dfe5ec;
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--text-color);
  font-weight: 850;
  cursor: pointer;
}

.catalog-subtab.active {
  border-color: var(--button-color);
  background: linear-gradient(180deg, #f0f7ff, #fff);
  color: var(--button-color);
}

.admin-title.compact {
  margin: 0;
  padding: 0;
}

.catalog-page {
  display: grid;
  gap: 18px;
}

.interface-thumb {
  width: 72px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #f6f8fb;
  color: var(--muted-color);
}

.interface-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.pagination span {
  color: var(--muted-color);
  font-weight: 700;
}

.catalog-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.catalog-upload-btn {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.upload-hint {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid #e6e8ec;
  border-radius: var(--card-radius);
  background: #f8fafc;
  color: var(--muted-color);
  padding: 0 12px;
  font-size: 13px;
}

.brand-logo-edit {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-edit .logo-preview {
  flex: 0 0 46px;
}

.brand-logo-edit .btn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.catalog-table {
  margin-top: 16px;
}

.catalog-filter-panel {
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--card-radius);
  background: #f8fafc;
}

.catalog-filter-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(150px, 1fr)) 160px;
  gap: 10px;
  align-items: end;
}

.catalog-filter-grid .wide {
  min-width: 220px;
}

.catalog-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 14px;
}

.catalog-filter-actions .btn {
  flex: 1;
  justify-content: center;
}

.catalog-result-meta {
  margin-top: 8px;
  color: var(--muted-color);
  font-size: 13px;
  font-weight: 700;
}

.status-pills {
  min-width: 190px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #d8e7dc;
  background: #f2fbf5;
  color: #1f7a3a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.warn {
  border-color: #f0d7b5;
  background: #fff7ed;
  color: #a45612;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.home-admin-grid {
  display: grid;
  gap: 18px;
}

.home-config-grid,
.hot-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.poster-preview {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #111;
  margin: 4px 0 12px;
}

.poster-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.home-display-summary {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
}

.home-display-summary strong {
  color: #101828;
}

.login-poster-preview {
  width: min(360px, 100%);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hidden-file-input {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hot-cover-thumb {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fbfbfd;
  color: var(--muted-color);
  font-size: 12px;
}

.hot-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-publish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.catalog-publish-grid .wide {
  grid-column: span 3;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.editor-layout {
  max-width: 990px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px 14px 64px;
}

.editor-main {
  display: grid;
  gap: 18px;
}

.editor-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-steps .menu-row {
  width: auto;
  min-height: 34px;
  margin-bottom: 0;
  padding: 0 12px;
}

.editor-publish {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line-color);
  box-shadow: 0 -12px 32px rgba(0,0,0,.06);
}

.editor-publish .panel-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.upload-zone {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #b9bbc3;
  border-radius: var(--card-radius);
  background: #fbfbfd;
  text-align: center;
  color: var(--muted-color);
  padding: 18px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  height: 78px;
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #f5f5f7;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-upload-zone {
  min-height: 150px;
}

.image-editor-help {
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fbfbfd;
  padding: 16px;
  color: var(--muted-color);
  line-height: 1.6;
}

.image-editor-help strong {
  display: block;
  color: var(--text-color);
  margin-bottom: 6px;
}

.image-editor-help p {
  margin: 0 0 10px;
}

.mini-note {
  color: var(--link-color);
  font-weight: 700;
  font-size: 13px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.media-card {
  overflow: hidden;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fff;
}

.media-card-image {
  position: relative;
  height: 128px;
  background: #f5f5f7;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text-color);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.media-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}

.media-actions .btn {
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.block-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.block-item {
  display: grid;
  grid-template-columns: 92px 1fr 170px;
  gap: 12px;
  align-items: center;
  border: 1px solid #e8e8ed;
  border-radius: var(--card-radius);
  background: #fff;
  padding: 10px;
}

.block-thumb {
  width: 92px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #f5f5f7;
}

.block-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.block-actions .btn {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.video-upload-zone {
  min-height: 110px;
}

.upload-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: #edf0f5;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-color);
  transition: width .18s ease;
}

.video-editor-preview {
  margin-top: 12px;
}

.video-preview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  background: #fff;
}

.video-preview-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.video-preview-media video,
.video-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-preview-info {
  min-width: 0;
}

.video-preview-info p {
  word-break: break-all;
  margin: 6px 0 10px;
}

.editor-layout-modern {
  max-width: 1180px;
  gap: 14px;
  padding: 18px 16px 92px;
}

.editor-flow-panel {
  position: sticky;
  top: 56px;
  z-index: 18;
  padding: 18px 22px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.editor-flow-panel .panel-title {
  margin-bottom: 12px;
}

.editor-flow-panel .panel-title h2 {
  font-size: 22px;
}

.editor-steps {
  gap: 10px;
}

.editor-steps .menu-row {
  appearance: none;
  border: 1px solid #e6e8ee;
  background: #fff;
  color: #3f4654;
  cursor: pointer;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.editor-steps .menu-row:hover {
  border-color: rgba(239, 50, 20, .32);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.editor-steps .menu-row.active {
  background: #2f352f;
  border-color: #2f352f;
  color: #fff;
}

.editor-section {
  scroll-margin-top: 142px;
  padding: 22px;
}

.editor-section .panel-title {
  margin-bottom: 14px;
}

.editor-section .panel-title h2 {
  font-size: 24px;
}

.editor-section .input,
.editor-section .select {
  height: 42px;
}

.editor-section .textarea {
  min-height: 112px;
}

.editor-section #textBody {
  min-height: 84px;
}

.image-editor-grid {
  grid-template-columns: minmax(300px, .8fr) 1fr;
  align-items: stretch;
  gap: 12px;
}

.upload-zone {
  min-height: 96px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(239, 50, 20, .08);
  transform: translateY(-1px);
}

.image-upload-zone {
  min-height: 118px;
}

.image-editor-help {
  border-radius: 8px;
  padding: 14px;
}

.media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.media-card {
  border-radius: 8px;
}

.media-card-image {
  height: 116px;
}

.media-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.block-list {
  gap: 8px;
}

.block-item {
  grid-template-columns: 112px 1fr auto;
  border-radius: 8px;
}

.block-thumb {
  width: 112px;
  height: 70px;
  border-radius: 8px;
}

.editor-publish {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  width: min(1040px, calc(100vw - 32px));
  transform: translateX(-50%);
  grid-template-columns: minmax(170px, .9fr) repeat(4, minmax(130px, 1fr));
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}

.editor-publish-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.editor-publish-title strong {
  font-size: 16px;
}

@media (max-width: 1500px) {
  .catalog-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body {
    padding-bottom: 0;
  }

  .home-content,
  .home-detail-wrap,
  .detail-layout,
  .admin-layout,
  .editor-layout {
    display: block;
  }

  .detail-side,
  .admin-side,
  .home-content > .panel:first-child {
    display: none;
  }

  .mobile-picker {
    display: grid;
    position: sticky;
    top: 48px;
    z-index: 42;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(245,245,247,.9);
    backdrop-filter: blur(18px);
  }

  .picker {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d2d2d7;
    border-radius: var(--card-radius);
    background: #fff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 650;
    color: var(--text-color);
  }

  .top-nav {
    height: 48px;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .brand,
  .top-nav-actions,
  .nav-account,
  .top-return-home {
    position: static;
  }

  .brand {
    font-size: 16px;
    width: 156px;
    min-width: 156px;
    flex: 0 0 156px;
  }

  .top-nav-actions {
    width: auto;
    min-width: 0;
    margin-left: 0;
    flex: 0 0 auto;
    gap: 6px;
  }

  .top-interface-nav {
    max-width: 62vw;
    flex: 0 1 auto;
  }

  .top-interface-item {
    min-width: 74px;
    padding: 0 8px;
    font-size: 12px;
  }

  .top-interface-label {
    display: none;
  }

  .nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .top-return-home {
    height: 30px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .top-nav > span,
  .top-nav > .top-tab:not(:first-of-type),
  .top-nav > button.top-tab {
    display: none;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .home-detail-wrap {
    width: auto;
    padding: 24px 14px 0;
  }

  .home-detail-copy h1 {
    font-size: 34px;
  }

  .home-detail-copy p {
    font-size: 15px;
  }

  .home-feature-specs {
    grid-template-columns: 1fr;
  }

  .result-item {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .result-item img {
    width: 72px;
    height: 50px;
  }

  .result-link {
    display: none;
  }

  .home-content {
    width: auto;
    padding: 0;
  }

  .home-content.home-catalog-layout > .home-directory-panel {
    display: block;
    position: sticky;
    top: 48px;
    z-index: 32;
    height: auto;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--line-color);
    border-right: 0;
    border-radius: var(--card-radius);
    margin: 12px;
    padding: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
    backdrop-filter: blur(16px);
  }

  .home-directory-panel .panel-title {
    margin-bottom: 10px;
  }

  .home-directory-panel .panel-title h2 {
    font-size: 0;
  }

  .home-directory-panel .panel-title h2::before {
    content: "鎼滆溅鍨?;
    font-size: 22px;
  }

  .home-search-form {
    margin-bottom: 8px;
  }

  .home-search-wrap .input {
    height: 54px;
    border: 2px solid #1d1d1f;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
  }

  .home-search-clear {
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .home-search-status {
    margin: 0 2px 10px;
    font-size: 12px;
  }

  .home-search-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -2px 2px;
    padding: 0 2px 6px;
    scrollbar-width: none;
  }

  .home-search-suggestions::-webkit-scrollbar {
    display: none;
  }

  .home-search-suggestions button {
    min-height: 36px;
    flex: 0 0 auto;
    font-size: 13px;
  }

  .home-directory-tree {
    display: block;
    max-height: 44vh;
    overflow-y: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .brand-row,
  .series-child,
  .model-child {
    min-height: 46px;
    font-size: 14px;
  }

  .brand-row {
    margin-bottom: 8px;
  }

  .series-child {
    padding-left: 18px;
    margin-bottom: 6px;
  }

  .model-child {
    padding-left: 26px;
    margin-bottom: 6px;
  }

  body.home-searching .home-poster,
  body.home-searching .home-recent-panel {
    display: none;
  }

  body.home-searching .home-content.home-catalog-layout > .home-directory-panel {
    margin-bottom: 8px;
  }

  .home-right-panel {
    width: auto;
    margin: 0;
    padding: 0 14px 56px;
    gap: 14px;
  }

  .home-poster {
    min-height: 210px;
    aspect-ratio: 4 / 3;
  }

  .home-poster-copy {
    width: calc(100% - 36px);
    left: 18px;
    bottom: 18px;
  }

  .home-poster-copy h1 {
    font-size: 28px;
  }

  .home-poster-copy p {
    font-size: 14px;
  }

  .hot-model-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .hot-model-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 116px;
  }

  .hot-model-card img {
    width: 118px;
    height: 100%;
    min-height: 116px;
    aspect-ratio: auto;
  }

  .hot-model-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 10px 11px;
  }

  .hot-model-card strong {
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .model-badges {
    gap: 4px;
    margin-top: 7px;
  }

  .model-badges em {
    max-width: 68px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .home-recent-panel {
    padding: 12px;
  }

  .home-recent-head {
    margin-bottom: 10px;
  }

  .home-recent-head h2 {
    font-size: 17px;
  }

  .home-recent-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .home-recent-card {
    width: 238px;
    flex: 0 0 238px;
    scroll-snap-align: start;
  }

  .panel-pad {
    padding: 14px;
  }

  .panel-title {
    margin-bottom: 12px;
  }

  .panel-title h2 {
    font-size: 20px;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card img {
    height: 168px;
  }

  .detail-main-wrap,
  .admin-main {
    padding: 0 0 14px;
  }

  .admin-main {
    padding: 12px;
  }

  .admin-mobile-tabs {
    display: block;
    position: sticky;
    top: 48px;
    z-index: 35;
    margin: -12px -12px 14px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(245,245,247,.92);
    backdrop-filter: blur(18px);
  }

  .admin-title h1 {
    font-size: 26px;
  }

  .detail-main {
    max-width: none;
  }

  .detail-title {
    display: none;
  }

  .detail-title h1 {
    font-size: 28px;
  }

  .share-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .share-row .primary {
    grid-column: span 2;
  }

  .hero-carousel,
  .detail-hero-full {
    height: auto;
    min-height: 0;
    max-height: none;
    width: 100vw;
    margin-inline: 50%;
    transform: translateX(-50%);
    aspect-ratio: 3 / 4;
    border-radius: 0;
    box-shadow: none;
    background: #0b0b0c;
  }

  .hero-carousel.portrait-media,
  .detail-hero-full.portrait-media {
    width: 100vw;
  }

  .detail-hero-full.landscape-media > img,
  .hero-carousel > img,
  .detail-hero-full > img {
    object-fit: contain;
  }

  .hero-carousel:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.62));
    pointer-events: none;
  }

  .mobile-hero-info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 64px;
    z-index: 3;
    display: block;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
    pointer-events: none;
  }

  .mobile-hero-info span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-hero-info h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.08;
  }

  .mobile-hero-info p {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    line-height: 1.45;
  }

  .image-lightbox {
    padding: 0;
    background: #000;
  }

  .image-lightbox-close {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 12px;
  }

  .image-lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .image-lightbox-prev {
    left: 10px;
  }

  .image-lightbox-next {
    right: 10px;
  }

  .arrow {
    display: none;
  }

  .carousel-thumbs {
    left: 14px;
    right: 14px;
    bottom: 12px;
    gap: 6px;
  }

  .carousel-thumbs button {
    height: 36px;
    border-radius: 6px;
  }

  .detail-section {
    margin: 12px;
    border-radius: 10px;
  }

  .detail-action-strip {
    justify-content: flex-start;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
  }

  .detail-action-strip .btn {
    height: 32px;
    min-width: 78px;
    padding: 0 10px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .section-head {
    min-height: 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .spec {
    min-height: 58px;
    padding: 8px;
  }

  .spec strong {
    font-size: clamp(14px, 3.7vw, 16px);
    overflow-wrap: anywhere;
  }

  .video-box {
    height: auto;
  }

  .video-box.portrait-media {
    width: min(100%, 360px);
  }

  .detail-image img {
    min-height: 0;
  }

  .detail-blocks {
    gap: 10px;
    padding: 10px;
    background: #fff;
  }

  .interior-color-section {
    margin-top: 10px;
  }

  .interior-color-blocks .detail-image img {
    max-height: 260px;
  }

  .detail-image,
  .detail-text {
    border-radius: 6px;
  }

  .detail-text {
    padding: 16px;
  }

  .mobile-catalog-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
  }

  .mobile-catalog-drawer.open {
    display: block;
  }

  .mobile-catalog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.38);
  }

  .mobile-catalog-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78vh, 680px);
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    background: #fff;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -20px 60px rgba(0,0,0,.2);
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-drawer-head strong,
  .mobile-drawer-head span {
    display: block;
  }

  .mobile-drawer-head strong {
    font-size: 20px;
  }

  .mobile-drawer-head span {
    color: var(--muted-color);
    font-size: 12px;
    margin-top: 3px;
  }

  .mobile-catalog-panel .home-search-status {
    margin-bottom: 10px;
  }

  .mobile-catalog-panel .home-directory-tree {
    max-height: min(40vh, 320px);
  }

  .mobile-drawer-close {
    width: 40px;
    height: 40px;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    background: #fff;
    color: var(--text-color);
    font-size: 26px;
    line-height: 1;
  }

  .drawer-open,
  .drawer-open body {
    overflow: hidden;
  }

  .stats-grid,
  .two-col,
  .thumb-grid,
  .traffic-grid {
    grid-template-columns: 1fr;
  }

  .image-editor-grid,
  .media-grid,
  .block-item,
  .series-form-grid,
  .logo-upload-row,
  .home-config-grid,
  .hot-admin-form,
  .catalog-form-grid,
  .catalog-stack,
  .catalog-publish-grid,
  .catalog-filter-grid,
  .editor-publish {
    grid-template-columns: 1fr;
  }

  .catalog-filter-actions {
    padding-bottom: 0;
  }

  .catalog-publish-grid .wide {
    grid-column: span 1;
  }

  .catalog-subnav {
    grid-template-columns: 1fr 1fr;
  }

  .editor-publish .panel-title {
    display: none;
  }
}

.admin-layout {
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  background: linear-gradient(180deg, #f6f8fb 0%, #f2f4f7 100%);
}

.admin-side {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-right: 1px solid rgba(15, 23, 42, .06);
  padding: 22px 16px;
}

.admin-main {
  padding: 24px;
}

.admin-nav-item {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #344054;
  padding: 0 14px;
  margin-bottom: 8px;
  font-weight: 700;
  transition: all .18s ease;
}

.admin-nav-item:hover {
  border-color: #e4e7ec;
  background: #fff;
}

.admin-nav-item.active {
  border-color: rgba(255, 90, 31, .2);
  background: rgba(255, 90, 31, .08);
  color: #c2410c;
  box-shadow: 0 10px 20px rgba(255, 90, 31, .08);
}

.admin-title {
  margin-bottom: 20px;
}

.admin-title h1 {
  font-size: 34px;
  letter-spacing: -.02em;
}

.admin-permission-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .48);
}

.admin-permission-dialog {
  width: min(860px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.admin-permission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #edf0f4;
}

.admin-permission-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.admin-permission-head p,
.admin-permission-toolbar .muted {
  margin: 0;
  color: #667085;
}

.admin-permission-close {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.admin-permission-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid #edf0f4;
}

.admin-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px 24px;
}

.admin-permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  font-weight: 650;
}

.admin-permission-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.admin-permission-item input {
  width: 18px;
  height: 18px;
  accent-color: #0b63ce;
}

.admin-permission-item input:disabled + span {
  color: #667085;
}

.admin-permission-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid #edf0f4;
}

@media (max-width: 720px) {
  .admin-permission-backdrop {
    padding: 12px;
    align-items: end;
  }

  .admin-permission-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 12px 12px 0 0;
  }

  .admin-permission-head,
  .admin-permission-toolbar,
  .admin-permission-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-permission-toolbar {
    flex-wrap: wrap;
  }

  .admin-permission-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.stats-grid {
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
  padding: 18px 18px 16px;
}

.stat-card strong {
  font-size: 30px;
}

.table {
  background: #fff;
}

.table th,
.table td {
  vertical-align: top;
}

.table th {
  background: #f8fafc;
  white-space: nowrap;
}

.table tr:hover td {
  background: #fcfcfd;
}

.compact-row {
  align-items: flex-start;
}

.site-settings-grid {
  display: grid;
  gap: 18px;
}

.notice-card {
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  padding: 16px;
  margin-bottom: 18px;
}

.notice-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.notice-card span,
.config-inline-note {
  color: var(--muted-color);
  line-height: 1.6;
}

.config-inline-note {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 12px;
}

.traffic-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.traffic-stat-card {
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
  padding: 18px;
}

.traffic-stat-card.emphasis {
  background: linear-gradient(180deg, #ffefe8 0%, #fff7f3 100%);
  border-color: rgba(255, 90, 31, .18);
}

.traffic-stat-card span,
.traffic-stat-card small {
  display: block;
  color: var(--muted-color);
}

.traffic-stat-card span {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.traffic-stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.1;
}

.traffic-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.traffic-panel-main {
  min-height: 420px;
}

.traffic-side-stack {
  display: grid;
  gap: 18px;
}

.traffic-trend-bars {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.traffic-trend-item {
  min-width: 0;
}

.traffic-trend-item.today .traffic-trend-bar {
  background: linear-gradient(180deg, #ff8a5c 0%, #ff5a1f 100%);
}

.traffic-trend-bar-wrap {
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 10px;
}

.traffic-trend-value {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.traffic-trend-bar {
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #bfd5ff 0%, #4b83ff 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.26);
}

.traffic-trend-item strong {
  display: block;
  margin-top: 10px;
  color: var(--muted-color);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.traffic-trend-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.traffic-trend-summary span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.traffic-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.traffic-mini-card {
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.traffic-mini-card strong,
.traffic-mini-card span,
.traffic-mini-card em {
  display: block;
}

.traffic-mini-card strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.traffic-mini-card span {
  font-size: 24px;
  font-weight: 800;
}

.traffic-mini-card em {
  margin-top: 4px;
  color: var(--muted-color);
  font-style: normal;
}

.traffic-rank-list {
  display: grid;
  gap: 10px;
}

.traffic-rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.traffic-rank-row-action {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.traffic-rank-row .btn {
  justify-self: end;
  min-width: 88px;
  white-space: nowrap;
}

.traffic-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .36);
  padding: 24px;
}

.traffic-modal {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
  padding: 18px 18px 14px;
}

.traffic-modal-head {
  margin-bottom: 14px;
}

.traffic-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.traffic-rank-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f4f7;
  color: #344054;
  font-weight: 800;
}

.traffic-rank-copy {
  min-width: 0;
}

.traffic-rank-copy strong,
.traffic-rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-rank-copy strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.traffic-rank-copy small {
  color: var(--muted-color);
  font-size: 12px;
}

.traffic-rank-row b {
  color: #101828;
  font-size: 14px;
}

.traffic-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 160px minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.traffic-filter-summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.traffic-table td strong {
  display: block;
  margin-bottom: 4px;
}

.traffic-shell {
  display: grid;
  gap: 18px;
}

.traffic-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.traffic-subnav-item {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}

.traffic-subnav-item.active {
  border-color: #b7ccff;
  background: #f6f9ff;
  color: #1d4ed8;
}

.traffic-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.traffic-kpi-card {
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  padding: 18px 20px;
}

.traffic-kpi-card.focus {
  border-color: #cfdcff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .05);
}

.traffic-kpi-card span,
.traffic-kpi-card strong,
.traffic-kpi-card small {
  display: block;
}

.traffic-kpi-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.traffic-kpi-card strong {
  color: #101828;
  font-size: 32px;
  line-height: 1.05;
  margin-bottom: 6px;
}

.traffic-kpi-card small {
  color: #98a2b3;
  font-size: 12px;
}

.traffic-health-strip {
  margin-bottom: 18px;
}

.traffic-health-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.traffic-health-item,
.traffic-health-service {
  border: 1px solid #edf1f5;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
}

.traffic-health-item span,
.traffic-health-item strong,
.traffic-health-item small {
  display: block;
}

.traffic-health-item span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.traffic-health-item strong {
  color: #101828;
  font-size: 18px;
  margin-top: 8px;
}

.traffic-health-item small {
  color: #98a2b3;
  font-size: 12px;
  margin-top: 4px;
}

.traffic-health-meter {
  height: 8px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.traffic-health-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b8def 0%, #3b82f6 100%);
}

.traffic-health-service {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.traffic-token {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.traffic-token b {
  color: #98a2b3;
}

.traffic-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.traffic-trend-panel {
  margin-bottom: 18px;
}

.traffic-trend-head {
  align-items: flex-start;
  gap: 16px;
}

.traffic-range-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
}

.traffic-range-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 12px;
}

.traffic-range-tab.active {
  background: #101828;
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
}

.traffic-trend-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}

.traffic-trend-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
}

.traffic-trend-metrics b {
  color: #101828;
  font-size: 16px;
}

.traffic-line-wrap {
  width: 100%;
  overflow: hidden;
}

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

.traffic-axis {
  stroke: #d0d5dd;
  stroke-width: 1;
}

.traffic-grid-line {
  stroke: #edf1f7;
  stroke-width: 1;
}

.traffic-line-path {
  fill: none;
  stroke: #2f6bff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.traffic-line-dot {
  fill: #fff;
  stroke: #2f6bff;
  stroke-width: 3;
}

.traffic-line-labels {
  display: grid;
  grid-template-columns: repeat(var(--traffic-label-count, 24), minmax(0, 1fr));
  gap: 2px;
  color: #98a2b3;
  font-size: 11px;
  margin-top: -2px;
}

.traffic-line-labels span {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.traffic-bar-trend {
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(var(--traffic-bar-count, 24), minmax(34px, 1fr));
  gap: 10px;
  align-items: end;
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.traffic-bar-item {
  min-width: 34px;
  display: grid;
  grid-template-rows: 22px 230px 20px 18px;
  align-items: end;
  justify-items: center;
}

.traffic-bar-item small {
  align-self: start;
  color: #7b8bb3;
  font-size: 12px;
  white-space: nowrap;
}

.traffic-bar-track {
  height: 220px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.traffic-bar-track i {
  width: 20px;
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #8fb2ff 0%, #4f7dff 100%);
  box-shadow: 0 10px 18px rgba(79, 125, 255, .18);
}

.traffic-bar-item strong {
  color: #101828;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.traffic-bar-item span {
  color: #7b8bb3;
  font-size: 11px;
  white-space: nowrap;
}

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

.traffic-hour-panel {
  display: none;
}

.traffic-bottom-grid {
  align-items: start;
}

.traffic-hour-chart {
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.traffic-hour-bar {
  min-width: 0;
}

.traffic-hour-bar small,
.traffic-hour-bar strong,
.traffic-hour-bar span {
  display: block;
  text-align: center;
}

.traffic-hour-bar small,
.traffic-hour-bar span {
  color: #98a2b3;
  font-size: 11px;
}

.traffic-hour-bar strong {
  color: #101828;
  font-size: 12px;
  margin-top: 8px;
}

.traffic-hour-track {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.traffic-hour-track i {
  width: 20px;
  min-height: 12px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #8fb2ff 0%, #4b83ff 100%);
}

.traffic-table.compact td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.traffic-device-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.traffic-device-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.traffic-device-row span,
.traffic-device-row small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.traffic-device-row strong {
  color: #101828;
  font-size: 13px;
}

.traffic-device-track {
  height: 8px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}

.traffic-device-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9bb8ff 0%, #4b83ff 100%);
}

.panel-title.spaced {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .editor-layout-modern {
    padding: 12px 10px 112px;
  }

  .editor-flow-panel {
    top: 0;
    padding: 14px;
  }

  .editor-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-steps .menu-row {
    min-height: 38px;
    justify-content: center;
    text-align: center;
  }

  .editor-section {
    padding: 16px;
    scroll-margin-top: 182px;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .block-item {
    grid-template-columns: 88px 1fr;
  }

  .block-thumb {
    width: 88px;
    height: 64px;
  }

  .block-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .block-actions .btn {
    flex: 1 1 0;
  }

  .editor-publish {
    width: calc(100vw - 20px);
    bottom: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-publish-title {
    display: none;
  }

  .video-preview-card {
    grid-template-columns: 1fr;
  }
}

.traffic-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.traffic-status.active {
  background: #ecfdf3;
  color: #027a48;
}

.traffic-status.blocked {
  background: #fef3f2;
  color: #d92d20;
}

.traffic-status.allow {
  background: #eff8ff;
  color: #175cd3;
}

.traffic-status.idle {
  background: #f2f4f7;
  color: #667085;
}

.traffic-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.traffic-rule-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 160px minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.traffic-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.traffic-ops-card {
  border: 1px solid #edf1f5;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.traffic-ops-card span,
.traffic-ops-card strong {
  display: block;
}

.traffic-ops-card span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.traffic-ops-card strong {
  color: #101828;
  font-size: 24px;
}

@media (max-width: 1400px) {
  .traffic-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .traffic-health-row,
  .traffic-dashboard-grid,
  .traffic-rule-form {
    grid-template-columns: 1fr;
  }

  .traffic-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .traffic-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .traffic-kpi-grid,
  .traffic-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-filter-bar {
    grid-template-columns: 1fr;
  }
}
.image-tool-page {
  display: grid;
  gap: 18px;
}

.image-tool-intro {
  display: grid;
  gap: 14px;
}

.image-tool-search {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(160px, .6fr) minmax(120px, .35fr) auto;
  gap: 12px;
  align-items: end;
}

.image-tool-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.image-tool-list {
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.image-tool-list-grid {
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.image-tool-card {
  width: 100%;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 8px;
  color: var(--text-color);
  text-align: left;
}

.image-tool-card.active {
  border-color: var(--button-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--button-color) 16%, transparent);
}

.image-tool-card img {
  grid-row: 1 / 3;
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f7;
}

.image-tool-card strong,
.image-tool-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-tool-card strong {
  font-size: 14px;
}

.image-tool-card span {
  color: var(--muted-color);
  font-size: 12px;
}

.image-tool-editor {
  min-width: 0;
}

.image-tool-stage {
  width: 100%;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #111;
  text-align: center;
  padding: 12px;
}

.image-tool-canvas-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  cursor: crosshair;
  user-select: none;
}

.image-tool-canvas-wrap img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  display: block;
}

.image-tool-candidates {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.image-tool-candidate {
  position: absolute;
  border: 2px dashed rgba(255, 90, 31, .92);
  background: rgba(255, 90, 31, .12);
  pointer-events: auto;
  cursor: pointer;
  transition: all .15s ease;
}

.image-tool-candidate span {
  position: absolute;
  left: -2px;
  top: -24px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff5a1f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.image-tool-candidate.active {
  border-style: solid;
  border-color: #ff3b30;
  background: rgba(255, 59, 48, .16);
}

.image-tool-region {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height: 12%;
  border: 2px solid #ff3b30;
  background: rgba(255, 59, 48, .18);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .18);
  cursor: move;
  pointer-events: auto;
  touch-action: none;
  z-index: 3;
}

.image-tool-region::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #fff;
}

.image-tool-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.image-tool-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-color);
  font-size: 14px;
}

.image-tool-locate-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.image-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.image-tool-preview-box {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.image-tool-preview-box img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line-color);
  border-radius: var(--card-radius);
  background: #111;
}

@media (max-width: 900px) {
  .image-tool-search,
  .image-tool-workspace,
  .image-tool-controls,
  .image-tool-locate-row {
    grid-template-columns: 1fr;
  }

  .image-tool-list {
    position: static;
    max-height: none;
  }

  .image-tool-stage {
    max-height: none;
  }

  .image-tool-canvas-wrap img {
    max-height: none;
  }
}

/* 2026-06-03 final public UI overrides */
body.home-page,
body.detail-page {
  --ui-ink: #111827;
  --ui-text: #1f2937;
  --ui-muted: #667085;
  --ui-line: #dde3ea;
  --ui-soft-line: #edf1f5;
  --ui-panel: rgba(255, 255, 255, .92);
  --ui-surface: #f5f7fa;
  --ui-accent: #0f766e;
  --ui-action: #c2410c;
  --ui-shadow: 0 18px 48px rgba(17, 24, 39, .08);
  --card-radius: 8px;
  background: linear-gradient(180deg, #f3f5f8 0%, #ffffff 48%, #f5f7fa 100%);
  color: var(--ui-text);
}

body.home-page .top-nav,
body.detail-page .top-nav {
  height: 64px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 28px rgba(17, 24, 39, .06);
  backdrop-filter: blur(18px);
}

body.home-page .brand,
body.detail-page .brand {
  width: 280px;
  min-width: 240px;
  color: var(--ui-ink);
  font-size: 20px;
  font-weight: 850;
}

body.home-page .top-nav-actions,
body.detail-page .top-nav-actions {
  width: auto;
  min-width: 0;
  margin-left: 28px;
  flex: 1;
}

body.home-page .top-interface-nav,
body.detail-page .top-interface-nav {
  height: 42px;
  max-width: min(620px, 52vw);
  border-color: var(--ui-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}

body.home-page .top-interface-label,
body.detail-page .top-interface-label {
  color: var(--ui-muted);
  font-weight: 760;
}

body.home-page .top-interface-item,
body.detail-page .top-interface-item {
  height: 32px;
  min-width: 108px;
  border-radius: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 820;
}

body.home-page .top-interface-item.active,
body.detail-page .top-interface-item.active {
  background: var(--ui-ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .16);
}

body.home-page .nav-account,
body.detail-page .nav-account {
  right: 40px;
}

body.home-page .btn,
body.detail-page .btn,
.auth-page .btn {
  border-color: #d6dde6;
  border-radius: 8px;
  background: #fff;
  color: var(--ui-ink, #111827);
  font-weight: 760;
}

body.home-page .btn.primary,
body.detail-page .btn.primary,
.auth-page .btn.primary {
  border-color: #c2410c;
  background: #c2410c;
  color: #fff;
}

body.home-page .home-content,
body.detail-page .detail-layout {
  grid-template-columns: 348px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

body.detail-page .detail-layout {
  background: #eef1f5;
}

body.home-page .home-directory-panel,
body.detail-page .detail-side {
  width: 348px;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 34px 28px 28px 34px;
  border-right: 1px solid rgba(17, 24, 39, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92)), #fff;
  box-shadow: none;
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

body.home-page .home-directory-panel::-webkit-scrollbar,
body.detail-page .detail-side::-webkit-scrollbar,
body.home-page .home-directory-tree::-webkit-scrollbar,
body.detail-page .home-directory-tree::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.home-page .home-directory-tree,
body.detail-page .home-directory-tree {
  scrollbar-width: none;
}

.home-side-kicker {
  margin-bottom: 10px;
  color: var(--ui-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.home-page .panel-title,
body.detail-page .panel-title {
  align-items: flex-end;
  margin-bottom: 18px;
}

body.home-page .panel-title h2,
body.detail-page .panel-title h2,
body.detail-page .detail-side .panel-title h2,
body.home-page .home-directory-panel .panel-title h2 {
  color: var(--ui-ink);
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

body.home-page .panel-title .muted,
body.detail-page .panel-title .muted {
  color: var(--ui-muted);
  white-space: nowrap;
}

body.home-page .home-search-wrap .input,
body.detail-page .home-search-wrap .input {
  height: 52px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: var(--ui-ink);
  font-weight: 760;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .07);
}

body.home-page .home-search-wrap .input:focus,
body.detail-page .home-search-wrap .input:focus {
  outline: 3px solid rgba(15, 118, 110, .16);
  border-color: var(--ui-accent);
}

body.home-page .home-search-status,
body.detail-page .home-search-status {
  color: var(--ui-muted);
  font-size: 13px;
}

body.home-page .home-side-stats,
body.detail-page .home-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

body.home-page .home-side-stats span,
body.detail-page .home-side-stats span {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ui-muted);
  padding: 10px 12px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

body.home-page .home-side-stats strong,
body.detail-page .home-side-stats strong {
  color: var(--ui-ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

body.home-page .home-directory-tree,
body.detail-page .detail-side .home-directory-tree {
  max-height: calc(100vh - 318px);
  padding-right: 6px;
}

body.home-page .brand-row,
body.detail-page .brand-row,
body.home-page .series-child,
body.detail-page .series-child,
body.home-page .model-child,
body.detail-page .model-child {
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ui-ink);
  box-shadow: none;
}

body.home-page .brand-row,
body.detail-page .brand-row {
  min-height: 42px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 860;
}

body.home-page .series-child,
body.detail-page .series-child {
  min-height: 38px;
  margin-left: 14px;
  padding: 0 10px 0 14px;
  background: #fff;
  color: #344054;
}

body.home-page .model-child,
body.detail-page .model-child {
  min-height: 38px;
  margin-left: 28px;
  padding: 0 12px;
  background: #fffaf3;
  color: #805a23;
}

body.home-page .brand-row.active,
body.detail-page .brand-row.active,
body.home-page .series-child.active,
body.detail-page .series-child.active {
  border-color: var(--ui-line);
  background: #f8fafc;
  color: var(--ui-ink);
  box-shadow: none;
}

body.home-page .model-child.active,
body.detail-page .model-child.active {
  border-color: #2f80ed;
  background: #e8f2ff;
  color: #0f4c81;
  font-weight: 900;
  box-shadow: inset 3px 0 0 #2f80ed, 0 8px 20px rgba(47, 128, 237, .12);
}

body.home-page .brand-row:hover,
body.detail-page .brand-row:hover,
body.home-page .series-child:hover,
body.detail-page .series-child:hover,
body.home-page .model-child:hover,
body.detail-page .model-child:hover {
  transform: translateY(-1px);
  border-color: #c8d2df;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .07);
}

body.home-page .brand-logo,
body.detail-page .brand-logo {
  border-color: #e5e7eb;
  background: #fff;
}

body.home-page .home-right-panel {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 64px;
  gap: 20px;
}

body.detail-page .detail-main-wrap {
  min-width: 0;
  padding: 34px 36px 72px;
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(246,247,249,.96)), #f6f7f9;
}

body.detail-page .detail-main {
  max-width: 1160px;
}

body.home-page .home-poster,
body.detail-page .detail-hero-full {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ui-shadow);
}

body.home-page .home-poster {
  min-height: 424px;
  aspect-ratio: 16 / 6.2;
  border: 0;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, .18);
}

body.home-page .home-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 20, .84) 0%, rgba(5, 10, 20, .55) 42%, rgba(5, 10, 20, .06) 100%), linear-gradient(180deg, rgba(5, 10, 20, .08), rgba(5, 10, 20, .36));
}

body.home-page .home-poster-copy {
  width: min(620px, 74%);
  left: clamp(26px, 4vw, 56px);
  bottom: clamp(28px, 4vw, 54px);
}

body.home-page .home-poster-copy span,
body.detail-page .detail-hero-info > span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 760;
}

body.home-page .home-poster-copy span {
  min-height: 30px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .86);
  padding: 0 12px;
}

body.home-page .home-poster-copy h1 {
  max-width: 12em;
  margin: 0 0 10px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  text-wrap: balance;
}

body.home-page .home-poster-copy p {
  max-width: 34em;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.55;
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 128px));
  gap: 10px;
  margin-top: 24px;
}

.home-hero-stats span {
  min-height: 72px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  padding: 12px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.home-hero-stats strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

body.detail-page .detail-hero-full {
  width: 100%;
  min-height: 480px;
  margin-inline: 0;
  transform: none;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.detail-page .detail-hero-full > img {
  z-index: 0;
}

body.detail-page .detail-hero-full.landscape-media > img {
  object-fit: cover;
}

body.detail-page .detail-hero-full::after {
  display: none;
}

body.detail-page .detail-hero-info {
  width: min(360px, 48%);
  position: absolute;
  left: clamp(26px, 4vw, 56px);
  bottom: clamp(34px, 4.4vw, 62px);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--ui-ink);
  box-shadow: 0 16px 36px rgba(17, 24, 39, .12);
  padding: 10px 12px;
  backdrop-filter: blur(14px);
}

body.detail-page .detail-hero-info > span {
  min-height: 24px;
  margin-bottom: 7px;
  border: 1px solid #d6dde6;
  background: #f8fafc;
  color: var(--ui-accent);
  padding: 0 9px;
  font-size: 11px;
}

body.detail-page .detail-hero-info h1 {
  margin: 0 0 6px;
  color: var(--ui-ink);
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.04;
  font-weight: 900;
  text-wrap: balance;
}

body.detail-page .detail-hero-info p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.4;
}

body.detail-page .detail-hero-chips {
  display: none;
}

body.detail-page .carousel-thumbs {
  left: auto;
  right: 24px;
  bottom: 24px;
  width: min(360px, 36%);
  z-index: 3;
}

body.detail-page .carousel-thumbs button {
  height: 64px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .72);
}

body.home-page .panel,
body.home-page .home-recent-panel,
body.detail-page .detail-section {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 8px;
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow);
}

body.home-page .panel-title h2,
body.detail-page .section-head span:first-child {
  color: var(--ui-ink);
  font-weight: 900;
}

body.home-page .hot-model-card,
body.home-page .home-recent-card,
body.detail-page .spec,
body.detail-page .detail-image,
body.detail-page .detail-text {
  border: 1px solid var(--ui-soft-line);
  border-radius: 8px;
  background: #fff;
}

body.home-page .hot-model-card:hover,
body.home-page .home-recent-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 42px rgba(17, 24, 39, .12);
}

body.detail-page .detail-action-strip {
  position: sticky;
  top: 64px;
  z-index: 20;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--ui-soft-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

body.detail-page .detail-action-strip .btn {
  height: 38px;
  border-radius: 8px;
}

body.detail-page .section-head {
  min-height: 50px;
  padding: 0 18px;
  color: var(--ui-ink);
  font-size: 16px;
}

body.detail-page .section-head span:last-child {
  color: var(--ui-muted);
}

body.detail-page .spec-grid,
body.detail-page .detail-blocks {
  background: #fff;
}

body.detail-page .spec-grid {
  padding: 18px;
}

body.detail-page .spec {
  min-height: 68px;
  padding: 12px;
  background: #f8fafc;
}

body.detail-page .spec label {
  color: var(--ui-muted);
  font-weight: 760;
}

body.detail-page .spec strong {
  color: var(--ui-ink);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.detail-page .video-box {
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #273142);
}

body.detail-page .detail-text h3 {
  color: var(--ui-ink);
  font-weight: 900;
}

body.detail-page .detail-text p {
  color: #475467;
}

body.home-page .site-footer,
body.detail-page .site-footer,
.auth-page .site-footer {
  border-top: 1px solid rgba(17, 24, 39, .08);
  background: #fff;
}

.mobile-detail-catalog {
  display: none;
}

.detail-nav-search,
.home-nav-search {
  display: none;
}

@media (max-width: 1180px) {
  body.home-page .home-content,
  body.detail-page .detail-layout {
    grid-template-columns: 312px minmax(0, 1fr);
  }

  body.home-page .home-directory-panel,
  body.detail-page .detail-side {
    width: 312px;
    padding-left: 24px;
    padding-right: 20px;
  }

  body.home-page .hot-model-grid {
    --hot-columns: 4 !important;
  }
}

@media (max-width: 860px) {
  body.home-page .top-nav,
  body.detail-page .top-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    height: auto;
    min-height: 0;
    padding: 6px 12px 8px;
    overflow: visible;
  }

  body.home-page .brand,
  body.detail-page .brand {
    order: 0;
    grid-column: 1;
    width: auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  body.home-page .nav-account,
  body.detail-page .nav-account {
    order: 0;
    grid-column: 2;
    width: auto;
    padding-bottom: 0;
    border-bottom: 0;
    justify-self: end;
    justify-content: flex-end;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  body.home-page .nav-account span,
  body.detail-page .nav-account span {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page .nav-account .btn,
  body.detail-page .nav-account .btn {
    height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }

  body.home-page .top-nav-actions,
  body.detail-page .top-nav-actions {
    order: 1;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  body.home-page .top-nav-actions,
  body.detail-page .top-nav-actions {
    display: grid;
    grid-template-columns: minmax(112px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 8px;
  }

  body.home-page .home-nav-search,
  body.detail-page .detail-nav-search {
    display: block;
    min-width: 0;
    margin: 0;
  }

  body.home-page .home-nav-search .home-search-wrap .input,
  body.detail-page .detail-nav-search .home-search-wrap .input {
    height: 34px;
    border-width: 1px;
    border-color: var(--ui-accent);
    border-radius: 8px;
    font-size: 12px;
    padding: 0 34px 0 10px;
  }

  body.detail-page .detail-nav-search .home-search-clear {
    right: 6px;
    width: 24px;
    height: 24px;
  }

  body.home-page .top-interface-nav,
  body.detail-page .top-interface-nav {
    width: 100%;
    max-width: 100%;
    height: 34px;
    overflow-x: auto;
    padding: 3px;
  }

  body.home-page .top-interface-label,
  body.detail-page .top-interface-label {
    display: none;
  }

  body.home-page .top-interface-item,
  body.detail-page .top-interface-item {
    height: 28px;
    min-width: 74px;
    padding: 0 6px;
    font-size: 12px;
  }

  body.home-page .home-content,
  body.detail-page .detail-layout {
    display: block;
  }

  body.home-page .home-directory-panel {
    position: static;
    top: auto;
    z-index: auto;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(17, 24, 39, .1);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
    backdrop-filter: blur(16px);
  }

  body.home-page .home-directory-panel .home-side-kicker,
  body.home-page .home-directory-panel .home-side-stats {
    display: none;
  }

  body.home-page .home-directory-panel .panel-title {
    order: 1;
    margin: 0 0 8px;
  }

  body.home-page .home-directory-panel .panel-title h2 {
    font-size: 22px;
  }

  body.home-page .home-search-form {
    order: 0;
    position: sticky;
    top: 78px;
    z-index: 35;
    margin-bottom: 6px;
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
    padding: 8px;
  }

  body.home-page .home-search-wrap .input {
    height: 48px;
    border-width: 2px;
    border-color: var(--ui-accent);
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .12);
  }

  body.home-page .home-nav-search {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body.home-page .home-nav-search .home-search-wrap .input {
    height: 34px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: none;
    padding: 0 34px 0 10px;
  }

  body.home-page .home-nav-search .home-search-clear {
    right: 6px;
    width: 24px;
    height: 24px;
  }

  body.home-page .home-directory-panel > .home-search-form {
    display: none;
  }

  body.home-page .home-search-status {
    order: 2;
    margin-bottom: 8px;
  }

  body.home-page .home-directory-tree {
    order: 3;
    max-height: 46vh;
  }

  body.home-page .home-right-panel {
    width: calc(100% - 28px);
    padding: 18px 0 42px;
  }

  body.home-page .home-poster {
    min-height: 520px;
    aspect-ratio: auto;
  }

  body.home-page .home-poster-copy {
    width: calc(100% - 40px);
    left: 20px;
    bottom: 24px;
  }

  body.home-page .home-poster-copy h1 {
    font-size: 32px;
  }

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

  body.home-page .home-recent-list {
    grid-template-columns: 1fr;
  }

  body.home-page .hot-model-grid {
    --hot-columns: 2 !important;
  }

  body.detail-page {
    overflow-x: hidden;
  }

  body.detail-page .detail-side,
  body.detail-page .mobile-picker {
    display: none;
  }

  body.detail-page .mobile-detail-catalog {
    display: block;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(17, 24, 39, .1);
  }

  body.detail-page .mobile-detail-catalog .home-search-form {
    display: none;
  }

  body.detail-page .mobile-detail-catalog .home-search-wrap .input {
    height: 48px;
    border-width: 2px;
    border-color: var(--ui-accent);
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .12);
  }

  body.detail-page .mobile-detail-catalog .home-search-status,
  body.detail-page .mobile-detail-catalog .home-directory-tree {
    display: none;
  }

  body.detail-page .mobile-detail-catalog.searching .home-search-status,
  body.detail-page .mobile-detail-catalog.searching .home-directory-tree {
    display: block;
  }

  body.detail-page .mobile-detail-catalog .home-search-status {
    margin: 8px 14px;
  }

  body.detail-page .mobile-detail-catalog .home-directory-tree {
    max-height: 48vh;
    overflow: auto;
    padding: 0 14px 14px;
  }

  body.detail-page .mobile-detail-catalog .tree-series-list:not(.open),
  body.detail-page .mobile-detail-catalog .tree-models:not(.open) {
    display: none;
  }

  body.detail-page .detail-main-wrap {
    width: 100vw;
    margin: 0;
    padding: 0 0 36px;
  }

  body.detail-page .detail-main {
    width: 100vw;
    max-width: none;
    margin: 0;
  }

  body.detail-page .detail-hero-full {
    width: 100vw;
    min-height: 0;
    margin-inline: 0;
    transform: none;
    border-radius: 0;
  }

  body.detail-page .detail-hero-info {
    display: none;
  }

  body.detail-page .mobile-hero-info {
    display: block;
    z-index: 3;
  }

  body.detail-page .carousel-thumbs {
    width: auto;
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  body.detail-page .detail-section {
    width: 100vw;
    margin: 10px 0 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.detail-page .spec-section {
    margin-top: 0;
  }

  body.detail-page .detail-action-strip {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.detail-page .detail-action-strip .btn {
    width: 100%;
    min-width: 0;
  }

  body.detail-page .detail-action-strip,
  body.detail-page .section-head,
  body.detail-page .spec-grid,
  body.detail-page .detail-blocks {
    border-radius: 0;
  }
}

@media (max-width: 520px) {
  body.home-page .hot-model-grid {
    --hot-columns: 1 !important;
  }

  body.detail-page .carousel-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Auth pages */
.auth-page {
  min-height: 100svh;
  overflow: hidden;
  background: #080d14;
}

.auth-page .auth-shell {
  min-height: 100svh;
  height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 76px) 58px;
  background: linear-gradient(90deg, rgba(4, 8, 14, .78) 0%, rgba(4, 8, 14, .28) 48%, rgba(4, 8, 14, .68) 100%), linear-gradient(180deg, rgba(4, 8, 14, .04) 0%, rgba(4, 8, 14, .48) 58%, rgba(4, 8, 14, .8) 100%), var(--login-poster-url, url("/assets/login-poster-default.jpg")) center / cover no-repeat, #080d14;
}

.auth-brand-panel {
  max-width: min(900px, calc(100vw - 560px));
  position: absolute;
  left: clamp(72px, 8.8vw, 180px);
  top: clamp(72px, 11vh, 132px);
  margin: 0;
  color: #fff;
}

.auth-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  font-weight: 900;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
}

.auth-eyebrow,
.auth-card-kicker {
  margin: 0 0 12px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-brand-panel h1 {
  margin: 0;
  max-width: none;
  color: #fff;
  font-size: clamp(42px, 3.8vw, 64px);
  line-height: 1.02;
  font-weight: 950;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.auth-lead {
  max-width: 40em;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.auth-feature-grid span {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.auth-feature-grid strong {
  color: #fff;
  font-size: 17px;
}

.auth-feature-grid small {
  color: rgba(255, 255, 255, .68);
  line-height: 1.5;
}

.auth-page .auth-card {
  width: min(390px, 100%);
  grid-column: 2;
  justify-self: end;
  align-self: center;
  position: relative;
  overflow: hidden;
  transform: none;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
  padding: 34px;
  backdrop-filter: blur(22px);
}

.auth-page .auth-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #38bdf8, #c2410c);
}

.auth-card-kicker {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0f766e;
  padding: 0 9px;
  font-size: 11px;
}

.auth-page .auth-card h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 950;
}

.auth-page .auth-card p {
  margin: 0 0 22px;
  color: #667085;
}

.auth-page .form-field label {
  color: #475467;
  font-weight: 800;
}

.auth-page .auth-card .input {
  min-height: 50px;
  border-color: #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  box-shadow: inset 0 1px 1px rgba(17, 24, 39, .03);
}

.auth-page .auth-card .input:focus {
  outline: 3px solid rgba(194, 65, 12, .14);
  border-color: #c2410c;
}

.auth-page .auth-card .btn.primary {
  height: 50px;
  margin-top: 4px;
  border-color: #c2410c;
  border-radius: 8px;
  background: #c2410c;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(194, 65, 12, .22);
}

.auth-page .auth-card .btn.primary:hover {
  border-color: #9a3412;
  background: #9a3412;
}

.auth-register-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 20px -10px -8px !important;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

.auth-register-link a {
  color: #0066cc;
  font-weight: 900;
}

.auth-captcha-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-captcha-question {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.auth-captcha-row .input {
  min-width: 0;
}

.auth-captcha-row .btn {
  height: 42px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .auth-page .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    gap: 24px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .auth-brand-panel h1 {
    font-size: clamp(32px, 4.8vw, 46px);
  }

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

  .auth-feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-feature-grid span {
    min-height: 74px;
  }
}

@media (max-width: 900px) {
  .auth-page {
    overflow-y: auto;
  }

  .auth-page .auth-shell {
    height: auto;
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-items: end;
    align-content: center;
    gap: 24px;
    padding: 22px 16px 58px;
    background: linear-gradient(180deg, rgba(4, 8, 14, .5) 0%, rgba(4, 8, 14, .86) 100%), var(--login-poster-url, url("/assets/login-poster-default.jpg")) center / cover no-repeat, #080d14;
  }

  .auth-brand-panel {
    position: static;
    max-width: 100%;
  }

  .auth-brand-panel h1 {
    max-width: 100%;
    font-size: clamp(26px, 8vw, 36px);
    white-space: normal;
  }

  .auth-lead {
    margin-top: 14px;
    font-size: 15px;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .auth-feature-grid span {
    min-height: auto;
    padding: 12px;
  }

  .auth-page .auth-card {
    grid-column: auto;
    justify-self: stretch;
    transform: none;
  }

  .auth-captcha-row {
    grid-template-columns: 1fr auto;
  }

  .auth-captcha-question {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .auth-lead,
  .auth-feature-grid {
    display: none;
  }

  .auth-page .auth-card {
    width: 100%;
    padding: 26px 22px;
  }
}

@media (max-height: 720px) {
  .auth-page {
    overflow-y: auto;
  }

  .auth-page .auth-shell {
    height: auto;
    min-height: 100svh;
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .auth-feature-grid {
    display: none;
  }

  .auth-lead {
    margin-top: 10px;
    font-size: 15px;
  }

  .auth-page .auth-card {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

.auth-register-page .auth-card {
  padding-top: 26px;
  padding-bottom: 24px;
}

.auth-register-page .auth-card-kicker {
  margin-bottom: 6px;
}

.auth-register-page .auth-card h2 {
  font-size: 28px;
}

.auth-register-page .auth-card p {
  margin-bottom: 12px;
  line-height: 1.45;
}

.auth-register-page .form-field {
  margin-bottom: 9px;
}

.auth-register-page .form-field label {
  margin-bottom: 5px;
}

.auth-register-page .auth-card .input {
  min-height: 42px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.auth-register-page .auth-captcha-question,
.auth-register-page .auth-captcha-row .btn {
  min-height: 40px;
  height: 40px;
}

.auth-register-page .auth-card .btn.primary {
  height: 44px;
  margin-top: 2px;
}

.auth-register-page .auth-register-link {
  min-height: 38px;
  margin-top: 10px;
}

.auth-page .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 42px;
  justify-content: center;
  padding: 8px 16px;
  border-top: 1px solid rgba(17, 24, 39, .08);
  background: #fff;
  color: var(--muted-color);
  backdrop-filter: none;
}

.auth-page .site-footer a {
  color: var(--muted-color);
}
