:root {
  --ink: #10211b;
  --muted: #63716c;
  --paper: #f4f7f5;
  --card: #ffffff;
  --green: #0b7a53;
  --green-dark: #07533a;
  --lime: #d8ff72;
  --red: #c23b35;
  --orange: #c87316;
  --line: #dce4df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.5px; }
.brand span { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-right: 7px; color: white; background: var(--green); border-radius: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.product-tag, .live-status { font-size: 12px; font-weight: 750; padding: 7px 11px; border-radius: 999px; }
.product-tag { color: var(--green-dark); background: #e1f4eb; }
.live-status { color: #40504a; background: var(--paper); }
.live-status i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #21a66f; border-radius: 50%; }
.avatar { width: 36px; height: 36px; padding: 0; border: 0; color: white; background: var(--ink); border-radius: 50%; font-weight: 800; }

.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar { position: sticky; top: 70px; height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: space-between; padding: 26px 18px; background: #f9fbf9; border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px; padding: 0 13px; border: 0; border-radius: 11px; color: #52615b; background: transparent; text-align: left; font-weight: 700; }
.nav-item:hover, .nav-item.active { color: var(--green-dark); background: #e4f3eb; }
.nav-item span { width: 20px; font-size: 18px; text-align: center; }
.sidebar-plan { display: grid; gap: 5px; padding: 16px; background: var(--ink); color: white; border-radius: 15px; }
.sidebar-plan span { color: var(--lime); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-plan strong { font-size: 14px; }
.sidebar-plan small { color: #adbbb6; font-size: 11px; }

.workspace { min-width: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 38px 4vw 100px; }
.view { width: 100%; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.page-heading.compact { align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.compact h1 { font-size: clamp(34px, 4vw, 50px); }
h1 em { color: var(--green); font-style: normal; }
.lead { max-width: 670px; margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }
h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.primary, .secondary { min-height: 46px; border-radius: 11px; padding: 0 18px; font-weight: 780; }
.primary { border: 0; color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { border: 1px solid #bfd0c6; color: var(--green-dark); background: white; }
.secondary:hover { background: #edf5f1; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 26px; }
.kpi-grid article { display: grid; min-height: 104px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.kpi-grid span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi-grid strong { align-self: end; margin-top: 8px; font-size: 26px; letter-spacing: -.04em; }
.kpi-grid small { color: #82908b; font-size: 11px; }
.kpi-grid .accent-kpi { color: white; background: var(--ink); border-color: var(--ink); }
.kpi-grid .accent-kpi span, .kpi-grid .accent-kpi small { color: #b4c0bc; }
.kpi-grid .accent-kpi strong { color: var(--lime); }

.scan-section { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(430px, 1.1fr); gap: 38px; padding: clamp(25px, 3.5vw, 40px); background: #fff; border: 1px solid #cedbd4; border-radius: 20px; box-shadow: 0 18px 52px rgba(16,33,27,.07); }
.scan-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.scan-copy ul { display: grid; gap: 9px; padding: 0; margin: 22px 0 0; list-style: none; font-size: 13px; font-weight: 700; }
.scan-copy li::before { content: '✓'; margin-right: 9px; color: var(--green); }
.scan-card, .panel, .results, .table-card, .price-card, .roadmap-card, .project-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 36px rgba(16,33,27,.05); }
.scan-card { padding: 22px; background: #f7faf8; border-color: #d7e2dc; box-shadow: none; }
label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 780; }
label:not(:first-child) { margin-top: 15px; }
label span { color: var(--muted); font-weight: 500; }
input { width: 100%; min-width: 0; height: 52px; padding: 0 15px; border: 1px solid #bdc9c2; border-radius: 11px; color: var(--ink); background: white; font-size: 16px; }
input:focus { outline: 3px solid #b9e7d2; border-color: var(--green); }
.scan-card > .primary { width: 100%; margin-top: 17px; }
.scan-submit { min-height: 54px; font-size: 16px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.text-button { min-height: 34px; padding: 0; border: 0; color: var(--green); background: transparent; text-decoration: underline; font-weight: 750; }
.inline-help { margin-top: 13px; padding-top: 13px; border-top: 1px solid #dce5e0; }
.inline-help summary, .result-explainer summary { cursor: pointer; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.inline-help p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.trust-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 13px 4px; color: #52615b; font-size: 12px; font-weight: 700; }
.trust-strip span { display: flex; align-items: center; gap: 7px; }
.trust-strip i { width: 8px; height: 8px; background: #21a66f; border-radius: 50%; }
.knowledge-panel { margin: 26px 0; padding: clamp(20px, 3vw, 30px); color: white; background: var(--ink); border-radius: 18px; }
.knowledge-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 19px; }
.knowledge-heading .eyebrow { color: var(--lime); }
.knowledge-heading h2 { font-size: clamp(24px, 2.5vw, 34px); }
.knowledge-heading > p { max-width: 440px; margin: 0; color: #b7c4bf; font-size: 14px; line-height: 1.55; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.knowledge-grid details { padding: 16px; color: var(--ink); background: white; border-radius: 12px; }
.knowledge-grid summary { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; }
.knowledge-grid summary::-webkit-details-marker { display: none; }
.knowledge-grid summary span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; color: white; background: var(--green); border-radius: 50%; font-size: 11px; }
.knowledge-grid p { margin: 12px 0 0; color: #56645f; font-size: 13px; line-height: 1.55; }
.panel { margin: 22px 0 0; padding: 22px; }
.panel p { margin: 5px 0 0; color: var(--muted); }
.panel.error { display: block; color: #7b211d; background: #fff4f3; border-color: #f0c5c2; }
.panel.error > strong { display: block; color: var(--ink); font-size: 18px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.spinner { width: 28px; height: 28px; flex: 0 0 28px; border: 3px solid #d8e2dc; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.progress-heading { display: flex; gap: 15px; align-items: center; }
.scan-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 22px 0 0; list-style: none; counter-reset: scanstep; }
.scan-steps li { position: relative; min-height: 56px; padding: 10px 10px 10px 38px; color: #718079; background: #f3f6f4; border: 1px solid #e0e7e3; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.35; }
.scan-steps li::before { counter-increment: scanstep; content: counter(scanstep); position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 20px; height: 20px; color: #63716c; background: white; border: 1px solid #cbd7d0; border-radius: 50%; font-size: 10px; }
.scan-steps li.active { color: var(--green-dark); background: #e7f5ee; border-color: #b9ddca; }
.scan-steps li.active::before { color: white; background: var(--green); border-color: var(--green); }
.scan-steps li.done { color: #405049; }
.scan-steps li.done::before { content: '✓'; color: white; background: var(--green-dark); border-color: var(--green-dark); }
.progress-note { margin: 12px 0 0 !important; font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { margin: 28px 0 0; padding: clamp(22px, 3vw, 34px); }
.print-brand { display: none; }
.result-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.result-actions { display: flex; align-items: center; gap: 15px; }
.pdf-action { display: grid; justify-items: end; gap: 5px; }
.pdf-action small { color: var(--muted); font-size: 10px; }
.score { width: 96px; height: 96px; flex: 0 0 96px; display: grid; place-content: center; text-align: center; background: var(--ink); color: white; border-radius: 50%; }
.score strong { font-size: 32px; line-height: 1; }
.score span { font-size: 11px; opacity: .7; }
.score-note, .disclaimer { color: var(--muted); font-size: 12px; }
.score-note.basis-note { border-left: 4px solid #b7791f; background: #fff8e8; color: #6b4815; padding: .8rem 1rem; border-radius: .7rem; }
.result-limit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0; padding: 16px; color: var(--ink); background: #effbd0; border: 1px solid #c3df78; border-radius: 13px; }
.result-limit div { display: grid; gap: 4px; }
.result-limit span { color: #52615b; font-size: 12px; line-height: 1.45; }
.result-limit .primary { flex: 0 0 auto; }
.report-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 24px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
.report-meta div { min-width: 0; padding: 15px; background: #f9fbf9; }
.report-meta span, .report-meta strong, .report-meta a { display: block; }
.report-meta span { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.report-meta strong, .report-meta a { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.report-meta a { color: var(--green-dark); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 22px; }
.stats article { padding: 18px; background: var(--paper); border-radius: 14px; }
.stats .danger-stat { color: #7b211d; background: #fff1f0; }
.stats strong, .stats span { display: block; }
.stats strong { font-size: 28px; }
.stats span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.result-explainer { margin: -7px 0 22px; padding: 14px 16px; background: #f5f8f6; border: 1px solid var(--line); border-radius: 11px; }
.result-explainer dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 2px; }
.result-explainer dl div { padding-left: 12px; border-left: 3px solid #b7ddca; }
.result-explainer dt { font-size: 13px; font-weight: 800; }
.result-explainer dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.report-scope { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.3fr); gap: 24px; align-items: center; margin: 0 0 34px; padding: 18px; border: 1px solid #d3e5dc; border-radius: 14px; background: #edf5f1; }
.report-scope .eyebrow { margin-bottom: 6px; }
.report-scope h3 { margin: 0; font-size: 18px; }
.report-scope p:last-child { margin: 0; color: #46564f; font-size: 13px; line-height: 1.55; }
.comparison-card { margin: 0 0 34px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.comparison-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.comparison-head .eyebrow { margin-bottom: 5px; }
.comparison-head h3 { margin: 0; font-size: 19px; }
.comparison-head > span { color: var(--muted); font-size: 11px; }
.comparison-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.comparison-stats article { padding: 13px; background: var(--paper); border-radius: 11px; }
.comparison-stats strong, .comparison-stats span { display: block; }
.comparison-stats strong { font-size: 22px; }
.comparison-stats span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.comparison-stats .new { color: #8a2d28; background: #fff1f0; }
.comparison-stats .resolved { color: var(--green-dark); background: #e7f6ee; }
.comparison-card > p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.comparison-card.baseline .comparison-stats, .comparison-card.not-comparable .comparison-stats { display: none; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-title h3 { margin: 0; font-size: 22px; }
.section-title span { color: var(--muted); font-size: 12px; }
.issues { display: grid; gap: 10px; }
.issue { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.issue summary { list-style: none; cursor: pointer; padding: 17px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.issue summary::-webkit-details-marker { display: none; }
.impact { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.impact.critical, .impact.serious { background: var(--red); }
.impact.minor { background: #8a9992; }
.issue-title { font-size: 14px; font-weight: 780; }
.issue-meta { color: var(--muted); font-size: 11px; }
.issue-status { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.issue-status.new { color: #7b211d; background: #fff1f0; }
.issue-status.remaining { color: #53615c; background: #edf1ef; }
.count { font-size: 12px; font-weight: 800; background: var(--paper); padding: 6px 8px; border-radius: 8px; }
.issue-body { padding: 0 17px 18px 39px; color: #34443e; font-size: 14px; line-height: 1.55; }
.issue-body h4 { margin: 16px 0 4px; color: var(--ink); }
.issue-body p { margin: 0; }
.code { margin-top: 12px; padding: 12px; overflow-wrap: anywhere; color: #eafff5; background: #14251f; border-radius: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.owner { display: inline-block; margin-top: 12px; color: var(--green-dark); background: #e3f5ec; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 750; }
.issue.locked { background: #fafcfb; }
.locked-copy { padding: 16px; color: #52615b; background: var(--paper); border-radius: 10px; }
.locked-copy strong, .locked-copy span { display: block; }
.locked-copy span { margin-top: 5px; }
.locked-copy .secondary { margin-top: 13px; }
.disclaimer { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.5; }

.device-note, .roadmap-card { margin-bottom: 22px; padding: 16px 18px; color: #53635d; background: #edf5f1; border: 1px solid #d3e5dc; border-radius: 13px; font-size: 13px; line-height: 1.5; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { padding: 21px; }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.shop-icon { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--green); border-radius: 11px; font-weight: 850; }
.project-score, .table-score { color: var(--green-dark); background: #e3f5ec; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 800; }
.project-card h2 { margin-top: 18px; font-size: 22px; }
.project-card a { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { display: flex; gap: 7px; margin: 20px 0 9px; }
.project-meta span { padding: 6px 8px; color: #52615b; background: var(--paper); border-radius: 7px; font-size: 11px; font-weight: 700; }
.project-card small { display: block; color: #82908b; }
.project-card button { width: 100%; margin-top: 18px; }
.project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.project-actions button { margin-top: 0; padding: 0 10px; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 34px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.empty-state button { margin-top: 8px; }
.card-empty { grid-column: 1 / -1; background: white; border: 1px dashed #b9c9c0; border-radius: 17px; }

.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); background: #f9fbf9; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
.table-action { min-height: 34px; padding: 0 11px; border: 1px solid #bfd0c6; border-radius: 8px; color: var(--green-dark); background: white; font-size: 11px; font-weight: 780; white-space: nowrap; }
.table-action:hover { background: #edf5f1; }
.pricing-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding: 17px 19px; color: white; background: var(--ink); border-radius: 15px; }
.pricing-notice div { display: grid; gap: 4px; }
.pricing-notice span:not(.notice-badge) { color: #b7c4bf; font-size: 13px; line-height: 1.45; }
.notice-badge { flex: 0 0 auto; padding: 6px 9px; color: var(--ink); background: var(--lime); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.checkout-button:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; transform: none; }
.billing-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.billing-info div { padding: 15px 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.billing-info strong, .billing-info span { display: block; }
.billing-info strong { color: var(--green-dark); font-size: 13px; }
.billing-info span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 25px; }
.price-card.featured { border: 2px solid var(--green); transform: translateY(-5px); }
.price-card.starter { border-color: #86bda5; background: linear-gradient(180deg, #f5fbf8 0%, #fff 32%); }
.price-card.starter::before { content: 'BELIEBTER EINSTIEG'; position: absolute; top: -12px; right: 18px; padding: 5px 9px; color: white; background: var(--green-dark); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.price-card.featured::before { content: 'EMPFOHLEN'; position: absolute; top: -12px; right: 18px; padding: 5px 9px; color: var(--ink); background: var(--lime); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.price-card > span { display: block; color: var(--green); font-size: 13px; font-weight: 850; }
.price-card > strong { display: block; margin-top: 12px; font-size: 38px; letter-spacing: -.05em; }
.price-card > small { color: var(--muted); }
.founder-price { width: fit-content; margin-top: 9px; padding: 5px 8px; color: #60430d; background: #fff1bd; border-radius: 7px; font-size: 11px; font-weight: 800; }
.price-card ul { display: grid; align-content: start; gap: 11px; flex: 1; min-height: 188px; padding: 22px 0 18px; list-style: none; color: #45544f; font-size: 13px; line-height: 1.4; }
.price-card li::before { content: '✓'; margin-right: 8px; color: var(--green); font-weight: 900; }
.price-card li.not-included { color: #7a8581; }
.price-card li.not-included::before { content: '–'; color: #89938f; }
.price-card button { width: 100%; }
.limit-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); gap: 30px; align-items: center; margin-top: 26px; padding: 25px; color: white; background: var(--green-dark); border-radius: 18px; }
.limit-card .eyebrow { color: var(--lime); }
.limit-card h2 { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.12; }
.limit-card > p { margin: 0; color: #d8e7e0; font-size: 14px; line-height: 1.65; }
.roadmap-card { margin-top: 24px; background: white; border-color: var(--line); }
.roadmap-card p { margin: 7px 0 0; }
.faq-section { margin-top: 34px; }
.faq-heading { margin-bottom: 16px; }
.faq-heading h2 { font-size: clamp(27px, 3vw, 38px); }
.faq-list { display: grid; gap: 9px; }
.faq-list details { background: white; border: 1px solid var(--line); border-radius: 12px; }
.faq-list summary { cursor: pointer; padding: 17px 48px 17px 18px; color: var(--ink); font-size: 15px; font-weight: 800; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: var(--green); font-size: 22px; font-weight: 500; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mobile-nav { display: none; }

.account-dialog { width: min(100% - 28px, 460px); padding: 30px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 28px 80px rgba(7,33,24,.28); }
.account-dialog::backdrop { background: rgba(10,25,20,.55); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 37px; height: 37px; padding: 0; border: 0; color: var(--muted); background: var(--paper); border-radius: 50%; font-size: 24px; line-height: 1; }
.dialog-close:hover { color: var(--ink); background: #e5ebe7; }
.dialog-lead { margin: 9px 0 22px; color: var(--muted); line-height: 1.5; }
.account-dialog form label { margin-top: 14px; }
.account-dialog form label:first-child { margin-top: 0; }
.auth-submit, .logout-button { width: 100%; margin-top: 20px; }
.auth-switch { display: block; margin: 15px auto 0; }
.security-note { display: block; margin-top: 14px; color: #7b8984; line-height: 1.45; text-align: center; }
.inline-error { margin: 13px 0 0; padding: 11px; color: #7b211d; background: #fff1f0; border-radius: 9px; font-size: 13px; }
.profile-avatar { display: grid; place-items: center; width: 70px; height: 70px; margin: 12px 0 18px; color: white; background: var(--green); border-radius: 20px; font-size: 28px; font-weight: 850; }
.account-plan { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; background: var(--paper); border-radius: 10px; }
.account-plan span { color: var(--muted); font-size: 12px; }
.account-plan strong { color: var(--green-dark); font-size: 13px; }
.sync-box { display: grid; gap: 5px; margin-top: 22px; padding: 15px; color: var(--green-dark); background: #e8f6ef; border-radius: 12px; }
.sync-box span { color: #52645c; font-size: 12px; line-height: 1.45; }

@media (max-width: 1050px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-section { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-grid, .billing-info { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding: 32px 22px 105px; }
  .mobile-nav { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; background: rgba(16,33,27,.96); border-radius: 17px; box-shadow: 0 12px 40px rgba(0,0,0,.24); }
  .mobile-nav button { display: grid; place-items: center; gap: 2px; min-height: 51px; padding: 4px; border: 0; color: #b9c6c1; background: transparent; border-radius: 11px; font-size: 10px; font-weight: 700; }
  .mobile-nav button span { font-size: 18px; }
  .mobile-nav button.active { color: var(--ink); background: var(--lime); }
  .desktop-action { display: none; }
}

@media (max-width: 620px) {
  .topbar { height: 62px; padding: 0 14px; }
  .live-status { display: none; }
  .product-tag { padding: 6px 8px; font-size: 10px; }
  .app-shell { min-height: calc(100vh - 62px); }
  .workspace { padding: 28px 11px 100px; }
  .page-heading { display: block; margin-bottom: 22px; padding: 0 7px; }
  .page-heading.compact .primary { width: 100%; margin-top: 18px; }
  h1 { font-size: 40px; }
  .compact h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .kpi-grid article { min-height: 96px; padding: 13px; }
  .kpi-grid strong { font-size: 25px; }
  .scan-section { gap: 20px; padding: 20px 14px; border-radius: 17px; }
  .scan-copy ul { display: none; }
  .scan-card { padding: 17px; }
  .form-foot { align-items: flex-start; }
  .trust-strip { display: grid; gap: 8px; padding: 13px 5px; }
  .knowledge-panel { margin: 20px 0; padding: 20px 14px; }
  .knowledge-heading { display: block; }
  .knowledge-heading > p { margin-top: 9px; }
  .scan-steps { grid-template-columns: 1fr; gap: 6px; }
  .scan-steps li { min-height: 44px; }
  .results { padding: 20px 14px; }
  .result-head { display: block; }
  .result-actions { justify-content: space-between; margin-top: 18px; }
  .result-limit { display: grid; }
  .result-limit .primary { width: 100%; }
  .result-actions .secondary { padding: 0 12px; }
  .pdf-action { justify-items: start; }
  .score { width: 78px; height: 78px; flex-basis: 78px; }
  .score strong { font-size: 27px; }
  .report-meta { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats article { padding: 13px 9px; }
  .result-explainer dl { grid-template-columns: 1fr; }
  .stats strong { font-size: 22px; }
  .report-scope { grid-template-columns: 1fr; gap: 10px; }
  .comparison-head { display: block; }
  .comparison-head > span { display: block; margin-top: 6px; }
  .comparison-stats { grid-template-columns: 1fr 1fr; }
  .issue summary { grid-template-columns: auto 1fr; }
  .count { grid-column: 2; justify-self: start; }
  .issue-body { padding-left: 39px; }
  .project-grid, .pricing-grid { grid-template-columns: 1fr; }
  .project-actions { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card ul { min-height: 0; }
  .pricing-notice { align-items: flex-start; }
  .notice-badge { display: none; }
  .limit-card { grid-template-columns: 1fr; gap: 12px; padding: 21px 18px; }
  .table-card { overflow-x: auto; }
  table { min-width: 680px; }
  .account-dialog { padding: 25px 18px; border-radius: 18px; }
}

@media print {
  .topbar, .sidebar, .mobile-nav, .page-heading, .kpi-grid, .scan-section, .result-actions .secondary { display: none !important; }
  body { background: white; }
  .app-shell { display: block; }
  .workspace { max-width: none; padding: 0; }
  .results { display: block !important; margin: 0; padding: 12mm; border: 0; box-shadow: none; }
  .print-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 18px; font-weight: 850; }
  .print-brand span { display: grid; place-items: center; width: 28px; height: 28px; color: white; background: var(--green); border-radius: 7px; }
  .result-actions { display: block; }
  .pdf-action { display: none; }
  .report-meta { grid-template-columns: repeat(2, 1fr); }
  .report-meta strong, .report-meta a { white-space: normal; overflow-wrap: anywhere; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .report-scope { grid-template-columns: 1fr 2fr; }
  .issue { page-break-inside: avoid; }
  .issue-body { display: block !important; }
}
