/* 2026-07-13: shared interaction and visual polish inspired by Emil Kowalski's design engineering principles. */
:root {
  --polish-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --polish-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --polish-fast: 140ms;
  --polish-medium: 220ms;
  --polish-radius: 8px;
  --polish-bg: #f4f6f9;
  --polish-surface: #ffffff;
  --polish-surface-raised: rgba(255, 255, 255, 0.94);
  --polish-border: #d7dde7;
  --polish-border-strong: #b7c0cf;
  --polish-text: #171b24;
  --polish-muted: #5d6675;
  --polish-shadow: 0 14px 34px rgba(21, 30, 45, 0.09);
  --polish-shadow-strong: 0 24px 64px rgba(10, 18, 30, 0.18);
  --polish-red: #d9233f;
  --polish-red-dark: #a81730;
  --polish-blue: #2458c6;
  --polish-green: #168456;
  --polish-orange: #d96520;
}

html[data-site-theme="dark"] {
  --polish-bg: #090b10;
  --polish-surface: #10141c;
  --polish-surface-raised: rgba(17, 22, 31, 0.94);
  --polish-border: #2a313d;
  --polish-border-strong: #465164;
  --polish-text: #f4f6fa;
  --polish-muted: #aeb7c5;
  --polish-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  --polish-shadow-strong: 0 30px 78px rgba(0, 0, 0, 0.46);
  --polish-red: #f0445d;
  --polish-red-dark: #c5233e;
  --polish-blue: #5f87ef;
  --polish-green: #2cad75;
  --polish-orange: #f0833c;
}

html {
  scroll-padding-top: 84px;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.price,
.metric strong,
.server-pool-count,
.feedback-hub-stat strong {
  letter-spacing: 0 !important;
}

.price,
.metric strong,
.server-pool-count,
.feedback-hub-stat strong,
[data-usage],
[data-price] {
  font-variant-numeric: tabular-nums;
}

:where(button, [role="button"], a.btn, a.cta, .copy-btn, .pager-btn, .dot, .profile-pill, .category-pill) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:where(button, [role="button"], a.btn, a.cta, .copy-btn, .pager-btn, .profile-pill, .category-pill) {
  transition-property: transform, background-color, border-color, color, box-shadow, opacity;
  transition-duration: var(--polish-fast);
  transition-timing-function: var(--polish-ease-out);
}

:where(button, [role="button"], a.btn, a.cta, .copy-btn, .pager-btn, .profile-pill, .category-pill):active {
  transform: scale(0.975);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--polish-blue) 76%, white);
  outline-offset: 3px;
}

body.page-public {
  background: var(--polish-bg) !important;
  color: var(--polish-text);
  text-rendering: optimizeLegibility;
}

body.page-public :where(input, select, textarea) {
  border-radius: 7px !important;
  transition: border-color var(--polish-fast) ease, box-shadow var(--polish-fast) ease, background-color var(--polish-fast) ease !important;
}

body.page-public :where(.card, .panel, .feature-card, .product-card, .resource-card, .case-card, .support-card, .download-card, .solution-card) {
  border-radius: var(--polish-radius) !important;
}

body.page-public footer {
  border-top: 1px solid var(--polish-border) !important;
  background: transparent !important;
  color: var(--polish-muted) !important;
}

body.page-public :where(table) {
  font-variant-numeric: tabular-nums;
}

/* Public header: quiet utility links, strong product signals only. */
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .top-banner,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .ticker {
  position: relative !important;
  top: auto !important;
  height: 30px !important;
  border-bottom-width: 1px !important;
  background: #171b24 !important;
}

