/* Alfark design tokens */
:root {
  --paper: #f6f1df;
  --panel: #fffaf0;
  --ink: #111716;
  --muted: #686052;
  --accent: #b7ff2a;
  --accent-dark: #4d7000;
  --deep: #101410;
  --soft: #e8e2c9;
  --alert: #ff4d2e;
  --line: rgba(17, 23, 22, 0.17);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17,23,22,0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(17,23,22,0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 16% 10%, rgba(183,255,42,0.28), transparent 30%),
    var(--paper);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; }
img { max-width: 100%; height: auto; }
code, kbd { font-family: "Cascadia Code", Consolas, "Microsoft YaHei", monospace; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 233, 0.92);
  backdrop-filter: blur(18px);
}
.brand-mark {
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
/* 缓存兜底：品牌/logo 图与封面图固定尺寸，防止缓存混用时原图撑破布局 */
.brand-mark img { display: block; width: 42px; height: 42px; object-fit: contain; }
.brand-mark span img { width: 100%; height: 100%; }
.article-cover img { max-width: 100%; }
.brand-mark span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--accent);
  color: var(--deep);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 19px;
  box-shadow: 4px 4px 0 var(--deep);
}
.brand-mark b {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand-mark i { font-style: normal; color: var(--accent-dark); }
.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}
.topnav > a { position: relative; padding: 8px 0; }
.topnav > a::after {
  position: absolute;
  right: 0; bottom: 2px; left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}
.topnav > a:hover::after, .topnav > a:focus-visible::after { transform: scaleX(1); }
.caret { font-size: 10px; color: var(--muted); }

.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.drop-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 250px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(17, 23, 22, 0.2);
}
.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel,
.nav-drop.open .drop-panel { display: grid; gap: 2px; }
.drop-panel a {
  display: block;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.drop-panel a:hover { background: rgba(183, 255, 42, 0.18); }
.drop-panel .drop-all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--accent-dark);
  font-weight: 900;
}
.topbar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--deep);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--deep);
  transition: transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.topbar-cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--deep); }
.topbar .lang-drop { justify-self: end; }
.lang-drop .nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 250, 240, 0.85);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.lang-drop .nav-drop-btn:hover { color: var(--ink); border-color: var(--ink); }
.lang-drop .drop-panel {
  left: auto;
  right: 0;
  transform: none;
  min-width: 132px;
}
.lang-drop .drop-cur {
  display: block;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-dark);
  background: rgba(183, 255, 42, 0.14);
}
.topbar .lang-link { justify-self: end; }
.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 250, 240, 0.85);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.lang-link:hover { color: var(--ink); border-color: var(--ink); }
.menu-btn {
  display: none;
  min-height: 44px;
  min-width: 64px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 900;
  font-size: 14px;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0 0;
  z-index: 39;
  overflow-y: auto;
  padding: 18px 16px 40px;
  background: var(--paper);
}
.mobile-nav.open { display: block; }
.mobile-nav h3 {
  margin: 18px 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
}
.mobile-nav a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
}
.mobile-nav .m-cta {
  border-color: var(--deep);
  background: var(--accent);
  color: var(--deep);
  text-align: center;
  font-weight: 900;
}

/* ---------- hero ---------- */
.hero-band { width: 100%; max-width: 1280px; margin: 0 auto; padding: 44px 28px 26px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}
.eyebrow em {
  font-style: normal;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 250, 240, 0.85);
}
.hero-copy h1 {
  margin: 0;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.06;
  text-wrap: balance;
}
.hero-copy h1 span { display: block; color: var(--accent-dark); }
.lede {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.lede strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}
.primary-action {
  border: 1px solid var(--deep);
  background: var(--deep);
  color: var(--accent);
  box-shadow: 4px 4px 0 rgba(17, 23, 22, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-action:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(17, 23, 22, 0.28); }
.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.8);
  color: var(--ink);
}
.disclosure-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.disclosure-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(232, 226, 201, 0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

/* ---------- conversion card ---------- */
.conv-card {
  border: 1px solid var(--deep);
  border-radius: 16px;
  padding: 22px;
  background: var(--deep);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(17, 23, 22, 0.22);
}
.conv-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.conv-kicker::before {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--alert);
  content: "";
}
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid rgba(183, 255, 42, 0.45);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(183, 255, 42, 0.08);
}
.code-row code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}
.copy-btn {
  min-height: 44px;
  min-width: 74px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
}
.copy-btn:hover { background: var(--accent); color: var(--deep); }
.benefit { margin: 14px 0 0; font-size: 15px; font-weight: 800; line-height: 1.65; }
.benefit b { color: var(--accent); }
.reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  background: var(--accent);
  color: var(--deep);
  font-size: 17px;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(183, 255, 42, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.reg-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(183, 255, 42, 0.25); }
.conv-foot { margin: 12px 0 0; color: rgba(255, 255, 255, 0.62); font-size: 12px; line-height: 1.6; }
.conv-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  counter-reset: step;
  font-family: "Cascadia Code", Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.conv-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  counter-increment: step;
}
.conv-steps li::before { color: rgba(183, 255, 42, 0.66); content: counter(step, decimal-leading-zero); }

