:root {
  --console-ink: #282332;
  --console-muted: #85808c;
  --console-line: #e9e6ee;
  --console-purple: #7968e5;
  --console-purple-soft: #f0edff;
  --console-surface: #ffffff;
  --console-bg: #f6f5f8;
  --console-sidebar: #25212d;
  --console-danger: #b44d62;
  --console-success: #247c62;
  --console-sidebar-width: 230px;
  --console-control-height: 44px;
  --console-control-radius: 10px;
}

html { scroll-behavior: smooth; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  background: var(--console-bg) !important;
  color: var(--console-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
}
body:not(.wd-auth-page) > main {
  width: auto !important;
  max-width: 1540px !important;
  margin: 0 auto 0 var(--console-sidebar-width) !important;
  padding: 34px 38px 60px !important;
}
body.wd-standalone-admin > main {
  max-width: none !important;
  padding-left: 48px !important;
}

.wd-console-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--console-sidebar-width);
  padding: 30px 22px;
  background: var(--console-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.wd-console-brand {
  padding: 0 10px 30px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.15;
}
.wd-console-brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 9px 22px rgba(143, 124, 255, .26);
}
.wd-console-brand > span {
  min-width: 0;
}
.wd-console-brand small {
  display: block;
  margin-top: 7px;
  color: #938c9e;
  font-size: 10px;
  letter-spacing: .14em;
}
.wd-console-group {
  margin: 15px 10px 8px;
  color: #716a7a;
  font-size: 10px;
  letter-spacing: .12em;
}
.wd-console-nav { display: grid; gap: 3px; }
.wd-console-nav a {
  display: flex;
  min-height: 42px !important;
  align-items: center;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #aaa4b1 !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 500 !important;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.wd-console-nav a:hover { color: #fff !important; background: #302a3a !important; }
.wd-console-nav a.active { color: #fff !important; background: #3a3347 !important; }
.wd-admin-link { display: none !important; }
body.is-admin .wd-admin-link { display: flex !important; }
.wd-console-foot {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.wd-console-account {
  display: block;
  overflow: hidden;
  color: #aaa4b1;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wd-console-logout {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-top: 10px !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.04) !important;
  color: #aaa4b1 !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
.wd-console-logout:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }
.wd-mobile-header,
.wd-mobile-backdrop,
.wd-mobile-module-select,
.wd-sidebar-close { display: none; }

body:not(.wd-auth-page) .topbar { display: none !important; }
body:not(.wd-auth-page) header {
  min-height: 0 !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--console-ink) !important;
  box-shadow: none !important;
}
body:not(.wd-auth-page) header h1,
body:not(.wd-auth-page) .hero-copy h1 {
  color: var(--console-ink) !important;
  font-size: clamp(28px, 3vw, 36px) !important;
  font-weight: 650 !important;
  letter-spacing: -.035em !important;
  line-height: 1.15 !important;
}
body:not(.wd-auth-page) header p { max-width: 760px; color: var(--console-muted) !important; }
body:not(.wd-auth-page) header .admin-links { display: none !important; }

body:not(.wd-auth-page) .panel,
body:not(.wd-auth-page) .section,
body:not(.wd-auth-page) .card,
body:not(.wd-auth-page) .table-wrap,
body:not(.wd-auth-page) .hero-copy,
body:not(.wd-auth-page) .hero-preview,
body:not(.wd-auth-page) .status-page,
body:not(.wd-auth-page) .guide-card {
  border: 1px solid var(--console-line) !important;
  border-radius: 16px !important;
  background: var(--console-surface) !important;
  box-shadow: none !important;
}
body:not(.wd-auth-page) .panel,
body:not(.wd-auth-page) .section { padding: 22px !important; }
body:not(.wd-auth-page) .hero-copy { min-height: 240px !important; padding: 28px !important; }
body:not(.wd-auth-page) .hero-copy p { color: var(--console-muted) !important; }
body:not(.wd-auth-page) .hero-preview { overflow: hidden; }
body:not(.wd-auth-page) .phone-cover,
body:not(.wd-auth-page) .preview,
body:not(.wd-auth-page) .gallery { background: var(--console-purple-soft) !important; }

body:not(.wd-auth-page) .tabs,
body:not(.wd-auth-page) .module-tabs,
body:not(.wd-auth-page) .stepper {
  border: 1px solid var(--console-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body:not(.wd-auth-page) .tabs { padding: 5px !important; }
body:not(.wd-auth-page) .tab,
body:not(.wd-auth-page) .tabs button,
body:not(.wd-auth-page) .module-tabs a,
body:not(.wd-auth-page) .stepper span {
  border-radius: 9px !important;
  background: transparent !important;
  color: #6f6875 !important;
  box-shadow: none !important;
}
body:not(.wd-auth-page) .tab.active,
body:not(.wd-auth-page) .tabs button.active,
body:not(.wd-auth-page) .module-tabs a.is-current,
body:not(.wd-auth-page) .stepper .done {
  background: var(--console-purple-soft) !important;
  color: var(--console-purple) !important;
}
body:not(.wd-auth-page) .module-tabs {
  top: 14px !important;
  padding: 6px !important;
}
body:not(.wd-auth-page) .module-tabs a { display: grid; min-height: 40px; place-items: center; }

body.wd-dashboard header .row { display: none !important; }
body.wd-dashboard #summaryOverview:empty,
body.wd-dashboard #auditOverview:empty,
body.wd-dashboard #categoryGuide:empty { display: none !important; }
body.wd-dashboard .grid {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.wd-dashboard .grid > .stack,
body.wd-dashboard .editor-grid,
body.wd-dashboard .editor-grid > .stack { display: contents !important; }
body.wd-dashboard .wd-module-hidden { display: none !important; }
body.wd-dashboard .module-tabs { overflow-x: auto; scrollbar-width: none; }
body.wd-dashboard .module-tabs::-webkit-scrollbar { display: none; }
body.wd-dashboard .module-tabs a { min-width: 108px; }
body.wd-dashboard .panel h2 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }

/* Information architecture: merchant onboarding */
.wd-apply-page .stepper { display: none !important; }
.wd-apply-page .hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr) !important;
  margin-bottom: 22px !important;
}
.wd-apply-page .hero-copy { min-height: 190px !important; align-content: center !important; }
.wd-apply-page .hero-preview { min-height: 190px !important; }
.wd-apply-page .phone-cover { min-height: 112px !important; }
.wd-apply-page .wd-apply-workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.wd-apply-rail {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--console-line);
  border-radius: 16px;
  background: #fff;
}
.wd-rail-kicker { color: var(--console-purple); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.wd-apply-rail h2 { margin: 8px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.wd-apply-rail p { margin: 0 0 20px; color: var(--console-muted); font-size: 12px; line-height: 1.65; }
.wd-rail-progress { display: flex; justify-content: space-between; gap: 10px; color: var(--console-muted); font-size: 11px; }
.wd-rail-progress strong { color: var(--console-ink); }
.wd-rail-track { height: 6px; margin: 9px 0 18px; overflow: hidden; border-radius: 99px; background: #eeeaf2; }
.wd-rail-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8f7cff,#efa8c4); transition: width .2s ease; }
.wd-apply-rail nav { display: grid; gap: 5px; }
.wd-apply-rail nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #665f6d;
  text-decoration: none;
}
.wd-apply-rail nav a span { color: #aaa3af; font-size: 10px; }
.wd-apply-rail nav a strong { font-size: 12px; font-weight: 600; }
.wd-apply-rail nav a:hover,
.wd-apply-rail nav a.active { background: var(--console-purple-soft); color: var(--console-purple); }
.wd-apply-rail nav a.active span { color: var(--console-purple); }
.wd-rail-checks {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--console-line);
}
.wd-rail-checks strong { margin-bottom: 2px; color: var(--console-ink); font-size: 11px; }
.wd-rail-checks span { position: relative; padding-left: 18px; color: #99929f; font-size: 10px; line-height: 1.45; }
.wd-rail-checks span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid #cbc6d0;
  border-radius: 50%;
}
.wd-rail-checks span.done { color: var(--console-success); }
.wd-rail-checks span.done::before { border-color: var(--console-success); background: var(--console-success); box-shadow: inset 0 0 0 3px #fff; }
.wd-apply-content { display: grid; gap: 18px; min-width: 0; }
.wd-apply-content .section { scroll-margin-top: 24px; }
.wd-apply-content .section-head h2 { font-size: 19px; }
.wd-apply-content .section-head p { max-width: 620px; font-size: 13px; }
.wd-apply-content .grid { gap: 18px 14px !important; }
.wd-apply-content .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
.wd-apply-content .media-card { min-width: 0; border: 1px solid var(--console-line); border-radius: 13px; padding: 16px; background: #fcfbfd; }
.wd-apply-page label:has(input[required])::after,
.wd-apply-page label:has(select[required])::after,
.wd-apply-page label:has(textarea[required])::after { display: none !important; content: none !important; }
.wd-field-caption {
  display: flex;
  min-width: 0;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--console-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.wd-field-caption > span { min-width: 0; }
.wd-field-caption > b {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: #fff0f6;
  color: #b94c70;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.55;
}
.wd-license-fields { margin-bottom: 16px; padding: 16px; border-radius: 12px; background: #faf9fc; }
.wd-compliance-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 3px solid #b4a8f5;
  border-radius: 10px;
  background: #faf8ff;
  color: #716a79;
  font-size: 11px;
  line-height: 1.65;
}

/* Information architecture: merchant workspace */
.wd-dashboard header {
  min-height: 0 !important;
  margin-bottom: 16px !important;
  padding: 4px 0 0 !important;
}
.wd-dashboard header h1 { margin: 0 0 7px !important; font-size: 30px !important; }
.wd-dashboard header p { margin: 0 !important; font-size: 13px; line-height: 1.6; }
.wd-dashboard-overview-band {
  display: grid;
  grid-template-columns: minmax(270px, .66fr) minmax(0, 1.34fr);
  gap: 0;
  margin-bottom: 12px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--console-line);
  border-radius: 16px;
  background: #fff;
}
.wd-dashboard-overview-band > .panel {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.wd-dashboard-selector {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center;
  gap: 12px !important;
  min-width: 0;
  padding: 18px !important;
  border-right: 1px solid var(--console-line) !important;
  background: linear-gradient(145deg, #fcfaff, #fff) !important;
}
.wd-selector-heading { display: grid; gap: 3px; min-width: 0; }
.wd-selector-heading strong { color: var(--console-ink); font-size: 14px; font-weight: 650; }
.wd-selector-heading small { color: var(--console-muted); font-size: 10px; line-height: 1.5; }
.wd-selector-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 8px; }
.wd-selector-control {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
}
.wd-selector-control select {
  height: 42px !important;
  min-height: 42px !important;
  padding-right: 34px !important;
  color: var(--console-ink) !important;
  font-size: 13px !important;
}
body.wd-dashboard .wd-selector-refresh {
  display: grid !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border-radius: 10px !important;
}
.wd-selector-refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wd-selector-notice { min-height: 0; margin: -3px 0 0 !important; font-size: 10px !important; line-height: 1.45; }
.wd-dashboard-overview-band #summaryOverview {
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-content: center;
  gap: 8px !important;
  padding: 14px !important;
}
.wd-dashboard-overview-band .metric {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 11px 12px !important;
}
.wd-dashboard-overview-band .metric strong { font-size: 20px !important; line-height: 1.1; }
.wd-dashboard-overview-band .metric span,
.wd-dashboard-overview-band .metric small { font-size: 10px !important; line-height: 1.4; }
.wd-dashboard-audit {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 17px 18px !important;
}
.wd-dashboard-audit > h2 { font-size: 16px !important; }
.wd-dashboard-guide { margin: 0 0 12px !important; gap: 8px !important; }
.wd-dashboard-guide .guide-card { min-height: 0 !important; padding: 13px 14px !important; }
.wd-dashboard-workspace {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}
.wd-dashboard .wd-dashboard-workspace .module-tabs {
  position: sticky !important;
  top: 18px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2px;
  padding: 7px !important;
}
.wd-dashboard .wd-dashboard-workspace .module-tabs a {
  position: relative;
  display: grid !important;
  min-width: 0 !important;
  min-height: 57px !important;
  place-items: initial !important;
  align-content: center;
  gap: 4px;
  padding: 9px 11px;
  text-align: left;
}
.wd-dashboard .module-tabs a strong { color: inherit; font-size: 13px; font-weight: 650; }
.wd-dashboard .module-tabs a small { color: #9b95a0; font-size: 10px; font-weight: 500; line-height: 1.35; }
.wd-dashboard .module-tabs a.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 99px;
  background: var(--console-purple);
}
.wd-dashboard .module-tabs a.is-current small { color: #7968e5; opacity: .76; }
.wd-dashboard .wd-dashboard-workspace .grid { width: 100%; max-width: none; }
.wd-dashboard .wd-dashboard-workspace .panel { padding: 22px !important; }
.wd-module-group { padding: 15px 12px 5px; color: #a19aa7; font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.wd-module-group:first-child { padding-top: 7px; }
.wd-inline-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 0;
  padding: 16px 0 9px;
  border-top: 1px solid var(--console-line);
}
.wd-inline-section-title strong { color: var(--console-ink); font-size: 13px; }
.wd-inline-section-title span { color: var(--console-muted); font-size: 10px; text-align: right; }
.wd-dashboard #profileForm > h2::after,
.wd-dashboard #mediaForm > h2::after,
.wd-dashboard #caseForm > h2::after,
.wd-dashboard #packageForm > h2::after,
.wd-dashboard #hallForm > h2::after,
.wd-dashboard #sectionForm > h2::after {
  display: block;
  margin-top: 7px;
  color: var(--console-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.wd-dashboard #profileForm > h2::after { content: "维护品牌、地区、报价与 App 展示文案"; }
.wd-dashboard #mediaForm > h2::after { content: "建议先准备清晰的 Logo、封面图和 3–6 张环境图"; }
.wd-dashboard #caseForm > h2::after { content: "用真实案例帮助新人快速理解服务风格"; }
.wd-dashboard #packageForm > h2::after { content: "清楚说明价格、适合人群、包含内容与交付规则"; }
.wd-dashboard #hallForm > h2::after { content: "酒店及宴会类商家可维护厅况、桌数和配套"; }
.wd-dashboard #sectionForm > h2::after { content: "补充团队、流程、交付与售后保障"; }
.wd-dashboard .approval-note { padding: 13px 15px !important; border-left: 3px solid #b4a8f5; line-height: 1.65; }
.wd-dashboard .panel > h2 { margin: 0 0 4px; }
.wd-dashboard form.panel { gap: 14px !important; }
.wd-dashboard #profileForm .field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 11px !important;
}
.wd-dashboard #profileForm .field-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.wd-form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--console-line);
  border-radius: 13px;
  background: #fcfbfd;
}
.wd-form-section .wd-inline-section-title {
  margin: -2px 0 2px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid var(--console-line);
}
.wd-form-section > label { margin: 0 !important; }
.wd-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wd-upload-grid > label {
  min-height: 96px;
  margin: 0 !important;
  padding: 13px;
  align-content: center;
  border: 1px solid var(--console-line);
  border-radius: 12px;
  background: #fcfbfd;
}
.wd-dashboard .media-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
}
.wd-dashboard .media-tile {
  min-height: 148px;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
}
.wd-dashboard .media-tile.wide { grid-column: span 2; aspect-ratio: 2 / 1 !important; }
.wd-dashboard .item > img { width: 100%; height: 220px; max-height: none; object-fit: cover; border-radius: 12px; }
.wd-dashboard .thumb-row img { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 10px; object-fit: cover; }
.wd-current-content-panel { gap: 12px !important; }
.wd-current-content-panel > h2 { margin-bottom: 0 !important; }
.wd-current-content-hint { margin: 0 0 4px !important; color: var(--console-muted); font-size: 11px; }
.wd-current-content {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px !important;
  align-items: start;
}
.wd-content-preview {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--console-line);
  border-radius: 13px;
  background: #faf9fc;
}
.wd-content-kicker {
  display: block;
  margin: 1px 2px 10px;
  color: #9b94a1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.wd-current-content .phone-preview {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--console-line);
  border-radius: 11px !important;
  background: #fff;
  box-shadow: none;
}
.wd-current-content .phone-preview .cover { height: 138px; margin: 0; border-radius: 0 !important; }
.wd-current-content .phone-preview .body {
  margin: 0;
  padding: 13px;
  border-radius: 0 !important;
  box-shadow: none;
}
.wd-current-content .phone-preview .body strong { display: block; font-size: 14px; }
.wd-current-content .phone-preview .body p { margin: 4px 0 0; line-height: 1.45; }
.wd-content-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.wd-current-content .item { min-width: 0; margin: 0; padding: 14px !important; }
.wd-content-identity {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 12px;
}
.wd-content-identity small,
.wd-content-tags small { display: block; margin-bottom: 4px; color: var(--console-muted); font-size: 9px; }
.wd-content-identity strong,
.wd-content-tags strong { margin: 0 !important; font-size: 13px; }
.wd-content-tags { grid-column: 1 / -1; }
.wd-content-block { align-content: start; }
.wd-content-block > h3 {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--console-line);
  color: var(--console-ink);
  font-size: 13px;
  font-weight: 650;
}
.wd-content-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--console-line);
}
.wd-content-entry:first-of-type { padding-top: 0; }
.wd-content-entry:last-of-type { border-bottom: 0; padding-bottom: 0; }
.wd-content-entry > .pill { grid-column: 1 / -1; justify-self: start; margin-bottom: 2px; }
.wd-content-entry > strong { min-width: 0; margin: 0 !important; font-size: 12px; }
.wd-content-entry > p,
.wd-content-entry > small { grid-column: 1 / -1; margin: 0; color: var(--console-muted); font-size: 10px; line-height: 1.55; }
.wd-content-price { color: var(--console-purple); font-size: 11px; font-weight: 650; white-space: nowrap; }
.wd-content-price del { margin-left: 3px; color: #aaa4ae; font-weight: 500; }
.wd-current-content .mini-actions { gap: 6px; margin-top: 9px; }
.wd-current-content .mini-actions button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
}
.wd-current-content .wd-content-block > img {
  width: 100%;
  height: 132px;
  margin-top: 10px;
  border-radius: 9px;
  object-fit: cover;
}
.wd-content-sections { grid-column: 1 / -1; }

/* Shared media geometry across onboarding and admin pages */
.wd-apply-page .media-card { min-width: 0; }
.wd-apply-page .media-card .preview,
.wd-apply-page .media-card .gallery { width: 100%; min-height: 168px; border-radius: 11px !important; }
.wd-apply-page .media-card .preview.logo { aspect-ratio: 1 / 1; }
.wd-apply-page .media-card .preview.cover { aspect-ratio: 16 / 10; }
.wd-apply-page .media-card .preview.license { aspect-ratio: 4 / 3; }
.wd-apply-page .media-card img,
.wd-review-page .cover img,
.wd-review-page .mini img,
.wd-standalone-admin .media img,
.wd-standalone-admin .images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wd-review-page .cover { width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 12px; }
.wd-review-page .mini { width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; border-radius: 10px; }
.wd-standalone-admin .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; gap: 14px !important; }
.wd-standalone-admin .media { width: 100%; height: 180px !important; border-radius: 11px !important; }
.wd-standalone-admin .images img { width: 112px; height: 112px; flex: 0 0 112px; border-radius: 10px !important; }

