:root {
  color-scheme: light;
  --bg: #eef2ef;
  --surface: #ffffff;
  --surface-soft: #f7f9f6;
  --text: #17231f;
  --muted: #64736c;
  --line: #d8e0dc;
  --primary: #17654f;
  --primary-dark: #12372f;
  --accent: #b88a2c;
  --danger: #b42318;
  --shadow: 0 18px 46px rgba(18, 55, 47, 0.12);
  --app-viewport-height: 100vh;
  --app-viewport-top: 0px;
  --app-keyboard-height: 0px;
}

@media (max-width: 760px) {
  .media-admin-layout,
  .media-insert-options {
    grid-template-columns: 1fr;
  }

  .media-library-filter {
    flex-direction: column;
    align-items: stretch;
  }

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

* {
  box-sizing: border-box;
}

@supports (height: 100dvh) {
  :root {
    --app-viewport-height: 100dvh;
  }
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(18, 55, 47, 0.08), rgba(238, 242, 239, 0) 260px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

body.public-site {
  --bg: #fbfcfb;
  --surface: #ffffff;
  --surface-soft: #f6faf6;
  --text: #17231a;
  --muted: #66706a;
  --line: #edf1ee;
  --primary: #174f2b;
  --primary-dark: #0f351f;
  --accent: #2e6b3f;
  --shadow: 0 12px 36px rgba(20, 45, 28, 0.08);
  background: var(--bg);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 clamp(24px, 5vw, 72px);
  backdrop-filter: blur(12px);
}

.public-brand {
  display: inline-flex;
  align-items: center;
}

.public-brand img {
  width: 178px;
  height: auto;
}

.public-header nav,
.public-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 40px);
  overflow: visible;
}

.public-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
}

.public-header nav a,
.public-nav-item > a,
.public-subnav a,
.public-subnav-item > a {
  color: #17231a;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.public-nav-item.has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.public-subnav {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  z-index: 3000;
  display: grid;
  min-width: 150px;
  padding: 10px;
  border: 1px solid rgba(23, 79, 43, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(20, 45, 28, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.public-subnav-item {
  position: relative;
}

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

.public-subnav a,
.public-subnav-item > a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #435147;
  font-size: 14px;
}

.public-header nav a:hover,
.public-nav-item > a:hover,
.public-subnav a:hover,
.public-subnav-item > a:hover {
  color: var(--primary);
}

.public-subnav a:hover,
.public-subnav-item > a:hover {
  background: #eff7f1;
}

.public-subnav-item.has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

.public-subnav-third {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  z-index: 3001;
  display: grid;
  min-width: 150px;
  padding: 10px;
  border: 1px solid rgba(23, 79, 43, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(20, 45, 28, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.public-subnav-item:hover .public-subnav-third,
.public-subnav-item:focus-within .public-subnav-third {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.public-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.public-phone::before {
  content: "☎";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.public-page {
  width: 100%;
  margin: 0;
  padding: 0 0 48px;
}

.public-admin-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 4200;
}

.public-admin-float a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 79, 43, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(20, 45, 28, 0.16);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 14px;
  backdrop-filter: blur(12px);
}

.site-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 18% 0%, rgba(86, 140, 78, 0.22), transparent 34%),
    linear-gradient(180deg, #21683a 0%, #14502c 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(112px, 0.7fr)) minmax(210px, 1fr) minmax(150px, 0.68fr);
  gap: 0;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 40px) 38px;
}

.footer-col {
  min-height: 190px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 clamp(18px, 2.5vw, 34px);
}

.footer-col:first-child {
  border-left: 0;
  padding-left: 0;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.footer-inner a,
.footer-inner p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.8;
}

.footer-logo {
  width: 190px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 280px;
  margin-bottom: 22px;
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.footer-contact {
  font-style: normal;
}

.footer-qr {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-right: 0;
}

.footer-qr img {
  width: 103px;
  height: 103px;
  max-width: none;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  padding: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
}

.footer-qr strong {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}

.footer-qr span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 45, 25, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  padding: 18px 20px;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.keyboard-open {
  scroll-padding-bottom: calc(24px + var(--app-keyboard-height, 0px));
}

a {
  color: var(--primary);
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(18, 55, 47, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(18, 55, 47, 0.22);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d5ad52, #8c6a22);
  color: #12372f;
  font-size: 20px;
  font-weight: 900;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
}

.nav a,
.link-button {
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav a:hover,
.link-button:hover {
  color: #fff;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 calc(56px + env(safe-area-inset-bottom));
}

.hero,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.hero h1,
.section-title h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.muted,
small {
  color: var(--muted);
}

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

.app-quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.quick-action {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(18, 55, 47, 0.07);
}

.quick-action.primary {
  border-color: rgba(23, 101, 79, 0.22);
  background: linear-gradient(135deg, #17654f, #12372f);
  color: #fff;
}

.quick-action strong {
  font-size: 16px;
}

.quick-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quick-action.primary span {
  color: rgba(255, 255, 255, 0.78);
}

.stat,
.panel {
  border: 1px solid rgba(216, 224, 220, 0.92);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

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

.stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.stat-link {
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-link:hover {
  box-shadow: 0 16px 34px rgba(31, 74, 63, 0.14);
  transform: translateY(-1px);
}

.report-summary .stat strong,
.compact-stats .stat strong {
  font-size: 28px;
}

.compact-stats {
  margin: 16px 0;
}

.report-panel + .report-panel {
  margin-top: 18px;
}

.debt-alert-panel {
  margin-bottom: 18px;
}

.antifake-overview {
  margin-bottom: 18px;
}

.antifake-insights {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: stretch;
}

.insight-box,
.trend-box {
  border: 1px solid rgba(216, 224, 220, 0.92);
  border-radius: 8px;
  background: #f8fbf9;
  padding: 14px;
}

.insight-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.insight-box strong {
  display: block;
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
}

.trend-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.trend-day {
  display: grid;
  gap: 6px;
  min-height: 64px;
  align-content: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #edf2ef;
  text-align: center;
}

.trend-count {
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}

.trend-label {
  color: var(--muted);
  font-size: 12px;
}

.trend-details {
  margin-top: 14px;
}

.trend-details summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}

.trend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.trend-list span {
  border-radius: 6px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
  text-align: center;
}

.report-filter {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) repeat(2, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.report-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.debt-filter {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
}

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

.report-grid {
  align-items: start;
}

.report-chart-card {
  border: 1px solid rgba(216, 224, 220, 0.92);
  border-radius: 8px;
  background: #f8fbf9;
  padding: 14px;
}

.report-chart-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.mini-trend-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 150px;
}

.mini-trend-day {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
  height: 150px;
  text-align: center;
}

.mini-trend-fill {
  align-self: end;
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #17654f, #72aa86);
}

.mini-trend-fill.sales {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mini-trend-day small {
  font-size: 11px;
  white-space: nowrap;
}

.line-trend {
  display: grid;
  grid-template-columns: repeat(30, minmax(3px, 1fr));
  gap: 4px;
  align-items: end;
  height: 150px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #edf2ef;
}

.line-trend-point {
  display: block;
  min-height: 3px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #b88a2c, #e3c87c);
}

.line-trend.debt .line-trend-point {
  background: linear-gradient(180deg, #b42318, #f3a19a);
}

.rank-list,
.share-list,
.compact-alert-list,
.debt-composition {
  display: grid;
  gap: 10px;
}

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 220, 0.92);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 12px;
}

.rank-row > span,
.rank-row > em {
  position: relative;
  z-index: 1;
}

.rank-row strong {
  display: block;
}

.rank-row small {
  display: block;
  margin-top: 4px;
}

.rank-row em {
  align-self: center;
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.rank-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  min-width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #17654f, #b88a2c);
}

.share-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.8fr) minmax(0, 1.6fr) 48px minmax(90px, auto);
  gap: 10px;
  align-items: center;
}

.share-row span {
  font-weight: 800;
}

.share-row strong {
  color: var(--primary-dark);
  text-align: right;
}

.share-row small {
  text-align: right;
}

.share-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #eaf0ed;
}

.share-track i {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #17654f, #c49a3c);
}

.compact-alert-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(216, 224, 220, 0.92);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.compact-alert-list strong {
  color: var(--danger);
}

.debt-composition-card {
  border: 1px solid rgba(216, 224, 220, 0.92);
  border-radius: 8px;
  background: #fff;
}

.debt-composition-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 14px;
  font-weight: 800;
}

.debt-composition-card summary strong {
  color: var(--danger);
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.danger-text {
  color: var(--danger);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #edf7f1;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 9px;
  white-space: nowrap;
}

.status-badge.due {
  background: #fff1f0;
  color: var(--danger);
}

.status-badge.void {
  background: #f4f4f5;
  color: #71717a;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
}

.panel h3 {
  margin-top: 20px;
  font-size: 17px;
}

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

.panel-header h2 {
  margin: 0;
}

.inline-search {
  width: min(520px, 100%);
  margin-bottom: 0;
}

.product-filter {
  flex-wrap: wrap;
  width: min(1080px, 100%);
}

.product-filter .field {
  min-width: 148px;
}

.website-content-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 170px 170px auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
}

.website-content-filter .field {
  min-width: 0;
  height: 42px;
  padding: 9px 12px;
  font-size: 14px;
}

.website-content-filter button {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.search-row.website-content-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 170px 170px auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: none;
}

.search-row.website-content-filter .field {
  width: 100%;
  min-width: 0;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
}

.auth-panel {
  width: min(420px, 100%);
}

.stack,
.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid p,
.block-label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.form-grid label,
.block-label span,
.new-customer-grid label span,
.stack label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 101, 79, 0.14);
  outline: none;
}

textarea.field {
  resize: vertical;
}

input[type="file"].field {
  padding: 8px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 16px;
}

.button.primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.button.danger {
  border-color: #f0b8b2;
  background: #fff5f4;
  color: var(--danger);
}

.button.danger:hover {
  background: #ffe5e2;
}

.form-actions,
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.bulk-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.table-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-field,
.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.icon-button {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--danger);
  font-size: 24px;
}

.search-row,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-row {
  margin-bottom: 14px;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message {
  border: 1px solid #bdd7ce;
  border-radius: 8px;
  background: #eef8f4;
  color: #134e4a;
  padding: 12px 14px;
}

.message.error {
  border-color: #f0b8b2;
  background: #fff1f0;
  color: var(--danger);
}

.message.warning {
  border-color: #f7d794;
  background: #fff8e8;
  color: #8a4b0b;
}

.list {
  display: grid;
  gap: 8px;
}

.list.compact {
  margin-top: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}

.list-row span:first-child {
  display: grid;
  gap: 3px;
}

.pill {
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.price {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.is-hidden {
  display: none !important;
}

.table-wrap,
.line-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap.mini {
  max-height: 310px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.table-main-link {
  display: inline-flex;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.table-main-link:hover {
  text-decoration: underline;
}

.product-thumb {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 12px;
  object-fit: cover;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #edf7f1;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 4px 9px;
  white-space: nowrap;
}

.stock-badge.low {
  background: #fff1f0;
  color: var(--danger);
}

.article-admin-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.article-admin-title img {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.article-admin-title strong,
.article-card strong,
.article-feature-card strong {
  display: block;
}

.table-title-link {
  display: block;
  overflow: hidden;
  color: #17231d;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.website-content-table {
  table-layout: fixed;
  min-width: 1060px;
}

.website-content-table th,
.website-content-table td {
  padding: 10px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.website-content-table th:nth-child(1),
.website-content-table td:nth-child(1) {
  width: 44px;
}

.website-content-table th:nth-child(2),
.website-content-table td:nth-child(2) {
  width: 30%;
}

.website-content-table th:nth-child(3),
.website-content-table td:nth-child(3) {
  width: 78px;
}

.website-content-table th:nth-child(4),
.website-content-table td:nth-child(4) {
  width: 22%;
}

.website-content-table th:nth-child(5),
.website-content-table td:nth-child(5) {
  width: 180px;
}

.website-content-table th:nth-child(6),
.website-content-table td:nth-child(6) {
  width: 150px;
}

.website-content-table th:nth-child(7),
.website-content-table td:nth-child(7) {
  width: 235px;
}

.website-content-table.scope-split th:nth-child(2),
.website-content-table.scope-split td:nth-child(2) {
  width: 34%;
}

.website-content-table.scope-split th:nth-child(3),
.website-content-table.scope-split td:nth-child(3) {
  width: 22%;
}

.website-content-table.scope-split th:nth-child(4),
.website-content-table.scope-split td:nth-child(4) {
  width: 180px;
}

.website-content-table.scope-split th:nth-child(5),
.website-content-table.scope-split td:nth-child(5) {
  width: 150px;
}

.website-content-table.scope-split th:nth-child(6),
.website-content-table.scope-split td:nth-child(6) {
  width: 235px;
}

.website-content-table .article-admin-title,
.website-content-table td:nth-child(4),
.website-content-table td:nth-child(5),
.website-content-table td:nth-child(6),
.website-content-table td:nth-child(7) {
  overflow: hidden;
}

.website-content-table .article-admin-title strong,
.website-content-table td:nth-child(4) strong,
.website-content-table td:nth-child(4) small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-content-table td:nth-child(4) small {
  display: inline;
  margin-left: 4px;
}

.website-content-table .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
}

.website-content-table .button.small {
  min-height: 34px;
  padding: 6px 10px;
}

.website-content-table .select-col {
  text-align: center;
}

.website-content-table .select-col input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.website-category-table th,
.website-category-table td {
  padding: 8px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.website-category-table td:first-child strong {
  display: block;
  overflow: hidden;
  max-width: 180px;
  color: #17231d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-category-table .status-badge {
  min-height: 24px;
  font-size: 12px;
  padding: 3px 8px;
}

.website-category-table .row-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.website-category-table .button.small {
  min-height: 30px;
  padding: 5px 9px;
}

.article-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fbfdfb;
}

.article-bulk-bar .field {
  width: auto;
  min-width: 136px;
  max-width: 190px;
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  font-size: 14px;
}

.article-bulk-bar .inline-check {
  min-height: 34px;
  margin-right: auto;
  padding: 0 4px;
  white-space: nowrap;
}

.article-bulk-bar .button {
  min-height: 34px;
  padding: 6px 14px;
}

.article-revision-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.article-revision-list form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: #fff;
}

.article-revision-list span {
  display: grid;
  min-width: 0;
}

.article-revision-list b,
.article-revision-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.article-main-editor #id_summary {
  min-height: 74px;
  height: 74px;
  resize: vertical;
}

.article-image-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.article-image-picker label {
  margin: 0;
}

.article-advanced-block {
  grid-column: 1 / -1;
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 0;
}

.article-advanced-block > summary,
.article-side-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
}

.article-advanced-block > summary::-webkit-details-marker,
.article-side-details > summary::-webkit-details-marker {
  display: none;
}

.article-advanced-block > summary::after,
.article-side-details > summary::after {
  content: "展开";
  border-radius: 999px;
  background: #eef6ef;
  color: var(--primary);
  font-size: 12px;
  padding: 3px 8px;
}

.article-advanced-block[open] > summary,
.article-side-details[open] > summary {
  border-bottom: 1px solid #dfe8e3;
}

.article-advanced-block[open] > summary::after,
.article-side-details[open] > summary::after {
  content: "收起";
}

.article-advanced-block > small {
  display: block;
  color: var(--muted);
  padding: 10px 14px 0;
}

.article-advanced-block > .form-grid,
.article-advanced-block > .product-image-card-grid {
  padding: 14px;
}

.rich-editor-field {
  display: grid;
  gap: 8px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #f8faf9;
  padding: 8px;
}

.rich-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  padding: 6px 10px;
}

.rich-toolbar button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rich-editor {
  min-height: 440px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
  outline: none;
  padding: 18px;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor h2,
.rich-editor h3 {
  margin: 1em 0 0.4em;
}

.rich-editor blockquote {
  border-left: 4px solid var(--primary);
  background: #f8fbf9;
  color: var(--primary-dark);
  margin: 12px 0;
  padding: 12px 14px;
}

.rich-editor figure {
  margin: 18px auto;
}

.rich-editor .image-align-left,
.article-body .image-align-left {
  margin-left: 0;
  margin-right: auto;
}

.rich-editor .image-align-center,
.article-body .image-align-center {
  margin-left: auto;
  margin-right: auto;
}

.rich-editor .image-align-right,
.article-body .image-align-right {
  margin-left: auto;
  margin-right: 0;
}

.rich-editor img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

.rich-editor .image-size-small,
.article-body .image-size-small {
  width: min(320px, 100%);
}

.rich-editor .image-size-medium,
.article-body .image-size-medium {
  width: min(560px, 100%);
}

.rich-editor .image-size-large,
.article-body .image-size-large {
  width: 100%;
}

.rich-editor .image-size-small img,
.rich-editor .image-size-medium img,
.rich-editor .image-size-large img,
.article-body .image-size-small img,
.article-body .image-size-medium img,
.article-body .image-size-large img {
  width: 100%;
}

.rich-editor figcaption {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

.rich-source textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rich-source #id_content {
  min-height: 380px;
}

.article-tag-box {
  display: grid;
  gap: 10px;
}

.article-tag-title label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.article-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.article-tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #335cff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  padding: 5px 9px;
}

.article-common-tags summary {
  color: #335cff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
}

.article-common-tags[open] summary {
  margin-bottom: 8px;
}

.article-tag-checks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-tag-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.article-tag-checks input {
  accent-color: var(--primary);
}

.article-side-card {
  display: grid;
  gap: 6px;
  border: 1px solid #e8dfca;
  border-radius: 8px;
  background: #fffaf0;
  color: #744b12;
  margin-top: 14px;
  padding: 12px;
}

.article-side-details {
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fbfdfb;
  margin-top: 14px;
}

.article-side-details > .form-grid,
.article-side-details > .article-revision-list {
  padding: 12px;
}

.article-revision-details > strong {
  display: none;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.article-card-tags b,
.article-card-tags a,
.article-hot-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.article-card-tags.detail-tags {
  margin-top: 14px;
}

.article-card-tags.detail-tags a {
  background: #fff1f1;
  color: var(--primary);
}

.article-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-side-editor {
  position: sticky;
  top: 92px;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.46);
  padding: 18px;
}

.media-modal-panel {
  width: min(1180px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 18px;
}

.media-modal-header,
.media-modal-tabs,
.media-library-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.media-modal-header {
  margin-bottom: 14px;
}

.media-modal-header div {
  display: grid;
  gap: 4px;
}

.media-modal-header strong {
  font-size: 22px;
}

.media-modal-tabs {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.media-modal-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 2px;
}

.media-modal-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.media-modal-section {
  display: grid;
  gap: 14px;
}

.media-insert-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-insert-options.compact {
  display: flex;
  gap: 10px;
  align-items: end;
}

.media-insert-options.compact label {
  min-width: 110px;
}

.media-insert-options label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.media-library-filter {
  justify-content: stretch;
}

.media-library-filter .field:first-child {
  flex: 1;
}

.media-modal-library-picker {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.media-modal-library-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 560px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbfdfb;
  padding: 12px;
}

.media-modal-library-title {
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.media-modal-library-sidebar button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  padding: 8px 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-modal-library-sidebar button:hover,
.media-modal-library-sidebar button.active {
  background: rgba(5, 112, 91, 0.1);
  color: var(--primary);
}

.media-modal-library-categories {
  display: grid;
  gap: 6px;
}

.media-modal-library-main {
  display: grid;
  min-width: 0;
  padding: 12px;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
}

.media-modal-library-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.media-modal-library-toolbar > strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.media-modal-library-search {
  display: flex;
  gap: 8px;
  align-items: end;
  min-width: min(360px, 100%);
}

.media-modal-library-search .field {
  min-width: 0;
  flex: 1;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 12px;
  max-height: 430px;
  overflow: auto;
}

.media-modal-library-picker .media-library-grid {
  max-height: 520px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.media-asset-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 8px;
}

.media-asset-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(18, 55, 47, 0.1);
}

.media-asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.media-asset-card span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .media-modal-library-picker {
    grid-template-columns: 1fr;
  }

  .media-modal-library-sidebar {
    display: flex;
    max-height: none;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .media-modal-library-categories {
    display: flex;
    gap: 6px;
  }

  .media-modal-library-sidebar button {
    flex: 0 0 auto;
  }

  .media-modal-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .media-modal-library-search {
    min-width: 0;
  }
}

.media-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.website-media-hero.compact {
  margin-bottom: 12px;
  padding: 14px 18px;
}

.website-media-hero.compact h1 {
  margin-top: 2px;
  font-size: 28px;
}

.website-media-hero.compact .muted {
  margin: 4px 0 0;
  font-size: 14px;
}

.website-media-hero.compact .button {
  min-height: 34px;
  padding: 7px 14px;
}

.website-media-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.website-media-stats .stat {
  min-height: 72px;
  padding: 12px 14px;
}

.website-media-stats .stat strong {
  margin-top: 4px;
  font-size: 24px;
}

.website-media-admin-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  gap: 12px;
}

.website-media-upload-panel,
.website-media-category-panel {
  padding: 16px;
}

.website-media-upload-panel .panel-header,
.website-media-category-panel .panel-header {
  margin-bottom: 8px;
}

.website-media-upload-panel form.form-grid,
.website-media-category-panel form.form-grid {
  gap: 10px;
}

.website-media-upload-panel p,
.website-media-category-panel p {
  margin: 0;
}

.website-media-upload-panel .field,
.website-media-upload-panel input,
.website-media-upload-panel select,
.website-media-category-panel .field,
.website-media-category-panel input,
.website-media-category-panel select {
  min-height: 38px;
}

.website-media-category-panel .media-category-pills {
  margin-top: 10px;
}

.website-media-category-panel .button {
  min-height: 38px;
}

.website-media-browser-panel {
  display: grid;
  gap: 12px;
}

.media-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.media-library-filter-left,
.media-library-search {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.media-library-filter-left .field {
  width: auto;
  min-width: 150px;
  max-width: 190px;
}

.media-library-search label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.media-library-search .field {
  width: 260px;
  min-height: 36px;
}

.media-library-toolbar .button {
  min-height: 36px;
  padding: 6px 12px;
}

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

.media-category-pills span {
  border: 1px solid rgba(18, 55, 47, 0.12);
  border-radius: 999px;
  background: #f2f7f4;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.media-admin-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.media-admin-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
}

.media-select {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.media-admin-meta {
  display: grid;
  gap: 4px;
}

.media-admin-meta strong,
.media-admin-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-admin-meta small {
  color: var(--muted);
  font-size: 12px;
}

.media-edit-preview {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8faf9;
}

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

.highchart-box {
  min-height: 280px;
}

.fallback-trend-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 260px;
  padding: 14px 8px 6px;
}

.fallback-trend-chart span {
  display: grid;
  grid-template-rows: 22px 1fr 20px;
  gap: 5px;
  align-items: end;
  height: 230px;
  min-width: 0;
  text-align: center;
}

.fallback-trend-chart i {
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #17654f, #7fb39b);
}

.fallback-trend-chart b,
.fallback-rank-chart strong {
  color: #17231d;
  font-size: 13px;
}

.fallback-trend-chart em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fallback-rank-chart {
  display: grid;
  gap: 10px;
  padding: 14px 4px 4px;
}

.fallback-rank-chart div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e3ebe7;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.fallback-rank-chart div > span,
.fallback-rank-chart div > strong {
  position: relative;
  z-index: 1;
}

.fallback-rank-chart span {
  overflow: hidden;
  color: #17231d;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fallback-rank-chart strong {
  text-align: right;
}

.fallback-rank-chart i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  min-width: 8px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #b88a2c, #f0d18b);
}

.article-sticky-actions {
  margin-top: 18px;
}

.article-template-grid,
.article-related-grid {
  display: grid;
  gap: 12px;
}

.article-template-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--article-accent, var(--primary));
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.article-template-card span,
.article-card em,
.article-kicker {
  color: var(--article-accent, var(--accent));
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.article-template-card em {
  color: var(--muted);
  font-style: normal;
}

.article-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #12372f, #17654f 52%, #b88a2c);
  color: #fff;
  padding: clamp(24px, 5vw, 46px);
}

.sspai-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
}

.sspai-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  border-radius: 8px;
  pointer-events: none;
}

