:root {
  --bg: #eafaf6;
  --ink: #151515;
  --muted: #596864;
  --line: #cde6df;
  --panel: #ffffff;
  --blue: #1367ff;
  --green: #16a36a;
  --coral: #ff6f2c;
  --gold: #c8942c;
  --shadow: 0 24px 70px rgba(26, 71, 63, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(42, 166, 150, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 166, 150, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 50% -8%, #d8fff7 0%, #eafff9 26%, #edf8f4 62%, #f7fbf7 100%);
  background-size: 24px 24px, 24px 24px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.theme-clean {
  background: #f7f8fb;
  background-size: auto;
}
body.theme-clean .hero-panel {
  background:
    linear-gradient(115deg, rgba(18, 24, 38, 0.95), rgba(42, 56, 80, 0.88) 55%, rgba(19, 103, 255, 0.68)),
    url("/assets/img/hero-workspace.png") right center / cover no-repeat;
}
body.theme-warm {
  --bg: #fff6ee;
  --ink: #2b211c;
  --muted: #77635a;
  --line: #efd9cc;
  --panel: #fffdf9;
  --blue: #b06b42;
  --green: #8e8f50;
  --coral: #d97952;
  --gold: #d6a760;
  --shadow: 0 24px 70px rgba(132, 82, 45, 0.13);
  background:
    linear-gradient(rgba(214, 167, 96, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 167, 96, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 48% -10%, #fff2df 0%, #fff8ef 34%, #fffdf9 74%);
  background-size: 26px 26px, 26px 26px, auto;
}
body.theme-warm .site-header {
  background: rgba(255, 248, 239, 0.86);
}
body.theme-warm .brand-mark {
  background: #8b543c;
}
body.theme-warm .hero-panel {
  border-color: rgba(255,255,255,0.5);
  background:
    linear-gradient(115deg, rgba(63, 42, 34, 0.94), rgba(120, 78, 52, 0.86) 48%, rgba(217, 121, 82, 0.74)),
    url("/assets/img/hero-workspace.png") right center / cover no-repeat;
}
body.theme-warm .hero .eyebrow,
body.theme-warm .hero-steps b {
  color: #ffe0c8;
}
body.theme-warm .product-search,
body.theme-warm .category-grid,
body.theme-warm .info-grid article,
body.theme-warm .split-section,
body.theme-warm .cta-band,
body.theme-warm .tile,
body.theme-warm .card,
body.theme-warm details {
  background: rgba(255, 253, 249, 0.9);
  border-color: #efd9cc;
  box-shadow: 0 18px 45px rgba(132, 82, 45, 0.09);
}
body.theme-warm .category-tile {
  background: #fff8ef;
  border-color: #efd9cc;
}
body.theme-warm .category-tile span,
body.theme-warm .step-list b {
  background: #fbe7d8;
  color: #a35b3d;
}
body.theme-warm .site-footer {
  background: #f7eadc;
}
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  min-height: 42px;
  margin: 0 auto;
  padding: 8px 10px;
  background: rgba(234, 250, 246, 0.82);
  border: 0;
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 0;
  font-weight: 850;
  line-height: 1;
}
.brand-mark span { display: block; }
.brand-mark::after { content: "K"; font-size: 0.86rem; }
.brand-lines { display: grid; line-height: 1.1; }
.brand-lines strong { font-size: 0.72rem; }
.brand-lines span { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 0.68rem;
}
.nav-cta {
  color: white;
  background: var(--coral);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
}
.menu-toggle { display: none; }

.hero {
  padding: 28px 24px 42px;
}
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 470px;
  padding: 54px 64px 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(6, 21, 43, 0.94), rgba(22, 49, 82, 0.9) 44%, rgba(255, 111, 44, 0.82)),
    url("/assets/img/hero-workspace.png") right center / cover no-repeat;
  box-shadow: var(--shadow);
  color: white;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(2.05rem, 4vw, 3.5rem); line-height: 1.04; }
h2 { margin-bottom: 12px; font-size: clamp(1.55rem, 2.5vw, 2.45rem); line-height: 1.1; }
p { color: var(--muted); }
.hero p { max-width: 680px; color: rgba(255,255,255,0.82); font-size: 1.02rem; }
.hero .eyebrow { color: #ffd0bf; }
.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px -64px 0;
  background: rgba(255,255,255,0.18);
}
.hero-steps span {
  min-height: 86px;
  padding: 22px 64px;
  background: rgba(255,255,255,0.18);
  color: white;
  font-weight: 800;
}
.hero-steps b { display: block; color: #ffd4c4; margin-bottom: 4px; }

.product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 700px;
  margin: 22px 0 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
body.theme-warm .product-search {
  background: transparent;
  border: 0;
  box-shadow: none;
}
input, textarea, button {
  font: inherit;
}
.product-search input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  box-sizing: border-box;
}
button, .product-search button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--coral);
  font-weight: 850;
  cursor: pointer;
}
.product-search button {
  position: static;
  flex: none;
  min-width: 112px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(194, 83, 43, 0.22);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 750;
}
.hero-ad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  max-width: 760px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  color: #fff;
}
.hero-ad strong {
  grid-column: 1 / 2;
  font-size: 1rem;
}
.hero-ad span {
  grid-column: 1 / 2;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}
