/* Shared design baseline across hub/drama/gwy/type:
   --shell 1100px, --pad clamp(20-44px), --radius 14px,
   button min-height 48px, h1 clamp(40-72px) lh 1.04, h2 clamp(30-46px),
   eyebrow 12px ls 0.22-0.24em uppercase, section pad clamp(64-100px),
   sticky header padding 18px, footer 36px. Per-product accents below. */
:root {
  color-scheme: dark;
  --bg: #15212a;
  --bg-deep: #0d161c;
  --panel: #1c2a36;
  --panel-2: #243643;
  --ink: #f4f1ea;
  --muted: #a4b2bd;
  --green: #7fd1a6;
  --blue: #8fc0e8;
  --accent: #d4b27a;
  --line: rgba(244, 241, 234, 0.14);
  --line-soft: rgba(244, 241, 234, 0.08);
  --shell: 1100px;
  --pad: clamp(14px, 1.4vw, 22px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(127, 209, 166, 0.14), transparent 28rem),
    radial-gradient(circle at 18% 82%, rgba(212, 178, 122, 0.14), transparent 30rem),
    linear-gradient(180deg, #1a2832, #15212a 62%, #0d161c);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 6px;
  opacity: 0.5;
}

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

.shell, .header-shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 33, 42, 0.9);
  backdrop-filter: blur(16px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.brand img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  object-position: right center;
  background: transparent;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand strong { font-size: 16px; letter-spacing: 0.04em; }

.brand em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 410px);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: "Inter", "Trebuchet MS", sans-serif;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  max-width: none;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  word-break: keep-all;
}

