:root {
  --bg: #f8f5ec;
  --paper: #fbfaf5;
  --paper-deep: #f1eee4;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-solid: #fffdf7;
  --ink: #1c1914;
  --text: #3e3a31;
  --muted: #6f6a5e;
  --faint: #9c9586;
  --line: rgba(28, 25, 20, 0.12);
  --line-strong: rgba(28, 25, 20, 0.2);
  --green: #34c47a;
  --green-deep: #108a4d;
  --green-soft: rgba(52, 196, 122, 0.16);
  --google: #4285f4;
  --bing: #008373;
  --yahoo: #6f48d9;
  --duckduckgo: #de6a21;
  --baidu: #2f6df6;
  --sogou: #e8552d;
  --so360: #18a058;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(28, 25, 20, 0.12);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(28, 25, 20, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(28, 25, 20, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fbfaf5 0%, #f1eee4 54%, #e6f0e6 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

body:not(.role-admin) [data-admin-only] {
  display: none !important;
}

.page-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  overflow-y: auto;
  background: rgba(251, 250, 245, 0.82);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 54px rgba(28, 25, 20, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(28, 25, 20, 0.12));
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.nav-list {
  display: grid;
  gap: 6px;
  padding: 24px 0;
}

.nav-item,
.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.nav-item {
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 760;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-item svg,
.top-actions svg,
.metric-card svg,
.ghost-button svg,
.primary-button svg,
.search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.workspace {
  min-width: 0;
  max-width: 1580px;
  padding: 22px 34px 50px;
}

.topbar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.08;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.section-kicker {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--green-deep);
  white-space: nowrap;
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(52, 196, 122, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.kicker-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--green-soft);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-menu {
  position: relative;
  display: inline-flex;
}

.user-switcher {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.user-switcher svg {
  width: 16px;
  height: 16px;
  color: var(--green-deep);
}

.user-switcher select {
  max-width: 126px;
  color: inherit;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
}

.account-chip {
  gap: 7px;
}

.top-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  gap: 8px;
  padding: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(28, 25, 20, 0.16);
  backdrop-filter: blur(12px);
}

.top-dropdown[hidden] {
  display: none;
}

.dropdown-head {
  display: grid;
  gap: 3px;
  padding: 8px 9px 6px;
  border-bottom: 1px solid var(--line);
}

.dropdown-head strong {
  font-size: 13px;
  font-weight: 950;
}

.dropdown-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.top-dropdown button,
.top-dropdown a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.top-dropdown button:hover,
.top-dropdown a:hover {
  background: rgba(52, 196, 122, 0.1);
  border-color: rgba(52, 196, 122, 0.2);
}

.account-dropdown {
  min-width: 310px;
}

.dropdown-password-form {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(248, 247, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dropdown-password-form[hidden] {
  display: none;
}

.dropdown-password-form .field {
  gap: 5px;
}

.dropdown-password-form input {
  min-height: 38px;
  padding: 0 11px;
  font-size: 13px;
}

.dropdown-password-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.top-dropdown .dropdown-password-form .primary-button {
  justify-content: center;
  min-height: 38px;
  color: #fffaf0;
  background: var(--ink);
  border-color: rgba(28, 25, 20, 0.14);
}

.credit-dropdown {
  min-width: 236px;
}

.credit-dropdown dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.credit-dropdown dl div {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.credit-dropdown dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
}

.credit-dropdown dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.credit-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #fffaf0;
  background: var(--ink);
  border: 1px solid rgba(28, 25, 20, 0.18);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.16);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.credit-pill-main {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.credit-pill strong {
  margin-left: 5px;
  color: #fff;
  font-size: 18px;
}

.page-heading h1.page-title-kicker {
  width: max-content;
  margin: 0;
  color: var(--green-deep);
  font-size: 18px;
  line-height: 1;
}

.top-recharge-link {
  min-height: 42px;
  padding: 0 15px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(52, 196, 122, 0.24);
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.52fr) minmax(620px, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
  margin-bottom: 14px;
  overflow: hidden;
}

.hero-band::before {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  max-width: none;
  padding: 0;
}

.eyebrow {
  width: max-content;
  min-height: 28px;
  padding: 0 11px;
}

.hero-copy h1 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 420px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.primary-button,
.ghost-button {
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.primary-button {
  color: #fffaf0;
  background: var(--ink);
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.18);
}

.primary-button:hover {
  background: #11100d;
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 430px;
  margin-top: 12px;
}

.summary-card,
.hero-stats article,
.metric-card,
.engine-card,
.panel-frame,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.summary-card {
  min-height: 74px;
  padding: 12px 14px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.summary-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.summary-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-work {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 30px;
  margin-bottom: 0;
}

.primary-work > * {
  min-width: 0;
}

.hero-stats article {
  min-height: 68px;
  padding: 11px;
}

.hero-stats span,
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.hero-stats small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.task-panel {
  position: relative;
  z-index: 2;
}

.compact-task {
  display: grid;
  gap: 12px;
  align-content: start;
}

.panel-frame {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.08);
}

.task-panel,
.table-panel,
.recharge-panel,
.ledger-panel,
.dispatch-panel,
.quality-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.task-panel > .panel-heading,
.table-panel > .panel-heading,
.recharge-panel > .panel-heading,
.ledger-panel > .panel-heading,
.dispatch-panel > .panel-heading,
.quality-panel > .panel-heading {
  margin: 0;
  align-items: center;
}

.compact-task .engine-selector,
.compact-task .device-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-task .submit-row {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
}

.compact-task .primary-button {
  width: 100%;
}

.compact-task .ghost-button {
  width: 100%;
}

.submit-mode {
  display: flex;
  gap: 4px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.submit-mode button {
  min-height: 27px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.submit-mode button.active {
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.12);
  box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.18);
}

.mode-panel {
  display: grid;
  gap: 12px;
}

.mode-panel[hidden] {
  display: none;
}

.single-panel {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.hero-task {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

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

.hero-task .panel-heading,
.hero-task .engine-selector,
.hero-task .submit-row {
  grid-column: 1 / -1;
}

.panel-heading .section-kicker {
  flex: 0 0 auto;
}

.panel-heading .section-kicker::before {
  display: none;
}

.panel-heading h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.cost-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  color: #fffaf0;
  white-space: nowrap;
  background: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.engine-selector,
.device-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.engine-selector legend,
.device-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.engine-selector input,
.device-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.engine-selector > label > span,
.device-selector > label > span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
}

.engine-selector input:checked + span,
.device-selector input:checked + span {
  color: var(--ink);
  border-color: rgba(52, 196, 122, 0.6);
  box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.26), 0 12px 26px rgba(52, 196, 122, 0.12);
}

.engine-selector label.is-disabled > span,
.device-selector label.is-disabled > span {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.device-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-selector svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--green-deep);
}

.engine-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.google {
  --engine: var(--google);
}

.bing {
  --engine: var(--bing);
}

.yahoo {
  --engine: var(--yahoo);
}

.duckduckgo {
  --engine: var(--duckduckgo);
}

.baidu {
  --engine: var(--baidu);
}

.sogou {
  --engine: var(--sogou);
}

.so360 {
  --engine: var(--so360);
}

[data-engine-card="Google"] {
  --engine: var(--google);
}

[data-engine-card="Bing"] {
  --engine: var(--bing);
}

[data-engine-card="Yahoo"] {
  --engine: var(--yahoo);
}

[data-engine-card="Duckduckgo"] {
  --engine: var(--duckduckgo);
}

[data-engine-card="Baidu"] {
  --engine: var(--baidu);
}

[data-engine-card="Sogou"] {
  --engine: var(--sogou);
}

[data-engine-card="360"] {
  --engine: var(--so360);
}

.engine-dot.google,
.engine-logo.google,
.engine-badge.google {
  background: var(--google);
}

.engine-dot.bing,
.engine-logo.bing,
.engine-badge.bing {
  background: var(--bing);
}

.engine-dot.yahoo,
.engine-logo.yahoo,
.engine-badge.yahoo {
  background: var(--yahoo);
}

.engine-dot.duckduckgo,
.engine-logo.duckduckgo,
.engine-badge.duckduckgo {
  background: var(--duckduckgo);
}

.engine-dot.baidu,
.engine-logo.baidu,
.engine-badge.baidu {
  background: var(--baidu);
}

.engine-dot.sogou,
.engine-logo.sogou,
.engine-badge.sogou {
  background: var(--sogou);
}

.engine-dot.so360,
.engine-logo.so360,
.engine-badge.so360 {
  background: var(--so360);
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea,
.search-field input,
.table-tools select,
.admin-search input {
  width: 100%;
  min-height: 38px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field input {
  padding: 0 13px;
}

.field select {
  padding: 0 12px;
}

.field textarea {
  min-height: 132px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder,
.search-field input::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.table-tools select:focus {
  border-color: rgba(52, 196, 122, 0.7);
  box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.24);
}

.submit-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.submit-help strong {
  color: var(--ink);
}

.validation-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}

.validation-panel span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.validation-panel .ok {
  color: #0b6b43;
  background: rgba(52, 196, 122, 0.13);
  border-color: rgba(52, 196, 122, 0.22);
}

.validation-panel .warn {
  color: #92541b;
  background: rgba(222, 106, 33, 0.13);
  border-color: rgba(222, 106, 33, 0.22);
}

.validation-panel .bad {
  color: #9a2230;
  background: rgba(202, 44, 62, 0.12);
  border-color: rgba(202, 44, 62, 0.2);
}

.file-drop {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 132px;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-drop svg {
  width: 26px;
  height: 26px;
  color: var(--green-deep);
}

.file-drop span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.file-drop small {
  max-width: 340px;
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

.submit-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.engine-grid,
.account-grid,
.work-grid,
.admin-panel {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 13px;
  align-items: center;
  min-height: 110px;
  padding: 17px;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.08);
}

.metric-card svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 10px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(52, 196, 122, 0.16);
  border-radius: 50%;
}

.metric-card strong {
  display: block;
  color: var(--ink);
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.metric-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

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

.engine-card {
  display: grid;
  gap: 16px;
  min-height: 214px;
  padding: 18px;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.08);
}

.engine-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.engine-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: var(--radius);
  font-size: 19px;
  font-weight: 950;
}

.engine-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.engine-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.progress-bar {
  position: relative;
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.progress-bar::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--progress) * 1%);
  content: "";
  background: var(--engine);
  border-radius: inherit;
  opacity: 0.84;
  animation: progress-grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.progress-bar::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  content: "";
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.44) 48%, transparent 78%),
    repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--engine) 24%, transparent) 18px 30px);
  border-radius: inherit;
  opacity: 0.42;
  transform: translateX(-100%);
  animation: progress-sheen 2.2s ease-in-out infinite;
  pointer-events: none;
}