.sspai-hero > *:not(.sspai-hero-bg) {
  position: relative;
  z-index: 1;
}

.enterprise-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  overflow: hidden;
  padding: clamp(28px, 5vw, 68px);
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.enterprise-hero-copy {
  display: grid;
  align-content: center;
  min-height: 460px;
}

.enterprise-hero h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  color: #101828;
  font-size: clamp(44px, 6.4vw, 86px);
  font-weight: 900;
  line-height: 0.98;
}

.enterprise-hero p {
  max-width: 720px;
  margin: 0;
  color: #5f6875;
  font-size: 18px;
  line-height: 1.85;
}

.enterprise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.enterprise-hero-media {
  position: relative;
  border-radius: 8px;
  min-height: 460px;
  overflow: hidden;
  background: #111827;
}

.enterprise-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.enterprise-hero-mark {
  display: grid;
  place-content: center;
  gap: 14px;
  height: 100%;
  min-height: 460px;
  color: #fff;
  text-align: center;
}

.enterprise-hero-mark span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 8px;
  background: #17654f;
  font-size: 46px;
  font-weight: 900;
}

.enterprise-hero-mark strong {
  font-size: 20px;
}

.enterprise-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #edf0f3;
  margin-top: 10px;
  padding-top: 22px;
}

.enterprise-metrics a {
  display: grid;
  gap: 4px;
  border-right: 1px solid #edf0f3;
  color: #101828;
  padding: 4px clamp(12px, 3vw, 28px);
}

.enterprise-metrics a:first-child {
  padding-left: 0;
}

.enterprise-metrics a:last-child {
  border-right: 0;
}

.enterprise-metrics strong {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.enterprise-metrics span {
  color: #697386;
  font-size: 13px;
  font-weight: 900;
}

.enterprise-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #edf0f3;
  overflow: hidden;
}

.enterprise-intro-grid div {
  display: grid;
  gap: 8px;
  min-height: 170px;
  align-content: start;
  background: #fff;
  padding: 24px;
}

.enterprise-intro-grid span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.enterprise-intro-grid strong {
  font-size: 22px;
}

.enterprise-intro-grid p {
  margin: 0;
  color: #697386;
  line-height: 1.75;
}

.enterprise-section {
  margin-bottom: 28px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  padding: clamp(22px, 4vw, 36px);
}

.enterprise-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.enterprise-section-head h2 {
  margin: 4px 0 0;
  color: #101828;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
}

.enterprise-section-head a {
  color: var(--primary);
  font-weight: 900;
}

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

.enterprise-card {
  display: grid;
  gap: 10px;
  min-height: 300px;
  align-content: end;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  overflow: hidden;
  padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.enterprise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
}

.enterprise-card img {
  width: calc(100% + 36px);
  height: 190px;
  margin: -18px -18px 8px;
  object-fit: cover;
}

.enterprise-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.enterprise-card strong {
  font-size: 24px;
  line-height: 1.18;
}