/* ---------- strips ---------- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1280px;
  margin: 26px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-strip > div {
  display: grid;
  gap: 6px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  background: rgba(232, 226, 201, 0.4);
}
.metric-strip > div:last-child { border-right: 0; }
.metric-strip span { color: var(--muted); font-size: 12px; font-weight: 850; }
.metric-strip b { font-size: 20px; }
.metric-strip small { color: var(--muted); font-size: 12px; }

.path-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.path-row a {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 18px;
  background: var(--panel);
  transition: background 160ms ease;
}
.path-row a:hover { background: #fff; }
.path-row span {
  color: var(--accent-dark);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}
.path-row b { font-size: 16px; }
.path-row small { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- generic sections ---------- */
.section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 8px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-kicker { color: var(--accent-dark); font-size: 13px; font-weight: 900; }
.section-head h2 {
  margin: 6px 0 0;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
}
.section-head .see-all {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.a-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--panel);
  transition: transform 160ms ease, border-color 160ms ease;
}
.a-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.a-card span {
  color: var(--accent-dark);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}
.a-card b { font-size: 17px; line-height: 1.4; }
.a-card small { color: var(--muted); font-size: 13px; line-height: 1.6; }

.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.t-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 128px;
  border: 1px solid var(--deep);
  border-radius: 12px;
  padding: 16px;
  background: var(--deep);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(17, 23, 22, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.t-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(17, 23, 22, 0.18); }
.t-card span { color: var(--accent); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; font-weight: 900; }
.t-card b { font-size: 15px; line-height: 1.45; }
.t-card small { color: rgba(255, 255, 255, 0.66); font-size: 12px; line-height: 1.55; }