.progress-bar span {
  position: relative;
  z-index: 2;
  padding-right: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

@keyframes progress-grow {
  from {
    width: 0;
  }

  to {
    width: calc(var(--progress) * 1%);
  }
}

@keyframes progress-sheen {
  0% {
    transform: translateX(-100%);
  }

  55% {
    transform: translateX(115%);
  }

  100% {
    transform: translateX(115%);
  }
}

@keyframes progressPulse {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

.engine-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.engine-card dl div {
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.engine-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.engine-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
}

.work-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-card {
  padding: 18px;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.08);
}

.dispatch-panel .panel-heading h2 {
  font-size: 24px;
  white-space: nowrap;
}

.dispatch-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.node {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 70px;
  place-items: center;
  padding: 10px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.node svg {
  width: 20px;
  height: 20px;
  color: var(--green-deep);
  filter: drop-shadow(0 6px 14px rgba(52, 196, 122, 0.18));
  animation: dispatch-icon 2.4s ease-in-out infinite;
}

.node:nth-child(2) svg {
  animation-delay: 0.18s;
}

.node:nth-child(3) svg {
  animation-delay: 0.36s;
}

.node:nth-child(4) svg {
  animation-delay: 0.54s;
}

.node::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 22px;
  height: 22px;
  content: "";
  background: var(--green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 8px 12px rgba(52, 196, 122, 0.28));
  animation: flow-arrow 1.18s ease-in-out infinite;
  transform: translate(-7px, -50%);
}

.node:last-child::after {
  display: none;
}

.node:nth-child(2)::after {
  animation-delay: 0.16s;
}

.node:nth-child(3)::after {
  animation-delay: 0.32s;
}

@keyframes flow-arrow {
  0% {
    opacity: 0;
    transform: translate(-13px, -50%) scale(0.72);
  }

  45% {
    opacity: 1;
    transform: translate(1px, -50%) scale(1.04);
  }

  58% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(52, 196, 122, 0.54));
  }

  100% {
    opacity: 0;
    transform: translate(14px, -50%) scale(0.72);
  }
}

@keyframes dispatch-icon {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0) scale(1);
  }

  44% {
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
  }
}

.event-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.event-list span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 196, 122, 0.24);
  animation: status-pulse 1.55s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 196, 122, 0.36);
  }

  100% {
    box-shadow: 0 0 0 9px rgba(52, 196, 122, 0);
  }
}

.table-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.table-tools {
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(220px, 360px) repeat(4, minmax(112px, 130px));
  gap: 10px;
  align-items: center;
  width: min(100%, 920px);
}

.search-field {
  position: relative;
  display: block;
  min-width: 0;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input {
  padding: 0 12px 0 38px;
}

.admin-search {
  position: relative;
  display: block;
  width: min(220px, 100%);
}

.admin-search svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
}

.admin-search input {
  min-height: 34px;
  padding: 0 10px 0 32px;
  font-size: 12px;
}

.table-tools select {
  width: 100%;
  padding: 0 10px;
}

.bulk-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bulk-bar[hidden] {
  display: none;
}

.bulk-summary {
  display: flex;
  align-items: center;
  min-width: max-content;
}

.check-control {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.check-control strong {
  color: var(--ink);
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bulk-actions .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.task-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.task-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.48);
}

.task-table th,
.task-table td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.task-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.task-table td {
  color: var(--text);
  font-size: 13px;
}

.task-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.56);
}

.task-table tbody tr {
  cursor: pointer;
}

.task-table tbody tr.is-selected {
  background: rgba(52, 196, 122, 0.08);
}

.select-column,
.task-select-cell {
  width: 42px;
  text-align: center;
}

.select-column input,
.task-select-cell input,
.check-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.task-select-cell {
  cursor: default;
}

.task-table tr:last-child td {
  border-bottom: 0;
}

.table-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.table-footer[hidden] {
  display: none;
}

.page-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.page-tools select {
  min-height: 34px;
  width: auto;
  padding: 0 10px;
  font-size: 12px;
}

.page-tools .ghost-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.page-tools .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.engine-badge,
.device-badge,
.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #fff;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.rank-badge,
.rank-trend {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.rank-badge {
  padding: 0 9px;
  color: var(--ink);
  background: rgba(28, 25, 20, 0.06);
  border: 1px solid rgba(28, 25, 20, 0.1);
}

.rank-trend {
  gap: 5px;
}

.rank-trend b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.rank-trend em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.rank-trend.up em {
  color: #0b6b43;
  background: rgba(52, 196, 122, 0.14);
}

.rank-trend.down em {
  color: #9a2230;
  background: rgba(202, 44, 62, 0.12);
}

.rank-trend.flat em {
  color: var(--muted);
  background: rgba(28, 25, 20, 0.07);
}

.device-badge {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.device-badge.mobile {
  color: #0b6b43;
  background: rgba(52, 196, 122, 0.13);
  border-color: rgba(52, 196, 122, 0.2);
}

.device-badge.desktop {
  color: #395f96;
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.2);
}

.status.running {
  color: #0b6b43;
  background: rgba(52, 196, 122, 0.17);
}

.status.queued {
  color: #92541b;
  background: rgba(222, 106, 33, 0.16);
}

.status.done {
  color: #5c40af;
  background: rgba(111, 72, 217, 0.16);
}

.status.paused {
  color: #6f6a5e;
  background: rgba(28, 25, 20, 0.1);
}

.status.failed {
  color: #9a2230;
  background: rgba(202, 44, 62, 0.12);
}

.task-error-note {
  display: block;
  max-width: 150px;
  margin-top: 5px;
  overflow: hidden;
  color: #9a2230;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-grid {
  align-items: start;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.account-grid > * {
  align-self: start;
}

.credit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.credit-metrics article {
  min-height: 86px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.credit-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.credit-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.recharge-form,
.admin-credit-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.recharge-panel .panel-frame {
  position: relative;
  overflow: hidden;
}

.recharge-panel .recharge-form,
.recharge-panel .mini-table-block {
  position: relative;
  z-index: 1;
}

.money-stream {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.money-stream span {
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: rgba(11, 107, 67, 0.68);
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(52, 196, 122, 0.18);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 10px 18px rgba(52, 196, 122, 0.18));
  animation: money-gather 3.6s ease-in-out infinite;
  transform: translate(var(--from-x), var(--from-y)) scale(0.72);
}

.money-stream span:nth-child(1) {
  --from-x: -310px;
  --from-y: -138px;
}

.money-stream span:nth-child(2) {
  --from-x: 290px;
  --from-y: -126px;
  animation-delay: 0.26s;
}

.money-stream span:nth-child(3) {
  --from-x: -320px;
  --from-y: 82px;
  animation-delay: 0.52s;
}

.money-stream span:nth-child(4) {
  --from-x: 305px;
  --from-y: 96px;
  animation-delay: 0.78s;
}

.money-stream span:nth-child(5) {
  --from-x: -135px;
  --from-y: -185px;
  animation-delay: 1.04s;
}

.money-stream span:nth-child(6) {
  --from-x: 160px;
  --from-y: -190px;
  animation-delay: 1.3s;
}

.money-stream span:nth-child(7) {
  --from-x: -112px;
  --from-y: 156px;
  animation-delay: 1.56s;
}

.money-stream span:nth-child(8) {
  --from-x: 118px;
  --from-y: 152px;
  animation-delay: 1.82s;
}

@keyframes money-gather {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) scale(0.72) rotate(-10deg);
  }

  18% {
    opacity: 0.9;
  }

  58% {
    opacity: 0.95;
    transform: translate(0, 18px) scale(1) rotate(0deg);
  }

  78%,
  100% {
    opacity: 0;
    transform: translate(0, 18px) scale(0.36) rotate(12deg);
  }
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.recharge-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recharge-options span {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
}

.recharge-options input:checked + span {
  color: var(--ink);
  border-color: rgba(52, 196, 122, 0.6);
  box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.26), 0 12px 26px rgba(52, 196, 122, 0.12);
}

.recharge-form p,
.admin-credit-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.recharge-panel.needs-attention {
  border-color: rgba(222, 106, 33, 0.42);
  box-shadow: 0 22px 60px rgba(222, 106, 33, 0.14);
}

.mini-table-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.inline-section-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.inline-section-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.inline-section-head .ghost-button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.mini-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.46);
}

