@font-face {
  font-family: 'Literata';
  src: url('assets/fonts/Literata.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1f1c;
  --ink-soft: #3d4540;
  --muted: #6b746e;
  --line: #d8ddd6;
  --paper: #f3f1ea;
  --paper-2: #eae7de;
  --panel: #fbfaf6;
  --accent: #1f6f5b;
  --accent-2: #22b8e0;
  --green: #1f8a4c;
  --yellow: #c48916;
  --red: #c23b2e;
  --shadow: 0 18px 40px rgba(26, 31, 28, 0.08);
  --radius: 14px;
  --sidebar: 240px;
  --font-display: 'Literata', Georgia, serif;
  --font-ui: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 184, 224, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(31, 111, 91, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 31, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 31, 28, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

button, input, select {
  font: inherit;
}

a {
  color: var(--accent);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.5rem 1.1rem;
  border-right: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background:
    conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-btn {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.nav-btn:hover,
.nav-btn.is-active {
  background: rgba(31, 111, 91, 0.1);
  color: var(--ink);
}

.nav-btn.is-active {
  font-weight: 600;
}

.sidebar-foot {
  margin-top: auto;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(26, 31, 28, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.6rem 2rem 1rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar h1,
.panel-head h2,
.score-meta h2,
.guide-grid h2,
.report h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}

.topbar h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#app {
  padding: 0 2rem 2rem;
  flex: 1;
}

.view {
  display: none;
  animation: rise 280ms ease;
}

.view.is-active {
  display: block;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--ink);
  color: #f7f5ef;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: rgba(31, 111, 91, 0.12);
  color: var(--accent);
  border-color: rgba(31, 111, 91, 0.2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-danger-ghost {
  background: transparent;
  border-color: rgba(194, 59, 46, 0.35);
  color: var(--red);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stat,
.panel,
.task,
.finding,
.project-card {
  background: rgba(251, 250, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  padding: 1rem 1.15rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.panel {
  padding: 1.25rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.head-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
}

.panel-head p,
.form-hint,
.empty-state p,
.legend-list p,
.reliability p {
  margin: 0;
  color: var(--muted);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-card {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: border-color 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: rgba(31, 111, 91, 0.45);
  transform: translateY(-1px);
}

.mini-score {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  background: conic-gradient(var(--accent) var(--deg, 0%), var(--paper-2) 0);
  position: relative;
}

.mini-score::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--panel);
}

.mini-score span {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.empty-state h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.form-panel {
  max-width: 820px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form-grid label.full,
.form-actions.full,
.form-error.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
}

.form-grid input:focus,
.form-grid select:focus,
.btn:focus-visible,
.nav-btn:focus-visible,
.tab:focus-visible,
.project-card:focus-visible {
  outline: 2px solid rgba(34, 184, 224, 0.7);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-error {
  color: var(--red);
  margin: 0;
}

.detail-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-toolbar-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.score-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.08), transparent 55%),
    rgba(251, 250, 246, 0.95);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.score-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  justify-self: center;
}

.score-ring-wrap > .info-tip {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
}

.score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: conic-gradient(var(--accent) var(--deg, 0%), rgba(26, 31, 28, 0.08) 0);
  position: relative;
}

.score-ring::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--panel);
}

.score-ring strong,
.score-ring span {
  position: relative;
  z-index: 1;
}

.score-ring strong {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.score-ring span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.score-meta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.score-meta a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.pill.critical { border-color: rgba(194, 59, 46, 0.35); color: var(--red); }
.pill.warning { border-color: rgba(196, 137, 22, 0.4); color: var(--yellow); }
.pill.info { border-color: rgba(31, 111, 91, 0.3); color: var(--accent); }

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink-soft);
}

.tab.is-active {
  background: var(--ink);
  color: #f7f5ef;
  border-color: var(--ink);
}

/* Schritt-für-Schritt-Leiste */

.wizard-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
}

.wizard-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.4rem;
  min-height: 64px;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
}

.wizard-dot .wizard-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--paper-2);
  color: var(--ink);
}

.wizard-dot .wizard-label {
  font-size: 0.78rem;
  font-weight: 600;
}

.wizard-dot.is-active {
  background: var(--ink);
  color: #f7f5ef;
  border-color: var(--ink);
}

.wizard-dot.is-active .wizard-num {
  background: var(--accent-2);
  color: #062028;
}

.wizard-dot.is-done .wizard-num {
  background: var(--green);
  color: #fff;
}

.more-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.4rem 0 1rem;
}

.chip-btn {
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}

.chip-btn.is-active {
  background: rgba(31, 111, 91, 0.12);
  border-color: rgba(31, 111, 91, 0.35);
  color: var(--ink);
}

.toolbar-more {
  position: relative;
}