/* compact link hub */
.link-hub {
  border-top: 1px solid var(--line);
  background: rgba(232, 226, 201, 0.35);
}
.link-hub-inner { max-width: 1280px; margin: 0 auto; padding: 34px 28px 26px; }
.hub-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hub-cols h3 { margin: 0 0 10px; color: var(--accent-dark); font-size: 13px; }
.hub-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.hub-cols a { color: var(--muted); font-size: 13px; line-height: 1.5; }
.hub-cols a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--ink);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 34px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 26px; }
.footer .f-brand b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 18px;
}
.footer .f-brand i { font-style: normal; color: var(--accent); }
.footer .f-brand p { margin: 0; font-size: 13px; line-height: 1.7; }
.footer h4 { margin: 0 0 10px; color: var(--accent); font-size: 13px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.footer a { font-size: 13px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-note {
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- breadcrumbs / page shells ---------- */
.page-wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 30px 28px 50px; }
.page-wide { max-width: 1280px; }
.crumbs { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--ink); font-weight: 700; }

.article-head { margin-bottom: 20px; }
.article-head h1 {
  margin: 8px 0 12px;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  text-wrap: balance;
}
.article-meta { margin: 0; color: var(--muted); font-size: 13px; }
.article-meta b { color: var(--ink); }
.article-cover {
  margin: 22px 0;
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(17, 23, 22, 0.16);
}
.article-cover img { display: block; width: 100%; height: auto; }

/* prose */
.prose { font-size: 16px; line-height: 1.95; }
.prose p { margin: 0 0 18px; }
.prose h2 {
  margin: 40px 0 16px;
  border-left: 6px solid var(--accent);
  padding-left: 14px;
  font-size: 23px;
  line-height: 1.35;
}
.prose h3 { margin: 28px 0 12px; font-size: 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 800; }
.prose blockquote {
  margin: 0 0 18px;
  border-left: 4px solid var(--line);
  padding: 4px 0 4px 16px;
  color: var(--muted);
}
.prose table {
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid var(--ink);
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: rgba(183, 255, 42, 0.16); font-weight: 800; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 20px; }
.prose .table-scroll table { margin: 0; min-width: 560px; }
.prose a { color: var(--accent-dark); font-weight: 700; }
.prose a:hover { text-decoration: underline; }

.toc {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--panel);
}
.toc b { display: block; margin-bottom: 8px; color: var(--accent-dark); font-size: 13px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.toc a { color: var(--ink); font-weight: 700; }
.toc a:hover { color: var(--accent-dark); }

.callout {
  margin: 0 0 18px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(183, 255, 42, 0.14);
  font-size: 14px;
  line-height: 1.8;
}
.callout.warn { background: rgba(255, 77, 46, 0.08); border-color: rgba(255, 77, 46, 0.5); }
.callout b { font-weight: 800; }

.faq h2 { border-left-color: var(--alert); }
.faq-item { margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.faq-item h3 { margin: 0; padding: 14px 16px; font-size: 15px; }
.faq-item div { padding: 0 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* per-page register card */
.reg-cta {
  margin: 36px 0 0;
  border: 1px solid var(--deep);
  border-radius: 14px;
  padding: 20px;
  background: var(--deep);
  color: #fff;
  box-shadow: 6px 6px 0 rgba(17, 23, 22, 0.18);
}
.reg-cta .conv-kicker { margin-bottom: 4px; }
.reg-cta p { margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.82); }
.reg-cta .code-row { margin-top: 12px; }
.reg-cta .code-row code { font-size: 22px; }
.reg-cta .reg-btn { min-height: 48px; font-size: 15px; }
.reg-cta .conv-foot { margin-top: 10px; }

.related { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.related b.rel-title { display: block; margin-bottom: 12px; color: var(--accent-dark); font-size: 13px; }
.related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.related a { font-weight: 700; font-size: 15px; }
.related a:hover { color: var(--accent-dark); text-decoration: underline; }
.related small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- guides index ---------- */
.group-block { margin-bottom: 34px; }
.group-block h2 {
  margin: 0 0 4px;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 24px;
}
.group-block .group-desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.guide-list { display: grid; gap: 10px; }
.guide-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--panel);
  transition: border-color 160ms ease, transform 160ms ease;
}
.guide-list a:hover { border-color: var(--ink); transform: translateX(3px); }
.guide-list .g-no {
  color: var(--accent-dark);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}
.guide-list .g-main b { display: block; font-size: 16px; line-height: 1.4; }
.guide-list .g-main small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-list .g-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- tool pages ---------- */
.tool-panel {
  margin: 24px 0;
  border: 1px solid var(--deep);
  border-radius: 16px;
  padding: 24px;
  background: var(--deep);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(17, 23, 22, 0.2);
}
.tool-panel h2 { margin: 0 0 16px; color: var(--accent); font-size: 16px; }
.tp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tool-panel label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}
.tool-panel input, .tool-panel select {
  min-height: 46px;
  border: 1px solid rgba(183, 255, 42, 0.4);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 16px;
}
.tool-panel input:focus, .tool-panel select:focus { outline: 2px solid var(--accent); }
.tool-panel select option { color: var(--ink); background: #fff; }
.tool-run {
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--deep);
  font-weight: 900;
  font-size: 16px;
}
.tool-run:hover { transform: translate(1px, 1px); }
.tool-out {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
}
.out-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.out-row b {
  color: var(--accent);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 20px;
  text-align: right;
}
.out-row.big b { font-size: 28px; }
.out-note { margin: 8px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 12px; line-height: 1.7; }
.tool-scroll { overflow-x: auto; margin-top: 14px; }
.tool-scroll .tool-table { margin-top: 0; min-width: 460px; }
.tool-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.tool-table th, .tool-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  text-align: right;
  font-family: "Cascadia Code", Consolas, monospace;
}
.tool-table th { color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.tool-table td { color: rgba(255, 255, 255, 0.85); }
.tool-table td:first-child, .tool-table th:first-child { text-align: left; }
.tool-table .hl td { color: var(--accent); font-weight: 700; }

/* ---------- misc ---------- */
.plain-list { margin: 0; padding-left: 22px; }
.updated-tag { color: var(--muted); font-size: 12px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--deep);
  font-weight: 900;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .topbar { min-height: 62px; padding: 0 14px; gap: 10px; }
  .brand-mark { grid-template-columns: 36px auto; min-height: 44px; align-content: center; }
  .brand-mark span { width: 36px; height: 36px; font-size: 16px; box-shadow: 3px 3px 0 var(--deep); }
  .brand-mark b { font-size: 16px; }
  .topbar-cta { min-height: 44px; padding: 0 10px; font-size: 13px; box-shadow: 3px 3px 0 var(--deep); }
  .lang-drop .nav-drop-btn { min-height: 44px; }
  .see-all { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-band { padding: 22px 16px 18px; }
  .hero-layout { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin: 0; }
  .hero-copy h1 { order: 2; font-size: 27px; line-height: 1.15; }
  .hero-layout .conv-card { order: 3; padding: 16px; box-shadow: 5px 5px 0 rgba(17, 23, 22, 0.2); }
  .hero-copy .lede { order: 4; margin: 6px 0 0; font-size: 14px; line-height: 1.75; }
  .hero-copy .hero-actions { order: 5; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-copy .primary-action, .hero-copy .secondary-action { min-width: 0; }
  .hero-copy .disclosure-strip { order: 6; margin-top: 12px; }
  .code-row code { font-size: 22px; }
  .reg-btn { min-height: 48px; font-size: 16px; }
  .hero-layout .conv-steps { display: none; }
  .metric-strip { grid-template-columns: 1fr; margin-top: 20px; }
  .metric-strip > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .metric-strip > div:last-child { border-bottom: 0; }
  .path-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 28px 16px 4px; }
  .card-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .hub-cols { grid-template-columns: 1fr; gap: 18px; }
  .link-hub-inner { padding: 26px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { padding: 26px 16px; }
  .page-wrap { padding: 20px 16px 40px; }
  .tp-grid, .tp-grid.cols-3 { grid-template-columns: 1fr; }
  .prose { font-size: 15px; line-height: 1.9; }
  .prose h2 { font-size: 20px; }
  .guide-list a { grid-template-columns: 34px minmax(0, 1fr); }
  .guide-list .g-tag { display: none; }
}
@media (max-width: 520px) {
  .topbar-cta { display: none; }
  .path-row { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
