/* Shared app pages: docs, legal, FAQ, about, contact, login, report.
   Uses shell tokens. Sidebar unused. Mobile-first. Admin has its own admin.css. */
.pg-app .wx-side { display: none; }
.pg-app.pg-has-side .wx-side { display: flex; }
.pg-pane { max-width: 760px; margin: 0 auto; padding: 28px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pg-pane > * { min-width: 0; }
.pg-pane.pg-docs { max-width: 920px; padding-top: 20px; }
.pg-auth-wrap { max-width: 440px; }

/* hero / prose */
.pg-hero, .pg-doc, .pg-faq, .pg-cards { min-width: 0; }
.pg-hero .pill, .pg-doc .eyebrow, .pg-doc-hero .eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.pg-hero h1, .pg-doc h1, .pg-doc-hero h1, .pg-auth h1 { font-size: clamp(1.55em, 3.2vw, 2em); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; margin: 0; color: var(--ink); }
.pg-hero .lede, .pg-doc .lede, .pg-doc-hero .lede, .pg-auth .lede { color: var(--ink-muted); font-size: var(--fs-md); line-height: 1.55; margin: 10px 0 0; max-width: 42em; }
.pg-doc h2, .pg-doc-sec > h2 { font-size: var(--fs-md); font-weight: 700; letter-spacing: -.01em; margin: 0; scroll-margin-top: 88px; color: var(--ink); }
.pg-doc p, .pg-doc li, .pg-faq p, .pg-doc-body p, .pg-doc-body li { color: var(--ink-muted); line-height: 1.65; }
.pg-doc p + p, .pg-doc-body p + p { margin-top: .7em; }
.pg-doc ul, .pg-doc-body ul { padding-left: 1.15em; display: grid; gap: .4em; margin: .55em 0 0; }
.pg-doc strong, .pg-doc-body strong { color: var(--ink); font-weight: 650; }
.pg-doc a, .pg-hero a, .pg-faq a, .pg-auth a, .pg-doc-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pg-doc .mono, .pg-auth .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); }

.doc-toc { margin: 1.25rem 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-sunk); }
.doc-toc ol { margin: 0; padding-left: 1.15rem; columns: 2; column-gap: 1.5rem; font-size: var(--fs-sm); }
.doc-toc li { break-inside: avoid; padding: .12rem 0; color: var(--ink-muted); }
.doc-toc a { font-weight: 600; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }

/* cards (about / contact) */
.pg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.pg-cards .how-card { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.pg-cards .how-card h3 { font-size: 1em; font-weight: 700; margin: 0; }
.pg-cards .how-card h3 a { color: var(--ink); text-decoration: none; }
.pg-cards .how-card h3 a:hover { color: var(--accent); }
.pg-cards .how-card p { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.45; }
.pg-cards .how-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.pg-cards .how-icon svg { width: 18px; height: 18px; }
.pg-cards .btn, .pg-pane .btn { display: inline-flex; align-items: center; gap: 6px; }
.pg-pane .center { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; }
.facts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-sunk); min-width: 0; }
.facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: .2rem 0 0; font-weight: 650; overflow-wrap: anywhere; }

/* FAQ */
.pg-faq .faq-list { display: grid; gap: 8px; }
.pg-faq .faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 14px; }
.pg-faq .faq-item summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; }
.pg-faq .faq-item summary::-webkit-details-marker { display: none; }
.pg-faq .faq-item[open] summary { border-bottom: 1px solid var(--line); }
.pg-faq .faq-item p { padding: 12px 0 14px; margin: 0; }

/* auth / report */
.pg-pane.pg-auth-wrap {
  max-width: 420px; width: 100%; margin: 0 auto;
  padding: 20px 16px 48px; box-sizing: border-box;
}
.pg-auth {
  display: grid; gap: 14px; justify-items: stretch; width: 100%;
  text-align: center;
}
.pg-auth > .auth-icon { justify-self: center; }
.pg-auth > h1 {
  margin: 0; width: 100%;
  font-size: clamp(1.35em, 4.5vw, 1.7em); font-weight: 750; letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink); text-wrap: balance;
}
.pg-auth > .lede {
  margin: 0 auto; max-width: 28em; width: 100%;
  color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.5;
  text-wrap: pretty;
}
.pg-auth .auth-icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--accent-tint); color: var(--accent);
}
.pg-auth .auth-icon svg, .pg-auth .auth-icon .icon { width: 22px; height: 22px; display: block; }

.pg-auth .auth-form,
.pg-auth .panel {
  display: grid; gap: 14px; width: 100%; box-sizing: border-box;
  padding: 16px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.pg-auth .auth-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: var(--r); background: var(--surface-sunk);
}
.pg-auth .auth-mode-tab {
  display: grid; place-items: center; min-height: 40px; padding: 8px 10px;
  border-radius: calc(var(--r) - 2px); font-weight: 650; font-size: var(--fs-sm);
  color: var(--ink-faint); text-decoration: none; line-height: 1.2;
}
.pg-auth .auth-mode-tab.is-active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 20, 36, .08);
}