.enterprise-card small {
  color: var(--muted);
  line-height: 1.6;
}

.enterprise-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
}

.enterprise-list,
.enterprise-news-list {
  display: grid;
  gap: 12px;
}

.enterprise-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text);
}

.enterprise-list img,
.enterprise-list span {
  width: 92px;
  height: 68px;
  border-radius: 8px;
}

.enterprise-list img {
  object-fit: cover;
}

.enterprise-list span {
  display: grid;
  place-items: center;
  background: #f2f6f4;
  color: var(--primary);
  font-weight: 900;
}

.enterprise-list b {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.enterprise-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.enterprise-news-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding-bottom: 12px;
}

.enterprise-news-list a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.enterprise-news-list time {
  color: var(--primary);
  font-weight: 900;
}

.enterprise-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
}

.dwk-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 70px clamp(24px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(250, 247, 239, 0.98) 0%, rgba(250, 247, 239, 0.94) 31%, rgba(250, 247, 239, 0.55) 51%, rgba(250, 247, 239, 0.04) 76%),
    var(--dwk-home-hero-image, url("/static/business/site-assets/hero.png")) right center / auto 100% no-repeat,
    #f7f3e9;
}

.dwk-hero-copy {
  width: min(520px, 100%);
}

.dwk-hero h1 {
  margin: 0 0 26px;
  color: var(--primary);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.16;
}

.dwk-hero p {
  max-width: 480px;
  margin: 0 0 34px;
  color: #56625b;
  font-size: 17px;
  line-height: 1.8;
}

.dwk-actions,
.dwk-section-title {
  display: flex;
  align-items: center;
}

.dwk-actions {
  gap: 18px;
  flex-wrap: wrap;
}

.dwk-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px clamp(20px, 4vw, 36px) 18px;
}

.dwk-section-title {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dwk-section-title h2 {
  margin: 0;
  color: #17231a;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}

.dwk-section-title a {
  color: #3f5148;
  font-size: 14px;
  font-weight: 800;
}

.dwk-section-title a::after {
  content: "›";
  margin-left: 8px;
}

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

.dwk-category-card {
  overflow: hidden;
  min-height: 330px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.dwk-category-card img {
  width: 100%;
  height: 202px;
  object-fit: cover;
  background: #f4f6f4;
}

.dwk-category-card h3 {
  margin: 26px 16px 10px;
  color: #193d26;
  font-size: 21px;
}

.dwk-category-card p {
  width: min(230px, calc(100% - 28px));
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
}

.dwk-product-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.dwk-product-strip a {
  min-width: 0;
  padding: 14px 10px 15px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(20, 45, 28, 0.05);
}

.dwk-product-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.dwk-product-strip span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
}

.dwk-benefits-wrap {
  max-width: none;
  margin-top: 32px;
  background: #eef5ee;
}

.dwk-benefits-wrap .dwk-section-title,
.dwk-benefits {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.dwk-benefits article {
  min-height: 190px;
  padding: 26px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dwk-benefits span {
  color: var(--primary);
  font-size: 28px;
}

.dwk-benefits h3 {
  margin: 16px 0 8px;
  color: #173e25;
}

.dwk-benefits p {
  margin: 0;
  color: var(--muted);
}

.dwk-article-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.dwk-article-grid a {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(20, 45, 28, 0.05);
}

.dwk-article-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.dwk-article-grid h3 {
  margin: 16px 16px 8px;
  color: #17231a;
  font-size: 17px;
  line-height: 1.35;
}

.dwk-article-grid p {
  margin: 0 16px 12px;
  color: var(--muted);
  font-size: 14px;
}

.dwk-article-grid time {
  display: block;
  margin: 0 16px 18px;
  color: #8a948e;
  font-size: 13px;
}

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

.dwk-case-grid a {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dwk-case-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dwk-case-grid span {
  display: block;
  margin: 18px 18px 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.dwk-case-grid h3 {
  margin: 0 18px 8px;
  color: #17231a;
  font-size: 22px;
}

.dwk-case-grid p {
  margin: 0 18px 20px;
  color: var(--muted);
}

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

.dwk-brand-grid span {
  display: grid;
  place-items: center;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.dwk-brand-grid b {
  color: #173e25;
  font-size: 18px;
}

.dwk-brand-grid small {
  color: var(--muted);
}

.dwk-collab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  max-width: 1280px;
  margin: 44px auto 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 36px clamp(24px, 4vw, 48px);
}

.dwk-collab h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.dwk-collab p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.dwk-page-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 48px clamp(24px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(247, 246, 239, 0.97), rgba(247, 246, 239, 0.78) 43%, rgba(247, 246, 239, 0.04) 78%),
    var(--dwk-hero-image) right center / auto 100% no-repeat,
    #f4f0e5;
}

.dwk-page-hero-product {
  --dwk-hero-image: url("/static/business/site-assets/hero-product.png");
}

.dwk-page-hero-wiki {
  --dwk-hero-image: url("/static/business/site-assets/hero-wiki.png");
}

.dwk-page-hero-news {
  --dwk-hero-image: url("/static/business/site-assets/hero-news.png");
}

.dwk-page-hero-agency {
  --dwk-hero-image: url("/static/business/site-assets/hero-product.png");
}

.dwk-page-hero-contact {
  --dwk-hero-image: url("/static/business/site-assets/hero-contact.png");
}

.dwk-page-hero div {
  width: min(560px, 100%);
}

.dwk-page-hero span,
.dwk-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 79, 43, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 12px;
}

.dwk-page-hero h1 {
  margin: 18px 0 16px;
  color: var(--primary);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.dwk-page-hero p {
  margin: 0;
  color: #56625b;
  font-size: 17px;
  line-height: 1.8;
}

.dwk-crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 1280px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  padding: 0 clamp(20px, 4vw, 36px);
}

.dwk-crumb a {
  color: var(--primary);
  font-weight: 800;
}

.dwk-crumb span::before {
  content: "/";
  margin-right: 10px;
  color: #aab3ae;
}

.dwk-page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 36px);
}

.dwk-two-col,
.dwk-sidebar-layout,
.dwk-contact-layout,
.dwk-agency-intro {
  display: grid;
  gap: 28px;
}

.dwk-two-col {
  grid-template-columns: 280px minmax(0, 1fr);
}

.dwk-sidebar-layout,
.dwk-contact-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.dwk-agency-intro {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.dwk-content-side,
.dwk-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.dwk-content-side {
  position: sticky;
  top: 100px;
}

.dwk-side-card,
.dwk-panel,
.dwk-feature-card,
.dwk-agency-card,
.dwk-info-grid article,
.dwk-contact-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 45, 28, 0.06);
}

.dwk-side-card {
  padding: 22px;
}

.dwk-side-card h3 {
  margin: 0 0 14px;
  color: #173e25;
  font-size: 20px;
}

.dwk-side-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.dwk-lead-form {
  display: grid;
  gap: 12px;
}

.dwk-lead-form label {
  display: grid;
  gap: 6px;
  color: #173e25;
  font-size: 13px;
  font-weight: 900;
}

.dwk-lead-form .field,
.dwk-lead-form input,
.dwk-lead-form select,
.dwk-lead-form textarea {
  width: 100%;
}

.dwk-lead-form textarea {
  min-height: 96px;
  resize: vertical;
}

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

.info-list p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.info-list strong {
  color: var(--muted);
}

.info-list span {
  color: var(--text);
  font-weight: 800;
}

.dwk-side-card > a:not(.button),
.dwk-side-link {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #edf1ee;
  color: var(--text);
  padding: 12px 0;
}

.dwk-side-card > a:not(.button):last-child,
.dwk-side-link:last-child {
  border-bottom: 0;
}

.dwk-side-link strong,
.dwk-side-card > a:not(.button) {
  font-weight: 900;
}

.dwk-side-link small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dwk-consult-card {
  overflow: hidden;
}

.dwk-consult-card img {
  width: 100%;
  height: 145px;
  margin-top: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.dwk-page-main {
  min-width: 0;
}

.dwk-panel {
  padding: 26px;
}

.dwk-panel + .dwk-panel,
.dwk-panel + .dwk-banner-cta {
  margin-top: 24px;
}

.dwk-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(20, 45, 28, 0.05);
}

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

.dwk-panel-head h2,
.dwk-agency-intro h2 {
  margin: 0 0 8px;
  color: #173e25;
  font-size: clamp(24px, 3vw, 34px);
}

.dwk-panel-head p,
.dwk-agency-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.dwk-card-grid,
.dwk-article-list-grid,
.dwk-feature-band,
.dwk-info-grid {
  display: grid;
  gap: 18px;
}

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

.dwk-product-section .dwk-card-grid,
.dwk-page-main > .dwk-panel .dwk-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.dwk-product-card,
.dwk-article-list-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dwk-product-card:hover {
  border-color: rgba(23, 79, 43, 0.28);
  box-shadow: 0 18px 36px rgba(20, 45, 28, 0.1);
  transform: translateY(-2px);
}

.dwk-product-card img,
.dwk-article-list-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f4f7f5;
}

.dwk-product-card h3,
.dwk-article-list-grid h3 {
  margin: 18px 18px 8px;
  color: #17231a;
  font-size: 20px;
  line-height: 1.35;
}

.dwk-product-card h3 {
  min-height: 54px;
}

.dwk-product-card em {
  display: inline-flex;
  width: fit-content;
  margin: 16px 18px 0;
  border-radius: 999px;
  background: #edf6ef;
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.dwk-product-card p,
.dwk-article-list-grid p {
  min-height: 46px;
  margin: 0 18px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dwk-product-card span,
.dwk-article-list-grid span,
.dwk-article-list-grid time {
  display: block;
  margin: 0 18px 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.dwk-product-card small {
  display: block;
  min-height: 22px;
  margin: 0 18px 12px;
  color: #7a877f;
  font-size: 13px;
  line-height: 1.5;
}

.dwk-article-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dwk-feature-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 22px;
}

.dwk-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.dwk-feature-card div {
  display: grid;
  align-content: center;
  padding: 32px;
}

.dwk-feature-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.dwk-feature-card h2 {
  margin: 12px 0;
  color: #173e25;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

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

.dwk-news-list {
  display: grid;
  gap: 18px;
}

.dwk-news-list a {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(20, 45, 28, 0.05);
}

.dwk-news-list img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.dwk-news-list span {
  display: grid;
  gap: 8px;
}

.dwk-news-list em {
  color: var(--primary);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.dwk-news-list strong {
  color: #17231a;
  font-size: 24px;
  line-height: 1.35;
}

.dwk-news-list small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.dwk-wiki-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.dwk-wiki-left,
.dwk-wiki-right {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.dwk-wiki-left {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.dwk-wiki-left > a {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  color: #26392e;
  font-size: 15px;
  font-weight: 900;
  padding: 12px 13px;
}

.dwk-wiki-left > a:hover,
.dwk-wiki-left > a.active {
  background: #eef6ef;
  color: var(--primary);
}

.dwk-wiki-left span,
.dwk-wiki-tabs span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f3f7f4;
  color: var(--primary);
  font-size: 15px;
}

.dwk-wiki-consult {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 249, 245, 0.94), rgba(235, 244, 237, 0.94)),
    url("/static/business/site-assets/wiki-4.png") right bottom / 120px auto no-repeat;
  padding: 16px;
}

.dwk-wiki-consult strong {
  color: #173e25;
  font-size: 16px;
}

.dwk-wiki-consult small {
  color: var(--muted);
  font-size: 13px;
}

.dwk-wiki-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.dwk-wiki-tabs a {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 86px;
  border-right: 1px solid var(--line);
  color: #324238;
  font-size: 14px;
  font-weight: 900;
}

.dwk-wiki-tabs a:last-child {
  border-right: 0;
}

.dwk-wiki-tabs a:hover,
.dwk-wiki-tabs a.active {
  background: #f5faf6;
  color: var(--primary);
}

.dwk-wiki-feature {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  overflow: hidden;
}

.dwk-wiki-feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.dwk-wiki-feature > span {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
}

.dwk-wiki-feature em {
  width: fit-content;
  border-radius: 999px;
  background: #edf6ef;
  color: var(--primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 10px;
}

.dwk-wiki-feature strong {
  color: #17231a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.dwk-wiki-feature small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.dwk-wiki-feature time,
.dwk-wiki-feature b {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.dwk-wiki-section {
  margin-top: 24px;
}

.dwk-wiki-section .dwk-section-title {
  margin-bottom: 14px;
}

.dwk-wiki-section .dwk-section-title h2 {
  font-size: 24px;
}

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

.dwk-wiki-card-grid a {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  overflow: hidden;
  padding-bottom: 12px;
}

.dwk-wiki-card-grid img {
  width: 100%;
  aspect-ratio: 4 / 2.6;
  object-fit: cover;
  background: #f4f7f5;
}

.dwk-wiki-card-grid strong {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 12px;
  overflow: hidden;
  color: #17231a;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dwk-wiki-card-grid time {
  margin: 0 12px;
  color: #8a968f;
  font-size: 12px;
}

.dwk-rank-card a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 12px 0;
}

.dwk-rank-card b {
  color: var(--primary);
  font-size: 15px;
}

.dwk-rank-card span,
.dwk-side-news-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.dwk-rank-card small,
.dwk-side-news-card small {
  color: #8a968f;
  font-size: 12px;
  font-weight: 700;
}

.dwk-side-news-card a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 10px 0;
}

.dwk-side-news-card img {
  width: 64px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.dwk-wiki-cta {
  max-width: 1280px;
  margin: 0 auto 30px;
}

.dwk-banner-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 79, 43, 0.95), rgba(23, 79, 43, 0.76)),
    url("/static/business/site-assets/cta-bg.png") center / cover no-repeat;
  color: #fff;
  padding: 34px;
}

.dwk-banner-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.dwk-banner-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.dwk-agency-intro {
  align-items: center;
}

.dwk-agency-card {
  padding: 30px;
  background: #eef6ef;
}

.dwk-agency-card strong {
  color: #173e25;
  font-size: 22px;
}

.dwk-agency-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}

.dwk-agency-page {
  background: #f7faf7;
}

.dwk-agency-hero {
  min-height: 240px;
  background:
    linear-gradient(90deg, rgba(247, 246, 239, 0.98), rgba(247, 246, 239, 0.78) 42%, rgba(247, 246, 239, 0.08) 78%),
    url("/static/business/site-assets/hero-product.png") right center / auto 100% no-repeat,
    #f4f0e5;
}

.dwk-agency-hero h1 {
  font-size: clamp(40px, 5vw, 62px);
}

.dwk-agency-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dwk-agency-hero-points span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(20, 45, 28, 0.08);
  color: #174f2b;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 14px;
}