.mini-table th,
.mini-table td {
  padding: 10px 9px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.mini-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 950;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.row-action {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.row-action.muted {
  color: var(--ink);
  background: rgba(20, 19, 15, 0.04);
  border-color: rgba(20, 19, 15, 0.12);
}

.row-action.danger {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
}

.admin-user-actions {
  display: grid;
  grid-template-columns: minmax(72px, 88px) repeat(3, auto);
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: start;
}

.admin-user-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-user-actions small {
  grid-column: 1 / -1;
  min-height: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.row-credit-input {
  width: 100%;
  min-height: 28px;
  padding: 0 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.row-credit-input:focus {
  border-color: rgba(52, 196, 122, 0.58);
  box-shadow: 0 0 0 3px rgba(52, 196, 122, 0.1);
}

.admin-credit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-credit-form p,
.admin-credit-form .primary-button {
  grid-column: 1 / -1;
}

.ledger-wrap {
  margin-top: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ledger-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.46);
}

.ledger-table th,
.ledger-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.ledger-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 950;
}

.ledger-table tr:last-child td {
  border-bottom: 0;
}

.ledger-table .negative {
  color: #9a2230;
  font-weight: 950;
}

.ledger-table .positive {
  color: #0b6b43;
  font-weight: 950;
}

.ledger-table .hold {
  color: #92541b;
  font-weight: 950;
}

.ledger-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ledger-footer[hidden] {
  display: none;
}

.ledger-pager {
  display: inline-flex;
  gap: 8px;
}

.ledger-pager .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.ledger-pager .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.empty-state {
  display: grid;
  gap: 9px;
  min-height: 210px;
  place-items: center;
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(52, 196, 122, 0.18);
  border-radius: 50%;
}

.empty-state strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.empty-state span {
  max-width: 320px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.empty-state .ghost-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.compact-empty {
  min-height: 150px;
  margin-top: 14px;
}

.admin-heading {
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-actions .ghost-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-metrics article {
  min-height: 88px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-metrics span,
.admin-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.admin-metrics small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.admin-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-tabs button svg {
  width: 15px;
  height: 15px;
}

.admin-tabs button.active {
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.11);
  border-color: rgba(52, 196, 122, 0.24);
  box-shadow: 0 12px 28px rgba(52, 196, 122, 0.1);
}

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

.admin-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.admin-card[hidden] {
  display: none;
}

.admin-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-card-head > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-card-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.admin-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.admin-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-card-tools select {
  min-height: 34px;
  min-width: 112px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  font-size: 12px;
  font-weight: 880;
}

.admin-card-tools .ghost-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.46);
}

.admin-table th,
.admin-table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.admin-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 950;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.channel-list,
.trend-list,
.worker-list,
.security-list,
.backup-list,
.issue-list {
  display: grid;
  gap: 8px;
}

.channel-list div,
.trend-list article,
.worker-list article,
.security-list article,
.backup-list article,
.issue-list article {
  display: grid;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-list div {
  grid-template-columns: auto 1fr auto auto;
}

.trend-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.trend-list article {
  grid-template-columns: minmax(0, 1fr);
  min-height: 74px;
}

.trend-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.trend-list span {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: rgba(52, 196, 122, 0.08);
  border: 1px solid rgba(52, 196, 122, 0.16);
  border-radius: 999px;
}

.trend-list span i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(52, 196, 122, 0.55), rgba(16, 145, 95, 0.9));
  border-radius: inherit;
  animation: progressPulse 1.8s ease-in-out infinite;
}

.trend-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.channel-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.channel-list em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.channel-list b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #0b6b43;
  background: rgba(52, 196, 122, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.issue-list article {
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr) auto;
}

.issue-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-list button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.11);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.issue-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.channel-config-form {
  display: grid;
  gap: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-actions .primary-button,
.form-actions .ghost-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.worker-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.security-list article,
.backup-list article {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.security-list strong,
.security-list span,
.backup-list strong,
.backup-list span {
  display: block;
  min-width: 0;
}

.security-list strong,
.backup-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.security-list span,
.backup-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.security-list em,
.security-list button,
.backup-list em {
  align-self: center;
  justify-self: end;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.11);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.security-list article.is-warn em,
.security-list article.is-warn button {
  color: #9f5b12;
  background: rgba(234, 123, 36, 0.12);
  border-color: rgba(234, 123, 36, 0.2);
}

.security-list button {
  cursor: pointer;
}

.backup-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.worker-list button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.11);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  cursor: default;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.key-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 8px;
}

.key-input-row .ghost-button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.key-input-row .ghost-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  opacity: 0.68;
}

.danger-lite-button {
  color: #9f2e22;
  border-color: rgba(159, 46, 34, 0.22);
  background: rgba(159, 46, 34, 0.06);
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.channel-config-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.endpoint-list div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.endpoint-list code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.channel-guide {
  display: grid;
  gap: 8px;
}

.channel-guide div {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(52, 196, 122, 0.18);
  border-radius: var(--radius);
  background: rgba(52, 196, 122, 0.06);
}

.channel-guide span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.channel-guide code {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}

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

.api-doc-card {
  grid-column: span 2;
}

.api-doc-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.api-doc-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.api-doc-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.api-doc-section pre {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(24, 22, 18, 0.92);
}

.api-doc-section pre code {
  color: #f8f7f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre;
}

.api-field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.api-field-list span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.api-field-list b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.legal-footer,
.static-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(28, 25, 20, 0.08);
  backdrop-filter: blur(18px);
}

.quality-panel {
  margin-top: 38px;
}

.quality-frame {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: stretch;
}

.quality-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
}

.quality-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
  line-height: 1.08;
}

.quality-live {
  display: grid;
  width: 100%;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(52, 196, 122, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(52, 196, 122, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.56);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(52, 196, 122, 0.18);
  border-radius: var(--radius);
}

.quality-live-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.live-orbit {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(52, 196, 122, 0.34);
  border-radius: 50%;
}

.live-orbit::before,
.live-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.live-orbit::before {
  inset: 8px;
  background: rgba(52, 196, 122, 0.18);
  box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.22);
}

.live-orbit::after {
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 196, 122, 0.12);
  animation: orbit-spin 2.8s linear infinite;
  transform-origin: 0 15px;
}

.quality-live-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.quality-live-head small,
.quality-live p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.quality-live-head small {
  display: block;
  margin-top: 3px;
}

.quality-live-head em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.12);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.quality-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quality-steps span {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 5px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  animation: quality-step 5.6s ease-in-out infinite;
}

.quality-steps span:nth-child(2) {
  animation-delay: 1.4s;
}

.quality-steps span:nth-child(3) {
  animation-delay: 2.8s;
}

.quality-steps span:nth-child(4) {
  animation-delay: 4.2s;
}

.quality-steps b {
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 950;
}

.quality-meter {
  position: relative;
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quality-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  background: linear-gradient(90deg, rgba(52, 196, 122, 0.15), rgba(52, 196, 122, 0.88));
  border-radius: inherit;
  animation: quality-meter 2.8s ease-in-out infinite;
}

.quality-live p {
  color: var(--muted);
  margin: 0;
}

@keyframes orbit-spin {
  0% {
    transform: rotate(0deg) translateX(-50%);
  }

  100% {
    transform: rotate(360deg) translateX(-50%);
  }
}

@keyframes quality-step {
  0%,
  18% {
    color: var(--green-deep);
    border-color: rgba(52, 196, 122, 0.48);
    box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.16), 0 14px 30px rgba(52, 196, 122, 0.12);
    transform: translateY(-1px);
  }

  32%,
  100% {
    color: var(--muted);
    border-color: var(--line);
    box-shadow: none;
    transform: translateY(0);
  }
}

@keyframes quality-meter {
  0% {
    transform: translateX(-105%);
  }

  45% {
    transform: translateX(68%);
  }

  100% {
    transform: translateX(235%);
  }
}

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

.quality-grid article,
.static-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quality-grid svg {
  width: 22px;
  height: 22px;
  color: var(--green-deep);
  filter: drop-shadow(0 8px 18px rgba(52, 196, 122, 0.16));
  animation: quality-icon 3.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.quality-grid article:nth-child(2) svg {
  animation-delay: 0.35s;
}

.quality-grid article:nth-child(3) svg {
  animation-delay: 0.7s;
}

.quality-grid article:nth-child(4) svg {
  animation-delay: 1.05s;
}

.quality-grid strong,
.static-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.quality-grid span,
.static-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}

