.page-shell,
.shell,
.workspace-shell,
.container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

main {
  display: grid;
  gap: 22px;
}

.site-header,
.auth-card,
.footer-shell,
.glass-card,
.hero-panel,
.showcase-card,
.benefit-card,
.cta-panel,
.section,
.article-card,
.panel {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.atmosphere,
.grain,
.auth-card::before {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px !important;
  margin-bottom: 20px;
}

.brand-badge {
  width: 36px !important;
  height: 36px !important;
  border-radius: 4px !important;
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.brand-name {
  font-size: 16px !important;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.brand-subcopy {
  color: var(--muted) !important;
  font-size: 14px !important;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  border-radius: 6px !important;
  padding: 10px 12px !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.nav-link:hover {
  background: #f5f3ef !important;
  color: #111111 !important;
}

.hero-copy,
.card-copy,
.section-copy,
.footer-copy,
.auth-copy,
.story-copy,
.story-trust {
  max-width: 42rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 34px !important;
  background: #fffdfb !important;
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 86, 0, 0.18);
  border-radius: 8px;
  background: #faf9f6;
  pointer-events: none;
}

.hero-title {
  max-width: 10ch;
}

.hero-copy {
  font-size: 18px !important;
  max-width: 34rem;
}

.hero-panel-actions {
  margin-top: 6px;
}

.showcase {
  display: grid;
  gap: 14px;
  align-content: start;
  background: #fdfcfa !important;
  padding: 14px !important;
}

.showcase-card {
  display: grid;
  gap: 14px;
  padding: 18px !important;
  background: #faf9f6 !important;
}

.showcase-header,
.result-row,
.footer-row,
.cta-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.showcase-label {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 118, 71, 0.2);
  background: rgba(6, 118, 71, 0.08);
  color: var(--good);
  font-size: 12px;
  font-weight: 500;
}

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

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.metric-value {
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -1.2px;
  font-weight: 400;
}

.metric.good .metric-value { color: var(--good); }
.metric.warn .metric-value { color: var(--warn); }
.metric.bad .metric-value { color: var(--danger); }
.metric.neutral .metric-value { color: var(--unknown); }

.result-list {
  display: grid;
  gap: 12px;
}

.result-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hero-actions,
.label-row,
.trust-strip,
.shortcut-row,
.related-row,
.footer-links,
.auth-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-pill,
.legend-pill,
.flow-step,
.shortcut-link,
.footer-link {
  padding: 8px 10px !important;
  border-radius: 4px !important;
  border: 1px solid var(--line) !important;
  background: #faf9f6 !important;
  color: #111111 !important;
}

.flow-arrow {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 86, 0, 0.3) !important;
  background: transparent !important;
  color: var(--accent) !important;
}

.benefit-grid,
.metric-grid,
.grid,
.summary-row {
  display: grid;
  gap: 14px;
}

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

.legend-strip,
.micro-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.story,
.auth-shell {
  align-content: center;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

/* ── Auth story: dark editorial left panel ── */
.story {
  position: relative;
  background: #111111 !important;
  border-radius: 8px !important;
  padding: 48px 44px !important;
  gap: 24px;
  display: grid;
  align-content: center;
  min-height: 540px;
}

.story::before {
  display: none !important;
}

.auth-story-tag {
  align-self: flex-start;
}

.story h1 {
  max-width: 8ch;
  font-size: clamp(56px, 8vw, 88px) !important;
  letter-spacing: -2.4px !important;
  color: #ffffff !important;
}

.story-copy {
  font-size: 20px !important;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.55) !important;
}

.story-trust {
  font-size: 17px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}

/* brand-tag inside dark panel */
.story .brand-tag,
.story .auth-story-tag {
  color: #ff5600 !important;
  background: rgba(255, 86, 0, 0.12) !important;
  border-color: rgba(255, 86, 0, 0.25) !important;
}

/* trust pills inside dark panel */
.story .trust-pill {
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.auth-trust-strip {
  max-width: 34rem;
}

.auth-card {
  padding: 40px !important;
  display: grid;
  gap: 6px;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px !important;
  border-radius: 8px !important;
  background: #faf9f6 !important;
  border: 1px solid var(--line) !important;
}

.tab-pill {
  border-radius: 4px !important;
  padding: 10px 14px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  text-align: center;
}

.tab-pill.active {
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.auth-head {
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.auth-title {
  max-width: 10ch;
}

.form-grid {
  gap: 14px !important;
}

.text-link,
.inline-link {
  color: var(--accent-dark) !important;
  font-weight: 600 !important;
}

.helper-note {
  text-align: center;
}

.password-toggle {
  min-height: 34px !important;
  padding: 6px 12px !important;
}

.auth-footer {
  justify-content: center;
  padding-top: 6px;
}

.consent-row,
.notice,
.output {
  border-radius: 8px !important;
  border: 1px solid var(--line) !important;
  background: #faf9f6 !important;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.hero-panel,
.cta-panel,
.showcase-card,
.article-card,
.section,
.panel {
  padding: 24px !important;
}

.cta-panel {
  align-items: end;
  padding: 28px !important;
}

.landing-filename,
.landing-strong {
  font-weight: 500;
  color: #111111;
}

.landing-legend-good { color: var(--good) !important; }
.landing-legend-warn { color: var(--warn) !important; }
.landing-legend-danger { color: var(--danger) !important; }
.landing-legend-unknown { color: var(--unknown) !important; }

.article-toc {
  margin-top: 18px;
}

.article-section p,
.article-section li {
  color: var(--muted);
}

@media (max-width: 896px) {
  .hero,
  .shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 28px));
  }

  .benefit-grid,
  .metric-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .cta-panel,
  .result-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