.hero-ad a {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  padding: 9px 14px;
  background: var(--coral);
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
}

.directory, .page-section, .content-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}
.split-section {
  width: min(1180px, calc(100% - 48px));
  margin: 48px auto;
}
.section-heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}
.tile-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.product-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-image {
  display: grid;
  height: 170px;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  background: #eee6da;
  border-radius: 8px;
  color: var(--blue);
  font-size: 3rem;
  font-weight: 900;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}
.product-card p {
  font-size: 0.92rem;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}
.product-footer a {
  color: var(--blue);
  font-weight: 850;
}
.result-meta {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}
.empty-state {
  margin-top: 24px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tile, .card, details {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 28px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(26, 71, 63, 0.08);
}
.category-tile {
  display: grid;
  min-height: 104px;
  place-items: center;
  gap: 7px;
  padding: 12px;
  background: #f8fffc;
  border: 1px solid #d7eee7;
  border-radius: 10px;
  text-align: center;
  font-weight: 850;
}
.category-tile span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--green);
  background: #e7fbf3;
  border-radius: 18px;
  font-size: 0.82rem;
}
.category-tile span img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}
.info-grid {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.info-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-grid article {
  padding: 20px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(26, 71, 63, 0.08);
}
.info-grid h3 { margin: 0 0 8px; }
.info-grid p { margin-bottom: 0; }
.tile strong { font-size: 1.15rem; }
.tile span { color: var(--muted); }
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 34px;
  padding: 34px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(26, 71, 63, 0.08);
}
.step-list { display: grid; gap: 12px; }
.step-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.faq-stack {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-stack details,
body.theme-warm .faq-stack details {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.96);
  border: 0;
  border-bottom: 1px solid #dccfc5;
  border-radius: 0;
  box-shadow: none;
}
.faq-stack summary {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 14px 50px 14px 16px;
  list-style: none;
  font-weight: 750;
  line-height: 1.35;
}
.faq-stack summary::-webkit-details-marker {
  display: none;
}
.faq-stack summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 9px;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}
.faq-stack details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-stack details p {
  margin: 0;
  padding: 0 50px 18px 16px;
  color: var(--muted);
  line-height: 1.65;
}
.cta-band {
  width: min(1180px, calc(100% - 48px));
  margin: 56px auto 70px;
  padding: 52px 42px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(26, 71, 63, 0.1);
  text-align: center;
}
.cta-band p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.mini-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 8px 5px 0;
  padding: 0 16px;
  color: var(--ink);
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}
.mini-btn.dark {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.step-list b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 8px;
}
.page-section.narrow { max-width: 900px; }
summary { color: var(--ink); font-weight: 850; cursor: pointer; }
details p { margin-bottom: 0; }