.summary {
  max-width: 600px;
  color: #c0d0cc;
  font-size: clamp(16px, 1.85vw, 20px);
  line-height: 1.78;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.summary code {
  display: inline-block;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(143, 192, 232, 0.1);
  color: var(--blue);
  border: 1px solid rgba(143, 192, 232, 0.22);
  white-space: nowrap;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button.primary {
  color: #15212a;
  background: var(--accent);
  border-color: var(--accent);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}

.machine {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(36, 54, 67, 0.94), rgba(21, 33, 42, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.machine-head b {
  padding: 6px 10px;
  border: 1px solid rgba(127, 209, 166, 0.45);
  border-radius: 999px;
  color: var(--green);
  background: rgba(127, 209, 166, 0.12);
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: 0.12em;
}

.screen {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(212, 178, 122, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(244,241,234,0.04) 1px, transparent 1px),
    #1a2832;
  background-size: 100% 22px;
  font-family: "Cascadia Mono", "JetBrains Mono", "Microsoft YaHei", monospace;
  overflow: hidden;
}

.line { margin: 0; line-height: 1.55; word-break: break-word; overflow-wrap: anywhere; }

.line.label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.line.cn { color: #f7fff9; font-size: 15px; }

.line.wait {
  width: max-content;
  color: var(--accent);
  border-right: 2px solid var(--accent);
  animation: blink 820ms steps(2, start) infinite;
  font-size: 13px;
}

.line.en { color: var(--blue); font-size: 15px; }

.line.confirm {
  width: max-content;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(143, 192, 232, 0.32);
  border-radius: 6px;
  color: #d9eaf6;
  background: rgba(143, 192, 232, 0.08);
  font-size: 12px;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.keys span {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1c2a36;
  color: var(--muted);
  box-shadow: inset 0 -3px rgba(255,255,255,0.04);
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 13px;
}

.keys .space {
  grid-column: 1 / -1;
  color: var(--accent);
}

.section {
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-sub { margin: 0; color: #c8d6cf; font-size: 16px; font-weight: 500; line-height: 1.7; }

h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

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

.app-grid article {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d8fff0;
  background: rgba(255,255,255,0.06);
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.app-grid article::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(127, 209, 166, 0.6);
}

.app-grid article strong {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.app-grid article span {
  color: #d6e0dc;
  font-size: 13px;
  line-height: 1.55;
}

.app-grid article:hover,
.app-grid article:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(127, 209, 166, 0.45);
  background: rgba(127, 209, 166, 0.08);
  outline: none;
}

.app-grid article:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* TypeAnything-specific */

code {
  font-family: "Cascadia Mono", "JetBrains Mono", "Microsoft YaHei", monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(127, 209, 166, 0.12);
  color: var(--green);
  border: 1px solid rgba(127, 209, 166, 0.22);
}

.summary code { font-size: 0.88em; }

.lang-switch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.lang-label {
  display: block;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-chips span {
  padding: 4px 9px;
  border: 1px solid rgba(143, 192, 232, 0.32);
  border-radius: 999px;
  font-size: 12px;
  color: var(--blue);
  background: rgba(143, 192, 232, 0.08);
}

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

.why-grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: transform 200ms ease, border-color 200ms ease;
}

.why-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 209, 166, 0.32);
}

.why-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f0c8d0;
  background: rgba(240, 200, 208, 0.1);
  border: 1px solid rgba(240, 200, 208, 0.28);
}

.why-grid strong {
  font-size: 17px;
  color: #fff;
  line-height: 1.4;
}

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

.why-grid em {
  font-style: normal;
  color: var(--green);
  font-weight: 600;
}

.install-block {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}

.install-block pre {
  margin: 0;
  padding: 20px;
  border-radius: 10px;
  background: #0d161c;
  border: 1px solid rgba(127, 209, 166, 0.22);
  overflow-x: auto;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  color: #d8fff0;
}

.install-block pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.install-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.install-note code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(127, 209, 166, 0.1);
  color: var(--green);
  border: 1px solid rgba(127, 209, 166, 0.18);
}

.install-note a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(143, 192, 232, 0.4);
  text-underline-offset: 3px;
}

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

.lang-grid span {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.lang-grid span:hover {
  background: rgba(143, 192, 232, 0.08);
  border-color: rgba(143, 192, 232, 0.32);
}

.note { background: rgba(13, 22, 28, 0.5); border-top: 1px solid var(--line); }
.note p {
  max-width: 880px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
  text-align: center;
}

@media (max-width: 1040px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.flow { background: rgba(13, 22, 28, 0.4); }

.flow-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

.flow-list li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  line-height: 1.7;
}

.flow-list span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.flow-list strong { font-size: 20px; color: #fff; }

.flow-list p { color: var(--muted); margin: 0; }

.footer {
  padding: 36px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}

.footer-brand strong { font-size: 15px; letter-spacing: 0.04em; }
.footer-brand span { color: var(--muted); font-size: 13px; }

.footer-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-meta a { color: var(--ink); font-weight: 600; }

@media (max-width: 1040px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero-shell { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-list { grid-template-columns: 1fr; }
}

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

@media (max-width: 720px) {
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { align-items: center; }
}

@media (max-width: 620px) {
  :root { --pad: 14px; }
  .header-shell { flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  .app-grid { grid-template-columns: 1fr; }
}

/* v0.4.x rewrite: style sections / chip rows / provider grid / install steps */

.style-section {
  margin: 0 auto 36px;
  max-width: 1280px;
}

.style-section:last-child { margin-bottom: 0; }

.style-cat {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--green);
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(143, 192, 232, 0.32);
  border-radius: 999px;
  font-size: 13px;
  color: #d8e6ee;
  background: rgba(143, 192, 232, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.chip-row span:hover {
  background: rgba(143, 192, 232, 0.16);
  border-color: rgba(143, 192, 232, 0.5);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.style-grid article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  transition: border-color 200ms ease, transform 200ms ease;
}

.style-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 209, 166, 0.4);
}

.style-grid strong {
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.02em;
}

.style-grid p {
  margin: 0;
  color: #c0d0cc;
  font-size: 12px;
  line-height: 1.55;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.provider-grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  transition: transform 200ms ease, border-color 200ms ease;
}

.provider-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 209, 166, 0.4);
}

.prov-field {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.provider-grid strong {
  font-size: 18px;
  color: #fff;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
}

.provider-grid p {
  margin: auto 0 0;
  color: #c0d0cc;
  font-size: 13px;
  line-height: 1.65;
}

.provider-grid code {
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(127, 209, 166, 0.1);
  color: var(--green);
  border: 1px solid rgba(127, 209, 166, 0.18);
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.install-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.install-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.install-steps li > strong,
.install-steps li > span,
.install-steps li > a {
  grid-column: 2;
}

.install-steps strong {
  font-size: 16px;
  color: #fff;
}

.install-steps .step-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.install-steps .step-link {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(143, 192, 232, 0.4);
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .style-grid, .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .style-grid, .provider-grid { grid-template-columns: 1fr; }
  .install-steps li { grid-template-columns: 28px 1fr; gap: 12px; padding: 14px; }
}

/* v0.5: style sub-hint */
.style-hint {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

/* v0.5: editorial panel preview cards */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.panel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 178, 122, 0.4), transparent);
}

.panel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 178, 122, 0.32);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.panel-card-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-card-num {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.panel-card-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.panel-card-titles strong {
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.panel-card-titles em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-field > label {
  color: var(--accent);
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.panel-input {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid rgba(212, 178, 122, 0.42);
  border-radius: 10px;
  background: rgba(13, 22, 28, 0.5);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 17px;
  color: var(--ink);
}

.panel-input-text { display: inline-block; }

.panel-input-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-left: 4px;
  background: var(--accent);
  animation: blink 820ms steps(2, start) infinite;
  vertical-align: middle;
}

.panel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.panel-chips span:hover {
  border-color: rgba(212, 178, 122, 0.45);
}

.panel-chips span.on {
  color: #0d161c;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 800;
}

.panel-form {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(13, 22, 28, 0.3);
}

.panel-form > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-form > div:last-child { border-bottom: 0; }

.panel-form dt {
  margin: 0;
  color: var(--muted);
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-form dd {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
}

.panel-form dd.mono {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
}

.panel-form dd.mask {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.panel-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #0d161c;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.panel-foot-meta {
  color: var(--muted);
  font-size: 12px;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

/* v0.5: privacy editorial flow */
.privacy-flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 0;
  counter-reset: pflow;
}

.privacy-flow li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: baseline;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}

.privacy-flow li:first-child { border-top: 1px solid var(--line); }

.privacy-flow li:hover {
  background: linear-gradient(90deg, rgba(212, 178, 122, 0.04), transparent 60%);
}

.flow-step {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.flow-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-body strong {
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.flow-body p {
  margin: 0;
  color: #c0d0cc;
  font-size: 15px;
  line-height: 1.75;
}

.flow-body em {
  font-style: normal;
  color: var(--green);
  font-weight: 600;
}

.flow-body code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(127, 209, 166, 0.1);
  color: var(--green);
  border: 1px solid rgba(127, 209, 166, 0.18);
}

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

@media (max-width: 760px) {
  .panel-card { padding: 24px 22px 22px; }
  .panel-card-num { font-size: 26px; }
  .panel-form > div { grid-template-columns: 74px 1fr; gap: 12px; padding: 11px 14px; }
  .privacy-flow li { grid-template-columns: 56px 1fr; padding: 20px 0; }
  .flow-step { font-size: 26px; }
}

@media (max-width: 480px) {
  .panel-card-foot { flex-direction: column; align-items: flex-start; }
  .panel-form > div { grid-template-columns: 1fr; gap: 4px; }
}