.pg-auth .field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.pg-auth .field-label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.pg-auth .req { color: #e11d48; font-weight: 700; }
.pg-auth .req-legend { margin: 0; font-size: var(--fs-xs); color: var(--ink-faint); }

.pg-auth input[type="email"],
.pg-auth input[type="password"],
.pg-auth input[type="text"],
.pg-auth input[type="url"],
.pg-auth select,
.pg-auth textarea {
  width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-sunk); color: var(--ink); font: inherit;
  box-sizing: border-box; appearance: none;
}
.pg-auth input:focus,
.pg-auth select:focus,
.pg-auth textarea:focus {
  outline: 2px solid var(--accent-line); outline-offset: 1px; border-color: var(--accent);
  background: var(--surface);
}
.pg-auth textarea { min-height: 96px; resize: vertical; }

/* Classic .btn classes used by login markup — style them in-shell */
.pg-auth .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 14px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 650; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; cursor: pointer; width: auto;
}
.pg-auth .btn-block { width: 100%; }
.pg-auth .btn-lg { min-height: 48px; padding: 12px 16px; }
.pg-auth .btn-sm { min-height: 36px; padding: 6px 10px; font-size: var(--fs-sm); }
.pg-auth .btn-primary {
  background: var(--accent); color: var(--on-accent); border-color: transparent;
}
.pg-auth .btn-primary:hover { background: var(--accent-strong); }
.pg-auth .btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
}
.pg-auth .btn-ghost:hover { background: var(--surface-hover); }
.pg-auth .btn-google { gap: 10px; }
.pg-auth .btn-google svg { flex: none; width: 18px; height: 18px; }
.pg-auth .btn-link {
  background: none; border: 0; color: var(--accent); font: inherit; font-weight: 650;
  cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px;
  min-height: 0; display: inline;
}

.pg-auth .auth-or {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  margin: 0; color: var(--ink-faint); font-size: var(--fs-xs);
}
.pg-auth .auth-or::before,
.pg-auth .auth-or::after { content: ""; height: 1px; background: var(--line); }

.pg-auth .hint {
  margin: 0; color: var(--ink-faint); font-size: var(--fs-xs); line-height: 1.5;
}
.pg-auth .hint a { color: var(--accent); font-weight: 650; }

/* Legal + reCAPTCHA disclosure — continuous prose, same quiet style as tool Help notes */
.pg-auth-foot {
  display: grid; gap: 8px; margin: 2px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pg-auth-legal,
.pg-auth-rc,
.pg-auth .legal-note,
.pg-auth .recaptcha-note {
  margin: 0; color: var(--ink-faint); font-size: var(--fs-xs); line-height: 1.55;
  text-align: left; text-wrap: pretty;
}
.pg-auth-legal a,
.pg-auth-rc a,
.pg-auth .legal-note a,
.pg-auth .recaptcha-note a {
  color: var(--accent); font-weight: 650; text-decoration: underline;
  text-underline-offset: 2px; white-space: nowrap;
}

.pg-auth .auth-switch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 4px; text-align: center !important; margin-top: 2px;
}
.pg-auth .auth-switch .btn-link { padding: 6px 4px; }

.pg-auth .auth-terms {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.45; text-align: left;
}
.pg-auth .auth-terms input { margin-top: 3px; flex: none; width: 18px; height: 18px; }

.pg-auth .auth-perks {
  list-style: none; margin: 2px 0 0; padding: 12px 14px;
  display: grid; gap: 10px; text-align: left;
  color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.35;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-sunk);
}
.pg-auth .auth-perks li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.pg-auth .auth-perks .icon,
.pg-auth .auth-perks svg {
  width: 16px; height: 16px; flex: none; margin-top: 2px; color: #16a34a;
}

