/* GitHub 1:1 replica — design tokens and layout. Primer CSS is loaded first as the base. */
:root {
  --gh-canvas-default: #ffffff;
  --gh-canvas-subtle: #f6f8fa;
  --gh-canvas-inset: #f6f8fa;
  --gh-canvas-overlay: #ffffff;
  --gh-border-default: #d0d7de;
  --gh-border-muted: #d8dee4;
  --gh-border-subtle: rgba(31, 35, 40, 0.08);
  --gh-fg-default: #1f2328;
  --gh-fg-muted: #656d76;
  --gh-fg-subtle: #6e7781;
  --gh-fg-on-emphasis: #ffffff;
  --gh-accent-fg: #0969da;
  --gh-accent-emphasis: #0969da;
  --gh-accent-muted: rgba(84, 174, 255, 0.4);
  --gh-accent-subtle: #ddf4ff;
  --gh-success-fg: #1a7f37;
  --gh-success-emphasis: #1f883d;
  --gh-success-subtle: #dafbe1;
  --gh-danger-fg: #cf222e;
  --gh-danger-emphasis: #cf222e;
  --gh-danger-subtle: #ffebe9;
  --gh-attention-fg: #9a6700;
  --gh-attention-subtle: #fff8c5;
  --gh-done-fg: #8250df;
  --gh-done-emphasis: #8250df;
  --gh-done-subtle: #fbefff;
  --gh-header-bg: #f6f8fa;
  --gh-header-border: #d0d7de;
  --gh-shadow-small: 0 1px 0 rgba(31, 35, 40, 0.04);
  --gh-shadow-medium: 0 3px 6px rgba(140, 149, 159, 0.15);
  --gh-shadow-large: 0 8px 24px rgba(140, 149, 159, 0.2);
  --gh-radius: 6px;
  --gh-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --gh-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gh-header-height: 62px;
  --gh-container: 1280px;
}

html[data-color-mode="dark"] {
  --gh-canvas-default: #0d1117;
  --gh-canvas-subtle: #161b22;
  --gh-canvas-inset: #010409;
  --gh-canvas-overlay: #161b22;
  --gh-border-default: #30363d;
  --gh-border-muted: #21262d;
  --gh-border-subtle: rgba(240, 246, 252, 0.1);
  --gh-fg-default: #e6edf3;
  --gh-fg-muted: #8b949e;
  --gh-fg-subtle: #6e7681;
  --gh-accent-fg: #2f81f7;
  --gh-accent-emphasis: #1f6feb;
  --gh-accent-muted: rgba(56, 139, 253, 0.4);
  --gh-accent-subtle: #121d2f;
  --gh-success-fg: #3fb950;
  --gh-success-emphasis: #238636;
  --gh-success-subtle: #12261e;
  --gh-danger-fg: #f85149;
  --gh-danger-emphasis: #da3633;
  --gh-danger-subtle: #2d1214;
  --gh-attention-fg: #d29922;
  --gh-attention-subtle: #272115;
  --gh-done-fg: #a371f7;
  --gh-done-emphasis: #8957e5;
  --gh-done-subtle: #271a37;
  --gh-header-bg: #010409;
  --gh-header-border: #30363d;
  --gh-shadow-small: 0 1px 0 rgba(1, 4, 9, 0.5);
  --gh-shadow-medium: 0 3px 6px rgba(1, 4, 9, 0.5);
  --gh-shadow-large: 0 8px 24px rgba(1, 4, 9, 0.7);
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--gh-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gh-fg-default);
  background: var(--gh-canvas-default);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gh-accent-fg); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container-xl { max-width: var(--gh-container); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--gh-fg-muted); }