.toolbar-more summary {
  list-style: none;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.toolbar-more summary::-webkit-details-marker {
  display: none;
}

.toolbar-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
  padding: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.flow-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.flow-preview li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-preview li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.flow-preview .is-current {
  color: var(--ink);
  font-weight: 600;
}

.flow-preview .is-current span {
  background: var(--ink);
  color: #f7f5ef;
}

.flow-preview .is-done span {
  background: var(--green);
  color: #fff;
}

.scan-advanced {
  margin-top: 1rem;
}

.scan-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.wizard-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wizard-pane {
  animation: rise 280ms ease;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.step-list.one-at-a-time .step {
  display: none;
}

.step-list.one-at-a-time .step.is-current {
  display: grid;
}

.one-at-a-time-wrap .phase:not(.has-current) {
  display: none;
}

.one-at-a-time-wrap .phase.has-current .phase-head {
  display: none;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.task-list,
.finding-list,
.keyword-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.task,
.finding {
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
}

.task.is-done {
  opacity: 0.55;
}

.task.is-done .task-title {
  text-decoration: line-through;
}

.ampel {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.35rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.ampel.green { background: var(--green); }
.ampel.yellow { background: var(--yellow); }
.ampel.red { background: var(--red); }

.task-title,
.finding h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.task p,
.finding p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.task .action,
.finding .action {
  color: var(--ink-soft);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.chip-lifts {
  background: rgba(31, 111, 91, 0.12);
  color: var(--accent);
}

.step-lifts {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.step-lifts strong {
  color: var(--ink);
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.check-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.check-btn.is-on {
  background: rgba(31, 138, 76, 0.15);
  border-color: rgba(31, 138, 76, 0.4);
  color: var(--green);
}

.keyword-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 246, 0.92);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.keyword-card strong {
  font-family: var(--font-display);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legend-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
}

.reliability {
  display: grid;
  gap: 1rem;
}

.reliability h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.report {
  max-width: 860px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.report-section {
  margin-bottom: 1.25rem;
}

.report-section h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
}

.report-list {
  margin: 0;
  padding-left: 1.1rem;
}

.report-list li {
  margin-bottom: 0.55rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.app-footer {
  padding: 1rem 2rem 1.5rem;
}

.footer-line {
  border-top: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.powered {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
}

.powered a {
  color: #22b8e0;
  text-decoration: none;
  font-weight: 600;
}

.powered a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  background: var(--ink);
  color: #f7f5ef;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: min(360px, calc(100vw - 2rem));
}

.info-tip {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.info-tip-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1;
}

.info-tip-btn::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(31, 111, 91, 0.35);
  background: #fff;
  z-index: -1;
}

.info-tip-btn:hover::before,
.info-tip-btn:focus-visible::before {
  background: rgba(31, 111, 91, 0.1);
}

.info-tip-btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.info-tip-btn[aria-expanded="true"] {
  color: #f7f5ef;
}

.info-tip-btn[aria-expanded="true"]::before {
  background: var(--ink);
  border-color: var(--ink);
}

.info-tip-box[hidden] {
  display: none !important;
}

.info-tip-box {
  z-index: 60;
  display: block;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem !important;
  background: #fff !important;
  color: var(--ink) !important;
  text-align: left !important;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  font-family: var(--font-ui) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 18px 40px rgba(26, 31, 28, 0.16);
}

@media (pointer: coarse) {
  .info-tip-btn {
    width: 44px;
    height: 44px;
  }
}

.hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(34, 184, 224, 0.16), transparent 55%),
    var(--paper);
}

.login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-card h1 {
  font-family: var(--font-display);
  margin: 0;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-card input {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  background: #fff;
}

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

.btn-block {
  width: 100%;
  margin-top: 0.75rem;
}

.ai-badge {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.breakdown-item span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}

.breakdown-item strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem !important;
}

.check-row input {
  width: 18px;
  height: 18px;
  min-height: 0;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.data-table a {
  word-break: break-all;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.mini-score.small {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.content-out h3 {
  font-family: var(--font-display);
  margin: 1rem 0 0.4rem;
}

.draft-pre {
  white-space: pre-wrap;
  font-family: var(--font-ui);
  line-height: 1.55;
  background: rgba(26, 31, 28, 0.03);
  border-radius: 12px;
  padding: 1rem;
  margin: 0;
}

.draft-box {
  margin-top: 1rem;
}

/* ---------------------------------------------------------------- */
/* Domain-Scan                                                       */
/* ---------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scan-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.scan-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.scan-hero > p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.scan-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.scan-form input {
  flex: 1 1 260px;
  min-height: 52px;
  padding: 0 1rem;
  font-size: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.scan-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.scan-form .btn {
  min-height: 52px;
  padding-inline: 1.5rem;
}

.scan-options {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  font-size: 0.85rem;
}

.scan-progress {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.scan-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--paper-2);
  overflow: hidden;
}

.scan-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s ease;
}

.scan-progress p {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.scan-footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Urteil */

.verdict {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
  border-left: 4px solid var(--line);
}

.verdict-green { border-left-color: var(--green); }
.verdict-yellow { border-left-color: var(--yellow); }
.verdict-red { border-left-color: var(--red); }

.verdict-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.mini-score.big {
  width: 92px;
  height: 92px;
  font-size: 1.75rem;
}

.verdict-text h2 {
  font-family: var(--font-display);
  margin: 0.1rem 0 0.5rem;
  font-size: 1.35rem;
}

.verdict-text > p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* Schnelle Gewinne */

.quickwins {
  margin-bottom: 0.85rem;
}

.quickwin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.quickwin-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.quickwin-list li:last-child {
  border-bottom: 0;
}

.quickwin-list li > div {
  flex: 1;
  min-width: 0;
}

/* Phasen und Schritte */

.phase {
  margin-bottom: 1.4rem;
}

.rank-goal {
  margin-bottom: 0.85rem;
  border-color: rgba(31, 111, 91, 0.28);
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.08), transparent 55%),
    var(--panel);
}

.rank-goal .panel-head {
  margin-bottom: 0.55rem;
}

.rank-goal > p {
  margin: 0 0 0.85rem;
  max-width: 72ch;
}

.phase-head {
  padding: 0 0.25rem 0.6rem;
}

.phase-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}

.phase-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 74ch;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 1.5rem;
}

.step.is-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.15);
}

.step-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--muted);
}