html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .top-banner,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .ticker {
  background: #0d1016 !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .top-banner .container,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .ticker .container {
  height: 30px !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header {
  top: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid var(--polish-border) !important;
  box-shadow: 0 8px 26px rgba(25, 35, 50, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header {
  background: rgba(10, 13, 19, 0.9) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28) !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .nav {
  width: min(1280px, calc(100vw - 32px)) !important;
  min-height: 68px !important;
  grid-template-columns: 150px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 8px 0 !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand img,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand .brand-mark {
  width: 142px !important;
  max-width: 142px !important;
  border-radius: 0 !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu {
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 3px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu-chain-arrow {
  display: none !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-dropdown > .menu-trigger {
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none;
  text-decoration: none !important;
  transition: background-color var(--polish-fast) ease, border-color var(--polish-fast) ease, color var(--polish-fast) ease !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a:not(.menu-skills-link):not(.menu-hermes-link),
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a:not(.menu-skills-link):not(.menu-hermes-link) {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--polish-muted) !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a:not(.menu-skills-link):not(.menu-hermes-link):hover {
  background: color-mix(in srgb, var(--polish-blue) 8%, transparent) !important;
  color: var(--polish-text) !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-api-dropdown > .menu-trigger,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-api-dropdown > .menu-trigger {
  background: var(--polish-green) !important;
  border-color: color-mix(in srgb, var(--polish-green) 72%, black) !important;
  color: #fff !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a.menu-skills-link,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a.menu-skills-link {
  background: var(--polish-blue) !important;
  border-color: color-mix(in srgb, var(--polish-blue) 72%, black) !important;
  color: #fff !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-openclaw-dropdown > .menu-trigger,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-openclaw-dropdown > .menu-trigger {
  background: var(--polish-red) !important;
  border-color: color-mix(in srgb, var(--polish-red) 72%, black) !important;
  color: #fff !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a.menu-hermes-link,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a.menu-hermes-link {
  min-width: 76px !important;
  background: var(--polish-orange) !important;
  border-color: color-mix(in srgb, var(--polish-orange) 72%, black) !important;
  color: #fff !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a.menu-hermes-link::before,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a.menu-hermes-link::after,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-dropdown > .menu-trigger::after {
  display: none !important;
  animation: none !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu-panel {
  top: calc(100% + 7px) !important;
  min-width: 210px !important;
  padding: 5px !important;
  border: 1px solid var(--polish-border) !important;
  border-radius: var(--polish-radius) !important;
  background: var(--polish-surface-raised) !important;
  box-shadow: var(--polish-shadow-strong) !important;
  transform-origin: 18px 0 !important;
  backdrop-filter: blur(18px) !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu-panel a,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu-panel a {
  min-height: 34px !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: var(--polish-text) !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .nav-right {
  width: auto !important;
  max-width: none !important;
  gap: 8px !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member,
html[data-site-theme="dark"] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member {
  min-width: 132px !important;
  width: auto !important;
  height: 38px !important;
  padding: 0 12px 0 7px !important;
  gap: 7px !important;
  border-radius: 8px !important;
  background: #202631 !important;
  border-color: #3d4655 !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member::before,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member::after {
  display: none !important;
  animation: none !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member .quick-emblem {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--polish-orange) 68%, white) !important;
  border-radius: 6px !important;
  background: var(--polish-orange) !important;
  box-shadow: none !important;
  animation: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member .quick-emblem::before {
  content: "H";
  color: #fff;
  font: 900 13px/1 "Outfit", "Noto Sans SC", sans-serif;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member .quick-label {
  max-width: none !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .auth-entry-btn,
body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .user-trigger {
  min-height: 36px !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  border: 1px solid var(--polish-border) !important;
  background: transparent !important;
  color: var(--polish-text) !important;
  box-shadow: none !important;
}

/* Homepage: one stable, full-width primary scene. */
.page-home,
html[data-site-theme="dark"] .page-home {
  background: var(--polish-bg) !important;
}

.page-home .hero-wrap,
.page-home .hero-banner {
  background: var(--polish-bg) !important;
  border: 0 !important;
}

.page-home .hero-banner {
  min-height: 520px !important;
  padding: 0 !important;
}

.page-home .hero-banner::before,
.page-home .hero-banner::after,
.page-home .hero-slider::before {
  display: none !important;
}

.page-home .hero-shell {
  width: 100% !important;
  display: block !important;
}

.page-home .hero-slider {
  min-height: 520px !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #100b08 !important;
  box-shadow: none !important;
}

.page-home .slider-head,
.page-home .hero-brand-panel {
  display: none !important;
}

.page-home .slider-track {
  min-height: 520px !important;
}

.page-home .hero-slide {
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 520px !important;
  padding: 64px max(5vw, calc((100vw - 1240px) / 2 + 16px)) 80px !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 14px !important;
  background-position: center right !important;
  transition: opacity var(--polish-medium) var(--polish-ease-out), transform var(--polish-medium) var(--polish-ease-out) !important;
  transform: translateX(10px);
}

.page-home .hero-slide.active {
  transform: translateX(0);
}

.page-home .hero-slide[data-slide="0"],
.page-home .hero-slide[data-slide="3"] {
  background-image: url("/assets/promo-bg/hermes-agent-hero-bg.jpg?v=20260713-emil-polish") !important;
}

.page-home .hero-slide[data-slide="1"] {
  background-image: url("/assets/hero/slide-enterprise-1280.jpg?v=20260713-emil-polish") !important;
}

.page-home .hero-slide[data-slide="2"] {
  background-image: url("/assets/hermes/hermes-agent-technical-v2-960.jpg?v=20260713-emil-polish") !important;
}

.page-home .hero-slide::before {
  border-radius: 0 !important;
  background: linear-gradient(90deg, rgba(8, 8, 9, 0.94) 0%, rgba(12, 10, 9, 0.84) 42%, rgba(12, 10, 9, 0.22) 74%, rgba(12, 10, 9, 0.06) 100%) !important;
}

.page-home .hero-slide::after {
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36)) !important;
}

.page-home .hero-slide h1,
.page-home .hero-slide[data-slide="3"] h1 {
  max-width: 12ch !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 3.2rem !important;
  line-height: 1.04 !important;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.45) !important;
}

.page-home .hero-slide p,
.page-home .hero-slide[data-slide="3"] p {
  max-width: 54ch !important;
  margin: 0 !important;
  color: #e8e3dc !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.page-home .hero-slide .meta {
  gap: 6px !important;
}

.page-home .hero-slide .meta span,
.page-home .hero-slide[data-slide="3"] .meta span {
  min-height: 28px !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(11, 13, 17, 0.62) !important;
  color: #f5f2ed !important;
  font-size: 0.75rem !important;
  backdrop-filter: blur(12px) !important;
}

.page-home .hero-slide .cta-group {
  gap: 8px !important;
  margin-top: 4px !important;
}

.page-home .hero-slide .cta,
.page-home .hero-slide[data-slide="3"] .cta {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 7px !important;
  background: var(--polish-orange) !important;
  border-color: color-mix(in srgb, var(--polish-orange) 72%, black) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.84rem !important;
}

.page-home .hero-slide .cta.secondary,
.page-home .hero-slide[data-slide="3"] .cta.secondary {
  background: rgba(16, 19, 25, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

.page-home .vane-home-badge {
  border-radius: 6px !important;
  background: rgba(17, 73, 53, 0.74) !important;
  letter-spacing: 0 !important;
}

.page-home .vane-home-panel {
  width: min(570px, 100%) !important;
  gap: 8px !important;
}

.page-home .vane-home-panel span {
  min-height: 58px !important;
  border-radius: 7px !important;
  background: rgba(12, 15, 20, 0.68) !important;
}

.page-home .slider-pager {
  position: absolute !important;
  left: max(5vw, calc((100vw - 1240px) / 2 + 16px)) !important;
  bottom: 26px !important;
  z-index: 4 !important;
  gap: 8px !important;
}

.page-home .pager-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(9, 12, 17, 0.68) !important;
  color: #fff !important;
  backdrop-filter: blur(12px) !important;
}

.page-home .dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.36) !important;
  transition: width var(--polish-fast) var(--polish-ease-out), background-color var(--polish-fast) ease !important;
}

.page-home .dot.active {
  width: 22px !important;
  background: var(--polish-orange) !important;
}

.page-home .section {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 42px max(16px, calc((100vw - 1240px) / 2 + 16px)) !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-home .section + .section {
  border-top: 1px solid var(--polish-border) !important;
}

.page-home .resource-strip {
  width: min(1240px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-top: 1px solid var(--polish-border) !important;
  border-bottom: 1px solid var(--polish-border) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-home .resource-strip article {
  border-color: var(--polish-border) !important;
  background: transparent !important;
}

.page-home .deploy-grid {
  gap: 12px !important;
}

.page-home .deploy-head-subtitle {
  display: block !important;
  width: auto !important;
  max-width: 72ch !important;
  margin-top: 7px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--polish-muted) !important;
  line-height: 1.58 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.page-home .deploy-card {
  border-radius: var(--polish-radius) !important;
  border: 1px solid var(--polish-border) !important;
  background: var(--polish-surface) !important;
  box-shadow: var(--polish-shadow) !important;
  overflow: hidden !important;
}

.page-home .hermes-badge-mark {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--polish-orange);
  color: #fff;
  font: 900 11px/1 "Outfit", "Noto Sans SC", sans-serif;
  box-shadow: none;
}

.page-home .deploy-card.enterprise-card { order: 3; }
.page-home .deploy-card.personal-card { order: 1; }
.page-home .deploy-card.cloud-card { order: 2; }

.page-home :where(.standard, .resource-card, .product, .case-card, .partner-card, .support-card, .more-card) {
  border-radius: var(--polish-radius) !important;
  border-color: var(--polish-border) !important;
  box-shadow: none !important;
}

/* Hermes package: full-bleed product signal, no nested hero card. */
.page-hermes,
html[data-site-theme="dark"] .page-hermes {
  background: var(--polish-bg) !important;
}

.page-hermes main > .hero.wrap {
  width: 100% !important;
  max-width: none !important;
  min-height: 510px !important;
  margin: 0 !important;
  padding: 68px max(5vw, calc((100vw - 1180px) / 2 + 16px)) 76px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-image: linear-gradient(90deg, rgba(10, 7, 5, 0.95) 0%, rgba(16, 10, 6, 0.84) 43%, rgba(16, 10, 6, 0.18) 76%, rgba(16, 10, 6, 0.04) 100%), url("/assets/promo-bg/hermes-agent-hero-bg.jpg?v=20260713-emil-polish") !important;
  background-size: cover !important;
  background-position: center right !important;
  color: #fff !important;
}

.page-hermes main > .hero.wrap > div:first-child {
  width: min(640px, 100%) !important;
}

.page-hermes .hero-visual {
  display: none !important;
}

.page-hermes .hero h1 {
  max-width: 13ch !important;
  margin: 12px 0 14px !important;
  color: #fff !important;
  font-size: 3.1rem !important;
  line-height: 1.04 !important;
}

.page-hermes .hero .hero-lead {
  max-width: 58ch !important;
  margin: 0 !important;
  color: #e9e2da !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

.page-hermes .hero .eyebrow {
  border-radius: 6px !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(12, 14, 18, 0.62) !important;
  color: #fff !important;
  backdrop-filter: blur(12px) !important;
}

.page-hermes .hero-actions {
  margin-top: 22px !important;
  gap: 9px !important;
}

.page-hermes .hero .btn {
  min-height: 42px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.page-hermes .hero .btn.primary {
  background: var(--polish-orange) !important;
  border-color: color-mix(in srgb, var(--polish-orange) 72%, black) !important;
}

.page-hermes .hero .btn.secondary {
  background: rgba(14, 17, 22, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

.page-hermes .hero-tags {
  gap: 6px !important;
  margin-top: 18px !important;
}

.page-hermes .hero-tags span {
  border-radius: 6px !important;
  background: rgba(13, 16, 21, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f5f0ea !important;
}

.page-hermes .promise-grid {
  gap: 0 !important;
  border-top: 1px solid var(--polish-border) !important;
  border-bottom: 1px solid var(--polish-border) !important;
}

.page-hermes .promise-card {
  border: 0 !important;
  border-right: 1px solid var(--polish-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-hermes .promise-card:last-child {
  border-right: 0 !important;
}

.page-hermes main > .section.wrap {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 46px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-hermes main > .section.wrap + .section.wrap {
  border-top: 1px solid var(--polish-border) !important;
}

.page-hermes .plans {
  gap: 12px !important;
}

.page-hermes .plan {
  border-radius: var(--polish-radius) !important;
  border-color: var(--polish-border) !important;
  box-shadow: var(--polish-shadow) !important;
  transform: none !important;
}

.page-hermes .plan.featured {
  border-color: color-mix(in srgb, var(--polish-orange) 58%, var(--polish-border)) !important;
  box-shadow: 0 18px 44px rgba(217, 101, 32, 0.14) !important;
}

/* Member center: sections stay unframed; cards are reserved for actual account items. */
.page-member main.console-main {
  width: min(1240px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
}

.page-member .console-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-member .console-card + .console-card {
  margin-top: 28px !important;
  padding-top: 28px !important;
  border-top: 1px solid var(--polish-border) !important;
}

.page-member :where(.center-card, .sub-card, .rebate-hero, .rebate-stat-card, .rebate-rule-card, .rebate-example-card, .rebate-tree-card, .center-table-wrap, .shuimu-key-box) {
  border-radius: var(--polish-radius) !important;
  box-shadow: none !important;
}

html[data-site-theme="dark"] .page-member :where(.center-card, .sub-card, .rebate-stat-card, .rebate-rule-card, .rebate-example-card, .rebate-tree-card, .center-table-wrap) {
  border-color: #303846 !important;
  background: #10141c !important;
}

html[data-site-theme="dark"] .page-member .rebate-hero {
  border-color: #3a4352 !important;
  background: #11161f !important;
}

/* Operational pages: dense, calm, and predictable. */
.page-member :where(.card, .panel, .member-card, .account-card, .subscription-card),
.page-console :where(.card, .panel, .console-workspace, #consoleWorkspace),
.page-admin :where(.card, .panel) {
  border-radius: var(--polish-radius) !important;
  box-shadow: none !important;
}

.page-console {
  background: #eef1f5 !important;
}

html[data-site-theme="dark"] .page-console {
  background: #080b10 !important;
}

.page-console #consoleWorkspace {
  border-radius: var(--polish-radius) !important;
  border-color: var(--polish-border) !important;
  box-shadow: none !important;
}

.page-console #consoleWorkspace::before {
  display: none !important;
}

.page-console .console-layout,
.page-console .console-shell {
  transition: none !important;
}

.page-console :where(button, a, input, select, textarea) {
  border-radius: 7px !important;
}

.page-console :where(.channel-onboarding-pulse, .console-onboarding-bar button) {
  animation: none !important;
}

.page-admin {
  padding: 14px !important;
  background: #edf1f6 !important;
}

.page-admin .wrap {
  max-width: 1440px !important;
  gap: 8px !important;
}

.page-admin .login-wrap {
  width: min(520px, 100%) !important;
  min-height: calc(100vh - 28px) !important;
  margin: 0 auto !important;
  display: grid !important;
  align-content: center !important;
}

.page-admin .login-wrap .card {
  padding: 22px !important;
}

.page-admin .card,
.page-admin .panel {
  border-color: #d6dde8 !important;
  background: #fff !important;
}

.page-admin :where(input, select, textarea, button) {
  border-radius: 7px !important;
}

.page-admin :where(button, .tab-btn, .server-view-preset, .user-view-preset) {
  transition: background-color var(--polish-fast) ease, border-color var(--polish-fast) ease, color var(--polish-fast) ease, transform var(--polish-fast) var(--polish-ease-out) !important;
}

.page-admin tbody tr {
  transition: background-color var(--polish-fast) ease !important;
}

@media (hover: hover) and (pointer: fine) {
  :where(button, [role="button"], a.btn, a.cta, .copy-btn, .pager-btn, .profile-pill, .category-pill):hover {
    filter: brightness(1.03);
  }

  .page-home .deploy-card:hover,
  .page-hermes .plan:hover {
    border-color: var(--polish-border-strong) !important;
    transform: translateY(-2px) !important;
  }

  .page-admin tbody tr:hover {
    background: #f5f8fc !important;
  }
}

@media (max-width: 900px) {
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .nav {
    grid-template-columns: minmax(118px, 1fr) auto !important;
    gap: 8px !important;
    padding: 8px 0 6px !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand img,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand .brand-mark {
    width: 126px !important;
    max-width: 126px !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .nav-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding: 6px 0 0 !important;
    border-top: 1px solid var(--polish-border) !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member,
  html[data-site-theme] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member {
    min-width: 118px !important;
  }

  .page-home .hero-banner,
  .page-home .hero-slider,
  .page-home .slider-track,
  .page-home .hero-slide {
    min-height: 500px !important;
  }

  .page-home .hero-slide {
    padding-top: 54px !important;
    padding-bottom: 80px !important;
  }

  .page-home .hero-slide h1,
  .page-home .hero-slide[data-slide="3"] h1,
  .page-hermes .hero h1 {
    font-size: 2.45rem !important;
  }

  .page-home .vane-home-panel {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
  }

  .page-home .vane-home-panel span:nth-child(n + 2) {
    display: none !important;
  }

  .page-hermes main > .hero.wrap {
    min-height: 500px !important;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 112px;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .top-banner,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .ticker,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .top-banner .container,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .ticker .container {
    height: 28px !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .top-banner .news-track,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > .ticker .news-track {
    animation: none !important;
    transform: none !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .nav {
    width: calc(100vw - 20px) !important;
    min-height: 92px !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand img,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .brand .brand-mark {
    width: 112px !important;
    max-width: 112px !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member,
  html[data-site-theme] body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member {
    min-width: 38px !important;
    width: 38px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .quick-links a.quick-member .quick-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .auth-entry-btn,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .user-trigger {
    min-height: 36px !important;
    padding: 0 9px !important;
    font-size: 0.75rem !important;
  }

  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > a,
  body:not(.page-admin):not(.chat-console-embed):not(.mobile-console-app) > header .menu > .menu-dropdown > .menu-trigger {
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 0.76rem !important;
  }

  .page-home .hero-banner,
  .page-home .hero-slider,
  .page-home .slider-track,
  .page-home .hero-slide {
    min-height: 470px !important;
  }

  .page-home .hero-slide {
    padding: 42px 20px 72px !important;
    background-position: 64% center !important;
  }

  .page-home .hero-slide::before {
    background: linear-gradient(90deg, rgba(7, 8, 10, 0.95), rgba(10, 10, 11, 0.84) 68%, rgba(10, 10, 11, 0.28)) !important;
  }

  .page-home .hero-slide h1,
  .page-home .hero-slide[data-slide="3"] h1,
  .page-hermes .hero h1 {
    max-width: 11ch !important;
    font-size: 2rem !important;
    line-height: 1.06 !important;
  }

  .page-home .hero-slide p,
  .page-home .hero-slide[data-slide="3"] p,
  .page-hermes .hero .hero-lead {
    font-size: 0.88rem !important;
    line-height: 1.62 !important;
  }

  .page-home .hero-slide .meta span:nth-child(n + 4) {
    display: none !important;
  }

  .page-home .vane-home-panel {
    display: none !important;
  }

  .page-home .slider-pager {
    left: 20px !important;
    bottom: 22px !important;
  }

  .page-home .section {
    width: 100% !important;
  }

  .page-home .resource-strip,
  .page-hermes main > .section.wrap {
    width: calc(100% - 28px) !important;
  }

  .page-home .section {
    padding: 32px 14px !important;
  }

  .page-hermes main > .section.wrap {
    padding: 32px 0 !important;
  }

  .page-hermes main > .hero.wrap {
    min-height: 470px !important;
    padding: 44px 20px 58px !important;
    background-position: 62% center !important;
  }

  .page-hermes .hero-tags span:nth-child(n + 4) {
    display: none !important;
  }

  .page-hermes .promise-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .page-hermes .promise-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--polish-border) !important;
  }

  .page-hermes .promise-card:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }

  .page-admin {
    padding: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .news-track,
  .partner-track,
  .hero-media .slide,
  .deploy-visual .shot {
    animation: none !important;
    transform: none !important;
  }
}