@keyframes quality-icon {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0) scale(1);
  }

  42% {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
  }
}

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

.user-admin-card {
  grid-column: span 2;
}

.ranking-list article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-list b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.12);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
}

.ranking-list strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list span,
.ranking-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.admin-table button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.admin-table button.danger {
  color: #9b2c2c;
  background: rgba(202, 44, 62, 0.08);
  border-color: rgba(202, 44, 62, 0.18);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 18px;
  padding: 16px;
}

.legal-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.legal-footer a:hover {
  color: var(--green-deep);
}

.static-page {
  display: grid;
  gap: 20px;
  width: min(1080px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
}

.static-brand {
  width: fit-content;
  padding: 0 0 18px;
}

.static-panel {
  padding: 28px;
}

.static-panel h1 {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 950;
  line-height: 1.08;
}

.static-panel p {
  max-width: 860px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.75;
}

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

.is-hidden {
  display: none;
}

.drawer-open {
  overflow: hidden;
}

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

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(28, 25, 20, 0.24);
  backdrop-filter: blur(10px);
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(28, 25, 20, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(28, 25, 20, 0.04) 1px, transparent 1px),
    rgba(248, 245, 236, 0.86);
  background-size: 42px 42px, 42px 42px, auto;
  backdrop-filter: blur(14px);
}

.auth-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  gap: 13px;
  align-items: center;
  padding-bottom: 4px;
}

.auth-brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 20px rgba(28, 25, 20, 0.12));
}

.auth-brand strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.auth-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

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

.auth-presets button {
  min-height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.auth-presets button:hover {
  border-color: rgba(52, 196, 122, 0.45);
  box-shadow: 0 14px 32px rgba(52, 196, 122, 0.1);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  background: rgba(28, 25, 20, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.auth-mode-switch button {
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.auth-mode-switch button.active {
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.12);
  box-shadow: inset 0 0 0 1px rgba(52, 196, 122, 0.24);
}

.auth-card p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.import-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(560px, 100%);
  height: 100%;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(28, 25, 20, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(28, 25, 20, 0.035) 1px, transparent 1px),
    rgba(251, 250, 245, 0.96);
  background-size: 34px 34px, 34px 34px, auto;
  border-left: 1px solid var(--line);
  box-shadow: -34px 0 80px rgba(28, 25, 20, 0.16);
}

.drawer-head,
.drawer-body,
.drawer-foot {
  padding: 18px;
}

.drawer-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-head .section-kicker {
  min-height: 25px;
  padding: 0 10px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.1);
  border-color: rgba(52, 196, 122, 0.22);
  font-size: 11px;
}

.drawer-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.drawer-head p,
.drawer-foot p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.close-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.close-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
}

.close-button svg {
  width: 17px;
  height: 17px;
}

.drawer-body {
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-y: auto;
}

.import-engine-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.import-device-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.import-mode {
  width: 100%;
}

.import-mode button {
  flex: 1;
}

.import-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.import-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.import-tools .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.import-panel {
  display: grid;
  gap: 12px;
}

.import-panel[hidden] {
  display: none;
}

.import-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.import-detail[hidden] {
  display: none;
}

