/* SmallBizProspects — site styles. Bump the app <Version> on deploy; asp-append-version handles cache busting. */
:root {
    --sbp-ink: #0f172a;
    --sbp-muted: #475569;          /* 7.5:1 on white */
    --sbp-line: #e2e8f0;
    --sbp-bg: #f5f7fb;
    --sbp-primary: #1d4ed8;        /* 6.7:1 on white */
    --sbp-primary-soft: #eff6ff;
    --sbp-sidebar: #0b1220;
    --sbp-sidebar-ink: #cbd5e1;
    --sbp-radius: 12px;
    --bs-primary: #1d4ed8;
    --bs-primary-rgb: 29, 78, 216;
    --bs-body-font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: #0f172a;
    --bs-secondary-color: #475569;
}

body { background: var(--sbp-bg); color: var(--sbp-ink); }
.btn-primary { --bs-btn-bg: var(--sbp-primary); --bs-btn-border-color: var(--sbp-primary); --bs-btn-hover-bg: #1e40af; --bs-btn-hover-border-color: #1e40af; }
a { color: var(--sbp-primary); }

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: var(--sbp-primary); padding: .75rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
main:focus { outline: none; }

/* Shell */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 248px; flex-shrink: 0; background: var(--sbp-sidebar); color: var(--sbp-sidebar-ink); display: flex; flex-direction: column; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; }
.app-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: 1.08rem; padding: .25rem .5rem 1.25rem; }
.app-brand strong { font-weight: 700; }
.app-brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--sbp-primary); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.app-nav { list-style: none; margin: 0 0 1rem; padding: 0; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; color: var(--sbp-sidebar-ink); text-decoration: none; font-weight: 500; }
.app-nav a i { width: 18px; text-align: center; opacity: .85; }
.app-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-nav a.active { background: rgba(59,130,246,.22); color: #fff; }
.app-nav a.disabled { opacity: .55; pointer-events: none; }
.app-nav-heading { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: #94a3b8; margin: .5rem .7rem .4rem; }
.badge-soon { margin-left: auto; font-size: .65rem; background: rgba(255,255,255,.12); padding: .1rem .4rem; border-radius: 99px; }
.app-signout { margin-top: auto; padding: .75rem .5rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.app-user { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { padding: 1.75rem 2rem 3rem; max-width: 1400px; width: 100%; }

/* Banners */
.site-banner { display: flex; gap: .6rem; align-items: center; padding: .7rem 2rem; font-weight: 500; border-bottom: 1px solid transparent; }
.site-banner-info { background: #e0ecff; color: #1e3a8a; border-color: #bfd4fb; }
.site-banner-warning { background: #fef3c7; color: #78350f; border-color: #fcd98a; }
.site-banner-danger { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }

/* Page */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.page-subtitle { color: var(--sbp-muted); margin: .2rem 0 0; }
.panel { background: #fff; border: 1px solid var(--sbp-line); border-radius: var(--sbp-radius); padding: 1.25rem 1.4rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.panel-title { font-size: 1rem; font-weight: 600; margin-bottom: .9rem; }
.form-panel { max-width: 760px; }
.tab-panel { border-top-left-radius: 0; border-top: 0; }
.nav-tabs .nav-link { color: var(--sbp-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--sbp-ink); }
.toast-region .alert { margin-bottom: 1rem; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.stat-card { background: #fff; border: 1px solid var(--sbp-line); border-radius: var(--sbp-radius); padding: 1.1rem 1.25rem; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sbp-muted); margin: 0 0 .35rem; font-weight: 600; }
.stat-value { font-size: 1.9rem; font-weight: 700; margin: 0 0 .6rem; }
.stat-of { font-size: .95rem; font-weight: 500; color: var(--sbp-muted); }
.stat-card .progress { height: 6px; }

/* Filters + tables */
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; background: #fff; border: 1px solid var(--sbp-line); border-radius: var(--sbp-radius); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.filter-bar > div { min-width: 140px; }
.filter-bar .form-label { font-size: .78rem; font-weight: 600; color: var(--sbp-muted); margin-bottom: .2rem; }
.filter-actions { min-width: auto !important; }
table.dataTable thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sbp-muted); }
.cell-url { max-width: 260px; }
.cell-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }
.score-pill { display: inline-block; min-width: 2.6rem; text-align: center; padding: .2rem .55rem; border-radius: 99px; font-weight: 700; font-size: .9rem; }
.score-high { background: #dcfce7; color: #14532d; }
.score-mid { background: #fef3c7; color: #713f12; }
.score-low { background: #f1f5f9; color: #334155; }
.page-header .score-pill { font-size: 1.25rem; padding: .35rem .9rem; }
.status-chip { display: inline-block; padding: .15rem .55rem; border-radius: 6px; background: #f1f5f9; color: #1e293b; font-size: .85rem; font-weight: 500; }
.concept-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 6px; font-size: .85rem; font-weight: 500; }
.concept-done { background: #dcfce7; color: #14532d; }
.concept-busy { background: #e0f2fe; color: #0c4a6e; }
.concept-failed { background: #fee2e2; color: #7f1d1d; }
.group-mistake { background: #fee2e2; color: #7f1d1d; }
.group-contact { background: #ffedd5; color: #7c2d12; }
.group-design { background: #ede9fe; color: #4c1d95; }
.group-technical { background: #e0f2fe; color: #0c4a6e; }
.group-booking { background: #f1f5f9; color: #334155; }

/* Details */
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: .5rem 1rem; margin: 0; }
.detail-list dt { color: var(--sbp-muted); font-weight: 600; font-size: .9rem; }
.detail-list dd { margin: 0; word-break: break-word; }
.exception-block { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 8px; max-height: 480px; overflow: auto; font-size: .82rem; white-space: pre-wrap; }
.empty-panel { text-align: center; padding: 3rem 1.5rem; color: var(--sbp-muted); }
.empty-panel > i { font-size: 2rem; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state-icon { font-size: 2.6rem; color: var(--sbp-primary); margin-bottom: 1rem; }

/* Auth + maintenance */
.auth-body, .maintenance-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 10%, #dbeafe 0, transparent 40%), var(--sbp-bg); padding: 1rem; }
.auth-card, .maintenance-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--sbp-line); border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.auth-brand { color: var(--sbp-ink); padding: 0 0 1.25rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--sbp-muted); font-size: .85rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--sbp-line); }
.maintenance-card { max-width: 520px; text-align: center; font-family: "Segoe UI", system-ui, sans-serif; }
.maintenance-card h1 { font-size: 1.6rem; margin-bottom: .75rem; }

/* Small screens */
@media (max-width: 900px) {
    .app-shell { flex-direction: column; }
    .app-sidebar { width: 100%; height: auto; position: static; }
    .app-content { padding: 1.25rem 1rem 2rem; }
    .site-banner { padding: .7rem 1rem; }
    .detail-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
.validation-summary-valid { display: none; }

/* Step 5: findings and screenshots */
.finding-list { list-style: none; margin: 0; padding: 0; }
.finding { border: 1px solid var(--sbp-line); border-radius: 10px; padding: .85rem 1rem; margin-bottom: .75rem; }
.finding-primary { border-color: var(--sbp-primary); box-shadow: 0 0 0 2px rgba(29,78,216,.12); }
.finding-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.finding-points { font-weight: 700; color: var(--sbp-muted); }
.evidence-thumb { display: inline-block; margin-top: .5rem; border: 1px solid var(--sbp-line); border-radius: 6px; overflow: hidden; max-width: 100%; }
.evidence-thumb img { display: block; max-width: 100%; max-height: 180px; }
.shot-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 1rem; align-items: start; }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--sbp-line); border-radius: 8px; max-height: 720px; object-fit: cover; object-position: top; }
.shot figcaption { font-size: .85rem; color: var(--sbp-muted); margin-top: .35rem; text-align: center; }
@media (max-width: 900px) { .shot-grid { grid-template-columns: 1fr; } }

/* Step 6: concepts and draft message */
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.concept-card { margin: 0; border: 1px solid var(--sbp-line); border-radius: 10px; padding: .85rem; display: flex; flex-direction: column; gap: .6rem; }
.concept-head { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.concept-head figcaption { margin: 0; }
.concept-letter { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sbp-ink); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; font-weight: 700; }
.concept-shot { display: block; border: 1px solid var(--sbp-line); border-radius: 8px; overflow: hidden; height: 420px; }
.concept-shot img { width: 100%; display: block; }
.concept-shot:focus-visible, .preview-shot:focus-visible { outline: 3px solid var(--sbp-primary); outline-offset: 2px; }
.concept-missing { height: 420px; display: grid; place-items: center; background: #f8fafc; border: 1px dashed var(--sbp-line); border-radius: 8px; color: var(--sbp-muted); }
.concept-check { font-size: .85rem; margin: 0; flex: 1; }
.preview-shot img { width: 100%; max-width: 1200px; border: 1px solid var(--sbp-line); border-radius: 8px; }
.draft-subject { font-weight: 600; }
.draft-body { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--sbp-line); border-radius: 8px; padding: .85rem 1rem; font-size: .92rem; }
@media (max-width: 1100px) { .concept-grid { grid-template-columns: 1fr; } .concept-shot, .concept-missing { height: 320px; } }

/* Step 7: send mode strip, review, email editor, history, public pages */
.send-mode { display: flex; gap: .6rem; align-items: center; padding: .45rem 2rem; font-size: .9rem; border-bottom: 1px solid transparent; }
.send-mode a { margin-left: auto; font-weight: 600; }
.send-mode-test { background: #fffbeb; color: #713f12; border-color: #fde68a; }
.send-mode-off { background: #f1f5f9; color: #1e293b; border-color: #e2e8f0; }
.send-mode-live { background: #dcfce7; color: #14532d; border-color: #86efac; }
.send-mode-test a { color: #713f12; }
.send-mode-live a { color: #14532d; }
.check-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; }
.check-list li { display: flex; gap: .5rem; align-items: baseline; padding: .15rem 0; }
.check-list li.ok i { color: #15803d; }
.check-list li.todo { color: #7f1d1d; }
.check-list li.todo i { color: #b91c1c; }
.reject-box summary { cursor: pointer; font-weight: 500; }
.font-email { font-family: "Segoe UI", Inter, system-ui, sans-serif; font-size: .95rem; line-height: 1.5; }
.email-footer-preview { white-space: pre-wrap; font-family: inherit; font-size: .85rem; color: var(--sbp-muted); background: #f8fafc; border: 1px solid var(--sbp-line); border-radius: 8px; padding: .75rem .9rem; margin: 0; }
.email-preview-thumb { width: 100%; border: 1px solid var(--sbp-line); border-radius: 8px; }
.outreach-actions { border-top: 1px solid var(--sbp-line); padding-top: 1rem; }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--sbp-line); }
.history-list li:last-child { border-bottom: 0; }
.history-list li > i { color: var(--sbp-muted); margin-top: .25rem; width: 16px; text-align: center; }
.public-card { max-width: 460px; }
.public-from { font-weight: 700; color: var(--sbp-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) { .send-mode { padding: .45rem 1rem; flex-wrap: wrap; } }

/* ---------- Step 8: contact forms sent by hand ---------- */
.manual-send { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: .75rem .9rem; }
.manual-send ol li + li { margin-top: .35rem; }