.step-body h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.step-todo {
  margin: 0 0 0.4rem;
}

.step-why {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 76ch;
}

.step-urls {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.step-urls summary {
  cursor: pointer;
  color: var(--accent);
}

.step-urls ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.step-urls li {
  word-break: break-all;
}

/* Code-Bausteine */

.code-box {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(26, 31, 28, 0.03);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.code-box pre {
  margin: 0;
  padding: 0.85rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.btn-xs {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  min-height: auto;
}

/* Erkanntes Profil */

.profile-grid {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(128px, auto) 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row dt {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}

.profile-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-break: break-word;
}

.chip-ok {
  border-color: rgba(31, 138, 76, 0.4);
  color: var(--green);
}

.chip-soft {
  color: var(--muted);
}

/* Core Web Vitals */

.cwv-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
}

.cwv {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: #fff;
}

.cwv strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cwv-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cwv.ok { border-color: rgba(31, 138, 76, 0.4); }
.cwv.mid { border-color: rgba(196, 137, 22, 0.45); }
.cwv.bad { border-color: rgba(194, 59, 46, 0.4); }

.cwv.ok strong { color: var(--green); }
.cwv.mid strong { color: var(--yellow); }
.cwv.bad strong { color: var(--red); }

/* Vergleich zum letzten Crawl */

.diff-box {
  margin-bottom: 0.85rem;
}

.diff-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.diff-cols h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.diff-cols ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

/* Onboarding mit Auto-Ausfüllen */

.input-with-action {
  display: flex;
  gap: 0.5rem;
}

.input-with-action input {
  flex: 1;
  min-width: 0;
}

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

  .scan-grid,
  .diff-cols {
    grid-template-columns: 1fr;
  }

  .scan-hero {
    padding: 1.25rem;
  }

  .wizard-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wizard-dot .wizard-label {
    font-size: 0.72rem;
  }

  .verdict {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .verdict-score {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-rank {
    flex-direction: row;
    justify-content: flex-start;
  }

  .input-with-action {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-foot {
    display: none;
  }

  .stat-row,
  .guide-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .task,
  .finding,
  .score-hero {
    grid-template-columns: 1fr;
  }

  .project-meta,
  .powered {
    text-align: center;
  }

  .topbar,
  #app,
  .app-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body::before,
  .sidebar,
  .topbar,
  .detail-toolbar,
  .app-footer,
  .toast,
  .info-tip-box {
    display: none !important;
  }

  .app-shell,
  #app {
    display: block;
    padding: 0;
  }

  .view {
    display: none !important;
  }

  #view-report {
    display: block !important;
  }

  .report {
    box-shadow: none;
    border: 0;
  }
}

/* Kunden-Cockpit, Rankings, Chat */

.cockpit-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .cockpit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cockpit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.cockpit-stats > div {
  background: rgba(26, 31, 28, 0.04);
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  text-align: center;
}

.cockpit-stats strong {
  display: block;
  font-size: 1.35rem;
}

.cockpit-stats span,
.cockpit-next span,
.cockpit-rivals span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cockpit-stats .stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cockpit-legend {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
}

.cockpit-next,
.cockpit-rivals {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cockpit-next li,
.cockpit-rivals li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.cockpit-next li {
  flex-wrap: wrap;
}

.cockpit-next-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.cockpit-next-copy strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.cockpit-rivals li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.rank-table-wrap {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rank-table th,
.rank-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.pos-badge {
  display: inline-flex;
  min-width: 1.8rem;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-weight: 700;
}

.pos-top { background: #d7f5e3; color: #146c43; }
.pos-page1 { background: #e8f1ff; color: #1d4f91; }
.pos-page2 { background: #fff3d6; color: #8a5a00; }
.pos-far, .pos-none { background: #f1f1f1; color: #555; }

.serp-preview {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.serp-preview summary {
  cursor: pointer;
  min-height: 32px;
}

.serp-preview ol {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.serp-preview .is-own {
  color: var(--accent);
  font-weight: 600;
}

.improve-summary {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 72ch;
}

.improve-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.improve-list li {
  margin-bottom: 0.85rem;
}

.improve-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.kw-map {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .kw-map {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
  }
}

.kw-map h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.kw-map-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.kw-map-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 246, 0.92);
}

.kw-map-list strong {
  font-size: 0.95rem;
}

.btn-compact {
  margin-top: 0.35rem;
  min-height: 44px;
  width: fit-content;
}

.rank-next {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.delta-up { color: #146c43; }
.delta-down { color: #a33; }

.verdict-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.verdict-chip.rückstand { background: #fde8e8; }
.verdict-chip.vorsprung { background: #d7f5e3; }
.verdict-chip.gleichauf { background: #eef1f4; }

#ranking-keywords {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  resize: vertical;
}

.chat-panel { display: flex; flex-direction: column; min-height: 28rem; }
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.4rem 0 1rem;
}
.chat-bubble {
  max-width: 90%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
}
.chat-bubble p { margin: 0; white-space: pre-wrap; }
.chat-bubble small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.72rem; }
.chat-bubble.user { align-self: flex-end; background: #1a1f1c; color: #fff; }
.chat-bubble.user small { color: rgba(255,255,255,0.65); }
.chat-bubble.assistant { align-self: flex-start; background: rgba(26, 31, 28, 0.06); }
.chat-form { display: grid; gap: 0.6rem; }
.chat-form textarea {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
}

.truth-banner {
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(31, 111, 91, 0.07);
}
.truth-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.truth-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.75rem 0 0.4rem;
}
.filter-bar input,
.filter-bar select {
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: var(--panel);
  color: var(--ink);
}
.filter-bar input {
  flex: 1 1 12rem;
}

.vis-spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 88px;
  padding: 0.4rem 0 0.2rem;
}
.vis-spark span {
  flex: 1;
  min-width: 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}
.vis-delta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.vis-delta.is-up { color: var(--green); }
.vis-delta.is-down { color: var(--red); }

.gsc-import {
  display: grid;
  gap: 0.75rem;
}
.gsc-import label span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.gsc-import input[type="file"],
.gsc-import select {
  font: inherit;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: var(--panel);
}
.gsc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.gsc-actions .btn {
  min-height: 44px;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.inv-grid div {
  background: rgba(26, 31, 28, 0.04);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
}
.inv-grid strong {
  display: block;
  font-size: 1.25rem;
  font-family: var(--font-display);
}
.inv-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.data-table tr.is-hidden {
  display: none;
}
.data-table td.num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .cockpit-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-toolbar-right { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .powered { text-align: center; }
  .module-switch { width: 100%; }
}

.brand-wowo {
  color: #22b8e0;
}

.module-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(26, 31, 28, 0.04);
}

.module-btn {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.module-btn.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(26, 31, 28, 0.06);
}

body:not([data-module="geo"]) .module-geo-only {
  display: none !important;
}
body[data-module="geo"] .module-seo-only {
  display: none !important;
}

.bot-ok { color: var(--green); }
.bot-no { color: var(--red); }
.geo-excerpt {
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}

.geo-analysis-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1rem;
}
.geo-analysis-cols h3 {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.geo-analysis-cols ul {
  margin: 0;
  padding-left: 1.1rem;
}
.geo-analysis-cols li {
  margin: 0.25rem 0;
  line-height: 1.45;
}
.geo-next {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.geo-file {
  margin-bottom: 0.85rem;
}
.geo-file-where {
  margin: 0 0 0.35rem;
  line-height: 1.5;
}
.geo-file .draft-pre {
  margin: 0.75rem 0;
  max-height: 22rem;
  overflow: auto;
  font-size: 0.86rem;
}
.geo-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.geo-file-actions .btn {
  min-height: 44px;
}

@media (max-width: 700px) {
  .geo-analysis-cols { grid-template-columns: 1fr; }
}