.pg-auth .alert {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px;
  border-radius: var(--r); font-size: var(--fs-sm); line-height: 1.4; text-align: left;
  border: 1px solid var(--line); background: var(--surface-sunk); color: var(--ink);
}
.pg-auth .alert .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pg-auth .alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.pg-auth .alert-ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.pg-auth .alert-warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
[data-theme="dark"] .pg-auth .alert-error { border-color: #7f1d1d; background: #3a1a1a; color: #fecaca; }
[data-theme="dark"] .pg-auth .alert-ok { border-color: #14532d; background: #142d1e; color: #bbf7d0; }
[data-theme="dark"] .pg-auth .alert-warn { border-color: #78350f; background: #33290f; color: #fde68a; }
[data-theme="dark"] .pg-auth .auth-perks .icon,
[data-theme="dark"] .pg-auth .auth-perks svg { color: #4ade80; }

.pg-auth .auth-alt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 8px; margin: 0; padding: 0 4px;
  color: var(--ink-faint); font-size: var(--fs-sm); line-height: 1.4; text-align: center;
}
.pg-auth .auth-alt .btn-link { font-size: inherit; }
.pg-auth .code-entry {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-lg); letter-spacing: .35em; text-align: center;
}

/* ========== Docs app layout ========== */
.pg-docs .pg-doc { display: grid; gap: 0; }
.pg-doc-hero { display: grid; gap: 0; padding-bottom: 4px; }
.pg-doc-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-sunk);
}
.pg-doc-base-label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
}
.pg-doc-base-url {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-xs); color: var(--ink); overflow-wrap: anywhere; background: none; padding: 0;
}
.pg-doc-base .pg-code-copy { margin-left: auto; }

/* Guide | API reference — segmented control */
.pg-docs .ea-doc-tabs,
.pg-docs .pg-doc-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-sunk); border-bottom: 1px solid var(--line);
}
.pg-docs .ea-doc-tabs [role="tab"],
.pg-docs .pg-doc-tabs [role="tab"] {
  appearance: none; margin: 0; padding: 10px 12px; border: 0; border-radius: calc(var(--r) - 2px);
  background: transparent; color: var(--ink-faint); font: inherit; font-weight: 650; font-size: var(--fs-sm);
  cursor: pointer; text-align: center; border-bottom: 0;
}
.pg-docs .ea-doc-tabs [role="tab"]:hover { color: var(--ink); }
.pg-docs .ea-doc-tabs [aria-selected="true"],
.pg-docs .pg-doc-tabs [aria-selected="true"] {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 20, 36, .08); border-bottom-color: transparent;
}

.pg-docs .ea-doc-panel { margin-top: 18px; display: grid; gap: 14px; }
.pg-docs .ea-doc-panel[hidden] { display: none !important; }

.pg-doc-spec, .pg-docs .ea-doc-spec {
  margin: 0; padding: 10px 12px; border-radius: var(--r); border: 1px dashed var(--accent-line);
  background: var(--accent-tint); color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.45;
}
.pg-doc-spec a, .pg-docs .ea-doc-spec a { font-weight: 650; }

/* On-this-page chips */
.pg-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0;
}
.pg-toc-link {
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink-soft) !important; font-size: var(--fs-xs); font-weight: 650; text-decoration: none !important;
  line-height: 1.2;
}
.pg-toc-link:hover { border-color: var(--accent-line); color: var(--accent) !important; background: var(--accent-tint); }
.pg-toc-link.is-active { border-color: var(--accent-line); color: var(--accent) !important; background: var(--accent-tint); }

/* Sections */
.pg-doc-sec {
  display: grid; gap: 12px; padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.pg-doc-sec > h2 {
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.pg-doc-body { display: grid; gap: 12px; min-width: 0; }
.pg-doc-body > * { margin: 0; min-width: 0; }
.pg-doc-note { color: var(--ink-muted); }
.pg-doc-kicker {
  margin: 4px 0 0 !important; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* Inline code */
.pg-docs :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm); padding: .12em .4em; border-radius: 6px;
  background: var(--surface-sunk); color: var(--ink-soft); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.pg-docs .pg-doc-base-url { border: 0; padding: 0; background: none; }

/* Language example tabs */
.pg-ex { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pg-ex-tabs {
  display: flex; flex-wrap: wrap; gap: 0; padding: 0 4px; border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}
.pg-ex-tabs [role="tab"] {
  appearance: none; border: 0; background: none; margin: 0; padding: 10px 12px;
  font: inherit; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-faint); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pg-ex-tabs [role="tab"]:hover { color: var(--ink); }
.pg-ex-tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.pg-ex-panel { min-width: 0; }
.pg-ex-panel[hidden] { display: none !important; }
.pg-ex .pg-code { border: 0; border-radius: 0; }
.pg-ex .pg-code-bar { border-radius: 0; }

/* Code blocks + copy */
.pg-code {
  position: relative; display: grid; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: #121625; color: #e9ecf5;
}
.pg-code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; background: #181d2f; border-bottom: 1px solid #232a3e;
}
.pg-code-lang {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b93ab;
}
.pg-code-copy {
  appearance: none; border: 1px solid #323a53; background: #1d2236; color: #cfd4e2;
  border-radius: 8px; padding: 5px 10px; font: inherit; font-size: var(--fs-xs); font-weight: 650;
  cursor: pointer; line-height: 1.2; flex: none;
}
.pg-code-copy:hover { background: #252b3f; color: #fff; }
.pg-code-copy.is-copied { border-color: #1f4a30; background: #142d1e; color: #86efac; }
.pg-doc-base .pg-code-copy {
  border-color: var(--line); background: var(--surface); color: var(--ink-soft);
}
.pg-doc-base .pg-code-copy:hover { background: var(--surface-hover); color: var(--ink); }
.pg-docs .pg-code pre.code,
.pg-docs .pg-code pre.ea-code,
.pg-docs pre.code,
.pg-docs pre.ea-code {
  margin: 0; padding: 14px 14px 16px; overflow-x: auto; max-height: 420px;
  background: transparent; border: 0; border-radius: 0; color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); line-height: 1.5;
  white-space: pre; tab-size: 2;
}
.pg-docs .pg-code pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }

/* Tables */
.pg-docs .table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.pg-docs table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.pg-docs th, .pg-docs td {
  padding: 11px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top;
}
.pg-docs thead th {
  border-top: 0; background: var(--surface-sunk); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); white-space: nowrap;
}
.pg-docs .ea-doc-table td:first-child { white-space: nowrap; }
.pg-docs .ea-doc-table td:first-child code { white-space: nowrap; }

/* API reference panel */
.pg-ref-note, .pg-docs .ea-ref-note {
  margin: 0; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface-sunk); color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.5;
}
.pg-docs .ea-swagger {
  min-height: 12rem; max-width: 100%; overflow-x: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: #3b4151;
  padding: 0 8px 8px; color-scheme: light;
}
.pg-docs .ea-swagger.is-ready { padding-top: 4px; }
.pg-docs .ea-swagger .swagger-ui { font-family: inherit; }
.pg-docs .ea-swagger .swagger-ui :is(.opblock-summary-path, .opblock-summary-path__deprecated) { word-break: break-all; }
.pg-docs .ea-swagger .swagger-ui :is(.model-box, .highlight-code, .microlight, .curl-command, .request-url) {
  max-width: 100%; overflow-x: auto;
}
.pg-docs .ea-swagger .swagger-ui table { display: block; overflow-x: auto; }
.pg-docs .muted { color: var(--ink-faint); }