.import-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.import-detail-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.import-detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.import-detail-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.import-detail-item,
.import-detail-more {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.import-detail-item strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.import-detail-item span,
.import-detail-more {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.import-detail-item.ok {
  border-color: rgba(52, 196, 122, 0.22);
  background: rgba(52, 196, 122, 0.1);
}

.import-detail-item.warn {
  border-color: rgba(222, 106, 33, 0.22);
  background: rgba(222, 106, 33, 0.1);
}

.import-detail-item.bad {
  border-color: rgba(202, 44, 62, 0.18);
  background: rgba(202, 44, 62, 0.08);
}

.drawer-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.drawer-foot p {
  margin: 0;
}

.drawer-foot .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.task-drawer {
  width: min(520px, 100%);
}

.detail-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.detail-grid div,
.detail-progress-card,
.detail-events {
  padding: 13px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.detail-progress-card {
  display: grid;
  gap: 10px;
}

.detail-progress-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-progress-title strong {
  color: var(--ink);
  font-size: 18px;
}

.detail-progress {
  height: 32px;
}

.detail-events h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.detail-events ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-events li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.receipt-list article {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receipt-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.receipt-list span {
  color: var(--muted);
  font-size: 12px;
}

.task-action-foot {
  grid-template-columns: 1fr;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-actions .primary-button,
.task-actions .ghost-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.danger-button {
  color: #9a2230;
  background: rgba(202, 44, 62, 0.08);
  border-color: rgba(202, 44, 62, 0.18);
}

@media (max-width: 1480px) {
  .primary-work {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .primary-work {
    grid-template-columns: 1fr;
  }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy p,
  .hero-stats {
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-task {
    min-height: 0;
  }

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

  .work-grid {
    grid-template-columns: 1fr;
  }

  .quality-frame,
  .static-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1060px) {
  .page-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand div,
  .nav-item span {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

}

@media (max-width: 960px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    justify-content: flex-start;
    padding-bottom: 14px;
  }

  .brand div,
  .nav-item span {
    display: block;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding: 12px 0;
  }

  .nav-item {
    min-height: 54px;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  .workspace {
    padding: 18px 10px 28px;
  }

  .topbar,
  .submit-row,
  .table-heading,
  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .credit-pill {
    width: 100%;
  }

  .user-switcher,
  .top-recharge-link {
    width: 100%;
  }

  .top-actions {
    justify-content: flex-end;
  }

  .top-actions .credit-pill {
    display: none;
  }

  .primary-work {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .engine-grid,
  .account-grid,
  .work-grid,
  .admin-panel {
    margin-top: 22px;
  }

  .quality-panel {
    margin-top: 28px;
  }

  .hero-band {
    gap: 16px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 13px;
    line-height: 1.6;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats article {
    min-height: 74px;
    padding: 11px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .engine-grid,
  .engine-selector,
  .device-selector,
  .admin-metrics,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .user-admin-card {
    grid-column: auto;
  }

  .api-doc-card {
    grid-column: auto;
  }

  .api-doc-grid,
  .api-field-list {
    grid-template-columns: 1fr;
  }

  .key-input-row {
    grid-template-columns: 1fr;
  }

  .security-list article,
  .backup-list article {
    grid-template-columns: 1fr;
  }

  .security-list em,
  .security-list button,
  .backup-list em {
    width: fit-content;
  }

  .credit-metrics {
    grid-template-columns: 1fr;
  }

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

  .panel-frame,
  .admin-card {
    padding: 16px;
  }

  .recharge-options,
  .admin-credit-form,
  .import-toolbar,
  .receipt-list article {
    grid-template-columns: 1fr;
  }

  .inline-section-head,
  .import-tools,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-card-head,
  .admin-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .issue-list article {
    grid-template-columns: 1fr;
  }

  .issue-list span {
    white-space: normal;
  }

  .import-drawer {
    border-left: 0;
  }

  .drawer-head,
  .drawer-body,
  .drawer-foot {
    padding: 16px;
  }

  .drawer-foot {
    grid-template-columns: 1fr;
  }

  .drawer-foot .primary-button {
    width: 100%;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dispatch-map {
    grid-template-columns: 1fr;
  }

  .dispatch-map::before,
  .node::after {
    display: none;
  }

  .search-field {
    min-width: 0;
  }

  .table-tools select {
    width: 100%;
  }

  .table-tools {
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
  }

  .table-heading {
    grid-template-columns: 1fr;
  }

  .bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .bulk-actions {
    justify-content: flex-start;
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-copy h2,
  .static-panel h1 {
    font-size: 30px;
  }

  .task-table-wrap {
    overflow-x: visible;
    border: 0;
  }

  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .page-tools {
    justify-content: stretch;
  }

  .page-tools select,
  .page-tools .ghost-button {
    flex: 1 1 120px;
  }

  .task-table,
  .task-table tbody,
  .task-table tr,
  .task-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .task-table {
    background: transparent;
  }

  .task-table thead {
    display: none;
  }

  .task-table tr {
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .task-table td {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    word-break: break-word;
  }

  .task-table td::before {
    flex: 0 0 76px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .task-table td:nth-child(1)::before {
    content: "选择";
  }

  .task-table td:nth-child(2)::before {
    content: "关键词";
  }

  .task-table td:nth-child(3)::before {
    content: "网址";
  }

  .task-table td:nth-child(4)::before {
    content: "引擎";
  }

  .task-table td:nth-child(5)::before {
    content: "终端";
  }

  .task-table td:nth-child(6)::before {
    content: "初排";
  }

  .task-table td:nth-child(7)::before {
    content: "现排";
  }

  .task-table td:nth-child(8)::before {
    content: "优化量";
  }

  .task-table td:nth-child(9)::before {
    content: "今日优化";
  }

  .task-table td:nth-child(10)::before {
    content: "创建时间";
  }

  .task-table td:nth-child(11)::before {
    content: "状态";
  }
}

/* Keep the five item evidence strip after the legacy public compatibility block. */
.landing-page .landing-proof-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 780px) {
  .landing-page .landing-proof-strip {
    grid-template-columns: 1fr;
  }
}

/* Evidence, capability, and scenario sections for the second landing pass. */
.landing-proof-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-why-card {
  min-height: 255px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
}

.landing-why-card > span,
.landing-capability-grid b {
  color: #77917c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.landing-why-card h3 {
  margin: 55px 0 10px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.025em;
}

.landing-why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.landing-chip-row i {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.landing-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.landing-capability-grid article {
  min-height: 175px;
  padding: 22px;
  background: rgba(255,255,255,.7);
}

.landing-capability-grid h3 {
  margin: 29px 0 8px;
  color: var(--ink);
  font-size: 15px;
}

.landing-capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.landing-report-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}

.landing-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.landing-report-head strong,
.landing-report-head small {
  display: block;
}

.landing-report-head strong {
  color: var(--ink);
  font-size: 15px;
}

.landing-report-head small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.landing-report-table {
  display: grid;
}

.landing-report-row {
  display: grid;
  grid-template-columns: .8fr 1.5fr .8fr;
  gap: 20px;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.landing-report-row:last-child {
  border-bottom: 0;
}

.landing-report-row span,
.landing-report-row strong,
.landing-report-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-report-row span,
.landing-report-row small {
  color: var(--muted);
  font-size: 11px;
}

.landing-report-row strong {
  color: var(--ink);
  font-size: 12px;
}

.landing-report-row strong em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.landing-report-row-head {
  min-height: 42px;
  background: rgba(28,25,20,.035);
}

.landing-report-row-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.landing-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-scenario-card {
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
}

.scenario-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-scenario-card h3 {
  margin: 45px 0 10px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -.03em;
}

.landing-scenario-card > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.landing-scenario-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.landing-scenario-card dl div {
  min-width: 0;
}

.landing-scenario-card dt,
.landing-scenario-card dd {
  margin: 0;
}

.landing-scenario-card dt {
  color: var(--muted);
  font-size: 10px;
}

.landing-scenario-card dd {
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.landing-case-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius);
  background: rgba(127,157,132,.1);
}

.landing-case-disclaimer > span {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #78967e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.landing-case-disclaimer p {
  margin: 0;
  color: #55705b;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .landing-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .landing-proof-strip {
    grid-template-columns: 1fr;
  }

  .landing-why-grid,
  .landing-scenario-grid {
    grid-template-columns: 1fr;
  }

  .landing-capability-grid {
    grid-template-columns: 1fr;
  }

  .landing-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-report-row {
    grid-template-columns: .75fr 1.25fr;
    gap: 12px;
    padding: 13px 17px;
  }

  .landing-report-row small {
    grid-column: 2;
    margin-top: -8px;
  }

  .landing-report-row-head {
    display: none;
  }

  .landing-scenario-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 32px;
  }
}

.recovery-notice { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 10000; max-width: calc(100vw - 24px); width: max-content; padding: 9px 15px; border-radius: 10px; background: #fff7dc; color: #5a4200; border: 1px solid #e6cf7a; font-size: 12px; box-shadow: 0 3px 12px #0001; }

.locale-picker {
  min-height: 38px;
  max-width: 136px;
  padding: 0 30px 0 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.static-page > .locale-picker {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 20;
}

@media (max-width: 620px) {
  .static-page > .locale-picker {
    top: 12px;
    right: 12px;
  }
}

/* Public landing and search-engine directory */
.public-page {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(52, 196, 122, 0.16), transparent 28rem),
    linear-gradient(135deg, #fbfaf5 0%, #f1eee4 54%, #e6f0e6 100%);
}

.public-page > .locale-picker {
  position: fixed;
  top: 22px;
  right: max(24px, calc((100vw - 1200px) / 2));
  z-index: 20;
}

.public-header,
.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.public-header {
  min-height: 86px;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.public-brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 10px 18px rgba(28, 25, 20, 0.12));
}

.public-brand strong,
.public-footer strong {
  display: block;
  color: var(--green-deep);
  font-size: 18px;
  font-weight: 950;
}

.public-brand small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.public-nav,
.public-actions,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-nav a,
.public-login,
.public-footer nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.public-nav a:hover,
.public-nav a.active,
.public-login:hover,
.public-footer nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.public-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  color: #fff;
  background: var(--green-deep);
  border: 1px solid var(--green-deep);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 138, 77, 0.18);
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.public-button:hover {
  background: #087342;
  box-shadow: 0 17px 36px rgba(16, 138, 77, 0.25);
  transform: translateY(-1px);
}

.public-button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.public-button-ghost {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(16, 138, 77, 0.26);
  box-shadow: none;
}

.public-button-ghost:hover {
  color: #fff;
  background: var(--green-deep);
}

.public-hero,
.public-section,
.public-cta,
.public-subhero,
.engine-directory {
  width: min(1200px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 62px;
  align-items: center;
  min-height: 560px;
  padding: 70px 0 84px;
}

.public-eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.13);
  border: 1px solid rgba(52, 196, 122, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.public-hero h1,
.public-subhero h1 {
  max-width: 680px;
  margin: 20px 0 14px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.public-hero-copy > p:not(.public-hero-detail) {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.public-hero-detail {
  max-width: 550px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.8;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.public-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
}

.public-proof-row b {
  color: var(--ink);
  font-size: 21px;
}

.public-hero-card {
  overflow: hidden;
  border: 1px solid rgba(28, 25, 20, 0.13);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: 0 32px 76px rgba(28, 25, 20, 0.15);
  transform: none;
}

.preview-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 0 15px;
  color: var(--faint);
  background: rgba(28, 25, 20, 0.045);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 850;
}

.preview-window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(28, 25, 20, 0.18);
}

.preview-window-bar b {
  margin-left: 8px;
  color: var(--muted);
}

.preview-window-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 330px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  padding: 20px 0;
  background: rgba(52, 196, 122, 0.09);
  border-right: 1px solid var(--line);
}

.preview-sidebar strong {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  background: var(--green-deep);
  border-radius: 8px;
  font-size: 11px;
}

.preview-sidebar span {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(16, 138, 77, 0.3);
  border-radius: 5px;
}

.preview-sidebar span.active {
  background: rgba(16, 138, 77, 0.72);
}

.preview-content {
  padding: 20px;
}

.preview-heading,
.preview-metrics,
.preview-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-heading {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.preview-heading b {
  padding: 6px 9px;
  color: #fff;
  background: var(--green-deep);
  border-radius: 7px;
  font-size: 10px;
}

.preview-metrics {
  gap: 7px;
  margin: 17px 0;
}

.preview-metrics i {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
  padding: 10px;
  background: rgba(28, 25, 20, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-style: normal;
}

.preview-metrics small,
.preview-task small {
  color: var(--faint);
  font-size: 9px;
  font-weight: 760;
}

.preview-metrics strong {
  color: var(--ink);
  font-size: 17px;
}

.preview-task {
  gap: 10px;
  justify-content: flex-start;
  margin-top: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-task > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.preview-task b {
  color: var(--ink);
  font-size: 11px;
}

.preview-task em {
  padding: 4px 7px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.13);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.preview-task em.done {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.engine-mark {
  display: inline-grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.engine-mark.google { background: var(--google); }
.engine-mark.bing { background: var(--bing); }
.engine-mark.yahoo { background: var(--yahoo); }
.engine-mark.duckduckgo { background: var(--duckduckgo); }
.engine-mark.baidu { background: var(--baidu); }
.engine-mark.sogou { background: var(--sogou); }
.engine-mark.so360 { background: var(--so360); }

.public-section {
  padding: 54px 0 76px;
}

.public-section-tight {
  padding-top: 26px;
}

.public-section-heading {
  max-width: 690px;
  margin-bottom: 26px;
}

.public-section-heading h2,
.public-cta h2 {
  margin: 13px 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.public-section-heading p,
.public-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.public-engine-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.public-engine-card {
  display: grid;
  min-height: 144px;
  align-content: start;
  gap: 9px;
  padding: 15px;
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.public-engine-card:hover {
  border-color: rgba(16, 138, 77, 0.34);
  box-shadow: 0 18px 40px rgba(28, 25, 20, 0.09);
  transform: translateY(-3px);
}

.public-engine-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.public-engine-card small {
  color: var(--faint);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.45;
}

.public-feature-section {
  border-top: 1px solid var(--line);
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-feature-card {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.public-feature-card > b {
  color: var(--green-deep);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.public-feature-card h3 {
  margin: 31px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 930;
}

.public-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
}

.public-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 76px;
  padding: 32px 36px;
  background: rgba(52, 196, 122, 0.1);
  border: 1px solid rgba(16, 138, 77, 0.18);
  border-radius: 15px;
}

.public-cta h2 {
  margin-top: 11px;
  font-size: clamp(23px, 3vw, 34px);
}

.public-cta-small {
  margin-top: 58px;
  margin-bottom: 64px;
}

.public-footer {
  min-height: 90px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.public-footer > div {
  display: grid;
  gap: 4px;
}

.public-footer > div span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.public-subpage {
  min-height: calc(100vh - 176px);
  padding: 36px 0 10px;
}

.public-subhero {
  padding: 38px 0 29px;
}

.public-subhero h1 {
  max-width: 720px;
  margin-bottom: 13px;
  font-size: clamp(34px, 4vw, 56px);
}

.public-subhero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.8;
}

.engine-directory {
  display: grid;
  gap: 12px;
}

.engine-directory-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.engine-directory-card h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 930;
}

.engine-directory-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.engine-directory-card .engine-support {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--green-deep);
  background: rgba(52, 196, 122, 0.11);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 820;
}

.engine-directory-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 18px;
}

@media (max-width: 960px) {
  .public-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; }
  .public-hero-card { max-width: 630px; }
  .public-engine-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .public-header, .public-footer, .public-hero, .public-section, .public-cta, .public-subhero, .engine-directory { width: min(100% - 30px, 1200px); }
  .public-header { min-height: 72px; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .public-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .public-nav a { padding: 6px 9px; }
  .public-actions { margin-left: auto; }
  .public-hero { min-height: 0; padding: 38px 0 60px; }
  .public-hero h1 { font-size: 42px; }
  .public-hero-card { transform: none; }
  .public-engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-feature-grid { grid-template-columns: 1fr; }
  .public-cta { align-items: flex-start; flex-direction: column; margin-bottom: 52px; padding: 25px; }
  .public-footer { align-items: flex-start; flex-direction: column; }
  .public-footer nav { flex-wrap: wrap; }
  .engine-directory-card { grid-template-columns: 39px minmax(0, 1fr); }
  .engine-directory-card .public-button { grid-column: 2; justify-self: start; }
  .engine-directory-icon { width: 39px; height: 39px; }
  .public-page > .locale-picker { top: 82px; right: 15px; }
}

/* Public pages use the same visual system as the signed-in console.  Keep the
   marketing routes aligned with .page-shell/.workspace/.panel cards rather
   than introducing a second set of radii, shadows, and button treatments. */
.public-page {
  background:
    linear-gradient(90deg, rgba(28, 25, 20, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(28, 25, 20, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fbfaf5 0%, #f1eee4 54%, #e6f0e6 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.public-header {
  min-height: 80px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}

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

.public-brand strong,
.public-footer strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.public-brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.public-nav a,
.public-login,
.public-footer nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 760;
}

.public-nav a:hover,
.public-nav a.active,
.public-login:hover,
.public-footer nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.public-button {
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  color: #fffaf0;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.18);
  font-size: 14px;
  font-weight: 900;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.public-button:hover {
  color: #fffaf0;
  background: #11100d;
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.24);
  transform: translateY(-1px);
}

.public-button-small {
  min-height: 42px;
  padding: 0 15px;
  font-size: 14px;
}

.public-button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  box-shadow: none;
}

.public-button-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line-strong);
  box-shadow: none;
}

.public-hero {
  grid-template-columns: minmax(340px, 0.52fr) minmax(520px, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
  padding: 48px 0 58px;
}

.public-hero h1,
.public-subhero h1 {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.public-hero-copy > p:not(.public-hero-detail) {
  max-width: 420px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.55;
}

.public-hero-detail {
  max-width: 420px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.public-hero-actions {
  gap: 10px;
  margin-top: 18px;
}

.public-proof-row {
  gap: 10px;
  margin-top: 20px;
}

.public-proof-row span {
  min-height: 54px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.08);
}

.public-proof-row b {
  font-size: 18px;
}

.public-hero-card {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: none;
}

.preview-window-bar,
.preview-task,
.preview-metrics i {
  border-radius: var(--radius);
}

.public-section {
  padding: 42px 0 54px;
}

.public-section-tight {
  padding-top: 18px;
}

.public-section-heading {
  margin-bottom: 18px;
}

.public-section-heading h2,
.public-cta h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
}

.public-section-heading p,
.public-cta p {
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.public-engine-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.public-engine-card,
.public-feature-card,
.engine-directory-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.08);
  backdrop-filter: blur(18px);
}

.public-engine-card {
  min-height: 126px;
  padding: 14px;
}

.public-engine-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 46px rgba(28, 25, 20, 0.12);
  transform: translateY(-1px);
}

.public-feature-section {
  border-top: 1px solid var(--line);
}

.public-feature-grid {
  gap: 10px;
}

.public-feature-card {
  min-height: 164px;
  padding: 18px;
}

.public-feature-card h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.public-feature-card p {
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.public-cta {
  margin-top: 10px;
  margin-bottom: 54px;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.public-cta h2 {
  margin-top: 8px;
  font-size: 24px;
}

.public-cta-small {
  margin-top: 32px;
  margin-bottom: 48px;
}

.public-footer {
  min-height: 78px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.public-footer > div span {
  font-size: 11px;
  font-weight: 650;
}

.public-subpage {
  min-height: calc(100vh - 158px);
  padding: 24px 0 10px;
}

.public-subhero {
  padding: 24px 0 22px;
}

.public-subhero p {
  max-width: 660px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

.engine-directory {
  gap: 10px;
}

.engine-directory-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.engine-directory-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.engine-directory-card p {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 520;
}

.public-actions .locale-picker {
  min-height: 42px;
  max-width: 116px;
  padding: 0 26px 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
}

@media (max-width: 1060px) {
  .public-hero {
    grid-template-columns: 1fr;
  }

  .public-hero-card {
    max-width: 700px;
  }

  .public-engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .public-header,
  .public-footer,
  .public-hero,
  .public-section,
  .public-cta,
  .public-subhero,
  .engine-directory {
    width: min(100% - 30px, 1200px);
  }

  .public-header {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .public-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .public-actions {
    margin-left: auto;
  }

  .public-hero {
    min-height: 0;
    padding: 32px 0 46px;
  }

  .public-hero h1,
  .public-subhero h1 {
    font-size: 32px;
  }

  .public-hero-card {
    transform: none;
  }

  .public-engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-feature-grid {
    grid-template-columns: 1fr;
  }

  .public-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 40px;
    padding: 20px;
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-footer nav {
    flex-wrap: wrap;
  }

  .engine-directory-card {
    grid-template-columns: 39px minmax(0, 1fr);
  }

  .engine-directory-card .public-button {
    grid-column: 2;
    justify-self: start;
  }
}

/* Keep the preview window edge-to-edge while retaining the console panel token. */
.public-hero-card.panel-frame {
  padding: 0;
}

.public-shell .public-workspace {
  max-width: 1580px;
}

body.public-page { overflow-x: hidden; }
.public-actions .locale-picker { flex: 0 0 auto; min-width: 104px; }

.public-engine-card .engine-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 19px;
}

/* Landing page: marketing rhythm built from the admin visual tokens. */
.landing-page {
  background:
    radial-gradient(circle at 85% 0%, rgba(111, 143, 120, .12), transparent 30rem),
    linear-gradient(180deg, #fffdf7 0%, #f7f4ec 100%);
}

.landing-page .public-header {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1240px);
  border-bottom: 1px solid var(--line);
}

.landing-page .public-nav {
  gap: 22px;
}

.landing-page .public-nav a,
.landing-page .public-login {
  font-size: 13px;
}

.landing-page .public-button {
  border-radius: 999px;
  padding-inline: 22px;
}

.landing-hero,
.landing-section,
.landing-final-cta {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  padding: 86px 0 72px;
}

.landing-hero-copy {
  max-width: 620px;
}

.landing-hero-copy h1 {
  max-width: 630px;
  margin: 18px 0 22px;
  color: var(--ink);
  font-size: clamp(44px, 5.8vw, 70px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.landing-hero-lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.landing-hero-copy .public-hero-actions {
  margin-top: 30px;
}

.landing-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.landing-reassurance span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}

.landing-reassurance b {
  color: var(--ink);
  font-size: 18px;
}

.landing-reassurance em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.landing-disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.landing-task-preview {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.landing-preview-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(28,25,20,.04);
}

.landing-preview-bar .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7f9d84;
  box-shadow: 0 0 0 5px rgba(127,157,132,.16);
}

.landing-preview-bar strong {
  color: var(--ink);
  font-size: 13px;
}

.landing-preview-bar small {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(127,157,132,.14);
  color: #55705b;
  font-size: 11px;
}

.landing-preview-body {
  padding: 28px;
}

.landing-preview-heading,
.landing-evidence-head,
.case-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.landing-preview-heading h2,
.landing-evidence-head h3 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -.02em;
}

.preview-state,
.case-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(127,157,132,.3);
  border-radius: 999px;
  background: rgba(127,157,132,.12);
  color: #58745e;
  font-size: 11px;
  white-space: nowrap;
}

.landing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.landing-form-grid label {
  display: block;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,247,.82);
}

.landing-form-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.landing-form-grid strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-form-grid strong i {
  float: right;
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  line-height: 12px;
}

.landing-form-grid strong.muted {
  color: var(--muted);
  font-weight: 500;
}

.landing-form-grid strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.landing-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.landing-preview-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.landing-preview-footer > span b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f9d84;
}

.landing-preview-footer .public-button:disabled {
  cursor: default;
  opacity: .5;
}

.landing-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-proof-strip > div {
  min-height: 148px;
  padding: 25px 22px;
  border-right: 1px solid var(--line);
}

.landing-proof-strip > div:last-child {
  border-right: 0;
}

.landing-proof-strip b {
  display: block;
  margin-bottom: 22px;
  color: #77917c;
  font-size: 12px;
  letter-spacing: .08em;
}

.landing-proof-strip span {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.landing-proof-strip small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.landing-section {
  padding: 96px 0 0;
}

.landing-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.landing-heading-row h2 {
  max-width: 670px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.landing-heading-row > p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.landing-steps,
.landing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-step-card,
.landing-plan-card,
.landing-case-card,
.landing-faq-grid details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
}

.landing-step-card {
  min-height: 270px;
  padding: 25px;
}

.landing-step-number {
  display: block;
  color: #77917c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.landing-step-meta {
  display: block;
  margin-top: 39px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.landing-step-card h3,
.landing-plan-card h3,
.landing-case-card h3 {
  margin: 9px 0 10px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.02em;
}

.landing-step-card p,
.landing-plan-card p,
.landing-case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.landing-step-card a,
.landing-plan-card a {
  display: inline-block;
  margin-top: 22px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.landing-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.landing-feature-list {
  display: grid;
  align-content: center;
  gap: 0;
}

.landing-feature-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.landing-feature-list article:first-child {
  padding-top: 0;
}

.landing-feature-list article:last-child {
  border-bottom: 0;
}

.landing-feature-list article > span {
  color: #77917c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.landing-feature-list h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 17px;
}

.landing-feature-list p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.landing-evidence {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 55px rgba(28,25,20,.08);
}

.landing-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 30px 0 25px;
  padding: 0;
  list-style: none;
}

.landing-timeline::before {
  position: absolute;
  top: 12px;
  bottom: 16px;
  left: 6px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.landing-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 15px;
  min-height: 74px;
}

.landing-timeline li > span {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid #f4f0e6;
  border-radius: 50%;
  background: #b0aea5;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.landing-timeline li.done > span {
  background: #78967e;
}

.landing-timeline li b,
.landing-timeline li small {
  display: block;
}

.landing-timeline li b {
  color: var(--ink);
  font-size: 13px;
}

.landing-timeline li small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.landing-evidence-note {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border-radius: var(--radius);
  background: rgba(127,157,132,.1);
}

.landing-evidence-note > span {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #78967e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.landing-evidence-note p {
  margin: 0;
  color: #55705b;
  font-size: 11px;
  line-height: 1.6;
}

.landing-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-case-card {
  min-height: 270px;
  padding: 25px;
}

.case-tag,
.landing-plan-label {
  color: #77917c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-status.pending {
  border-color: var(--line);
  background: rgba(28,25,20,.05);
  color: var(--muted);
}

.landing-case-card h3 {
  margin-top: 56px;
  font-size: 24px;
}

.landing-case-card.is-placeholder h3 {
  margin-top: 35px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 35px 0 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.case-metrics b,
.case-metrics small {
  display: block;
}

.case-metrics b {
  color: var(--ink);
  font-size: 18px;
}

.case-metrics small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.case-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.case-placeholder-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 75px;
  margin: 25px 0 17px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.case-placeholder-bars i {
  display: block;
  flex: 1;
  max-width: 48px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, rgba(127,157,132,.35), rgba(127,157,132,.08));
}

.case-placeholder-bars i:nth-child(1) { height: 31%; }
.case-placeholder-bars i:nth-child(2) { height: 52%; }
.case-placeholder-bars i:nth-child(3) { height: 42%; }
.case-placeholder-bars i:nth-child(4) { height: 70%; }
.case-placeholder-bars i:nth-child(5) { height: 62%; }

.landing-plan-card {
  min-height: 235px;
  padding: 25px;
}

.landing-plan-card h3 {
  margin-top: 42px;
  font-size: 22px;
}

.landing-plan-card.featured {
  border-color: rgba(127,157,132,.55);
  box-shadow: inset 0 3px 0 #78967e;
}

.landing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  /* Do not stretch a closed question to the height of an open answer in the
     same grid row.  The old default `align-items: stretch` left a large blank
     area under the question, which made the FAQ look like its text had
     disappeared on narrow and Chinese layouts. */
  align-items: start;
}

.landing-faq-grid details {
  padding: 18px 20px;
}

.landing-faq-grid summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.landing-faq-grid summary::-webkit-details-marker {
  display: none;
}

.landing-faq-grid summary::after {
  float: right;
  color: var(--muted);
  content: "+";
  font-size: 18px;
  font-weight: 400;
}

.landing-faq-grid details[open] summary::after {
  content: "−";
}

.landing-faq-grid details p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 96px;
  padding: 40px 0 92px;
  border-top: 1px solid var(--line);
}

.landing-final-cta h2 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 3.7vw, 44px);
  letter-spacing: -.04em;
}

.landing-final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .landing-hero-copy {
    max-width: 760px;
  }

  .landing-task-preview {
    max-width: 760px;
    justify-self: end;
  }
}

@media (max-width: 780px) {
  .landing-page .public-header,
  .landing-hero,
  .landing-section,
  .landing-final-cta,
  .landing-proof-strip {
    width: min(100% - 30px, 1240px);
  }

  .landing-proof-strip,
  .landing-steps,
  .landing-plan-grid,
  .landing-case-grid,
  .landing-faq-grid {
    grid-template-columns: 1fr;
  }

  .landing-proof-strip > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landing-proof-strip > div:last-child {
    border-bottom: 0;
  }

  .landing-heading-row,
  .landing-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero {
    padding-top: 50px;
  }

  .landing-hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .landing-task-preview {
    transform: none;
  }

  .landing-preview-body,
  .landing-evidence,
  .landing-step-card,
  .landing-plan-card,
  .landing-case-card {
    padding: 20px;
  }

  .landing-feature-layout {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding-top: 72px;
  }

  .landing-final-cta {
    margin-top: 72px;
    padding-bottom: 65px;
  }
}

@media (max-width: 520px) {
  .landing-form-grid {
    grid-template-columns: 1fr;
  }

  .landing-preview-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-reassurance {
    gap: 7px;
  }

  .landing-reassurance span {
    padding: 8px 10px;
  }
}

/* Search engine directory follows the same public shell as the landing page. */
.engine-page-hero {
  padding-top: 72px;
}

.engine-page-hero h1 {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.engine-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

.engine-filter-label {
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.engine-filter-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.engine-filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf7;
}

.engine-filter-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.landing-engine-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
}

.landing-engine-directory .engine-directory-card {
  min-height: 154px;
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}

.landing-engine-directory .engine-directory-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 38px rgba(28,25,20,.08);
  transform: translateY(-2px);
}

.landing-engine-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 48px, 1240px);
  margin: 86px auto 0;
  padding: 38px 0 92px;
  border-top: 1px solid var(--line);
}

.landing-engine-note h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -.04em;
}

.landing-engine-note p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .engine-page-hero {
    padding-top: 50px;
  }

  .engine-filter-note {
    width: 100%;
    margin-left: 0;
  }

  .landing-engine-directory {
    grid-template-columns: 1fr;
  }

  .landing-engine-note {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 30px, 1240px);
    margin-top: 72px;
    padding-bottom: 65px;
  }
}

/* Final landing overrides must follow the legacy public compatibility styles. */
.landing-page .landing-proof-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 780px) {
  .landing-page .landing-proof-strip {
    grid-template-columns: 1fr;
  }
}

/* Evidence and source-boundary section: keep provenance visible beside every claim. */
.landing-source-section {
  position: relative;
}
.landing-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.landing-source-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(24, 45, 79, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 16px 40px rgba(31, 56, 96, .06);
}
.landing-source-card h3 {
  margin: 0;
  color: #15243b;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.landing-source-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}
.source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.source-type,
.source-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.source-type-official { color: #0958bb; background: #eaf3ff; }
.source-type-court { color: #76531a; background: #fff5dc; }
.source-type-engineer { color: #0b7460; background: #e8faf4; }
.source-type-leak { color: #7547a8; background: #f3eafd; }
.source-type-experiment { color: #9b3b50; background: #fff0f1; }
.source-date { color: #718096; background: #f1f5f9; font-weight: 600; }
.source-explain {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 45, 79, .09);
}
.source-explain strong {
  color: #263956;
  font-size: 12px;
  line-height: 1.5;
}
.source-explain span {
  color: #718096;
  font-size: 12px;
  line-height: 1.55;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0969d7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.source-link:hover { color: #064b9d; text-decoration: underline; }
.landing-source-footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(9, 105, 215, .14);
  border-radius: 16px;
  background: #f4f8ff;
}
.landing-source-footer > span {
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #0969d7;
  background: #dcecff;
  font-size: 12px;
  font-weight: 800;
}
.landing-source-footer p {
  margin: 0;
  color: #526581;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .landing-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .landing-source-grid { grid-template-columns: 1fr; }
  .landing-source-card { padding: 20px; border-radius: 18px; }
  .source-card-top { align-items: flex-start; flex-direction: column; gap: 7px; }
  .landing-source-footer { padding: 14px; }
}

/* Conversion and trust details shared by the public funnel and static pages. */
.landing-hero-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.landing-hero-reassurance > span:first-child {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  flex: 0 0 19px;
  color: #fff;
  background: var(--green-deep);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.static-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.static-actions > div:first-child {
  display: grid;
  gap: 4px;
}

.static-actions strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.static-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.static-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.static-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 0 0 8px;
}

.static-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.static-footer a:hover { color: var(--green-deep); }

.channel-pending-notice {
  display: grid;
  gap: 5px;
  margin: 12px 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(52, 196, 122, .34);
  border-radius: var(--radius);
  background: rgba(52, 196, 122, .08);
}

.channel-pending-notice strong { color: var(--ink); font-size: 13px; }
.channel-pending-notice span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.legacy-channel-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.legacy-channel-details > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.legacy-channel-details[open] > summary { color: var(--ink); }

/* The old worker API remains in source for existing deployments, but it is
   not a public admin workflow for the platform-task product mode. */
.legacy-channel-card { display: none !important; }

@media (max-width: 620px) {
  .static-actions { align-items: flex-start; flex-direction: column; }
  .static-action-buttons { width: 100%; }
  .static-action-buttons .public-button { flex: 1 1 140px; }
}
.source-type-policy { color: #9a4f0d; background: #fff0df; }

/* Landing v4: the public site now shares the admin's paper, grid, ink and green system. */
.landing-page {
  background:
    radial-gradient(circle at 88% -10%, rgba(52,196,122,.12), transparent 30rem),
    linear-gradient(90deg, rgba(28,25,20,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(28,25,20,.04) 1px, transparent 1px),
    linear-gradient(135deg, #fbfaf5 0%, #f1eee4 54%, #e6f0e6 100%);
  background-size: auto, 42px 42px, 42px 42px, auto;
}
.landing-page .public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100% - 64px, 1360px);
  min-height: 82px;
  background: rgba(251,250,245,.82);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 28px rgba(28,25,20,.04);
  backdrop-filter: blur(18px);
}
.landing-page .public-brand strong,
.landing-page .public-footer strong { color: var(--ink); }
.landing-page .public-brand strong { white-space: nowrap; min-width: 116px; }
.landing-page .public-brand small { white-space: nowrap; }
.landing-page .public-nav { gap: 14px; }
.landing-page .public-nav a,
.landing-page .public-login { color: var(--muted); }
.landing-page .public-nav a:hover,
.landing-page .public-nav a.active,
.landing-page .public-login:hover { color: var(--ink); background: rgba(255,255,255,.74); border-color: var(--line); }
.landing-hero,
.landing-section,
.landing-final-cta,
.landing-proof-strip { width: min(100% - 64px, 1360px); }
.landing-hero { padding: 104px 0 84px; gap: clamp(48px, 7vw, 104px); }
.landing-hero-copy h1 { max-width: 610px; font-size: clamp(48px, 5.2vw, 66px); line-height: 1.06; letter-spacing: -.06em; }
.landing-hero-lead { max-width: 560px; font-size: 17px; line-height: 1.68; }
.landing-page .public-button {
  min-height: 44px;
  padding-inline: 18px;
  color: #fffaf0;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(28,25,20,.18);
}
.landing-page .public-button:hover { background: #11100d; box-shadow: 0 20px 48px rgba(28,25,20,.26); transform: translateY(-2px); }
.landing-page .public-button-ghost { color: var(--ink); background: rgba(255,255,255,.62); border-color: var(--line-strong); box-shadow: none; }
.landing-page .public-button-ghost:hover { color: var(--ink); background: var(--panel-solid); border-color: var(--ink); box-shadow: 0 14px 30px rgba(28,25,20,.1); }
.landing-task-preview {
  position: relative;
  transform: none;
  border-radius: var(--radius);
  border-color: var(--line-strong);
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(28,25,20,.2);
  backdrop-filter: blur(18px);
}
.landing-task-preview::after {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(52,196,122,.18);
  border-radius: var(--radius);
  content: "";
  transform: translate(12px, 12px);
}
.landing-preview-bar { background: var(--ink); border-bottom: 0; }
.landing-preview-bar strong { color: #fffaf0; }
.landing-preview-bar small { color: #dff8e8; background: rgba(52,196,122,.18); }
.landing-preview-body { background: rgba(255,255,255,.78); }
.landing-form-grid label,
.landing-reassurance span { border-radius: var(--radius); }
.landing-reassurance { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 34px; }
.landing-reassurance span { min-height: 72px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 13px 15px; background: rgba(255,255,255,.62); border-color: var(--line); }
.landing-reassurance b { font-size: 23px; line-height: 1; }
.landing-reassurance em { font-size: 11px; font-weight: 760; }
.landing-proof-strip { grid-template-columns: repeat(5, minmax(0,1fr)); border-color: var(--line-strong); }
.landing-proof-strip > div { min-height: 132px; padding: 22px 20px; background: rgba(255,255,255,.32); border-color: var(--line); }
.landing-proof-strip b { margin-bottom: 18px; color: var(--green-deep); }
.landing-section { padding-top: 108px; }
.landing-heading-row { margin-bottom: 26px; }
.landing-heading-row h2 { font-size: clamp(34px, 4vw, 48px); }
.landing-heading-row > p { font-size: 13px; line-height: 1.6; }
.landing-step-card,
.landing-plan-card,
.landing-case-card,
.landing-scenario-card,
.landing-faq-grid details { border-radius: var(--radius); background: var(--panel); border-color: var(--line); box-shadow: 0 18px 46px rgba(28,25,20,.06); backdrop-filter: blur(18px); }
.landing-step-card:hover,
.landing-plan-card:hover,
.landing-case-card:hover,
.landing-scenario-card:hover,
.landing-faq-grid details:hover { border-color: rgba(52,196,122,.42); box-shadow: 0 22px 50px rgba(28,25,20,.1); transform: translateY(-2px); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.landing-step-number,
.landing-feature-list article > span,
.landing-plan-label,
.case-tag { color: var(--green-deep); }
.landing-evidence { border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 46px rgba(28,25,20,.08); }
.landing-source-section {
  margin-top: 108px;
  padding: 72px 48px 52px;
  border: 1px solid rgba(28,25,20,.1);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fffaf0;
  box-shadow: 0 28px 80px rgba(28,25,20,.16);
}
.landing-source-section .landing-heading-row h2,
.landing-source-section .landing-source-card h3 { color: #fffaf0; }
.landing-source-section .landing-heading-row > p,
.landing-source-section .landing-source-card p { color: #c9c5ba; }
.landing-source-section .landing-source-card { border-color: rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.055); box-shadow: none; backdrop-filter: blur(16px); }
.landing-source-section .landing-source-card:hover { border-color: rgba(52,196,122,.6); box-shadow: 0 18px 44px rgba(0,0,0,.18); }
.landing-source-section .source-explain { border-top-color: rgba(255,255,255,.14); }
.landing-source-section .source-explain strong { color: #dff8e8; }
.landing-source-section .source-explain span { color: #c9c5ba; }
.landing-source-section .source-date { color: #c9c5ba; background: rgba(255,255,255,.1); }
.landing-source-section .source-link { color: #8fe3b0; }
.landing-source-section .source-link:hover { color: #dff8e8; }
.landing-source-section .landing-source-footer { border-color: rgba(52,196,122,.32); background: rgba(52,196,122,.09); }
.landing-source-section .landing-source-footer p { color: #c9c5ba; }
.landing-final-cta { margin-top: 108px; padding-top: 42px; }
@media (max-width: 900px) {
  .landing-page .public-header { width: min(100% - 32px, 1360px); }
  .landing-hero,
  .landing-section,
  .landing-final-cta,
  .landing-proof-strip { width: min(100% - 32px, 1360px); }
  .landing-source-section { padding: 58px 28px 40px; }
}
@media (max-width: 680px) {
  .landing-page .public-header { position: relative; }
  /* Keep the compact mobile nav readable: each item stays on one line while
     the row scrolls horizontally instead of shrinking Chinese labels into
     one-character columns. */
  .landing-page .public-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .landing-page .public-nav::-webkit-scrollbar { display: none; }
  .landing-page .public-nav a { flex: 0 0 auto; white-space: nowrap; }
  .landing-hero,
  .landing-section,
  .landing-final-cta,
  .landing-proof-strip { width: min(100% - 30px, 1360px); }
  .landing-hero { padding-top: 62px; }
  .landing-hero-copy h1 { font-size: 44px; }
  .landing-reassurance { grid-template-columns: 1fr; }
  .landing-proof-strip { grid-template-columns: 1fr; }
  .landing-proof-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .landing-proof-strip > div:last-child { border-bottom: 0; }
  .landing-source-section { margin-top: 72px; padding: 40px 18px 24px; }
}