.text-small { font-size: 12px; }
.text-bold { font-weight: 600; }
.d-flex { display: flex; }
.flex-1 { flex: 1; }
.flex-items-center { align-items: center; }
.flex-justify-between { justify-content: space-between; }
.mr-2 { margin-right: 8px; }
.ml-2 { margin-left: 8px; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.hidden { display: none !important; }

/* Header */
.Header {
  position: relative;
  z-index: 32;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--gh-fg-default);
  background: var(--gh-header-bg);
  border-bottom: 1px solid var(--gh-header-border);
  height: var(--gh-header-height);
}
.Header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--gh-container);
  margin: 0 auto;
  gap: 16px;
}
.Header-logo { display: flex; align-items: center; gap: 10px; color: var(--gh-fg-default); flex-shrink: 0; }
.Header-logo:hover { text-decoration: none; color: var(--gh-fg-default); }
.Header-logo svg { fill: currentColor; }
.Header-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.Header-nav { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.Header-link { color: var(--gh-fg-default); font-weight: 500; white-space: nowrap; }
.Header-link:hover { color: var(--gh-fg-muted); text-decoration: none; }
.Header-search { flex: 1; max-width: 320px; position: relative; }
.Header-search form { position: relative; display: flex; align-items: center; }
.Header-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.Header-search-icon { position: absolute; left: 8px; display: flex; color: var(--gh-fg-muted); pointer-events: none; }
.Header-search-input {
  width: 100%;
  height: 30px;
  padding: 0 36px 0 30px;
  font-size: 14px;
  color: var(--gh-fg-default);
  background: var(--gh-canvas-default);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius);
  outline: none;
}
.Header-search-input::placeholder { color: var(--gh-fg-muted); }
.Header-search-input:focus { border-color: var(--gh-accent-fg); box-shadow: 0 0 0 3px var(--gh-accent-muted); width: 100%; }
.Header-search-key { position: absolute; right: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; color: var(--gh-fg-muted); border: 1px solid var(--gh-border-default); border-radius: 3px; background: var(--gh-canvas-subtle); }
.Header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.Header-icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--gh-fg-default); border-radius: var(--gh-radius); }
.Header-icon-link:hover { background: var(--gh-border-subtle); text-decoration: none; }
.Header-notification-count { position: absolute; top: 1px; right: 0; min-width: 14px; height: 14px; padding: 0 3px; font-size: 10px; line-height: 14px; color: #fff; text-align: center; background: var(--gh-accent-emphasis); border-radius: 999px; }
.Header-avatar { display: inline-flex; cursor: pointer; }
.Header-avatar::-webkit-details-marker { display: none; }
.Header-avatar img { border-radius: 50%; border: 1px solid var(--gh-border-default); }
.Header-dropdown { position: relative; }
.Header-dropdown > summary { list-style: none; cursor: pointer; }
.Header-dropdown > summary::-webkit-details-marker { display: none; }
.Header-signin { font-weight: 500; padding: 0 8px; }
.Header-signup { font-weight: 600; }

/* Landing header overrides */
.Header--landing { background: #0d1117; border-bottom-color: #30363d; color: #e6edf3; }
.Header--landing .Header-logo, .Header--landing .Header-link { color: #e6edf3; }
.Header--landing .Header-link:hover { color: #8b949e; }
.Header--landing .Header-search-input { background: #0d1117; border-color: #30363d; color: #e6edf3; }
.Header--landing .Header-search-input::placeholder { color: #8b949e; }
.Header--landing .Header-search-key { background: #161b22; border-color: #30363d; color: #8b949e; }
.Header--landing .Header-signin { color: #e6edf3; }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  display: none;
  min-width: 180px;
  margin-top: 6px;
  padding: 8px 0;
  color: var(--gh-fg-default);
  background: var(--gh-canvas-overlay);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow-large);
}
.dropdown[open] > .dropdown-menu { display: block; }
.dropdown-menu-sw { right: 0; left: auto; }
.dropdown-header { padding: 4px 16px; font-size: 12px; color: var(--gh-fg-muted); }
.dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 16px; font-size: 14px; color: var(--gh-fg-default); text-align: left; background: none; border: 0; cursor: pointer; }
.dropdown-item:hover { background: var(--gh-accent-emphasis); color: #fff; text-decoration: none; }
.dropdown-item svg { fill: currentColor; }
.dropdown-divider { height: 1px; margin: 8px 0; background: var(--gh-border-muted); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--gh-fg-default);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background: var(--gh-canvas-subtle);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow-small);
  transition: background-color 80ms ease, border-color 80ms ease;
}
.btn:hover { background: #f3f4f6; text-decoration: none; }
.btn:active { background: #ebecf0; }
.btn svg { fill: currentColor; }
.btn-primary { color: #fff; background: var(--gh-success-emphasis); border-color: rgba(27, 31, 36, 0.15); }
.btn-primary:hover { background: #1a7f37; }
.btn-danger { color: var(--gh-danger-fg); }
.btn-danger:hover { color: #fff; background: var(--gh-danger-emphasis); border-color: var(--gh-danger-emphasis); }
.btn-sm { padding: 3px 12px; font-size: 12px; line-height: 20px; }
.btn-lg { padding: 10px 24px; font-size: 16px; line-height: 24px; }
.btn-block { display: flex; width: 100%; }
.btn-invisible { background: transparent; border-color: transparent; box-shadow: none; color: var(--gh-fg-default); }
.btn-invisible:hover { background: var(--gh-border-subtle); }
.btn-octicon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: var(--gh-fg-muted); background: transparent; border: 0; border-radius: var(--gh-radius); cursor: pointer; }
.btn-octicon:hover { background: var(--gh-border-subtle); color: var(--gh-fg-default); }
.btn .octicon { fill: currentColor; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-control {
  display: block;
  width: 100%;
  padding: 5px 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gh-fg-default);
  background: var(--gh-canvas-default);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(208, 215, 222, 0.2);
}
.form-control:focus { border-color: var(--gh-accent-fg); box-shadow: 0 0 0 3px var(--gh-accent-muted); }
.form-control.input-block { width: 100%; }
.form-control.input-lg { height: 40px; font-size: 16px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23656d76' viewBox='0 0 16 16'%3E%3Cpath d='M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 32px; }
.form-hint { margin: 6px 0 0; font-size: 12px; color: var(--gh-fg-muted); }
.form-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 14px; }
.form-check input { margin-top: 3px; }
.form-check label { font-weight: 400; }

/* Flash */
.js-flash-container { position: fixed; top: 72px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.flash { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; font-size: 14px; color: var(--gh-fg-default); background: var(--gh-canvas-overlay); border: 1px solid var(--gh-border-default); border-radius: var(--gh-radius); box-shadow: var(--gh-shadow-large); }
.flash-full { width: 100%; }
.flash-success { border-color: rgba(74, 194, 107, 0.4); background: var(--gh-success-subtle); }
.flash-error, .flash-danger { border-color: rgba(248, 81, 73, 0.4); background: var(--gh-danger-subtle); }
.flash-warn { border-color: rgba(212, 167, 44, 0.4); background: var(--gh-attention-subtle); }
.flash-icon { display: inline-flex; margin-top: 1px; }
.flash-close { margin-left: auto; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; opacity: 0.6; }
.flash-close:hover { opacity: 1; }

/* Landing */
.landing { background: #0d1117; }
.landing-page { color: #e6edf3; }
.landing-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(88, 166, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(163, 113, 247, 0.12), transparent 60%),
    linear-gradient(180deg, #0d1117 0%, #0d1117 70%, #161b22 100%);
  border-bottom: 1px solid #30363d;
}
.landing-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: var(--gh-container); margin: 0 auto; padding: 80px 32px 88px; }
.landing-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 24px; font-size: 13px; color: #a5d6ff; background: rgba(56, 139, 253, 0.1); border: 1px solid rgba(56, 139, 253, 0.4); border-radius: 999px; }
.landing-hero h1 { margin: 0 0 20px; font-size: 64px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; background: linear-gradient(90deg, #ffffff 0%, #a5d6ff 60%, #d2a8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-dot { color: #58a6ff; -webkit-text-fill-color: #58a6ff; }
.landing-hero-sub { max-width: 620px; margin: 0 0 28px; font-size: 20px; line-height: 1.5; color: #8b949e; }
.landing-signup-form { display: flex; gap: 8px; max-width: 560px; }
.landing-signup-form .form-control { flex: 1; height: 48px; font-size: 16px; background: #0d1117; border-color: #30363d; color: #e6edf3; }
.landing-signup-form .btn { height: 48px; padding: 0 24px; font-size: 16px; }
.landing-hero-note { margin: 12px 0 0; font-size: 13px; color: #8b949e; }
.landing-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; font-size: 14px; color: #6e7681; }
.landing-trust-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #6e7681; }
.landing-trust span:not(.landing-trust-label) { color: #8b949e; font-weight: 600; }
.landing-hero-visual { position: relative; }
.hero-window { background: #0d1117; border: 1px solid #30363d; border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.hero-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #30363d; background: #161b22; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-dot-red { background: #ff5f56; } .hero-dot-yellow { background: #ffbd2e; } .hero-dot-green { background: #27c93f; }
.hero-window-title { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 12px; color: #8b949e; }
.hero-window-badge { margin-left: auto; padding: 0 7px; font-size: 11px; line-height: 20px; color: #8b949e; border: 1px solid #30363d; border-radius: 999px; }
.hero-window-body { display: grid; grid-template-columns: 1.25fr 1fr; }
.hero-code { padding: 16px; font-family: var(--gh-font-mono); font-size: 12px; line-height: 1.8; color: #c9d1d9; background: #0d1117; border-right: 1px solid #30363d; }
.hero-ln { display: inline-block; width: 22px; color: #484f58; user-select: none; }
.hero-kw { color: #ff7b72; } .hero-str { color: #a5d6ff; } .hero-fn { color: #d2a8ff; }
.hero-panel { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #161b22; }
.hero-panel-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #30363d; border-radius: 8px; background: #0d1117; }
.hero-panel-row strong { display: block; font-size: 12px; color: #e6edf3; }
.hero-panel-row small { display: block; margin-top: 2px; font-size: 11px; color: #8b949e; }
.hero-check { color: #3fb950; } .hero-pr { color: #3fb950; } .hero-merge { color: #a371f7; }
.hero-window-footer { display: flex; gap: 18px; padding: 10px 16px; font-size: 12px; color: #8b949e; border-top: 1px solid #30363d; background: #161b22; }
.hero-window-footer span { display: inline-flex; align-items: center; gap: 4px; }
.hero-float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: #e6edf3; background: #161b22; border: 1px solid #30363d; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.hero-float-1 { top: -22px; right: -16px; color: #a5d6ff; }
.hero-float-2 { bottom: -24px; left: -24px; color: #3fb950; }
.landing-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--gh-container); margin: 0 auto; padding: 32px; border-bottom: 1px solid #30363d; }
.landing-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 0 24px; border-left: 1px solid #30363d; }
.landing-stats > div:first-child { border-left: 0; padding-left: 0; }
.landing-stats strong { font-size: 32px; font-weight: 700; color: #e6edf3; }
.landing-stats span { font-size: 13px; color: #8b949e; }
.landing-features { max-width: var(--gh-container); margin: 0 auto; padding: 80px 32px; }
.landing-section-head { max-width: 720px; margin-bottom: 40px; }
.landing-kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #58a6ff; }
.landing-section-head h2 { margin: 0 0 12px; font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; color: #e6edf3; }
.landing-section-head p { margin: 0; font-size: 17px; color: #8b949e; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { display: flex; flex-direction: column; padding: 24px; background: #161b22; border: 1px solid #30363d; border-radius: 12px; }
.feature-card-wide { grid-column: span 2; }
.feature-card-dark { background: linear-gradient(135deg, #161b22 0%, #1f2937 100%); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; color: #58a6ff; background: rgba(56, 139, 253, 0.12); border: 1px solid rgba(56, 139, 253, 0.3); border-radius: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 20px; color: #e6edf3; }
.feature-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #8b949e; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: #58a6ff; }
.feature-mock { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 18px; padding: 12px; border: 1px solid #30363d; border-radius: 8px; background: #0d1117; }
.mock-code { display: block; height: 8px; width: 80%; border-radius: 4px; background: #30363d; }
.mock-code.short { width: 55%; }
.mock-suggestion { display: block; height: 8px; width: 68%; margin-top: 4px; border-radius: 4px; background: rgba(88, 166, 255, 0.5); }
.feature-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
.landing-cta { max-width: var(--gh-container); margin: 0 auto; padding: 64px 32px 96px; text-align: center; border-top: 1px solid #30363d; }
.landing-cta h2 { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.03em; color: #e6edf3; }
.landing-cta p { margin: 0 0 24px; font-size: 17px; color: #8b949e; }

/* Auth */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; background: var(--gh-canvas-subtle); }
.auth-main { display: flex; flex: 1; align-items: flex-start; justify-content: center; padding: 40px 16px 80px; }
.auth-card { width: 100%; max-width: 340px; padding: 24px; text-align: center; background: var(--gh-canvas-default); border: 1px solid var(--gh-border-default); border-radius: var(--gh-radius); box-shadow: var(--gh-shadow-medium); }
.auth-card-signup { max-width: 420px; text-align: left; }
.auth-card-head { margin-bottom: 20px; }
.auth-logo { display: inline-flex; margin-bottom: 16px; color: var(--gh-fg-default); }
.auth-logo svg { fill: currentColor; }
.auth-card h1 { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -0.01em; }
.auth-card-signup h1 { font-size: 24px; font-weight: 400; }
.auth-subtitle { margin: 8px 0 0; font-size: 14px; color: var(--gh-fg-muted); }
.auth-form { margin-top: 16px; text-align: left; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-link { font-size: 12px; }
.auth-divider { position: relative; margin: 20px 0; text-align: center; }
.auth-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--gh-border-default); }
.auth-divider span { position: relative; padding: 0 12px; font-size: 12px; color: var(--gh-fg-muted); background: var(--gh-canvas-default); }
.auth-passkey { font-weight: 500; }
.auth-switch { margin-top: 16px; padding: 16px; font-size: 14px; text-align: center; border: 1px solid var(--gh-border-default); border-radius: var(--gh-radius); }
.auth-card-signup .auth-switch { margin-left: -24px; margin-right: -24px; margin-bottom: -24px; border: 0; border-top: 1px solid var(--gh-border-default); }
.auth-note { margin: 16px 0 0; font-size: 11px; line-height: 1.5; color: var(--gh-fg-muted); }
.auth-terms { margin: 12px 0; font-size: 12px; color: var(--gh-fg-muted); }
.auth-closed { padding: 16px; font-size: 14px; color: var(--gh-fg-muted); }
.auth-footer { padding: 24px; text-align: center; }
.auth-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--gh-fg-muted); }
.auth-footer a { color: var(--gh-fg-muted); }

/* Error */
.error-page { max-width: 640px; margin: 0 auto; padding: 80px 32px; text-align: center; }
.error-art { color: var(--gh-fg-muted); opacity: 0.6; }
.error-page h1 { margin: 24px 0 8px; font-size: 24px; font-weight: 600; }
.error-page p { margin: 0 0 24px; color: var(--gh-fg-muted); }
.error-actions { display: flex; justify-content: center; gap: 8px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--gh-border-default); background: var(--gh-canvas-default); }
.footer-inner { max-width: var(--gh-container); margin: 0 auto; padding: 0 32px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--gh-fg-muted); }
.footer-links a { color: var(--gh-fg-muted); }
.footer-meta { display: flex; gap: 12px; font-size: 11px; color: var(--gh-fg-subtle); }
.footer--landing { margin-top: 0; background: #0d1117; border-top: 1px solid #30363d; }
.footer--landing .footer-links, .footer--landing .footer-links a, .footer--landing .footer-meta { color: #6e7681; }
.footer-columns { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; margin-bottom: 24px; border-bottom: 1px solid #30363d; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #e6edf3; }
.footer-tagline { max-width: 240px; margin: 12px 0 0; font-size: 13px; color: #8b949e; }
.footer-col h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #6e7681; }
.footer-col a { display: block; margin-bottom: 8px; font-size: 13px; color: #8b949e; }
.footer-col a:hover { color: #e6edf3; }

@media (max-width: 1080px) {
  .Header-nav { display: none; }
  .landing-hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .landing-hero h1 { font-size: 52px; }
  .landing-hero-visual { max-width: 640px; }
  .hero-window { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-wide { grid-column: span 2; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .Header { padding: 0 12px; }
  .Header-name { display: none; }
  .Header-search { max-width: none; }
  .Header-search-key { display: none; }
  .landing-hero-inner { padding: 40px 16px 56px; }
  .landing-hero h1 { font-size: 40px; }
  .landing-hero-sub { font-size: 17px; }
  .landing-signup-form { flex-direction: column; }
  .landing-signup-form .form-control, .landing-signup-form .btn { width: 100%; }
  .landing-stats { grid-template-columns: 1fr 1fr; gap: 24px 0; padding: 24px 16px; }
  .landing-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .landing-features, .landing-cta { padding-left: 16px; padding-right: 16px; }
  .landing-section-head h2, .landing-cta h2 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .container-xl { padding: 0 16px; }
  .js-flash-container { left: 12px; right: 12px; top: 12px; max-width: none; }
}