@media (max-width: 760px) {
  .pg-pane { padding: 18px 16px 48px; }
  .pg-pane.pg-docs { padding: 12px 16px 48px; }
  .pg-pane.pg-auth-wrap { padding: 12px 16px max(28px, env(safe-area-inset-bottom)); }
  .pg-auth { gap: 12px; }
  .pg-auth .auth-form,
  .pg-auth .panel { padding: 14px; gap: 12px; border-radius: var(--r); }
  .pg-auth .auth-perks { padding: 12px; border-radius: var(--r); }
  .pg-auth .auth-switch {
    display: grid; grid-template-columns: 1fr; gap: 2px; justify-items: center;
  }
  .pg-auth .auth-switch > span { display: none; }
  .pg-cards, .facts { grid-template-columns: 1fr; }
  .doc-toc ol { columns: 1; }
  .pg-doc-sec { padding: 14px; border-radius: var(--r); }
  .pg-toc { gap: 6px; }
  .pg-toc-link { min-height: 30px; padding: 5px 10px; font-size: var(--fs-xs); }
}

@media (min-width: 761px) {
  .pg-pane { max-width: 800px; }
  .pg-pane.pg-docs { max-width: 980px; }
  .pg-pane.pg-auth-wrap { max-width: 420px; padding: 28px 24px 64px; }
  .pg-auth .auth-form,
  .pg-auth .panel { padding: 18px; }
  .pg-docs .ea-doc-tabs,
  .pg-docs .pg-doc-tabs { max-width: 360px; }
}

/* Phase 2: login polish. Inputs look like tool inputs; the perks are a quiet list, not a second card. */
.pg-auth input[type="email"], .pg-auth input[type="password"], .pg-auth input[type="text"] { background: var(--surface); }
.pg-auth input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.pg-auth .auth-perks, .pg-auth .auth-perks { padding: 4px 6px 0; border: 0; background: none; border-radius: 0; gap: 8px; font-size: var(--fs-xs); color: var(--ink-faint); justify-self: center; }
.pg-auth .auth-perks svg, .pg-auth .auth-perks .icon { width: 14px; height: 14px; margin-top: 1px; color: var(--ink-faint); }
[data-theme="dark"] .pg-auth .auth-perks svg { color: var(--ink-faint); }
.pg-auth .auth-free { margin-top: -4px; }
.pg-auth .pw-wrap { position: relative; }
.pg-auth .pw-wrap input { padding-right: 64px; }
.pg-auth .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 4px 8px; border: 0; border-radius: var(--r-sm, 6px); background: none; color: var(--ink-muted); font: inherit; font-size: var(--fs-xs); font-weight: 650; cursor: pointer; }
.pg-auth .pw-eye:hover { background: var(--surface-hover); color: var(--ink); }
@media (max-width: 760px) { .pg-auth .auth-perks { padding: 0 4px; } }