/* Information architecture: merchant review */
.wd-review-page header { min-height: 150px !important; align-items: center !important; }
.wd-review-controls {
  display: grid;
  grid-template-columns: minmax(310px,.72fr) minmax(0,1.28fr);
  gap: 14px;
  margin-bottom: 22px;
}
.wd-review-controls .tabs,
.wd-review-controls .filters { margin: 0 !important; }
.wd-review-controls .tabs { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; padding: 6px; }
.wd-review-controls .filters {
  display: grid;
  grid-template-columns: minmax(200px,1fr) 160px 170px;
  padding: 6px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: #fff;
}
.wd-review-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 12px; }
.wd-review-heading .panel-title { margin: 0; font-size: 19px; }
.wd-review-heading p { margin: 0; color: var(--console-muted); font-size: 11px; }
.wd-review-page .table-wrap { border-radius: 14px !important; }
.wd-review-page th { height: 46px; vertical-align: middle; }
.wd-review-page td { padding-top: 16px; padding-bottom: 16px; }
.wd-review-standards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.wd-review-standards > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--console-line);
  border-radius: 13px;
  background: #fff;
}
.wd-review-standards span { grid-row: 1 / 3; color: #a59dab; font-size: 10px; }
.wd-review-standards strong { color: var(--console-ink); font-size: 12px; }
.wd-review-standards small { color: var(--console-muted); font-size: 9px; line-height: 1.45; }
.wd-review-docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.wd-review-docs a,
.wd-review-docs span { padding: 9px 11px; border: 1px solid var(--console-line); border-radius: 9px; background: #faf9fb; color: #655d6d; font-size: 11px; text-decoration: none; }

body:not(.wd-auth-page) input,
body:not(.wd-auth-page) select,
body:not(.wd-auth-page) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: 1px solid var(--console-line) !important;
  border-radius: var(--console-control-radius) !important;
  background: #fff !important;
  color: var(--console-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
body:not(.wd-auth-page) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body:not(.wd-auth-page) select {
  height: var(--console-control-height) !important;
  min-height: var(--console-control-height) !important;
  padding: 0 13px !important;
  line-height: 20px !important;
}
body:not(.wd-auth-page) textarea {
  height: auto !important;
  min-height: 104px !important;
  padding: 11px 13px !important;
  line-height: 1.6 !important;
  resize: vertical;
}
body:not(.wd-auth-page) input[type="file"] {
  min-height: var(--console-control-height) !important;
  padding: 8px 10px !important;
  line-height: 26px !important;
}
body:not(.wd-auth-page) input[type="checkbox"],
body:not(.wd-auth-page) input[type="radio"] {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
}
body:not(.wd-auth-page) label { min-width: 0 !important; font-size: 13px; line-height: 1.45; }
body:not(.wd-auth-page) input:focus,
body:not(.wd-auth-page) select:focus,
body:not(.wd-auth-page) textarea:focus {
  border-color: #9b8eef !important;
  box-shadow: 0 0 0 3px rgba(121,104,229,.1) !important;
}
body:not(.wd-auth-page) button,
body:not(.wd-auth-page) a.buttonish,
body:not(.wd-auth-page) .file-btn {
  border-radius: 10px !important;
  background: var(--console-purple) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
body:not(.wd-auth-page) button:hover,
body:not(.wd-auth-page) a.buttonish:hover { filter: brightness(.96); }
body:not(.wd-auth-page) button.ghost,
body:not(.wd-auth-page) a.ghost,
body:not(.wd-auth-page) a.buttonish.ghost,
body:not(.wd-auth-page) .file-btn.ghost,
body:not(.wd-auth-page) button.reject,
body:not(.wd-auth-page) button.unlist {
  border: 1px solid var(--console-line) !important;
  background: #fff !important;
  color: #655d6d !important;
}
body:not(.wd-auth-page) button.approve,
body:not(.wd-auth-page) button.green { background: var(--console-purple) !important; color: #fff !important; }
body:not(.wd-auth-page) button.red,
body:not(.wd-auth-page) .danger { background: #fff0f2 !important; color: var(--console-danger) !important; }

body.wd-dashboard .wd-dashboard-command button {
  border: 0 !important;
  background: #faf9fb !important;
  color: var(--console-ink) !important;
}
body.wd-dashboard .wd-dashboard-command button:hover { background: var(--console-purple-soft) !important; }
body.wd-dashboard .wd-dashboard-command button > span { color: #aaa3b1 !important; }
body.wd-dashboard .wd-dashboard-command button > small { color: var(--console-muted) !important; }

body:not(.wd-auth-page) .filters { margin-bottom: 18px !important; }
body:not(.wd-auth-page) .filters input,
body:not(.wd-auth-page) .filters select { min-height: 44px; }
body:not(.wd-auth-page) th {
  background: #faf9fb !important;
  color: var(--console-muted) !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
body:not(.wd-auth-page) td { color: #504957; }
body:not(.wd-auth-page) tr:hover td { background: #faf9fc !important; }
body:not(.wd-auth-page) .metric,
body:not(.wd-auth-page) .item,
body:not(.wd-auth-page) .audit-entry,
body:not(.wd-auth-page) .approval-note,
body:not(.wd-auth-page) .kv div {
  border-radius: 10px !important;
  background: #faf9fb !important;
}
body:not(.wd-auth-page) .metric strong { color: var(--console-ink) !important; }
body:not(.wd-auth-page) .badge,
body:not(.wd-auth-page) .pill,
body:not(.wd-auth-page) .type-note,
body:not(.wd-auth-page) .guide-tag {
  background: var(--console-purple-soft) !important;
  color: var(--console-purple) !important;
}
body:not(.wd-auth-page) .drawer-panel { border-left: 1px solid var(--console-line); box-shadow: -16px 0 42px rgba(40,35,50,.12) !important; }
body:not(.wd-auth-page) .sticky-submit { left: var(--console-sidebar-width) !important; border-color: var(--console-line) !important; }
body:not(.wd-auth-page) .complete-bar { background: #ebe8ef !important; }
body:not(.wd-auth-page) .complete-bar i { background: var(--console-purple) !important; }

.wd-auth-page {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr) !important;
  place-items: stretch !important;
  padding: 0 !important;
  background: #fff !important;
}
.wd-auth-story {
  min-height: 100vh;
  padding: 64px;
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,.2), transparent 34%),
    linear-gradient(145deg, #8f7cff 0%, #a879f0 52%, #efa8c4 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wd-auth-story strong { font-size: 17px; letter-spacing: .08em; }
.wd-auth-story div { max-width: 520px; }
.wd-auth-story small { color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .15em; }
.wd-auth-story h2 { margin: 18px 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
.wd-auth-story p { margin: 0; color: rgba(255,255,255,.84); font-size: 15px; line-height: 1.8; }
.wd-auth-page > main {
  width: min(500px, calc(100% - 48px)) !important;
  margin: auto !important;
  padding: 42px !important;
  border: 1px solid var(--console-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 26px 70px rgba(42,33,61,.1) !important;
}
.wd-auth-page h1 { font-size: 30px !important; font-weight: 650; letter-spacing: -.03em; }
.wd-auth-page input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: var(--console-control-height) !important;
  min-height: var(--console-control-height) !important;
  padding: 0 13px !important;
  border: 1px solid var(--console-line) !important;
  border-radius: var(--console-control-radius) !important;
  background: #fff !important;
  font-size: 14px !important;
}
.wd-auth-page input:focus { border-color: #9b8eef !important; box-shadow: 0 0 0 3px rgba(121,104,229,.1) !important; }
.wd-auth-page button { min-height: 42px; border-radius: 10px !important; background: var(--console-purple) !important; box-shadow: none !important; }
.wd-auth-page .tabs { border: 1px solid var(--console-line); border-radius: 12px; padding: 5px; background: #faf9fb; }
.wd-auth-page .tabs button { background: transparent !important; color: var(--console-muted) !important; }
.wd-auth-page .tabs button.active { background: #fff !important; color: var(--console-purple) !important; box-shadow: 0 2px 8px rgba(40,35,50,.07) !important; }

@media (max-width: 940px) {
  body:not(.wd-auth-page) { padding-top: 64px; overflow-x: hidden; }
  body.wd-nav-open { overflow: hidden !important; }
  body:not(.wd-auth-page) > main { margin-left: 0 !important; padding: 20px 16px 52px !important; }
  body.wd-standalone-admin > main { padding-left: 20px !important; }
  .wd-mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 130;
    height: 64px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--console-line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
  }
  .wd-mobile-brand { display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--console-ink); text-decoration: none; }
  .wd-mobile-brand img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; object-fit: cover; }
  .wd-mobile-brand span { overflow: hidden; font-size: 16px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  body:not(.wd-auth-page) .wd-mobile-menu {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--console-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--console-ink) !important;
  }
  .wd-mobile-menu span { display: block; width: 18px; height: 2px; border-radius: 9px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .wd-nav-open .wd-mobile-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .wd-nav-open .wd-mobile-menu span:nth-child(2) { opacity: 0; }
  .wd-nav-open .wd-mobile-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .wd-console-sidebar {
    inset: 0 auto 0 0;
    width: min(286px, 84vw);
    height: 100dvh;
    padding: 24px 18px;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: 18px 0 48px rgba(25,20,31,.24);
    z-index: 140;
  }
  .wd-nav-open .wd-console-sidebar { transform: translateX(0); }
  body:not(.wd-auth-page) .wd-sidebar-close {
    position: absolute;
    top: 18px;
    right: 14px;
    display: grid;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    font-size: 24px;
    font-weight: 400 !important;
    line-height: 1;
  }
  .wd-console-brand { padding: 0 8px 22px; font-size: 15px; }
  .wd-console-brand img { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .wd-console-brand small, .wd-console-group, .wd-console-foot { display: block; }
  .wd-console-nav { display: grid; overflow: visible; }
  .wd-console-nav a { min-height: 46px !important; padding: 0 12px !important; }
  .wd-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(24,20,29,.38) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .wd-nav-open .wd-mobile-backdrop { display: block; opacity: 1; pointer-events: auto; }
  body:not(.wd-auth-page) .sticky-submit { left: 0 !important; }
  .wd-apply-page .wd-apply-workspace { grid-template-columns: 1fr; }
  .wd-apply-rail { position: static; padding: 16px; }
  .wd-apply-rail > p, .wd-apply-rail > h2, .wd-rail-kicker { display: none; }
  .wd-apply-rail nav { grid-template-columns: repeat(4,minmax(130px,1fr)); overflow-x: auto; }
  .wd-dashboard header { margin-bottom: 14px !important; }
  .wd-dashboard-overview-band { grid-template-columns: 1fr; }
  .wd-dashboard-selector {
    grid-template-columns: minmax(170px, .62fr) minmax(260px, 1.38fr) !important;
    align-items: end;
    border-right: 0 !important;
    border-bottom: 1px solid var(--console-line) !important;
  }
  .wd-selector-notice { grid-column: 1 / -1; }
  .wd-dashboard-workspace { grid-template-columns: 1fr; }
  .wd-current-content { grid-template-columns: 220px minmax(0, 1fr); }
  .wd-mobile-module-select {
    position: sticky;
    top: 76px;
    z-index: 18;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--console-line);
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 24px rgba(40,35,50,.08);
    backdrop-filter: blur(16px);
  }
  .wd-mobile-module-select > span { color: var(--console-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
  .wd-mobile-module-select select { height: 42px !important; min-height: 42px !important; }
  .wd-dashboard .wd-dashboard-workspace .module-tabs {
    display: none !important;
  }
  .wd-review-controls { grid-template-columns: 1fr; }
  .wd-review-standards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wd-auth-page { grid-template-columns: 1fr !important; background: var(--console-bg) !important; }
  .wd-auth-story { display: none; }
  .wd-auth-page > main { margin: 42px auto !important; }
}

@media (max-width: 640px) {
  body:not(.wd-auth-page) > main { padding: 18px 12px 38px !important; }
  body:not(.wd-auth-page) header { align-items: flex-start !important; }
  body:not(.wd-auth-page) .panel,
  body:not(.wd-auth-page) .section { padding: 16px !important; }
  body:not(.wd-auth-page) .filters { grid-template-columns: 1fr !important; }
  body:not(.wd-auth-page) .tabs {
    display: flex !important;
    width: 100%;
    gap: 6px !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  body:not(.wd-auth-page) .tabs::-webkit-scrollbar { display: none; }
  body:not(.wd-auth-page) .tabs .tab,
  body:not(.wd-auth-page) .tabs button {
    flex: 0 0 auto;
    min-width: 128px !important;
    min-height: 44px !important;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  body:not(.wd-auth-page) .module-tabs { position: static !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .wd-apply-page .hero { grid-template-columns: 1fr !important; }
  .wd-apply-page .hero-preview { display: none; }
  .wd-apply-rail { overflow: hidden; }
  .wd-apply-rail nav { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .wd-apply-rail nav::-webkit-scrollbar { display: none; }
  .wd-apply-rail nav a { flex: 0 0 144px; scroll-snap-align: start; }
  .wd-rail-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-rail-checks strong { grid-column: 1 / -1; }
  .wd-apply-content .media-grid { grid-template-columns: 1fr !important; }
  .wd-dashboard header h1 { font-size: 26px !important; }
  .wd-dashboard header p { max-width: 92%; font-size: 12px; }
  .wd-dashboard-overview-band { border-radius: 14px; }
  .wd-dashboard-selector {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 15px !important;
  }
  .wd-selector-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .wd-selector-notice { grid-column: auto; }
  .wd-dashboard-overview-band #summaryOverview {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px !important;
    padding: 10px !important;
  }
  .wd-dashboard-overview-band .metric { min-height: 66px; padding: 10px !important; }
  .wd-dashboard-overview-band .metric strong { font-size: 18px !important; }
  .wd-dashboard-audit { padding: 14px !important; }
  .wd-dashboard-guide {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .wd-dashboard-guide::-webkit-scrollbar { display: none; }
  .wd-dashboard-guide .guide-card { flex: 0 0 236px; scroll-snap-align: start; }
  .wd-dashboard-workspace { gap: 10px; margin-top: 10px; }
  .wd-mobile-module-select {
    top: 72px;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 9px 10px;
  }
  .wd-mobile-module-select > span { font-size: 10px; }
  .wd-dashboard .wd-dashboard-workspace .module-tabs { grid-template-columns: repeat(2,minmax(150px,1fr)) !important; }
  .wd-dashboard .wd-dashboard-workspace .panel { padding: 15px !important; }
  .wd-dashboard #profileForm .field-row,
  .wd-dashboard #profileForm .field-row.four { grid-template-columns: 1fr !important; }
  .wd-upload-grid { grid-template-columns: 1fr; }
  .wd-dashboard .media-preview { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .wd-current-content { grid-template-columns: 1fr; gap: 10px !important; }
  .wd-content-preview { padding: 10px; }
  .wd-current-content .phone-preview { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .wd-current-content .phone-preview .cover { height: 108px; }
  .wd-current-content .phone-preview .body { display: grid; align-content: center; padding: 11px; }
  .wd-content-details { grid-template-columns: 1fr; gap: 8px; }
  .wd-content-identity { grid-column: auto; grid-template-columns: 1fr; gap: 5px; }
  .wd-content-tags,
  .wd-content-sections { grid-column: auto; }
  .wd-content-block > h3 { margin-bottom: 8px; }
  .wd-review-controls .filters { grid-template-columns: 1fr; }
  .wd-review-standards { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .wd-review-standards::-webkit-scrollbar { display: none; }
  .wd-review-standards > div { flex: 0 0 250px; scroll-snap-align: start; }
  .wd-review-heading { display: block; }
  .wd-review-heading p { margin-top: 6px; }
  .wd-auth-page > main { width: calc(100% - 24px) !important; margin: 12px auto !important; padding: 26px 20px !important; }
  .wd-inline-section-title { display: block; }
  .wd-inline-section-title span { display: block; margin-top: 4px; text-align: left; }
  .wd-form-section { padding: 13px; }
  .wd-standalone-admin .grid { grid-template-columns: minmax(0, 1fr) !important; }
  body:not(.wd-auth-page) .drawer-panel { width: 100% !important; padding: 18px 14px !important; }
  body:not(.wd-auth-page) .table-wrap { -webkit-overflow-scrolling: touch; }
}