.dwk-agency-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.dwk-agency-main {
  display: grid;
  gap: 18px;
}

.dwk-agency-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.dwk-agency-card-block {
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 45, 28, 0.055);
  padding: 18px;
}

.dwk-agency-intro-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.dwk-agency-intro-card img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.dwk-agency-card-block h2,
.dwk-agency-apply-card h2 {
  margin: 0;
  color: #173e25;
}

.dwk-agency-card-block h2 {
  font-size: 22px;
}

.dwk-agency-card-block p {
  color: var(--muted);
  line-height: 1.85;
}

.dwk-section-title.compact {
  margin-bottom: 14px;
}

.dwk-section-title.compact h2 {
  font-size: 22px;
}

.dwk-agency-region-grid,
.dwk-agency-benefit-grid,
.dwk-agency-policy-grid,
.dwk-agency-check-grid,
.dwk-agency-process {
  display: grid;
  gap: 12px;
}

.dwk-agency-region-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dwk-agency-region-grid article,
.dwk-agency-benefit-grid article,
.dwk-agency-policy-grid article,
.dwk-agency-process article {
  border: 1px solid #e3ebe5;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 16px;
}

.dwk-agency-region-grid article {
  min-height: 106px;
  display: grid;
  place-items: center;
  text-align: center;
}

.dwk-agency-region-grid span,
.dwk-agency-process strong {
  color: #173e25;
  font-size: 16px;
  font-weight: 900;
}

.dwk-agency-region-grid small,
.dwk-agency-process small {
  color: var(--muted);
  line-height: 1.5;
}

.dwk-agency-benefit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dwk-agency-benefit-grid b,
.dwk-agency-process b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #eaf4ed;
  color: #17654f;
  font-weight: 900;
}

.dwk-agency-benefit-grid h3,
.dwk-agency-policy-grid h3 {
  margin: 12px 0 6px;
  color: #173e25;
  font-size: 17px;
}

.dwk-agency-benefit-grid p,
.dwk-agency-policy-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.dwk-agency-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dwk-agency-check-grid span {
  position: relative;
  color: #33423a;
  font-weight: 800;
  line-height: 1.6;
  padding-left: 24px;
}

.dwk-agency-check-grid span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #17654f;
  box-shadow: inset 0 0 0 3px #dff0e6;
}

.dwk-agency-policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dwk-agency-process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dwk-agency-process article {
  display: grid;
  gap: 7px;
  text-align: center;
}

.dwk-agency-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dwk-agency-faq details {
  border: 1px solid #e3ebe5;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.dwk-agency-faq summary {
  cursor: pointer;
  color: #173e25;
  font-weight: 900;
}

.dwk-agency-faq p {
  margin: 10px 0 0;
  font-size: 14px;
}

.dwk-agency-apply-card {
  gap: 10px;
  padding: 22px;
}

.dwk-agency-apply-card h2 {
  font-size: 24px;
}

.dwk-agency-apply-card textarea {
  min-height: 112px;
}

.dwk-agency-qr-card img {
  width: 150px;
  height: 150px;
  display: block;
  margin: 14px auto;
  border-radius: 8px;
  object-fit: cover;
}

.dwk-agency-qr-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dwk-agency-phone-card strong {
  display: block;
  color: #17654f;
  font-size: 26px;
  margin-bottom: 8px;
}

.dwk-agency-download-card {
  background:
    linear-gradient(120deg, #fff, rgba(244, 240, 229, 0.76)),
    url("/static/business/site-assets/product-cta.png") right bottom / 120px auto no-repeat;
}

.dwk-agency-bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 240, 229, 0.96), rgba(244, 240, 229, 0.8)),
    url("/static/business/site-assets/cta-bg.png") left center / auto 100% no-repeat;
  padding: 26px 34px;
}

.dwk-agency-bottom-cta h2,
.dwk-agency-bottom-cta p {
  margin: 0;
}

.dwk-agency-bottom-cta h2 {
  color: #17654f;
  font-size: clamp(24px, 3vw, 34px);
}

.dwk-agency-bottom-cta p {
  color: var(--muted);
  margin-top: 6px;
}

.dwk-agency-bottom-cta strong {
  color: #17654f;
  font-size: 28px;
}

.dwk-feature-band,
.dwk-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dwk-feature-band article,
.dwk-info-grid article {
  min-height: 170px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.dwk-feature-band h3 {
  margin: 0 0 10px;
  color: #173e25;
}

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

.dwk-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.dwk-info-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
}

.dwk-info-grid strong {
  color: var(--primary);
  font-size: 14px;
}

.dwk-info-grid span {
  color: #17231a;
  font-size: 22px;
  font-weight: 900;
}

.dwk-info-grid small {
  color: var(--muted);
  line-height: 1.6;
}

.dwk-contact-map {
  overflow: hidden;
  margin-bottom: 22px;
}

.dwk-contact-map img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.dwk-qr-card {
  text-align: center;
}

.dwk-qr-card img {
  width: min(210px, 100%);
  margin: 10px auto 16px;
  display: block;
  border-radius: 8px;
}

.sspai-daily,
.sspai-hero-main,
.sspai-left-rail,
.sspai-right-rail section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.sspai-daily {
  display: grid;
  align-content: center;
  min-height: 210px;
  gap: 10px;
  padding: 24px;
}

.sspai-daily span {
  color: var(--primary);
  font-weight: 900;
}

.sspai-daily strong {
  font-size: 34px;
  line-height: 1.1;
}

.sspai-hero-main {
  display: grid;
  align-content: center;
  min-height: 210px;
  padding: clamp(24px, 5vw, 42px);
}

.sspai-hero-main h1 {
  margin: 8px 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.sspai-hero-main p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.sspai-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 292px;
  gap: 18px;
  align-items: start;
}

.sspai-left-rail,
.sspai-right-rail {
  position: sticky;
  top: 84px;
}

.sspai-left-rail {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.sspai-left-rail a {
  border-radius: 8px;
  color: #4b5563;
  font-weight: 900;
  padding: 11px 12px;
}

.sspai-left-rail a.active,
.sspai-left-rail a:hover {
  background: #fff1f1;
  color: var(--primary);
}

.sspai-main-feed {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 18px 10px;
}

.sspai-right-rail {
  display: grid;
  gap: 14px;
}

.sspai-right-rail section {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.sspai-right-rail section > span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.sspai-right-rail a {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.sspai-right-rail a small {
  float: right;
}

.article-portal-hero h1 {
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.article-portal-hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

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

.article-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}

.article-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-weight: 800;
  padding: 8px 2px;
  white-space: nowrap;
}

.article-tabs a.active {
  border-bottom-color: var(--primary);
  background: transparent;
  color: var(--text);
}

.article-feature-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.article-feature-card {
  display: grid;
  min-height: 260px;
  align-content: end;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 55, 47, 0.1), rgba(18, 55, 47, 0.88)),
    linear-gradient(135deg, #e8f0ec, #d4c095);
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 22px;
  overflow: hidden;
}

.article-feature-card:first-child {
  min-height: 360px;
}

.article-feature-card span {
  color: #f0d78e;
  font-size: 13px;
  font-weight: 900;
}

.article-feature-card strong {
  margin: 8px 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.article-feature-card small {
  color: rgba(255, 255, 255, 0.78);
}

.article-feed {
  display: grid;
  gap: 0;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 20px;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  padding: 18px 0;
  box-shadow: none;
}

.article-card img,
.article-card-placeholder {
  width: 100%;
  min-height: 116px;
  max-height: 128px;
  border-radius: 8px;
  object-fit: cover;
}

.article-card-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf5f1, #f4ead2);
  color: var(--primary-dark);
  font-weight: 900;
}

.article-card-body {
  display: grid;
  align-content: center;
  gap: 8px;
  order: -1;
}

.article-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.article-card i {
  color: var(--muted);
  font-style: normal;
}

.article-reader-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 900px) 220px;
  gap: 22px;
  align-items: start;
  width: min(1380px, 100%);
  margin: 0 auto;
}

.article-detail {
  width: 100%;
  min-width: 0;
}

.article-tag-related,
.article-reading-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 116px);
}

.article-tag-related {
  min-width: 0;
}

.article-side-panel {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
  padding: 14px;
  scrollbar-width: thin;
}

.article-side-panel > strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.article-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-side-tags a {
  border-radius: 999px;
  background: #f2f6f4;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.article-tag-related-list {
  display: grid;
  gap: 10px;
}

.article-tag-related-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.article-tag-related-card {
  display: grid;
  gap: 6px;
  color: var(--text);
}

.article-tag-related-card img,
.article-tag-related-card span {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

.article-tag-related-card img {
  object-fit: cover;
}

.article-tag-related-card span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf5f1, #f4ead2);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.article-tag-related-card small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.article-tag-related-card b {
  font-size: 14px;
  line-height: 1.45;
}

.article-tag-related-card em {
  color: #7a8699;
  font-size: 11px;
  font-style: normal;
}

.article-reading-toc {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  color: #667085;
  overflow: hidden;
  padding: 8px 0;
}

.article-reading-toc[hidden] {
  display: none;
}

.article-reading-toc strong {
  display: block;
  margin: 2px 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.article-reading-toc nav {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.article-reading-toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  min-height: 30px;
}

.article-reading-toc a span {
  display: block;
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background 0.2s ease, width 0.2s ease;
}

.article-reading-toc a em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-reading-toc a.toc-depth-3 {
  padding-left: 12px;
}

.article-reading-toc a.toc-depth-4 {
  padding-left: 24px;
  font-size: 13px;
}

.article-reading-toc a.active {
  color: var(--text);
}

.article-reading-toc a.active span {
  width: 28px;
  background: var(--article-accent, var(--primary));
}

.article-toc-progress {
  position: relative;
  width: 8px;
  min-height: 100%;
  border-radius: 999px;
  background: #f1f3f5;
}

.article-toc-progress span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--article-accent, var(--primary)), #9ca3af);
  transition: height 0.12s linear;
}

.article-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 26px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.article-detail-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.article-detail-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.article-detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.article-detail-hero.no-cover {
  display: block;
  text-align: center;
  padding-block: clamp(34px, 6vw, 72px);
}

.article-detail-baike-no-cover .article-detail-hero > div {
  max-width: 820px;
  margin: 0 auto;
}

.article-detail-baike-no-cover .article-meta,
.article-detail-baike-no-cover .detail-tags {
  justify-content: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-meta span {
  border-radius: 999px;
  background: #f2f6f4;
  padding: 6px 10px;
}

.article-summary {
  margin: 18px 0;
  border-left: 4px solid var(--article-accent, var(--primary));
  border-radius: 8px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.8;
  padding: 18px 20px;
}

.article-body {
  scroll-margin-top: 96px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-top: 18px;
  padding: clamp(22px, 5vw, 54px);
}

.article-body p {
  margin: 0 0 1.2em;
  color: #24342f;
  font-size: 18px;
  line-height: 1.95;
}

.article-tag-inline {
  border-bottom: 1px solid rgba(23, 101, 79, 0.34);
  color: var(--article-accent, var(--primary));
  font-weight: 800;
  text-decoration: none;
}

.article-tag-inline:hover {
  border-bottom-color: currentColor;
  color: var(--primary-dark);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: 108px;
}

.article-body h2 {
  margin: 1.8em 0 0.75em;
  color: #17231f;
  font-size: 30px;
  line-height: 1.25;
}

.article-body h3 {
  margin: 1.5em 0 0.65em;
  color: #24342f;
  font-size: 24px;
  line-height: 1.3;
}

.article-body h4 {
  margin: 1.35em 0 0.55em;
  color: #33443f;
  font-size: 20px;
  line-height: 1.35;
}

.article-body figure {
  margin: 24px auto;
}

.article-body img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

.article-body figcaption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

.article-layout-guide .article-detail-hero {
  border-top: 5px solid var(--article-accent, var(--primary));
}

.article-layout-product .article-detail-hero {
  background: linear-gradient(135deg, #fff, #f6efe0);
}

.article-related {
  width: min(980px, 100%);
  margin: 18px auto 0;
}

.article-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.article-related-grid a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 14px;
}

.selected-customer {
  display: grid;
  gap: 4px;
  border: 1px solid #b9dfd9;
  border-radius: 8px;
  background: #eef8f4;
  margin: 10px 0 14px;
  padding: 12px;
}

.selected-customer.empty {
  border-style: dashed;
  background: #f9fbfa;
}

.selected-customer.empty #clear-customer {
  display: none;
}

