/* ===== Topbar (dark, minimal) ===== */
.topbar-inner {
  align-items: center;
}
.topbar a {
  padding: 12px 0;
  transition: color 0.15s ease;
}
.topbar a:hover {
  color: rgba(255, 255, 255, 0.7);
}
.icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--topbar-fg);
  padding: 0;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--topbar-bg);
}

/* ===== Brand bar ===== */
.brand-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.brand-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 14px var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-text .cn {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--fg);
  display: block;
  line-height: 1.2;
}
.brand-text .en {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
}
.brand-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.brand-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.brand-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.brand-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Page ===== */
.page {
  padding: 24px 0 56px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin: 0 0 20px;
}

/* ===== Doc card (orange left bar) ===== */
.doc {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 48px 36px 56px;
  margin-bottom: 28px;
  box-shadow:
    0 6px 18px rgba(17, 24, 39, 0.04),
    0 2px 4px rgba(17, 24, 39, 0.03);
}
.doc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  border-radius: 4px 0 0 4px;
}
.doc-h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.doc-hint {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}
.doc-h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.04em;
  margin: 22px 0 6px;
}
.doc-h2:first-of-type {
  margin-top: 0;
}
.doc-body {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}
.doc-body:last-child {
  margin-bottom: 0;
}
.doc-body strong {
  color: var(--fg);
  font-weight: 600;
}
.doc-fill {
  min-height: 72px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-3);
}

/* ===== Actions ===== */
.doc-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 32px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  text-align: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  /*bottom: 36px;*/
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  border-radius: 2px;
  background: var(--fg);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 9999;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.is-ok {
  background: var(--ok);
}
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-row .ic {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted-2);
}
.doc-top {
  display: flex;
  justify-content: space-between;
}
.doc-top .btn {
  min-width: initial;
  marg
/* ===== Responsive ===== */
@media (max-width: 640px) {
  .topbar-inner {
    gap: 12px;
  }
  .brand-nav {
    display: none;
  }
  .brand-text .cn {
    font-size: 15px;
    letter-spacing: 0.12em;
  }
  .brand-text .en {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .page-title {
    font-size: 18px;
  }
  .doc {
    padding: 22px 24px 28px 36px;
  }
  .btn {
    width: 100%;
  }
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