.site-footer {
  display: grid;
  place-items: center;
  padding: 28px clamp(18px, 5vw, 76px);
  color: white;
  margin-top: 0;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  background: #f6efe5;
  color: var(--ink);
  text-align: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.footer-disclaimer {
  max-width: 1120px;
  margin: 0;
  color: #4f4038;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.admin-body { background: #f6f7fb; }
.admin-login, .admin-panel {
  width: min(760px, calc(100% - 32px));
  margin: 60px auto;
  padding: 28px;
  background: white;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.1);
}
.admin-panel header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.admin-form { display: grid; gap: 14px; }
.admin-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #dce2ec;
}
.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-form textarea,
.compact-form button {
  grid-column: 1 / -1;
}
.admin-products {
  display: grid;
  gap: 10px;
}
.admin-products article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dce2ec;
  border-radius: 8px;
}
.admin-products span {
  grid-column: 1 / 2;
  color: #667085;
  font-size: 0.9rem;
}
.danger { background: #c53030; }

.zadmin-login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #eef3f8;
}
.zadmin-login {
  width: min(420px, calc(100% - 32px));
  padding: 34px;
  background: white;
  border: 1px solid #dbe4ec;
  box-shadow: 0 18px 46px rgba(25, 54, 82, 0.12);
}
.zadmin-logo {
  margin-bottom: 22px;
  color: #3498c9;
  font-size: 1.8rem;
  font-weight: 900;
}
.zadmin-login input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d5dde6;
}
.zadmin-login button {
  width: 100%;
  margin-top: 14px;
  border-radius: 3px;
  background: #2f9bd1;
}
.zadmin-body {
  min-height: 100vh;
  background: #f5f5f5;
}
.z-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 166px;
  background: #3498c9;
  color: white;
}
.z-logo {
  display: grid;
  height: 70px;
  place-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-size: 1.55rem;
  font-weight: 900;
}
.z-sidebar nav {
  display: grid;
  padding-top: 14px;
}
.z-sidebar a {
  padding: 14px 20px;
  color: white;
  font-weight: 700;
}
.z-sidebar a.active,
.z-sidebar a:hover {
  background: #2185b7;
}
.z-main {
  margin-left: 166px;
}
.z-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.z-menu {
  min-height: 34px;
  padding: 0 10px;
  color: #3498c9;
  background: transparent;
  font-size: 1.3rem;
}
.z-topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #333;
  font-size: 0.92rem;
}
.z-topbar nav button {
  min-height: auto;
  padding: 0;
  color: #333;
  background: transparent;
}
.z-user {
  display: grid;
  margin-left: 22px;
  color: #555;
  text-align: right;
  font-weight: 700;
}
.z-user span {
  color: #999;
  font-size: 0.78rem;
  font-weight: 400;
}
.z-content {
  padding: 18px 28px 40px;
}
.z-alert {
  margin: 0 0 10px;
  padding: 12px 18px;
  color: #f00;
  background: white;
  border-left: 3px solid #e9e9e9;
}
.z-alert.ok {
  color: #0b9b55;
  border-left-color: #0b9b55;
}
.z-panel {
  margin-top: 14px;
  padding: 20px;
  background: white;
  border: 1px solid #eee;
}
.z-panel h2 {
  margin-bottom: 20px;
  font-size: 1.08rem;
  font-weight: 500;
}
.z-quick-grid,
.z-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 18px;
}
.z-quick-grid a {
  display: grid;
  min-height: 56px;
  place-items: center;
  background: #f7f7f7;
  color: #555;
  border: 1px solid #f0f0f0;
}
.z-stat-grid article {
  min-height: 88px;
  padding: 14px;
  background: #f7f7f7;
}
.z-stat-grid span {
  display: block;
  color: #888;
  margin-bottom: 8px;
}
.z-stat-grid strong {
  color: #2da4ed;
  font-size: 1.8rem;
  font-weight: 300;
}
.z-table {
  width: 100%;
  border-collapse: collapse;
}
.z-table th,
.z-table td {
  padding: 12px 18px;
  border: 1px solid #eee;
  font-weight: 400;
}
.z-table th {
  width: 15%;
  background: #f8f8f8;
}
.z-form {
  display: grid;
  gap: 14px;
}
.z-form.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.z-form label {
  display: grid;
  gap: 6px;
  color: #555;
}
.z-form input,
.z-form textarea,
.z-form select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #dcdcdc;
  background: white;
}
.z-form textarea {
  min-height: 130px;
  resize: vertical;
}
.z-form.grid textarea,
.z-form.grid button {
  grid-column: 1 / -1;
}
.z-form button {
  justify-self: start;
  border-radius: 3px;
  background: #2f9bd1;
}
.z-product-list {
  display: grid;
  gap: 10px;
}
.z-product-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #eee;
}
.z-product-list span {
  grid-column: 1 / 2;
  color: #888;
}
.z-product-list a {
  color: #168fd0;
}
.z-product-list .danger {
  min-height: 32px;
  border-radius: 3px;
  background: #d9534f;
}
.admin-form label { display: grid; gap: 7px; color: #344054; font-weight: 750; }
.admin-form input, .admin-form textarea, .admin-login input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
}
.admin-form textarea { min-height: 96px; resize: vertical; }
.ghost { background: #eef2f7; color: #263241; }
.success { color: var(--green); font-weight: 800; }
.error { color: #c53030; font-weight: 800; }

/* Eyou-style admin shell */
.zadmin-body,
.zadmin-body * {
  box-sizing: border-box;
}
.zadmin-body {
  min-width: 1000px;
  min-height: 100vh;
  margin: 0;
  background: #f4f4f4;
  color: #707070;
  font: 12px/1.5 "Microsoft Yahei", "Lucida Grande", Verdana, Arial, sans-serif;
}
.zadmin-body a {
  color: #31b4e1;
  text-decoration: none;
}
.zadmin-body a:hover {
  color: #ec5051;
}
.z-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 166px;
  background: #3298c9;
  color: #fff;
}
.z-logo {
  display: flex;
  align-items: center;
  height: 55px;
  padding-left: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
}
.z-logo span {
  margin-right: 8px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.z-sidebar nav {
  display: block;
  padding: 28px 0 0;
}
.z-sidebar a {
  display: block;
  min-height: 42px;
  padding: 12px 18px 12px 45px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}
.z-sidebar a.active,
.z-sidebar a:hover {
  background: #2387ba;
  color: #fff;
}
.z-main {
  min-height: 100vh;
  margin-left: 166px;
}
.z-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.z-menu {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3298c9;
  font-size: 28px;
  line-height: 44px;
}
.z-topbar nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  color: #333;
  font-size: 14px;
}
.z-topbar nav a {
  color: #333;
}
.z-topbar nav .z-red-link {
  color: #f00;
}
.z-user {
  display: grid;
  margin-left: 30px;
  min-width: 56px;
  color: #666;
  font-size: 16px;
  line-height: 18px;
  text-align: left;
}
.z-user span {
  color: #999;
  font-size: 12px;
}
.z-logout {
  margin-left: 10px;
}
.z-logout button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: #2f62ee;
  color: #fff;
}
.z-content {
  padding: 10px 10px 34px;
}
.z-alert {
  margin: 10px 10px 0;
  padding: 12px 22px;
  background: #fff;
  border: 0;
  color: #f00;
  font-size: 13px;
}
.z-alert.ok {
  color: #179b64;
}
.z-panel {
  margin: 10px 0 0;
  padding: 18px 20px 20px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.z-panel h2 {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 14px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
}
.z-panel h2::before {
  content: "◇";
  margin-right: 6px;
  color: #8a8a8a;
  font-size: 14px;
}
.z-quick-grid,
.z-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 18px;
}
.z-quick-grid a {
  display: grid;
  min-height: 56px;
  place-items: center;
  background: #f8f8f8;
  border: 1px solid #f3f3f3;
  border-radius: 0;
  color: #555;
  font-size: 14px;
}
.z-stat-grid article {
  min-height: 88px;
  padding: 14px 16px;
  background: #f8f8f8;
  border: 1px solid #f3f3f3;
}
.z-stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 12px;
}
.z-stat-grid strong {
  color: #4fc0e8;
  font-size: 30px;
  font-weight: 300;
}
.z-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.z-table th,
.z-table td {
  height: 41px;
  padding: 8px 18px;
  border: 1px solid #eee;
  color: #333;
  font-size: 12px;
  font-weight: 400;
}
.z-table th {
  width: 15%;
  background: #f8f8f8;
  text-align: center;
}
.z-form {
  display: grid;
  gap: 14px;
}
.z-form.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.z-form label {
  display: grid;
  gap: 7px;
  color: #555;
  font-size: 13px;
}
.z-form input,
.z-form textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font: inherit;
}
.z-form textarea {
  min-height: 130px;
  resize: vertical;
}
.z-form.grid textarea,
.z-form.grid button {
  grid-column: 1 / -1;
}
.z-form button {
  justify-self: start;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 3px;
  background: #31b4e1;
  color: #fff;
}
.z-product-list {
  display: grid;
  gap: 10px;
}
.z-product-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #eee;
}
.z-product-list strong {
  color: #333;
}
.z-product-list span {
  grid-column: 1 / 2;
  color: #888;
}
.z-product-list .danger {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 3px;
  background: #ec5151;
}
.z-content-tree-panel {
  width: 360px;
  min-height: 360px;
  padding: 10px 18px 24px;
}
.z-content-tree-panel h2 {
  min-height: 34px;
  margin: 0 0 12px;
  color: #777;
  font-size: 16px;
}
.z-content-tree-panel h2::before {
  content: "▤";
  font-size: 16px;
}
.z-content-tree {
  padding-left: 4px;
  color: #1b1b1b;
  font-size: 16px;
}
.tree-line {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 6px;
}
.tree-line button {
  display: inline-grid;
  width: 13px;
  height: 13px;
  min-height: 13px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd2d8;
  border-radius: 0;
  background: #fff;
  color: #5f6a72;
  font-size: 12px;
  line-height: 11px;
}
.tree-line a {
  color: #151515;
}
.tree-line strong {
  color: #222;
  font-size: 16px;
  font-weight: 700;
}
.tree-child {
  padding-left: 18px;
}
.tree-child::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -8px;
  bottom: 14px;
  border-left: 1px dotted #bbb;
}
.tree-child span {
  width: 10px;
  height: 1px;
  border-top: 1px dotted #bbb;
}
.z-empty {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #eee;
  color: #777;
}
.zadmin-login h1 {
  margin: 0 0 18px;
  color: #333;
  font-size: 22px;
  letter-spacing: 0;
}
.z-channel-page {
  width: 100%;
  min-height: 520px;
  background: #fff;
}
.z-channel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 13px 16px 10px;
  background: #fff;
}
.z-primary-btn,
.z-outline-btn {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #2da4d6;
  font-size: 14px;
}
.z-primary-btn {
  background: #2da4d6;
  color: #fff !important;
}
.z-outline-btn {
  background: #fff;
  color: #2da4d6 !important;
}
.z-channel-table {
  width: 100%;
  border-collapse: collapse;
  color: #333;
  font-size: 14px;
}
.z-channel-table th,
.z-channel-table td {
  height: 49px;
  padding: 0 12px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 400;
  vertical-align: middle;
}
.z-channel-table thead th {
  height: 38px;
  background: #f6f6f6;
  color: #333;
}
.z-channel-table .check {
  width: 56px;
  text-align: center;
}
.z-channel-table .id {
  width: 58px;
  text-align: center;
}
.z-channel-table .model,
.z-channel-table .visible,
.z-channel-table .sort {
  width: 70px;
  text-align: center;
}
.z-channel-table .actions {
  width: 300px;
  text-align: center;
}
.z-channel-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}
.z-channel-table .name {
  color: #333;
}
.z-channel-table .name a {
  color: #333;
}
.z-channel-table .name span {
  color: #999;
  font-size: 13px;
}
.z-channel-table .actions {
  color: #ddd;
  white-space: nowrap;
}
.z-channel-table .actions a {
  display: inline-block;
  margin: 0 4px;
  color: #1f79c7;
  font-size: 13px;
}
.z-channel-table .actions form {
  display: inline;
}
.z-channel-table .actions button {
  min-height: auto;
  margin: 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f79c7;
  font-size: 13px;
}
.z-channel-table .visible .yes {
  color: #31b4e1;
}
.z-channel-table .visible .no {
  color: #999;
}
.z-channel-table .name.child {
  padding-left: 12px;
}
.z-channel-footer-row td {
  height: 58px;
  border-bottom: 0;
}
.z-channel-footer-row button {
  min-height: 31px;
  margin-right: 6px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #f9f9f9;
  color: #333;
  font-size: 13px;
}
.z-category-edit-page {
  min-height: 560px;
  background: #fff;
}
.z-edit-title {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #e9e9e9;
  color: #333;
  font-size: 16px;
}
.z-edit-title a {
  color: #333;
  font-size: 26px;
  line-height: 1;
}
.z-edit-title strong {
  font-weight: 400;
}
.z-edit-title span {
  display: inline-flex;
  height: 58px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #333;
}
.z-edit-title span.active {
  border-bottom-color: #2da4d6;
  color: #2da4d6;
}
.z-category-form {
  width: 620px;
  padding: 38px 0 0 44px;
}
.z-field-row {
  display: grid;
  grid-template-columns: 92px 388px 28px;
  align-items: start;
  gap: 10px;
  min-height: 54px;
}
.z-field-row > label:first-child {
  display: block;
  padding-top: 9px;
  color: #666;
  text-align: right;
}
.z-field-row.required > label:first-child::before {
  content: "*";
  margin-right: 5px;
  color: #ff5a2a;
}
.z-field-row i {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  margin-top: 10px;
  border: 1px solid #9aa3ad;
  border-radius: 50%;
  color: #8b949e;
  font-size: 12px;
  font-style: normal;
}
.z-field-row p {
  margin: 6px 0 0;
  color: #777;
  font-size: 13px;
}
.z-category-form input,
.z-category-form select {
  width: 100%;
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font: inherit;
}
.z-radio-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 31px;
}
.z-radio-line label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.z-radio-line input {
  width: 14px;
  min-height: 14px;
}
.z-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 102px;
  padding-top: 24px;
}
.z-form-actions button {
  min-height: 35px;
  padding: 0 20px;
  border-radius: 0;
  background: #2da4d6;
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .main-nav.is-open a { padding: 12px; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .tile-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-steps { grid-template-columns: 1fr; margin: 0; }
  .hero-panel { padding: 28px; }
  .info-grid.two { grid-template-columns: 1fr; }
  .info-grid.three { grid-template-columns: 1fr; }
  .z-sidebar { position: static; width: auto; }
  .z-main { margin-left: 0; }
  .z-topbar { display: grid; gap: 10px; padding: 10px 14px; }
  .z-topbar nav { margin-left: 0; flex-wrap: wrap; gap: 12px; }
  .z-quick-grid, .z-stat-grid, .z-form.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  h1 { font-size: 2.4rem; }
  .product-search { grid-template-columns: 1fr; }
  .tile-grid, .card-grid { grid-template-columns: 1fr; }
  .product-grid, .compact-form { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .z-quick-grid, .z-stat-grid, .z-form.grid, .z-product-list article { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
    touch-action: pan-y;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    max-width: 100%;
    height: auto;
  }

  .site-header {
    width: 100%;
    max-width: none;
    min-height: 58px;
    margin: 0;
    padding: 8px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand,
  .brand-lines {
    min-width: 0;
  }

  .brand-lines strong,
  .brand-lines span {
    overflow-wrap: anywhere;
  }

  .menu-toggle {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle span[aria-hidden="true"] {
    font-size: 1.5rem;
    line-height: 1;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .main-nav.is-open a {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  main,
  section,
  article,
  form {
    min-width: 0;
  }

  h1 {
    font-size: 2.1rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: 14px 12px 28px;
  }

  .hero-panel {
    min-height: 0;
    gap: 22px;
    padding: 28px 18px 0;
    border-radius: 10px;
    background-position: center;
  }

  .hero-copy,
  .hero p,
  .product-search,
  .hero-ad {
    width: 100%;
    max-width: 100%;
  }

  .hero-steps {
    grid-template-columns: 1fr;
    margin: 24px -18px 0;
  }

  .hero-steps span {
    min-height: 0;
    padding: 16px 18px;
  }

  .product-search,
  .hero-ad {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-search input:not([type="hidden"]),
  .product-search button {
    width: 100%;
    min-width: 0;
  }

  .hero-ad strong,
  .hero-ad span,
  .hero-ad a {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-ad a {
    width: 100%;
    text-align: center;
  }

  .chips {
    width: 100%;
  }

  .chips a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .directory,
  .page-section,
  .content-section,
  .split-section,
  .cta-band {
    width: calc(100% - 24px);
    max-width: none;
  }

  .directory,
  .page-section,
  .content-section {
    padding: 34px 0;
  }

  .split-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin: 28px auto;
    padding: 18px;
  }

  .tile-grid,
  .card-grid,
  .product-grid,
  .category-grid,
  .info-grid.two,
  .info-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-grid {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .category-tile,
  .tile,
  .card,
  .product-card,
  .info-grid article {
    width: 100%;
    min-width: 0;
  }

  .product-card {
    min-height: 0;
  }

  .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

  .product-footer {
    flex-wrap: wrap;
  }

  .cta-band {
    margin: 34px auto 42px;
    padding: 30px 18px;
  }

  .cta-band > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-band .mini-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    width: 100%;
    padding: 24px 16px;
  }
}