.customer-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.customer-result-button {
  width: 100%;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.new-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.span-2 {
  grid-column: span 2;
}

.line-table {
  min-width: 720px;
}

.line-table th:first-child,
.line-table td:first-child {
  width: 46%;
}

.line-table th:nth-child(2),
.line-table td:nth-child(2),
.line-table th:nth-child(3),
.line-table td:nth-child(3) {
  width: 120px;
}

.last-price-note {
  display: block;
  margin-top: 6px;
}

.last-price-note.warning {
  color: #a15c07;
  font-weight: 700;
}

.last-price-note.error {
  color: var(--danger);
  font-weight: 800;
}

.product-picker-cell {
  display: grid;
  gap: 8px;
}

.selected-product-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid #bfd6cf;
  border-radius: 8px;
  background: #f4faf7;
  padding: 8px;
}

.selected-product-card.empty {
  display: grid;
  grid-template-columns: 1fr;
  color: var(--muted);
}

.selected-product-card.empty strong {
  color: var(--text);
}

.selected-product-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}

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

.selected-product-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.selected-product-info strong,
.selected-product-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  top: var(--app-viewport-top, 0);
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  align-items: start;
  justify-items: center;
  height: var(--app-viewport-height, 100vh);
  max-height: var(--app-viewport-height, 100vh);
  background: rgba(8, 24, 20, 0.62);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(12px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  scroll-padding: 12px 0 max(140px, calc(24px + var(--app-keyboard-height, 0px)));
}

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

.modal-panel {
  width: min(760px, 100%);
  max-height: calc(var(--app-viewport-height, 100vh) - max(24px, env(safe-area-inset-top)));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scroll-padding: 86px 0 max(180px, calc(32px + var(--app-keyboard-height, 0px)));
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 3px 0 0;
}

.modal-hint {
  margin: 12px 0 0;
  font-size: 13px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid transparent;
  background: #fff;
  margin-top: 14px;
  padding-top: 10px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.customer-picker-results {
  max-height: min(420px, calc(var(--app-viewport-height, 100vh) - 230px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.product-picker-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(420px, calc(var(--app-viewport-height, 100vh) - 230px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 12px;
  padding-right: 2px;
}

.modal-panel input,
.modal-panel textarea,
.modal-panel select,
.modal-panel button {
  scroll-margin-top: 92px;
  scroll-margin-bottom: max(220px, calc(48px + var(--app-keyboard-height, 0px)));
}

.share-modal-panel {
  width: min(920px, 100%);
}

.share-preview {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  max-height: min(58vh, 620px);
  overflow: auto;
  padding: 10px;
}

.share-preview img {
  width: min(100%, 820px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.share-print-receipt {
  display: none;
}

.share-print-receipt img {
  display: block;
  width: 100%;
}

.print-preview-panel {
  margin: 0 auto;
  max-width: 980px;
}

.print-preview-panel .share-print-receipt {
  display: block;
}

.print-preview-panel .share-print-receipt img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

#order-image-print-root {
  display: none;
}

.keyboard-open .modal-backdrop,
.app-shell-root .modal-backdrop,
.simpleui-embedded-root .modal-backdrop {
  align-items: start;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.keyboard-open .modal-panel,
.app-shell-root .modal-panel,
.simpleui-embedded-root .modal-panel {
  max-height: calc(var(--app-viewport-height, 100vh) - 16px);
}

.keyboard-open .customer-picker-results,
.keyboard-open .product-picker-results,
.app-shell-root .customer-picker-results,
.app-shell-root .product-picker-results,
.simpleui-embedded-root .customer-picker-results,
.simpleui-embedded-root .product-picker-results {
  max-height: max(130px, calc(var(--app-viewport-height, 100vh) - 210px));
}

.keyboard-open #customer-create-modal .modal-panel,
.app-shell-root #customer-create-modal .modal-panel,
.simpleui-embedded-root #customer-create-modal .modal-panel {
  max-height: calc(var(--app-viewport-height, 100vh) - 12px);
}

.product-picker-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 10px 12px;
  text-align: left;
}

.product-picker-item:hover,
.product-picker-item:focus {
  background: #eef8f4;
}

.suggestion-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}

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

.suggestion-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

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

.product-picker-item span,
.suggestion-empty {
  color: var(--muted);
  font-size: 13px;
}

.product-picker-item .stock-text.low {
  color: var(--danger);
  font-weight: 800;
}

.suggestion-empty {
  padding: 12px;
}

.line-amount {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 900;
  white-space: nowrap;
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}

.order-step-panel {
  position: relative;
}

.order-flow-steps {
  position: sticky;
  top: 78px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(18, 55, 47, 0.08);
  backdrop-filter: blur(12px);
}

.order-flow-steps a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 800;
}

.order-flow-steps a.active,
.order-flow-steps a:hover {
  background: #ecf8f0;
  color: var(--primary);
}

.order-flow-steps strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #ecf8f0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  padding: 4px 10px;
}

.order-step-hint strong {
  display: block;
  margin-bottom: 4px;
}

.mobile-order-submit {
  display: grid;
  gap: 10px;
}

.inline-collect-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(160px, 0.9fr) auto;
  gap: 12px;
  align-items: end;
}

.inline-collect-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inline-collect-form.compact {
  grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 0.8fr) auto;
}

.debt-collect-panel {
  margin-bottom: 18px;
}

.debt-timeline {
  display: grid;
  gap: 10px;
}

.debt-timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(320px, 0.9fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.debt-timeline-item small {
  display: block;
  margin-top: 4px;
}

.mobile-submit-total {
  display: none;
}

.total-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.total-box span {
  color: var(--muted);
}

.total-box strong {
  color: var(--primary-dark);
  font-size: 28px;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  margin: 0 0 16px;
  padding: 12px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-weight: 800;
}

.debt-field {
  display: grid;
  gap: 5px;
}

.debt-field span,
.payment-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-summary {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.payment-summary strong {
  color: var(--primary-dark);
  font-size: 22px;
}

.receipt {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.outbound-receipt .receipt-head {
  border-bottom-color: var(--primary-dark);
}

.narrow-panel {
  width: min(760px, 100%);
}

.danger-panel {
  border-color: #f0b8b2;
}

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

.product-edit-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-basic-panel,
.product-variant-panel {
  min-width: 0;
}

.product-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-field-span-2 {
  grid-column: 1 / -1;
}

.product-subsection {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-subsection h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 16px;
}

.article-product-panel {
  grid-column: 1 / -1;
  border: 1px solid #d8e7dc;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fbf7, #fff);
  padding: 18px;
}

.article-product-images {
  grid-column: 1 / -1;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.product-image-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-image-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dce7e3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.product-image-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-image-card-head strong {
  color: #101828;
  font-size: 14px;
}

.product-image-card-head span {
  border-radius: 999px;
  background: #edf7f1;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  white-space: nowrap;
}

.product-image-file-name {
  min-height: 34px;
  overflow: hidden;
  border: 1px solid #e6eeeb;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  line-height: 34px;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-native {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.row-actions.compact {
  gap: 6px;
}

.product-image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
}

.product-image-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  padding: 16px;
}

.product-image-preview-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.article-product-type-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8e7dc;
  border-radius: 8px;
  background: #f7fbf8;
  margin-bottom: 16px;
  padding: 12px;
}

.article-product-type-shortcuts strong {
  color: var(--primary-dark);
  margin-right: 4px;
}

.article-product-type-shortcuts a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 12px;
}

.article-product-type-shortcuts a.active,
.article-product-type-shortcuts a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.article-related-product-checks ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.article-related-product-checks li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.article-related-product-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.article-related-product-option {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border: 1px solid #dce6e1;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  padding: 7px 10px;
}

.article-related-product-option:hover {
  border-color: rgba(23, 101, 79, 0.38);
  background: #f3faf6;
}

.article-related-product-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  accent-color: var(--primary);
}

.article-related-product-option:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background: #eaf5ef;
  color: var(--primary);
}

.article-related-product-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dwk-product-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: #f7fbf8;
  margin-top: 18px;
  padding: 14px;
}

.dwk-product-contact-card strong,
.dwk-product-contact-card span,
.dwk-product-contact-card small {
  display: block;
}

.dwk-product-contact-card strong {
  color: var(--primary-dark);
  font-size: 17px;
}

.dwk-product-contact-card span {
  margin-top: 5px;
  color: #15241d;
  font-size: 22px;
  font-weight: 900;
}

.dwk-product-contact-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.dwk-product-contact-card img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.dwk-product-faq {
  margin-top: 26px;
}

.dwk-faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.dwk-faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.dwk-faq-list h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 18px;
}

.dwk-faq-list p {
  margin: 0;
  color: #5b6860;
  line-height: 1.8;
}

.article-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.article-list-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #51615a;
  font-size: 14px;
  font-weight: 900;
  padding: 0 16px;
}

.article-list-tabs a.active,
.article-list-tabs a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.website-publish-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fbfdfb;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.website-publish-flow span {
  color: var(--primary-dark);
  font-weight: 900;
  margin-right: 4px;
}

.website-publish-flow a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #dfe8e3;
  border-radius: 999px;
  background: #fff;
  color: #51615a;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
}

.website-publish-flow a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.row-actions form {
  margin: 0;
}

.row-actions form .button {
  white-space: nowrap;
}

.website-admin-panel {
  display: grid;
  gap: 10px;
}

.website-module-hero {
  border: 1px solid rgba(23, 101, 79, 0.14);
  background:
    linear-gradient(120deg, rgba(23, 101, 79, 0.08), rgba(181, 142, 60, 0.08)),
    #fff;
}

.website-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.website-module-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.website-module-card {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.website-module-card.compact {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 14px;
}

.website-module-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef6ef;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.website-module-card h2 {
  margin: 6px 0 0;
  color: var(--primary-dark);
  font-size: 15px;
  line-height: 1.25;
}

.website-module-card p {
  display: none;
}

.website-module-card .button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
}

.website-module-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.website-module-links a {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fff;
  color: #17231d;
  padding: 8px 10px;
}

.website-module-links a:hover {
  border-color: var(--primary);
  background: #f7fbf8;
}

.website-module-links strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-module-links small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-box {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1f18;
  color: #e9f4ee;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
}

.log-box.error {
  border-color: #f0b8b2;
  background: #341611;
  color: #ffe9e4;
}

.website-recent-panel {
  margin-bottom: 18px;
}

.website-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.website-page-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbf8);
  padding: 12px 14px;
}

.website-page-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef6ef;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.website-page-card h3 {
  margin: 7px 0 3px;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.25;
}

.website-page-card p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-page-card .row-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.website-page-card .button.small {
  min-height: 30px;
  padding: 5px 9px;
}

.panel-header.compact {
  margin-bottom: 14px;
}

.panel-header.compact h2 {
  font-size: 18px;
}

.product-field-grid {
  margin-top: 10px;
}

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

.article-product-profile {
  border: 1px solid #d8e7dc;
  border-radius: 8px;
  background: #f8fbf8;
  margin: 0 0 26px;
  padding: 24px;
}

.article-product-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e3ece5;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.article-product-profile-head span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.article-product-profile-head strong {
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 7px 11px;
}

.article-product-profile dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.article-product-profile dl div {
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.article-product-profile dl div.wide {
  grid-column: 1 / -1;
}

.article-product-profile dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.article-product-profile dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.65;
}

.dwk-product-detail-page {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.dwk-product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 44px;
  align-items: start;
  margin-top: 28px;
}

.dwk-gallery-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dwk-gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dwk-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.dwk-gallery-thumbs img {
  width: 100%;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.72;
}

.dwk-gallery-thumbs img.active,
.dwk-gallery-thumbs img:hover {
  border-color: var(--primary);
  opacity: 1;
}

.dwk-buy-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 14px 36px rgba(20, 45, 28, 0.08);
}

.dwk-buy-box h1 {
  margin: 16px 0 10px;
  color: #17231a;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.dwk-subtitle {
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 18px;
}

.dwk-price {
  margin: 22px 0;
  color: var(--primary);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
}

.dwk-price small {
  color: var(--muted);
  font-size: 14px;
}

.dwk-option-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  color: #6b756f;
}

.dwk-option-row > span {
  font-weight: 900;
}

.dwk-option-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dwk-option-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #4a5a50;
  font: inherit;
  font-weight: 800;
  padding: 7px 14px;
}

.dwk-option-row button.active {
  border-color: var(--primary);
  background: #f7fbf7;
  color: var(--primary);
}

.dwk-product-meta {
  color: var(--muted);
  font-size: 14px;
}

.dwk-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

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

.dwk-feature-band article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.dwk-feature-band h3 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 17px;
}

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

.dwk-content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.dwk-content-card h3 {
  margin: 0 0 14px;
  color: #173e25;
}

.dwk-single-page-content .article-body {
  box-shadow: none;
  margin-top: 0;
  padding: 6px 0 0;
}

.dwk-single-page-content .article-body p {
  color: #526058;
}

.form-image-preview {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 108px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 10px;
  background: #f6f8f7;
}

.dwk-detail-split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.dwk-spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dwk-spec-table th,
.dwk-spec-table td {
  border: 1px solid var(--line);
  color: #526058;
  font-size: 14px;
  line-height: 1.65;
  padding: 13px 16px;
  vertical-align: top;
}

.dwk-spec-table th {
  width: 112px;
  background: #f8faf8;
  color: #293c30;
  font-weight: 900;
}

.dwk-product-related {
  padding-left: 0;
  padding-right: 0;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.danger-check {
  color: var(--danger);
}

.variant-card-list {
  display: grid;
  gap: 12px;
}

.variant-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.variant-card.is-deleted {
  border-color: #f0b8b2;
  background: #fff7f6;
  opacity: 0.72;
}

.variant-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.variant-image-field {
  min-width: 0;
}

.variant-image-field .field {
  min-height: 40px;
  padding: 8px;
}

.variant-image-preview {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.variant-delete-button {
  white-space: nowrap;
}

.variant-card-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 1fr) minmax(88px, 0.55fr);
  gap: 10px;
}

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

.variant-switches {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding-top: 22px;
}

.compact-field .field {
  min-width: 0;
}

.product-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 28px rgba(18, 55, 47, 0.08);
  padding: 12px;
  backdrop-filter: blur(10px);
}

.product-edit-preview,
.product-delete-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  margin-bottom: 16px;
  padding: 12px;
}

.product-edit-preview img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
}

.product-edit-preview span,
.product-delete-summary span {
  font-weight: 800;
}

.receipt-head,
.receipt-customer,
.receipt-sign {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.receipt-head {
  border-bottom: 2px solid var(--text);
  padding-bottom: 16px;
}

.receipt-head h1 {
  margin: 0 0 8px;
}

.receipt p {
  margin: 6px 0;
}

.receipt-customer {
  border-bottom: 1px solid var(--line);
  margin: 14px 0;
  padding-bottom: 12px;
}

.receipt-meta-table {
  border: 1px solid var(--line);
  margin: 14px 0;
}

.receipt-meta-table th,
.receipt-meta-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.receipt-meta-table th {
  width: 16%;
  background: #f4f7f5;
  color: var(--primary-dark);
  font-weight: 900;
}

.receipt-meta-table td {
  width: 34%;
}

.receipt-customer-table {
  margin-top: 0;
}

.receipt-table tfoot td {
  font-size: 18px;
  font-weight: 900;
}

.receipt-table tfoot td:first-child {
  text-align: right;
}

.receipt-remark {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.receipt-sign {
  margin-top: 44px;
}

.print-footer {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 16px;
  color: #273b34;
  font-size: 13px;
  line-height: 1.65;
}

.print-footer p {
  margin: 0;
}

.print-footer-grid {
  display: grid;
  gap: 6px;
}

.payment-qr-grid {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  margin-top: 12px;
  padding: 12px;
}

.payment-qr {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 900;
}

.payment-qr img {
  width: 108px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.payment-qr-modal-panel,
.payment-settle-panel {
  width: min(520px, calc(100vw - 24px));
}

.large-payment-qr {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.large-payment-qr img {
  width: min(360px, 78vw);
  height: min(360px, 78vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.large-payment-qr strong {
  color: var(--primary-dark);
  font-size: 22px;
}

.settle-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  margin: 0;
  padding: 14px 16px;
}

.settle-total strong {
  color: var(--primary-dark);
  font-size: 24px;
}

.print-footer-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf8;
  margin-top: 10px;
  padding: 10px 12px;
}

.print-footer-box strong,
.print-footer-box span {
  display: block;
}

.print-footer-box.disclaimer {
  background: #fffaf0;
  border-color: #ead49a;
}

.preview-receipt {
  max-width: none;
  margin: 0;
  padding: 16px;
  box-shadow: none;
}

.simpleui-embedded-root body {
  background: #f5f7fa;
  color: #303133;
  font-size: 14px;
}

.simpleui-embedded-root .topbar {
  display: none;
}

.simpleui-embedded-root .page {
  width: 100%;
  max-width: none;
  padding: 16px;
}

.app-shell-root body {
  background: #f5f7fa;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.app-shell-root .app-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell-root .quick-action {
  min-height: 96px;
  border-radius: 8px;
  padding: 16px;
}

.app-shell-root .quick-action strong {
  font-size: 17px;
}

.app-shell-root .quick-action span {
  font-size: 13px;
}

.app-shell-root .field,
.app-shell-root .button,
.app-shell-root .icon-button {
  min-height: 48px;
  font-size: 16px;
}

.app-shell-root .customer-actions,
.app-shell-root .actions {
  display: grid;
  grid-template-columns: 1fr;
}

.app-shell-root .mobile-order-submit {
  position: sticky;
  bottom: 0;
  z-index: 8;
  grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  border: 1px solid rgba(228, 231, 236, 0.92);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -16px 36px rgba(16, 24, 40, 0.12);
  margin: 18px -12px -12px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  backdrop-filter: blur(16px);
}

.app-shell-root .mobile-submit-total {
  display: grid;
  gap: 2px;
  grid-column: 1 / -1;
  padding: 0 2px;
}

.app-shell-root .mobile-submit-total span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.app-shell-root .mobile-submit-total strong {
  color: #0B4B3E;
  font-size: 24px;
  line-height: 1.05;
}

.app-shell-root #mobile-add-line {
  min-height: 48px;
  border-color: #CFE4DC;
  border-radius: 14px;
  background: #F4FBF8;
  color: #0F6B57;
  font-size: 15px;
  box-shadow: none;
}

.app-shell-root #mobile-add-line::before {
  content: "+";
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #0F6B57;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  margin-right: 7px;
}

.app-shell-root .mobile-order-submit .button.primary {
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 107, 87, 0.2);
}

.app-shell-root .mobile-submit-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-shell-root .mobile-submit-total strong {
  color: var(--primary-dark);
  font-size: 20px;
  white-space: nowrap;
}

.app-shell-root .order-panel {
  padding-bottom: 12px;
}

.app-shell-root .product-picker-results {
  grid-template-columns: 1fr;
}

.app-shell-root .product-picker-item {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-shell-root {
  --app-material-primary: #0f6b57;
  --app-material-primary-dark: #12372f;
  --app-material-accent: #d7b661;
  --app-material-bg: #f4f6f8;
  --app-material-surface: #ffffff;
  --app-material-muted: #667085;
  --app-material-line: #e5e9ed;
  --app-material-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.app-shell-root body {
  background:
    linear-gradient(180deg, rgba(15, 107, 87, 0.08), rgba(244, 246, 248, 0) 220px),
    var(--app-material-bg);
  color: #111827;
  overflow-x: hidden;
  width: 100%;
}

.app-shell-root .page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 14px 12px max(88px, calc(74px + env(safe-area-inset-bottom)));
}

.app-shell-root .business-unfold-page,
.app-shell-root .split,
.app-shell-root .panel,
.app-shell-root .narrow-panel,
.app-shell-root .section-title,
.app-shell-root .customer-picker-panel,
.app-shell-root .order-panel,
.app-shell-root form,
.app-shell-root .form-grid,
.app-shell-root .form-grid p,
.app-shell-root .stack,
.app-shell-root .new-customer-grid,
.app-shell-root .selected-customer,
.app-shell-root .customer-actions,
.app-shell-root .actions,
.app-shell-root .form-actions {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.app-shell-root .hero,
.app-shell-root .section-title {
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 55, 47, 0.98), rgba(15, 107, 87, 0.92));
  color: #fff;
  box-shadow: 0 18px 44px rgba(18, 55, 47, 0.18);
  margin-bottom: 14px;
  padding: 18px;
}

.app-shell-root .hero h1,
.app-shell-root .section-title h1 {
  color: #fff;
  font-size: 26px;
  line-height: 1.16;
}

.app-shell-root .hero .muted,
.app-shell-root .section-title .muted {
  color: rgba(255, 255, 255, 0.76);
}

.app-shell-root .eyebrow {
  color: var(--app-material-accent);
  letter-spacing: 0;
}

.app-shell-root .panel,
.app-shell-root .stat,
.app-shell-root .receipt,
.app-shell-root .selected-customer,
.app-shell-root .selected-product-card,
.app-shell-root .product-edit-preview,
.app-shell-root .product-delete-summary,
.app-shell-root .print-footer-box,
.app-shell-root .debt-timeline-item,
.app-shell-root .quick-action,
.app-shell-root .share-row,
.app-shell-root .debt-composition-card,
.app-shell-root .compact-alert-list a {
  border: 1px solid rgba(229, 233, 237, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--app-material-shadow);
}

.app-shell-root .panel,
.app-shell-root .receipt {
  padding: 16px;
}

.app-shell-root .split,
.app-shell-root .new-customer-grid,
.app-shell-root .form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.app-shell-root .form-grid p,
.app-shell-root .block-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  overflow-wrap: anywhere;
}

.app-shell-root .form-grid label,
.app-shell-root .block-label span,
.app-shell-root .new-customer-grid label span,
.app-shell-root .stack label span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.app-shell-root .section-title {
  align-items: stretch;
  flex-direction: column;
}

.app-shell-root .panel-header {
  gap: 12px;
  align-items: stretch;
  flex-direction: column;
}

.app-shell-root .panel h2,
.app-shell-root .panel h3 {
  color: #111827;
  letter-spacing: 0;
}

.app-shell-root .field {
  min-height: 52px;
  border: 1px solid var(--app-material-line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.02);
}

.app-shell-root .field:focus {
  border-color: var(--app-material-primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 87, 0.14);
}

.app-shell-root .button,
.app-shell-root .icon-button {
  min-height: 50px;
  border-radius: 8px;
  border-color: var(--app-material-line);
  background: #fff;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06);
}

.app-shell-root .button.primary {
  border-color: var(--app-material-primary);
  background: linear-gradient(135deg, var(--app-material-primary), var(--app-material-primary-dark));
  color: #fff;
}

.app-shell-root .button.danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff5f4;
  color: #b42318;
}

.app-shell-root .actions,
.app-shell-root .customer-actions,
.app-shell-root .order-actions,
.app-shell-root .form-actions,
.app-shell-root .bulk-actions,
.app-shell-root .search-row,
.app-shell-root .report-filter,
.app-shell-root .debt-filter,
.app-shell-root .product-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.app-shell-root .actions > *,
.app-shell-root .customer-actions > *,
.app-shell-root .order-actions > *,
.app-shell-root .search-row > *,
.app-shell-root .form-actions > * {
  width: 100%;
  min-width: 0;
}

.app-shell-root .website-content-filter {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .45fr) minmax(130px, .5fr) minmax(130px, .5fr) auto;
}

.app-shell-root .website-content-filter > * {
  width: auto;
}

.app-shell-root input,
.app-shell-root textarea,
.app-shell-root select,
.app-shell-root button,
.app-shell-root a.button {
  max-width: 100%;
}

.app-shell-root .stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-shell-root .stat {
  min-height: 92px;
  padding: 14px;
}

.app-shell-root .stat strong {
  color: var(--app-material-primary-dark);
  font-size: 22px;
}

.app-shell-root .list {
  gap: 10px;
}

.app-shell-root .list-row,
.app-shell-root .customer-result-button,
.app-shell-root .product-picker-item,
.app-shell-root .debt-timeline-item {
  border-radius: 8px;
  border-color: var(--app-material-line);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
  padding: 14px;
}

.app-shell-root .pill,
.app-shell-root .stock-badge,
.app-shell-root .status-badge {
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--app-material-primary);
}

.app-shell-root .status-badge.due,
.app-shell-root .stock-badge.low {
  background: #fff1ef;
  color: #b42318;
}

.app-shell-root .table-wrap {
  border: 1px solid var(--app-material-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--app-material-shadow);
}

.app-shell-root .customer-picker-panel .table-wrap,
.app-shell-root .customer-picker-panel .table-wrap table {
  min-width: 0;
  overflow-x: hidden;
}

.app-shell-root .customer-picker-panel table {
  min-width: 0;
}

.app-shell-root table {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
}

.app-shell-root th {
  background: #f8fafb;
  color: #667085;
  font-size: 12px;
}

.app-shell-root td {
  color: #111827;
}

.app-shell-root th,
.app-shell-root td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-shell-root .mobile-card-table {
  display: block;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.app-shell-root .mobile-card-table thead {
  display: none;
}

.app-shell-root .mobile-card-table tbody,
.app-shell-root .mobile-card-table tr,
.app-shell-root .mobile-card-table td {
  display: block;
  width: 100%;
}

.app-shell-root .mobile-card-table tr {
  border: 1px solid var(--app-material-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.app-shell-root .mobile-card-table td {
  border-bottom: 0;
  padding: 6px 0;
}

.app-shell-root .mobile-card-table td::before {
  content: attr(data-label);
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.app-shell-root .line-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell-root .line-table {
  display: block;
  min-width: 0 !important;
  width: 100%;
}

.app-shell-root .line-table tbody {
  display: grid;
  gap: 12px;
}

.app-shell-root .line-table .line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  border-radius: 8px;
  box-shadow: var(--app-material-shadow);
}

.app-shell-root .line-table .line-row td {
  min-width: 0;
  max-width: 100%;
}

.app-shell-root .line-table .product-cell {
  grid-column: 1 / -1;
}

.app-shell-root .product-picker-cell,
.app-shell-root .selected-product-card,
.app-shell-root .last-price-note {
  min-width: 0;
  max-width: 100%;
}

.app-shell-root .product-picker-cell .product-pick-button {
  width: 100%;
}

.app-shell-root .selected-product-info strong,
.app-shell-root .selected-product-info span,
.app-shell-root .suggestion-content strong,
.app-shell-root .suggestion-content span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.app-shell-root .product-picker-results,
.app-shell-root .customer-picker-results {
  gap: 10px;
}

.app-shell-root .modal-backdrop {
  background: rgba(16, 24, 40, 0.46);
  backdrop-filter: blur(10px);
}

.app-shell-root .modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.22);
}

.app-shell-root .modal-head {
  border-bottom-color: var(--app-material-line);
}

.app-shell-root .modal-actions,
.app-shell-root .mobile-order-submit,
.app-shell-root .product-form-actions {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -14px 34px rgba(16, 24, 40, 0.1);
}

.app-shell-root .order-flow-steps {
  position: static;
  border: 1px solid var(--app-material-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--app-material-shadow);
  padding: 8px;
}

.app-shell-root .order-flow-steps a {
  min-width: 0;
  border-radius: 8px;
  font-size: 12px;
  gap: 3px;
}

.app-shell-root .order-flow-steps a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-root .order-flow-steps a.active {
  background: var(--app-material-primary);
  color: #fff;
}

.app-shell-root .step-pill {
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--app-material-primary);
}

.app-shell-root .message {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

.app-shell-root:not(.simpleui-frame-root) .topbar {
  display: flex;
  position: sticky;
  top: 0;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  min-height: auto;
  padding: max(30px, calc(12px + env(safe-area-inset-top))) 12px 14px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.app-shell-root:not(.simpleui-frame-root) .brand {
  color: #303133;
}

.app-shell-root:not(.simpleui-frame-root) .brand-mark {
  width: 36px;
  height: 36px;
  background: #18a058;
  color: #fff;
  font-size: 18px;
}

.app-shell-root:not(.simpleui-frame-root) .brand small {
  color: #909399;
}

.app-shell-root:not(.simpleui-frame-root) .nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

.app-shell-root:not(.simpleui-frame-root) .nav a,
.app-shell-root:not(.simpleui-frame-root) .link-button {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px;
}

.app-shell-root:not(.simpleui-frame-root) .nav a:hover,
.app-shell-root:not(.simpleui-frame-root) .link-button:hover {
  border-color: #18a058;
  color: #18a058;
}

.app-shell-root:not(.simpleui-frame-root) .nav form {
  min-width: 0;
}

.app-shell-root:not(.simpleui-frame-root) .page,
.app-shell-root.simpleui-frame-root .page {
  padding: 14px 12px max(48px, calc(28px + env(safe-area-inset-bottom)));
}

.simpleui-embedded-root .hero,
.simpleui-embedded-root .section-title {
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
  padding: 16px 18px;
}

.simpleui-embedded-root .hero h1,
.simpleui-embedded-root .section-title h1 {
  color: #303133;
  font-size: 24px;
  font-weight: 700;
}

.simpleui-embedded-root .eyebrow {
  color: #18a058;
}

.simpleui-embedded-root .stat,
.simpleui-embedded-root .panel,
.simpleui-embedded-root .receipt,
.simpleui-embedded-root .modal-panel,
.simpleui-embedded-root .selected-customer,
.simpleui-embedded-root .selected-product-card,
.simpleui-embedded-root .product-edit-preview,
.simpleui-embedded-root .product-delete-summary,
.simpleui-embedded-root .print-footer-box {
  border-color: #ebeef5;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.simpleui-embedded-root .stat::before {
  background: #18a058;
}

.simpleui-embedded-root .field {
  border-color: #dcdfe6;
  border-radius: 4px;
  min-height: 40px;
}

.simpleui-embedded-root .field:focus {
  border-color: #18a058;
  box-shadow: 0 0 0 2px rgba(24, 160, 88, 0.12);
}

.simpleui-embedded-root .button,
.simpleui-embedded-root .icon-button {
  border-color: #dcdfe6;
  border-radius: 4px;
  color: #606266;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 15px;
}

.simpleui-embedded-root .button.primary {
  border-color: #18a058;
  background: #18a058;
  color: #fff;
}

.simpleui-embedded-root .button.primary:hover {
  background: #14914f;
}

.simpleui-embedded-root .button.danger {
  border-color: #f56c6c;
  background: #fff;
  color: #f56c6c;
}

.simpleui-embedded-root .list-row,
.simpleui-embedded-root .product-picker-item {
  border-color: #ebeef5;
  border-radius: 4px;
}

.simpleui-embedded-root th,
.simpleui-embedded-root td {
  border-bottom-color: #ebeef5;
}

.simpleui-embedded-root th {
  color: #909399;
  background: #fafafa;
  font-weight: 700;
}

.simpleui-embedded-root .pill,
.simpleui-embedded-root .stock-badge,
.simpleui-embedded-root .status-badge {
  border-radius: 4px;
  background: #ecf8f0;
  color: #14914f;
}

.simpleui-embedded-root .status-badge.due {
  background: #fef0f0;
  color: #f56c6c;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .page {
    width: 100%;
    padding: 12px 12px max(86px, calc(72px + env(safe-area-inset-bottom)));
  }

  .simpleui-embedded-root .page {
    padding: 10px;
  }

  .hero,
  .section-title,
  .simpleui-embedded-root .hero,
  .simpleui-embedded-root .section-title {
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .hero h1,
  .section-title h1,
  .simpleui-embedded-root .hero h1,
  .simpleui-embedded-root .section-title h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .app-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-action {
    min-height: 92px;
    padding: 14px;
  }

  .panel,
  .receipt,
  .simpleui-embedded-root .panel,
  .simpleui-embedded-root .receipt {
    padding: 12px;
  }

  .product-edit-layout {
    grid-template-columns: 1fr;
  }

  .product-field-grid,
  .product-image-card-grid,
  .variant-card-top,
  .variant-card-head,
  .variant-card-grid {
    grid-template-columns: 1fr;
  }

  .product-form-actions {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    margin: 0 -12px -12px;
  }

  .split {
    gap: 12px;
  }

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

  .website-content-filter,
  .app-shell-root .website-content-filter {
    grid-template-columns: 1fr 1fr;
  }

  .website-content-filter input[type="search"] {
    grid-column: 1 / -1;
  }

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

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

  .list-row,
  .customer-result-button {
    align-items: stretch;
    flex-direction: column;
  }

  .list-row .pill,
  .customer-result-button .pill {
    align-self: flex-start;
  }

  .line-table-wrap {
    overflow: visible;
  }

  .line-table {
    display: block;
    min-width: 0;
  }

  .line-table thead {
    display: none;
  }

  .line-table tbody {
    display: grid;
    gap: 12px;
  }

  .line-table .line-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
  }

  .line-table .line-row td {
    display: grid;
    gap: 6px;
    border: 0;
    padding: 0;
    width: auto !important;
    min-width: 0;
  }

  .line-table .line-row td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .receipt-meta-table,
  .receipt-meta-table tbody,
  .receipt-meta-table tr,
  .receipt-meta-table th,
  .receipt-meta-table td {
    display: block;
    width: 100%;
  }

  .receipt-meta-table tr {
    border-bottom: 1px solid var(--line);
  }

  .receipt-meta-table tr:last-child {
    border-bottom: 0;
  }

  .receipt-meta-table th,
  .receipt-meta-table td {
    border: 0;
  }

  .line-table .product-cell {
    grid-column: 1 / -1;
  }

  .line-table .amount-cell {
    align-content: end;
  }

  .line-table .remove-cell {
    align-content: end;
    justify-items: end;
  }

  .line-table .field {
    min-height: 42px;
  }

  .line-amount {
    min-height: 42px;
    font-size: 18px;
  }

  .selected-product-card,
  .product-picker-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .selected-product-thumb,
  .suggestion-thumb {
    width: 44px;
    height: 44px;
  }

  .selected-product-info strong,
  .selected-product-info span,
  .suggestion-content strong,
  .suggestion-content span {
    white-space: normal;
  }

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

  .mobile-order-submit {
    position: sticky;
    bottom: 0;
    z-index: 8;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    border: 1px solid rgba(228, 231, 236, 0.92);
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -16px 36px rgba(16, 24, 40, 0.12);
    margin: 18px -12px -12px;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    backdrop-filter: blur(16px);
  }

  .mobile-submit-total {
    display: grid;
    gap: 2px;
    grid-column: 1 / -1;
  }

  .mobile-submit-total span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-submit-total strong {
    color: var(--primary-dark);
    font-size: 20px;
    white-space: nowrap;
  }

  .total-box {
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
  }

  .payment-panel {
    gap: 10px;
  }

  .payment-summary {
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .modal-backdrop {
    align-items: start;
    padding: max(8px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
  }

  .modal-panel {
    width: 100%;
    max-height: calc(var(--app-viewport-height, 100vh) - 16px);
    overflow-y: auto;
    padding: 14px;
  }

  .modal-head h2 {
    font-size: 20px;
  }

  .product-picker-results {
    gap: 8px;
    max-height: calc(var(--app-viewport-height, 100vh) - 214px);
  }

  .customer-picker-results {
    max-height: calc(var(--app-viewport-height, 100vh) - 214px);
  }

  .modal-panel input,
  .modal-panel textarea,
  .modal-panel select,
  .modal-panel button {
    scroll-margin-top: 86px;
    scroll-margin-bottom: max(240px, calc(48px + var(--app-keyboard-height, 0px)));
  }

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

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .hero,
  .section-title,
  .receipt-head,
  .receipt-customer,
  .receipt-sign {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .split,
  .antifake-insights,
  .new-customer-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .search-row,
  .order-actions,
  .actions,
  .panel-header,
  .payment-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-summary {
    justify-items: start;
  }

  .product-picker-results {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .panel,
  .receipt {
    padding: 16px;
  }
}

/* Premium business UI refresh */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --text: #17201c;
  --muted: #667085;
  --line: #e5e9ed;
  --primary: #0f6b57;
  --primary-dark: #0b3f35;
  --accent: #b58422;
  --danger: #b42318;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.1);
  --focus-ring: 0 0 0 4px rgba(15, 107, 87, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 107, 87, 0.08), transparent 30%),
    linear-gradient(180deg, #f7faf9 0, #f4f6f8 300px),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: var(--primary);
}

.business-unfold-page {
  max-width: 1320px;
  margin: 0 auto;
}

.page {
  width: min(1320px, calc(100% - 40px));
}

.hero,
.section-title {
  border: 1px solid rgba(229, 233, 237, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.94)),
    #fff;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.hero h1,
.section-title h1 {
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 760;
  line-height: 1.18;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.stat,
.panel,
.receipt,
.selected-customer,
.selected-product-card,
.product-edit-preview,
.product-delete-summary,
.variant-card,
.insight-box,
.trend-box,
.print-footer-box,
.modal-panel {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.panel h2,
.panel h3 {
  color: #111827;
  font-weight: 760;
}

.stat {
  min-height: 118px;
  padding: 18px 20px;
}

.stat::before {
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(181, 132, 34, 0.84));
}

.stat span,
.form-grid label,
.block-label span,
.new-customer-grid label span,
.stack label span,
.debt-field span,
.payment-summary span,
th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.stat strong {
  color: #111827;
  font-size: 32px;
  font-weight: 780;
  letter-spacing: 0;
}

.app-quick-actions {
  gap: 12px;
}

.quick-action {
  min-height: 102px;
  border-color: var(--line);
  background:
    linear-gradient(180deg, #fff, #fbfcfd);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-action:hover {
  border-color: rgba(15, 107, 87, 0.28);
  box-shadow: var(--shadow-strong);
  transform: translateY(-1px);
}

.quick-action.primary {
  background:
    linear-gradient(135deg, rgba(19, 122, 98, 0.98), rgba(11, 63, 53, 0.98));
  box-shadow: 0 18px 36px rgba(15, 107, 87, 0.22);
}

.quick-action strong {
  font-weight: 780;
}

.field,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="email"],
input[type="password"],
select,
textarea {
  border-color: #d9e0e6;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  min-height: 46px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.field::placeholder,
input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

.field:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: none;
}

.button,
.icon-button {
  border-color: #d9e0e6;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f9fafb);
  color: #1f2937;
  font-weight: 760;
  min-height: 46px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.button:hover,
.icon-button:hover {
  border-color: rgba(15, 107, 87, 0.36);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, #137a62, #0b3f35);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 107, 87, 0.2);
}

.button.primary:hover {
  background: linear-gradient(135deg, #0f6b57, #08362d);
}

.button.danger {
  border-color: #f3c7c2;
  background: #fff7f6;
  color: var(--danger);
}

.button.small {
  min-height: 36px;
  border-radius: 7px;
}

.message {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.list-row,
.product-picker-item,
.customer-result-button {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.list-row:hover,
.product-picker-item:hover,
.customer-result-button:hover {
  border-color: rgba(15, 107, 87, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

th {
  background: #f8fafb;
  color: #667085;
  text-transform: none;
}

td {
  color: #1f2937;
}

th,
td {
  border-bottom-color: var(--line);
  padding: 13px 12px;
}

tr:last-child td {
  border-bottom: 0;
}

.selected-customer {
  border-color: rgba(15, 107, 87, 0.22);
  background: linear-gradient(180deg, #f3fbf8, #ffffff);
}

.selected-product-card,
.variant-card {
  background: linear-gradient(180deg, #fff, #f8fafb);
}

.product-thumb,
.selected-product-thumb,
.suggestion-thumb,
.variant-image-preview {
  border-color: var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.status-badge,
.pill,
.stock-badge,
.step-pill {
  border-radius: 999px;
  background: #eaf7f3;
  color: var(--primary-dark);
  font-weight: 780;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}

.modal-panel {
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.modal-head {
  border-bottom: 1px solid var(--line);
  margin: -18px -18px 16px;
  padding: 18px 18px 14px;
}

.modal-actions {
  border-top-color: var(--line);
  margin-right: -18px;
  margin-bottom: -18px;
  margin-left: -18px;
  padding: 14px 18px max(14px, env(safe-area-inset-bottom));
}

.product-form-actions,
.mobile-order-submit {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.08);
}

.simpleui-embedded-root .hero,
.simpleui-embedded-root .section-title,
.simpleui-embedded-root .stat,
.simpleui-embedded-root .panel,
.simpleui-embedded-root .receipt,
.simpleui-embedded-root .modal-panel {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.simpleui-embedded-root .button.primary {
  background: linear-gradient(135deg, #137a62, #0b3f35);
}

.app-shell-root body {
  background: #f4f6f8;
}

.app-shell-root .quick-action {
  min-height: 104px;
}

.app-shell-root .field,
.app-shell-root .button,
.app-shell-root .icon-button {
  min-height: 50px;
}

.qr-register-panel {
  width: min(760px, 100%);
}

.qr-register-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.qr-box {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 16px;
}

.qr-box img {
  width: 196px;
  max-width: 100%;
  height: auto;
}

.qr-register-copy {
  display: grid;
  gap: 12px;
}

.modal-actions.inline {
  position: static;
  justify-content: flex-start;
  border-top: 0;
  margin: 0;
  padding: 0;
}

.public-register-page {
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(14, 93, 74, 0.96), rgba(14, 35, 54, 0.92)),
    #0e5d4a;
  color: #15231f;
}

.customer-register-shell {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.customer-register-hero {
  color: #fff;
  padding: 28px 4px 18px;
}

.customer-register-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(30px, 8vw, 48px);
  letter-spacing: 0;
}

.customer-register-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;
}

.customer-register-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(6, 20, 18, 0.22);
  padding: 22px;
}

.public-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-register-form .button.full {
  grid-column: 1 / -1;
}

.block-label b {
  color: var(--danger);
  margin-left: 4px;
}

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

.register-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 8px;
  text-align: center;
}

.register-success h2 {
  margin: 0;
  font-size: 30px;
}

.register-success p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  body {
    background: #f4f6f8;
  }

  .page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero,
  .section-title {
    padding: 16px;
  }

  .hero h1,
  .section-title h1 {
    font-size: 24px;
  }

  .panel,
  .receipt {
    padding: 14px;
  }

  .app-quick-actions {
    gap: 10px;
  }

  .quick-action {
    min-height: 98px;
  }

  .line-table .line-row {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-order-submit {
    margin-right: -14px;
    margin-left: -14px;
  }

  .qr-register-layout,
  .public-register-form {
    grid-template-columns: 1fr;
  }

  .customer-register-card {
    padding: 16px;
  }

  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 820px) {
  .report-chart-grid,
  .report-grid,
  .website-module-grid,
  .website-page-grid {
    grid-template-columns: 1fr;
  }

  .article-reader-shell {
    grid-template-columns: 1fr;
  }

  .article-tag-related,
  .article-reading-toc {
    display: none;
  }

  .order-flow-steps {
    top: 8px;
  }

  .inline-collect-form,
  .inline-collect-form.compact,
  .debt-timeline-item {
    grid-template-columns: 1fr;
  }

  .share-row,
  .debt-composition-card summary,
  .compact-alert-list a {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .share-row strong,
  .share-row small {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .mobile-card-table {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td {
    display: block;
    width: 100%;
  }

  .mobile-card-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
  }

  .mobile-card-table td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .mobile-card-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
  }

  .app-shell-root .stats-grid {
    grid-template-columns: 1fr;
  }

  .app-shell-root .section-title .actions,
  .app-shell-root .hero .actions {
    width: 100%;
  }

  .app-shell-root .table-wrap {
    margin-right: -2px;
    margin-left: -2px;
  }

  .app-shell-root .mobile-order-submit,
  .app-shell-root .product-form-actions {
    border-radius: 8px 8px 0 0;
  }

  .app-shell-root .modal-panel {
    border-radius: 8px;
  }

  .dwk-wiki-tabs,
  .dwk-wiki-card-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 0;
  }

  body {
    background: #fff;
    color: #000;
  }

  body * {
    visibility: hidden !important;
  }

  .topbar,
  .no-print,
  .messages,
  .modal-backdrop {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .print-preview-panel,
  .print-preview-panel *,
  .share-print-receipt,
  .share-print-receipt * {
    visibility: visible !important;
  }

  .print-preview-panel {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .receipt {
    display: none !important;
  }

  .share-print-receipt {
    display: block !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
  }

  .share-print-receipt img {
    max-width: 100%;
  }

  body.order-image-print-only > :not(#order-image-print-root) {
    display: none !important;
  }

  body.order-image-print-only #order-image-print-root,
  body.order-image-print-only #order-image-print-root * {
    display: block !important;
    visibility: visible !important;
  }

  body.order-image-print-only #order-image-print-root {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.order-image-print-only #order-image-print-root img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .print-footer {
    break-inside: avoid;
  }
}

@media (max-width: 860px) {
  .article-editor,
  .article-portal-hero,
  .dwk-category-grid,
  .dwk-product-strip,
  .dwk-benefits,
  .dwk-article-grid,
  .dwk-case-grid,
  .dwk-brand-grid,
  .dwk-two-col,
  .dwk-sidebar-layout,
  .dwk-contact-layout,
  .dwk-agency-intro,
  .dwk-card-grid,
  .dwk-article-list-grid,
  .dwk-feature-card,
  .dwk-feature-band,
  .dwk-info-grid,
  .dwk-news-list a,
  .dwk-wiki-layout,
  .dwk-wiki-feature,
  .dwk-product-detail-top,
  .dwk-detail-split,
  .enterprise-hero,
  .enterprise-metrics,
  .enterprise-intro-grid,
  .enterprise-card-grid,
  .enterprise-split,
  .sspai-hero,
  .sspai-layout,
  .article-feature-grid,
  .article-card,
  .article-detail-hero {
    grid-template-columns: 1fr;
  }

  .public-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px;
  }

  .public-header nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }

  .public-nav {
    gap: 10px 18px;
  }

  .public-nav-item {
    position: relative;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 4px 0 10px;
  }

  .public-subnav {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    z-index: 3000;
    display: grid;
    gap: 8px;
    min-width: 132px;
    padding: 8px;
    border: 1px solid rgba(23, 79, 43, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(20, 45, 28, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .public-subnav a {
    padding: 8px 10px;
    background: transparent;
    font-size: 13px;
  }

  .public-subnav-third {
    position: static;
    min-width: 0;
    margin: 4px 0 0 10px;
    padding: 4px 0 0 8px;
    border: 0;
    border-left: 2px solid #e2ebe7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .public-subnav-item.has-children > a::after {
    transform: rotate(45deg) translateY(-2px);
  }

  .public-nav-item:hover .public-subnav,
  .public-nav-item:focus-within .public-subnav {
    transform: translateY(0);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 34px 20px 28px;
  }

  .footer-col,
  .footer-col:first-child {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 20px 0;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
    border-top: 0;
    padding-top: 0;
  }

  .footer-qr {
    justify-items: start;
    text-align: left;
  }

  .public-page {
    width: min(100% - 20px, 1320px);
  }

  .sspai-left-rail,
  .sspai-right-rail {
    position: static;
  }

  .sspai-left-rail {
    display: flex;
    overflow-x: auto;
  }

  .sspai-right-rail {
    display: none;
  }

  .article-side-editor {
    position: static;
  }

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

  .dwk-wiki-left,
  .dwk-wiki-right {
    position: static;
  }

  .dwk-wiki-left {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }

  .dwk-wiki-left > a {
    min-width: max-content;
  }

  .dwk-wiki-consult {
    display: none;
  }

  .dwk-wiki-tabs,
  .dwk-wiki-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dwk-wiki-feature img {
    height: 220px;
  }

  .article-feature-card,
  .article-feature-card:first-child {
    min-height: 240px;
  }

  .article-card {
    padding: 10px;
  }

  .enterprise-hero-copy,
  .enterprise-hero-media,
  .enterprise-hero-media img,
  .enterprise-hero-mark {
    min-height: 320px;
  }

  .enterprise-metrics a {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
    padding: 14px 0;
  }

  .enterprise-metrics a:last-child {
    border-bottom: 0;
  }

  .public-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 18px;
  }

  .public-brand img {
    width: 150px;
  }

  .public-header nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }

  .public-nav {
    gap: 10px 18px;
  }

  .public-nav-item {
    position: relative;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 4px 0 10px;
  }

  .public-subnav {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    z-index: 3000;
    display: grid;
    gap: 8px;
    min-width: 132px;
    padding: 8px;
    border: 1px solid rgba(23, 79, 43, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(20, 45, 28, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .public-subnav a {
    padding: 8px 10px;
    background: transparent;
    font-size: 13px;
  }

  .public-subnav-third {
    position: static;
    min-width: 0;
    margin: 4px 0 0 10px;
    padding: 4px 0 0 8px;
    border: 0;
    border-left: 2px solid #e2ebe7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .public-subnav-item.has-children > a::after {
    transform: rotate(45deg) translateY(-2px);
  }

  .public-nav-item:hover .public-subnav,
  .public-nav-item:focus-within .public-subnav {
    transform: translateY(0);
  }

  .public-phone {
    display: none;
  }

  .dwk-hero {
    min-height: 420px;
    background:
      linear-gradient(90deg, rgba(250, 247, 239, 0.98), rgba(250, 247, 239, 0.82)),
      var(--dwk-home-hero-image, url("/static/business/site-assets/hero.png")) right bottom / auto 70% no-repeat,
      #f7f3e9;
  }

  .public-header {
    position: sticky;
    top: 0;
    z-index: 3500;
    align-items: flex-start;
  }

  .public-header .public-nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    padding: 6px 0 8px;
    scrollbar-width: none;
  }

  .public-header .public-nav::-webkit-scrollbar {
    display: none;
  }

  .public-nav-item {
    flex: 0 0 auto;
    padding: 0;
  }

  .public-nav-item > a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 999px;
    background: #f3f8f5;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .public-subnav {
    position: fixed;
    top: 86px;
    right: 12px;
    left: 12px;
    max-height: min(62vh, 520px);
    overflow: auto;
  }

  .public-subnav a {
    min-height: 38px;
    align-items: center;
  }

  .dwk-product-search {
    position: sticky;
    top: 78px;
    z-index: 50;
    grid-template-columns: 1fr;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
    backdrop-filter: blur(10px);
  }

  .dwk-product-search .button {
    width: 100%;
    min-height: 44px;
  }

  .dwk-page-hero {
    min-height: 340px;
    background:
      linear-gradient(90deg, rgba(247, 246, 239, 0.98), rgba(247, 246, 239, 0.84)),
      var(--dwk-hero-image) right bottom / auto 72% no-repeat,
      #f4f0e5;
    padding: 42px 20px;
  }

  .dwk-content-side {
    position: static;
  }

  .dwk-panel,
  .dwk-feature-card div {
    padding: 20px;
  }

  .dwk-product-card img,
  .dwk-article-list-grid img,
  .dwk-news-list img {
    height: 180px;
  }

  .dwk-banner-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px;
  }

  .dwk-product-detail-page {
    width: min(100% - 20px, 1280px);
  }

  .dwk-detail-actions {
    position: sticky;
    bottom: 12px;
    z-index: 60;
    grid-template-columns: 1fr;
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
    box-shadow: 0 16px 34px rgba(20, 45, 28, 0.14);
    backdrop-filter: blur(10px);
  }

  .dwk-detail-actions .button {
    width: 100%;
    min-height: 44px;
  }

  .public-admin-float {
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .public-admin-float a {
    min-height: 36px;
    padding: 7px 12px;
  }

  .dwk-gallery-thumbs {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    overflow-x: auto;
  }

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

  .dwk-collab {
    align-items: start;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }

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

.article-related-product-checks {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
  gap: 8px !important;
  max-height: 176px !important;
  overflow: auto !important;
  border: 1px solid #dfe8e3 !important;
  border-radius: 8px !important;
  background: #fbfdfb !important;
  padding: 10px !important;
}

.article-related-product-checks ul {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-related-product-checks li,
.article-related-product-option {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 32px !important;
  border: 1px solid #dce6e1 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #12372f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  padding: 6px 9px !important;
}

.article-related-product-checks li label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.article-related-product-checks input[type="checkbox"],
.article-related-product-option input[type="checkbox"] {
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  margin: 0 !important;
  accent-color: var(--primary) !important;
}

.article-related-product-checks li:has(input[type="checkbox"]:checked),
.article-related-product-option:has(input[type="checkbox"]:checked) {
  border-color: var(--primary) !important;
  background: #eaf5ef !important;
  color: var(--primary) !important;
}

.article-related-product-checks label,
.article-related-product-checks span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 860px) {
  .dwk-agency-layout,
  .dwk-agency-intro-card,
  .dwk-agency-bottom-cta {
    grid-template-columns: 1fr;
  }

  .dwk-agency-side {
    position: static;
  }

  .dwk-agency-region-grid,
  .dwk-agency-benefit-grid,
  .dwk-agency-policy-grid,
  .dwk-agency-process,
  .dwk-agency-check-grid,
  .dwk-agency-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .media-library-toolbar,
  .media-library-filter-left,
  .media-library-search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .media-library-filter-left .field,
  .media-library-search .field {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .dwk-agency-hero {
    min-height: 280px;
    background:
      linear-gradient(180deg, rgba(247, 246, 239, 0.98), rgba(247, 246, 239, 0.86)),
      url("/static/business/site-assets/hero-product.png") right bottom / auto 70% no-repeat,
      #f4f0e5;
  }

  .dwk-agency-region-grid,
  .dwk-agency-benefit-grid,
  .dwk-agency-policy-grid,
  .dwk-agency-process,
  .dwk-agency-check-grid,
  .dwk-agency-faq {
    grid-template-columns: 1fr;
  }

  .dwk-agency-card-block,
  .dwk-agency-apply-card {
    padding: 16px;
  }

  .dwk-agency-bottom-cta {
    text-align: center;
  }

  .dwk-wiki-tabs,
  .dwk-wiki-card-grid {
    grid-template-columns: 1fr;
  }
}
