/* Native Chaos Holdings - Enterprise Stylesheet v2.0
 * AI Foundaries Design System · Neon lime + Purple · GitHub-dark */

/* ─── Toast Notifications ─── */
.toast {
    position: fixed; top: 80px; right: 20px; z-index: 9999;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.25rem; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease; max-width: 420px;
    font-size: 0.85rem;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-hide { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ─── Global Search ─── */
.search-wrapper { position: relative; width: 180px; transition: width 0.3s; }
.search-wrapper:focus-within { width: 280px; }
.search-input {
    width: 100%; padding: 0.4rem 0.75rem; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-input);
    color: var(--text-primary); font-family: var(--font-body);
    font-size: 0.78rem; outline: none; transition: var(--transition);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(189,255,0,0.12); }
.search-input::placeholder { color: var(--text-muted); }

.search-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 500; max-height: 360px; overflow-y: auto;
}
.search-dropdown.active { display: block; }
.search-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 0.85rem; text-decoration: none; color: var(--text-primary);
    border-bottom: 1px solid var(--border); transition: var(--transition);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-card-hover); text-decoration: none; }
.search-type { flex-shrink: 0; text-transform: uppercase; font-size: 0.6rem; padding: 0.15rem 0.4rem; }
.search-label { flex: 1; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-sub { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.search-footer { padding: 0.5rem 0.85rem; font-size: 0.72rem; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border); }
.search-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* ─── Notification Bell ─── */
.notif-bell { position: relative; cursor: pointer; padding: 4px; }
.bell-icon { font-size: 1.1rem; line-height: 1; }
.notif-dot {
    position: absolute; top: -2px; right: -4px;
    min-width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); color: #0D1117; font-size: 0.6rem;
    display: none; align-items: center; justify-content: center;
    font-weight: 700; padding: 0 3px;
}
.notif-dropdown {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
    width: 320px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 500;
    max-height: 400px; overflow-y: auto;
}
.notif-item {
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { border-left: 2px solid var(--accent); }
.notif-title { font-size: 0.85rem; font-weight: 500; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Keyboard shortcuts ─── */
kbd {
    display: inline-block; padding: 2px 6px; font-size: 0.72rem;
    font-family: var(--font-mono); background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: 3px;
    color: var(--text-primary); margin-right: 4px;
}
.shortcut-hint { font-size: 0.7rem; color: var(--text-muted); }

.filter-hint { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Deliverable Viewer ─── */
.dlv-section h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.dlv-section .form-group { margin-bottom: 0.5rem; }
.dlv-section .form-group label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.dlv-section .form-control { font-size: 0.8rem; padding: 0.35rem 0.6rem; }
.dlv-section input[type="range"] { accent-color: var(--accent); }
.dlv-section input[readonly] { cursor: default; }
.dlv-section input[type="checkbox"] { margin-right: 0.4rem; }

/* ─── Print Styles ─── */
@media print {
    .sidebar, .topbar, .filter-bar, .modal-footer, .nav-toggle, .fab, .navbar, .footer { display: none !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
    .card, .modal-content { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
    .form-control, input, select, textarea { border: none !important; background: none !important; padding: 0 !important; }
    .badge { background: none !important; color: #000 !important; border: 1px solid #999 !important; padding: 1px 4px !important; }
    body { color: #000 !important; background: #fff !important; font-size: 10pt !important; }
}

/* ─── Full-Screen Login Lock ─── */
.login-lock {
    position: fixed; inset: 0; z-index: 99999;
}
.lock-bg {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, #161B22 0%, #0D1117 70%);
    display: flex; align-items: center; justify-content: center;
}
.lock-card {
    width: 400px; max-width: 94vw; padding: 40px 36px;
    background: #161B22; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 0 80px rgba(189,255,0,0.05);
}
.lock-brand {
    text-align: center; margin-bottom: 32px;
}
.lock-brand h1 {
    font-family: var(--font-heading);
    font-size: 26px; font-weight: 900; letter-spacing: 4px; margin: 0; color: var(--accent);
}
.lock-brand p {
    font-family: var(--font-accent);
    font-size: 11px; color: var(--text-muted); margin: 6px 0 0; letter-spacing: 1px; text-transform: uppercase;
}
.lock-field { margin-bottom: 16px; }
.lock-field label {
    display: block; font-family: var(--font-accent);
    font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px;
}
.lock-field input {
    width: 100%; padding: 12px 14px; font-size: 14px;
    background: #0D1117; border: 1px solid var(--border); border-radius: var(--radius); color: #fff;
    transition: border-color 0.2s;
}
.lock-field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(189,255,0,0.1); }
.lock-error {
    padding: 8px 12px; margin-bottom: 12px; background: rgba(248,81,73,0.1);
    border: 1px solid var(--danger); border-radius: var(--radius);
    color: var(--danger); font-size: 13px; text-align: center;
}
.lock-btn {
    width: 100%; padding: 13px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
    background: var(--accent); border: none; border-radius: var(--radius); color: #0D1117; cursor: pointer;
    transition: opacity 0.2s;
}
.lock-btn:hover { opacity: 0.85; }
.lock-links {
    display: flex; justify-content: space-between; margin-top: 20px;
}
.lock-links a {
    font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.lock-links a:hover { color: var(--accent); }

/* ─── Activity Row ─── */
.activity-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .badge { flex-shrink: 0; }

/* ─── Error Card ─── */
.error-card {
    text-align: center; padding: 3rem 2rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); margin: 2rem auto; max-width: 480px;
}
.error-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

/* ─── Section Count ─── */
.section-count {
    display: inline-block; font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); margin-left: 0.5rem;
}

/* ─── Username Nav ─── */
.username-nav {
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    margin-right: 0.5rem;
}
.nav-icon {
    font-size: 1rem; padding: 4px 6px !important; line-height: 1;
}
#navAuth {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}
#navAuth .search-wrapper {
    flex-shrink: 0;
}

/* ─── Hero Actions ─── */
.hero-actions {
    display: flex; gap: 1rem; justify-content: center; align-items: center;
    margin-top: 1.5rem; position: relative;
}

/* ─── Empty State Links ─── */
.empty-state a { margin-top: 0.5rem; }

/* ─── Light Theme ─── */
[data-theme="light"] {
    --bg-primary: #F0F6FC;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F6FC;
    --bg-surface: #E1E4E8;
    --bg-input: #F0F6FC;
    --text-primary: #1F2328;
    --text-secondary: #656D76;
    --text-muted: #8B949E;
    --border: #D0D7DE;
    --border-light: #E1E4E8;
}
[data-theme="light"] .navbar { background: rgba(255,255,255,0.96); border-bottom-color: var(--border); }
[data-theme="light"] .hero {
    background: linear-gradient(180deg, #F0F6FC 0%, #FFFFFF 100%);
    border-bottom-color: var(--border);
}
[data-theme="light"] .lock-card { background: #fff; }
[data-theme="light"] .lock-bg { background: radial-gradient(ellipse at center, #F0F6FC 0%, #FFFFFF 70%); }
[data-theme="light"] .lock-field input { background: #F0F6FC; color: #1F2328; }

/* ─── Responsive Enterprise ─── */
@media (max-width: 768px) {
    .search-wrapper { width: 120px; }
    .search-wrapper:focus-within { width: 180px; }
    .notif-dropdown { width: 280px; right: -40px; }
    .nav-menu .search-wrapper { width: 100%; }
}
@media (max-width: 480px) {
    .hero h1 { font-family: var(--font-heading); font-size: 1.5rem; }
    .toast { left: 10px; right: 10px; max-width: none; }
}

/* ═══════════════════════════════════════════════════════
 * Fortune 500 Features CSS
 * FAB · Kanban · Charts · Bulk Bar · QC Modal
 * ═══════════════════════════════════════════════════════ */

/* ─── FAB (Floating Action Button) ─── */
.fab {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #0D1117; border: none;
    font-size: 1.6rem; font-weight: 300; cursor: pointer;
    box-shadow: 0 4px 20px rgba(189,255,0,0.35);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 6px 28px rgba(189,255,0,0.55); }
.fab:active { transform: scale(0.95); }

/* ─── Quick Create Modal ─── */
.qc-modal { max-width: 480px; }
.qc-tabs { display: flex; gap: 0; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.qc-tab {
    flex: 1; padding: 0.6rem; text-align: center; cursor: pointer;
    background: transparent; border: none; color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 500; border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.qc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.qc-tab:hover { color: var(--text-secondary); }
.qc-form { display: none; }
.qc-form.active { display: block; }

/* ─── Kanban Board ─── */
.kanban {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
    min-height: 60vh; overflow-x: auto;
}
.kanban-col {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    border-radius: var(--radius-lg); min-width: 200px;
    display: flex; flex-direction: column;
}
.kanban-header {
    padding: 0.85rem 1rem;
    font-family: var(--font-accent);
    font-size: 0.7rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex; justify-content: space-between; align-items: center;
}
.kanban-list {
    flex: 1; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem;
    min-height: 100px;
}
.kanban-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.85rem; cursor: pointer;
    transition: var(--transition); user-select: none;
}
.kanban-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.kanban-card[draggable="true"]:active { opacity: 0.5; }
.kanban-card-title { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; margin: 0.35rem 0; }
.kanban-card-meta { font-size: 0.72rem; color: var(--text-muted); }
.kanban-card .progress-bar { margin-top: 0.5rem; }
.kanban-empty { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* ─── Charts ─── */
.chart-bar-bg {
    background: var(--bg-surface); border-radius: 100px; height: 6px; overflow: hidden;
}
.chart-bar {
    height: 100%; background: var(--accent); border-radius: 100px;
    transition: width 0.6s ease;
}
.chart-bar-vert {
    width: 100%; border-radius: 3px 3px 0 0;
    transition: height 0.6s ease; min-height: 2px;
}

/* ─── Bulk Operations ─── */
.bulk-bar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; background: var(--bg-card);
    border: 1px solid var(--accent); border-radius: var(--radius);
    margin-bottom: 0.75rem; font-size: 0.85rem;
}
.bulk-bar .btn { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
.bulk-active td:first-child { width: 40px; }
.bulk-cb { cursor: pointer; width: 16px; height: 16px; accent-color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .kanban { grid-template-columns: repeat(3, 1fr); }
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
    .kanban { grid-template-columns: repeat(2, 1fr); }
    .fab { bottom: 1rem; right: 1rem; width: 48px; height: 48px; font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .kanban { grid-template-columns: 1fr; }
}

/* ─── Chart.js Grid ─── */
.charts-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.charts-grid canvas { max-height: 250px; max-width: 100%; }

/* ─── SortableJS Animations ─── */
.kanban-ghost {
    opacity: 0.3; background: var(--accent) !important;
    border: 2px dashed var(--accent) !important;
}
.kanban-drag {
    opacity: 0.9; transform: rotate(2deg) scale(1.02);
    box-shadow: 0 12px 40px rgba(189,255,0,0.3) !important;
}
.kanban-list.sortable-chosen { background: rgba(189,255,0,0.05); }
.kanban-list.sortable-ghost { border: 2px dashed var(--accent); }

/* ─── Intake Forms v2.1 ─── */
.intake-forms-grid {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 0.75rem;
}
.intake-form-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: var(--transition);
}
.intake-form-card:hover {
    border-color: var(--accent); background: var(--bg-card-hover);
}
.intake-form-icon { font-size: 1.5rem; flex-shrink: 0; }
.intake-form-info { flex: 1; min-width: 0; }
.intake-form-info strong { display: block; font-size: 0.85rem; }
.intake-form-info small { display: block; font-size: 0.72rem; }

/* Intake Form Modal */
.intake-modal-content {
    max-width: 720px; max-height: 90vh;
    display: flex; flex-direction: column;
}
.intake-body {
    flex: 1; overflow-y: auto; padding: 1rem;
}
.intake-form-header { margin-bottom: 1rem; }
.intake-form-header h2 { font-family: var(--font-heading); margin: 0 0 0.25rem; font-size: 1.1rem; }
.intake-section {
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.intake-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.intake-section .section-title {
    font-family: var(--font-accent);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--secondary); margin: 0 0 0.75rem;
}
.intake-fields {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.intake-fields .form-group { margin: 0; }
.intake-fields .form-group:has(textarea),
.intake-fields .form-group:has(.checkbox-label) { grid-column: 1 / -1; }
.intake-fields .form-group label { display: block; font-size: 0.75rem; margin-bottom: 0.25rem; }
.intake-fields .checkbox-label { font-size: 0.82rem; cursor: pointer; gap: 0.5rem; }
@media (max-width: 600px) {
    .intake-fields { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
 * v2.0: Component CSS + Accessibility + Focus
 * ═══════════════════════════════════════════════════════ */

/* ─── Deliverable Rows ─── */
.deliverable-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.deliverable-row:hover { background: var(--bg-card-hover); }
.deliverable-status { cursor: pointer; font-size: 1.2rem; flex-shrink: 0; }
.deliverable-info { flex: 1; min-width: 0; }
.deliverable-name { display: block; font-size: 0.85rem; font-weight: 600; }
.deliverable-desc { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

/* ─── Time Entry Rows ─── */
.time-entry-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.time-entry-hours { font-weight: 700; color: var(--accent); flex-shrink: 0; min-width: 3em; }
.time-entry-desc { flex: 1; font-size: 0.82rem; }

/* ─── Toggle Switch ─── */
.toggle-switch { display: inline-flex; align-items: center; cursor: pointer; user-select: none; position: relative; width: 34px; height: 20px; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-switch-track { width: 34px; height: 20px; border-radius: 10px; background: var(--border); position: relative; transition: background 0.2s; display: inline-block; }
.toggle-switch input:checked + .toggle-switch-track { background: var(--accent); }
.toggle-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-switch-track::after { transform: translateX(14px); }

/* ─── Extra-small Button ─── */
.btn-xs { padding: 0.15rem 0.45rem; font-size: 0.65rem; border-radius: var(--radius); line-height: 1.4; }
.btn-tertiary { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-tertiary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); color: var(--text-primary); }

/* ═══ Strategic Commercial Manual ═══ */
.manual-page { background: var(--bg); color: var(--text); }
.manual-hero { text-align: center; padding: 3rem 1.5rem 2rem; }
.manual-hero h1 { font-family: 'Outfit',system-ui,sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--accent); letter-spacing: -1px; margin-bottom: .75rem; text-wrap: balance; }
.manual-tagline { font-size: 1.05rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 1rem; line-height: 1.6; }
.manual-meta { font-size: .8rem; color: var(--text-muted); letter-spacing: .05em; }
.manual-search-box { max-width: 480px; margin: 1.5rem auto 0; display: flex; gap: 0; }
.manual-search-box input { flex: 1; padding: .65rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px 0 0 3px; color: var(--text); font-size: .9rem; outline: 0; }
.manual-search-box input:focus { border-color: var(--accent); }
.manual-search-box button { padding: .65rem 1.25rem; background: var(--accent); color: #0D1117; border: none; border-radius: 0 3px 3px 0; font-weight: 700; cursor: pointer; font-size: .85rem; }

.manual-landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; padding: 1rem 1.5rem 3rem; max-width: 1200px; margin: 0 auto; }
.manual-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.manual-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.manual-card .card-num { font-family: 'Outfit',system-ui,sans-serif; font-size: .7rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: .5rem; display: block; }
.manual-card h3 { font-family: 'Outfit',system-ui,sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; text-wrap: balance; }
.manual-card p { font-size: .8rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.manual-card-gold { border-color: #f59e0b; }
.manual-card-gold .card-num { color: #f59e0b; }
.manual-card-accent { border-color: var(--accent); }
.manual-card-accent .card-num { color: var(--accent); font-size: 1.2rem; }

.manual-layout { display: flex; max-width: 1400px; margin: 0 auto; padding: 0; min-height: calc(100dvh - 220px); }
.manual-sidebar { width: 260px; min-width: 260px; background: var(--bg-card); border-right: 1px solid var(--border); padding: 1rem 0; overflow-y: auto; max-height: calc(100dvh - 120px); position: sticky; top: 0; }
.manual-sidebar::-webkit-scrollbar { width: 4px; }
.manual-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.manual-sidebar .sec-title { padding: .6rem 1rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.manual-sidebar a { display: block; padding: .45rem 1rem .45rem 1.5rem; font-size: .82rem; color: var(--text-secondary); text-decoration: none; border-left: 3px solid transparent; transition: all .1s; }
.manual-sidebar a:hover { color: var(--text); background: var(--bg-card-hover); border-left-color: var(--accent); }
.manual-sidebar a.active { color: var(--accent); background: rgba(189,255,0,.08); border-left-color: var(--accent); font-weight: 600; }
.manual-content-area { flex: 1; padding: 2rem 2.5rem; max-width: 900px; }
.manual-content-area .page-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.manual-content-area .page-header h1 { font-family: 'Outfit',system-ui,sans-serif; font-size: 1.75rem; font-weight: 900; color: var(--text); margin-bottom: .35rem; text-wrap: balance; }
.manual-content-area .page-header .subtitle { font-size: .95rem; color: var(--text-secondary); }
.manual-breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }
.manual-breadcrumb a { color: var(--accent); text-decoration: none; }
.manual-breadcrumb a:hover { text-decoration: underline; }

.manual-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; padding: 2rem; }
.manual-content h2 { font-family: 'Outfit',system-ui,sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); text-wrap: balance; }
.manual-content h3 { font-family: 'Outfit',system-ui,sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 .75rem; }
.manual-content h4 { font-family: 'Outfit',system-ui,sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 .5rem; }
.manual-content p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; font-size: .92rem; }
.manual-content strong { color: var(--text); }
.manual-content ul, .manual-content ol { margin: .75rem 0 1.25rem; padding-left: 1.5rem; color: var(--text-secondary); }
.manual-content li { margin-bottom: .4rem; font-size: .9rem; line-height: 1.6; }
.manual-content a { color: var(--accent); text-decoration: none; font-weight: 600; }
.manual-content a:hover { text-decoration: underline; }
.manual-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem; border: 1px solid var(--border); }
.manual-content th { background: var(--bg-card-hover); color: var(--text); font-weight: 700; text-align: left; padding: .6rem .8rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--accent); }
.manual-content td { padding: .5rem .8rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.manual-content tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.manual-content tr:hover td { background: rgba(189,255,0,.04); }
.manual-content pre, .manual-content code { font-family: 'Courier New',monospace; }
.manual-content code { font-size: .82rem; background: rgba(189,255,0,.1); padding: .1rem .35rem; border-radius: 2px; color: var(--accent); }
.manual-content pre { background: var(--bg); border: 1px solid var(--border); border-radius: 3px; padding: 1rem; overflow-x: auto; margin: 1rem 0; font-size: .82rem; color: var(--text-secondary); }
.manual-callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 3px; border-left: 4px solid; font-size: .88rem; background: var(--bg-card); }
.manual-callout strong { display: block; margin-bottom: .25rem; font-family: 'Outfit',system-ui,sans-serif; }
.manual-callout.info { border-color: var(--accent); background: rgba(189,255,0,.06); }
.manual-callout.warning { border-color: #eab308; background: rgba(234,179,8,.08); }
.manual-callout.success { border-color: #22c55e; background: rgba(34,197,94,.06); }
.manual-callout.danger { border-color: #ef4444; background: rgba(239,68,68,.06); }
.manual-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: .4rem .6rem; border-radius: 3px; cursor: pointer; font-size: 1.1rem; margin: .5rem 1rem; }

.manual-search-results { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; padding: 1.5rem; max-width: 520px; width: 90%; max-height: 70vh; overflow-y: auto; z-index: 5000; }
.manual-search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .85rem; color: var(--text-muted); }
.manual-search-item { padding: .65rem 0; border-bottom: 1px solid var(--border); }
.manual-search-item:last-child { border-bottom: none; }
.manual-search-item strong { font-size: .9rem; color: var(--text); display: block; margin: .2rem 0 .15rem; }
.manual-search-item p { font-size: .8rem; color: var(--text-secondary); margin: 0; }
.manual-search-item .badge { font-size: .6rem; padding: .1rem .4rem; border-radius: 2px; font-weight: 700; text-transform: uppercase; }
.badge-framework { background: rgba(189,255,0,.15); color: var(--accent); }
.badge-methodology { background: rgba(168,85,247,.15); color: #A855F7; }
.badge-best_practice { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-data_insight { background: rgba(59,130,246,.15); color: #3b82f6; }
.badge-template { background: rgba(245,158,11,.15); color: #f59e0b; }

@media (max-width: 1024px) {
  .manual-sidebar { display: none; }
  .manual-sidebar.open { display: block; position: fixed; top: 0; left: 0; width: 100%; max-height: 100dvh; z-index: 999; background: var(--bg-card); border: none; }
  .manual-content-area { padding: 1.25rem; }
  .manual-toggle { display: block; }
  .manual-layout { flex-direction: column; }
  .manual-hero h1 { font-size: 1.75rem; }
  .manual-landing-grid { grid-template-columns: 1fr; padding: 1rem; }
}

@media print {
  .nch-topbar, .nch-header, .nch-footer, .nch-nav, .nch-actions, .manual-sidebar, .manual-toggle, .manual-search-box { display: none !important; }
  .manual-layout { display: block; }
  .manual-content-area { max-width: 100%; padding: 0; }
  .manual-content { box-shadow: none; border: none; padding: 0; }
  body { background: #fff; color: #000; }
  .manual-content p, .manual-content li { color: #333; }
}

/* ─── Modal Body + Footer ─── */
.modal-body { padding: 1.5rem; overflow-y: auto; }
.modal-footer { position: sticky; bottom: 0; background: var(--bg-card); border-top: 1px solid var(--border); padding: 0.75rem 1.5rem; }

/* ─── Accessibility: Focus + Screen Reader ─── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Skip to Content ─── */
.skip-link {
    position: absolute; top: -100px; left: 8px; z-index: 10000;
    padding: 8px 16px; background: var(--accent); color: #0D1117;
    border-radius: var(--radius); font-weight: 700; font-size: 0.85rem;
    transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

/* ─── Dropdown Keyboard Access ─── */
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown:hover .dropdown-menu { display: block; }

/* ─── Badge Contrast ─── */
.badge-success { background: rgba(63,185,80,0.25); color: var(--success); }
.badge-warning { background: rgba(210,153,34,0.25); color: var(--warning); }
.badge-danger { background: rgba(248,81,73,0.25); color: var(--danger); }
.badge-info { background: rgba(88,166,255,0.25); color: var(--info); }
.badge-primary { background: rgba(189,255,0,0.25); color: var(--accent); }
.badge-completed { background: rgba(63,185,80,0.25); color: var(--success); }
.badge-in_progress { background: rgba(88,166,255,0.25); color: var(--info); }
.badge-not_started { background: rgba(72,79,88,0.25); color: var(--text-muted); }
.badge-delivered { background: rgba(63,185,80,0.25); color: var(--success); }
.badge-active { background: rgba(63,185,80,0.25); color: var(--success); }

/* ─── Skeleton Loading ─── */
.skeleton-header {
    height: 32px; width: 40%; margin: 2rem auto 1.5rem;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.skeleton-card {
    height: 100px; border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skeleton-line {
    height: 16px; width: 100%; margin-bottom: 0.75rem; border-radius: var(--radius);
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skeleton-line.short { width: 60%; }
@media (max-width: 768px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Modal Entrance Animation ─── */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay .modal {
    animation: modalSlideIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── Breadcrumb ─── */
.breadcrumb { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.breadcrumb ul { display: flex; list-style: none; gap: 0.5rem; align-items: center; padding: 0.75rem 0; margin: 0; font-size: 0.78rem; }
.breadcrumb a:hover { color: var(--accent) !important; text-decoration: none; }

/* ─── NCH Header/Footer (for auth-gate standalone pages) ─── */
.nch-topbar {
  background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
  padding: 10px 0; text-align: center; position: relative; z-index: 101;
}
.nch-topbar p {
  color: var(--text-primary); font-family: var(--font-body);
  font-size: 14px; font-weight: 700; line-height: 14px;
  margin: 0; display: inline;
}
.nch-topbar .nch-btn-pill {
  display: inline-block; margin-left: 20px;
  padding: 8px 20px 6px; background: transparent;
  border: 3px solid var(--text-primary); border-radius: 100px;
  color: var(--accent); font: 700 14px/14px var(--font-body);
  text-decoration: none; text-transform: uppercase; transition: color 0.2s;
}
.nch-topbar .nch-btn-pill:hover { color: var(--text-primary); }
.nch-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 50px; height: 80px; border-bottom: 1px solid var(--border);
}
.nch-header .nch-logo img { height: 50px; width: auto; }
.nch-header .nch-logo a { display: block; }
.nch-header .nch-nav { display: flex; align-items: center; gap: 30px; }
.nch-header .nch-nav a {
  color: var(--text-secondary); font: 400 16px/24px var(--font-body);
  text-decoration: none; transition: color 0.2s; letter-spacing: 0.5px;
}
.nch-header .nch-nav a:hover,
.nch-header .nch-nav a.active { color: var(--accent); }
.nch-header .nch-actions { display: flex; align-items: center; gap: 15px; }
.nch-header .nch-actions .nch-btn-link {
  background: transparent; border: none; color: var(--accent);
  font: 400 16px/18px var(--font-accent); text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.5px;
}
.nch-header .nch-actions .nch-btn-link:hover { color: var(--secondary); }
.nch-footer {
  border-top: 1px solid var(--border); padding: 115px 50px 0;
  max-width: var(--container); margin: 0 auto;
}
.nch-footer-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.nch-footer-col { flex: 1 1 200px; }
.nch-footer-col:first-child { flex: 2 1 300px; }
.nch-footer h4 {
  font: 400 16px/18px var(--font-accent); color: var(--text-primary);
  text-transform: uppercase; margin: 0 0 20px; letter-spacing: 0.5px;
}
.nch-footer a {
  display: block; color: var(--text-secondary);
  font: 400 14px/24px var(--font-body); text-decoration: none;
  margin-bottom: 10px; transition: color 0.2s;
}
.nch-footer a:hover { color: var(--accent); }
.nch-footer-bottom {
  background: var(--bg-secondary); padding: 18px 0; margin-top: 115px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.nch-footer-bottom p { color: var(--text-primary); font: 400 16px/24px var(--font-body); margin: 0; }
@media (max-width: 1024px) {
  .nch-header { padding: 0 20px; }
  .nch-footer { padding: 115px 20px 0; }
}
@media (max-width: 767px) {
  .nch-header { flex-wrap: wrap; height: auto; padding: 10px 20px; gap: 10px; }
  .nch-header .nch-nav { order: 3; width: 100%; justify-content: center; gap: 15px; }
}
/* ─── Nav Mobile Toggle A11y ─── */
.nav-toggle[aria-expanded="true"] + .nav-menu { display: flex; }
@media (max-width: 768px) {
    .nav-toggle[aria-expanded="true"] + .nav-menu { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; border: none; max-height: none; background: rgba(255,255,255,.02); padding-left: 1rem; min-width: 0; }
    .nav-dropdown:focus-within .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu { display: block; }
}

/* ─── Tradeshow Pro module ─── */
.ts-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: start; }
.ts-sidebar { background: var(--bg-card, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.ts-group { margin-bottom: .5rem; }
.ts-group-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: .5rem .25rem .25rem; }
.ts-entity { display: block; padding: .4rem .6rem; border-radius: var(--radius-sm, 6px); color: var(--text); text-decoration: none; font-size: .9rem; }
.ts-entity:hover { background: var(--border); }
.ts-entity.active { background: var(--accent); color: var(--bg, #0D1117); font-weight: 600; }
.ts-content { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .8rem; color: var(--text-muted); }
.form-group .form-control, .form-group select, .form-group textarea { width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { position: sticky; top: 0; background: var(--bg); color: var(--text-muted); font-weight: 600; z-index: 1; }
.data-table tbody tr:hover { background: var(--border); }
.table-responsive { overflow-x: auto; }
.muted { color: var(--text-muted); }
.text-right { text-align: right; }
.justifyEnd { justify-content: flex-end; }
@media (max-width: 820px) { .ts-layout { grid-template-columns: 1fr; } .ts-sidebar { position: static; max-height: 260px; } .form-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
 * Trade Show Tools - SPA Integration CSS
 * All 26 tool render functions in js/modules/tools.js
 * ═══════════════════════════════════════════════════════ */

/* ─── Tool Page Layout ─── */
.tool-page { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.tool-header { text-align: center; margin-bottom: 2rem; }
.tool-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.5rem; }
.tool-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; line-height: 1.1; margin: 0; color: var(--text-primary); }
.tool-title em { font-style: normal; color: var(--accent); }
.tool-sub { font-size: 0.88rem; color: var(--text-secondary); max-width: 600px; margin: 0.75rem auto 0; line-height: 1.5; }
.tool-back { display: inline-block; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1rem; transition: color 0.15s; }
.tool-back:hover { color: var(--accent); text-decoration: none; }

/* ─── Tool Meta & Progress ─── */
.tool-meta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tool-meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.tool-progress { margin-bottom: 1.5rem; }
.tool-progress-bar { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; }
.tool-progress-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.3s ease; width: 0; }
.tool-progress-text { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ─── Tool Cards & Questions ─── */
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 0.75rem; }
.tool-q { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 0.75rem; line-height: 1.5; }
.tool-q strong { color: var(--accent); margin-right: 0.25rem; }
.tool-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-opts button,
.tool-opt { padding: 0.45rem 0.85rem; font-size: 0.78rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-input); color: var(--text-secondary); cursor: pointer; transition: all 0.15s; font-family: var(--font-body); }
.tool-opts button:hover,
.tool-opt:hover { border-color: var(--accent); color: var(--text-primary); }
.tool-opts button.sel,
.tool-opt.sel { background: rgba(189,255,0,0.12); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tool-opt input[type="radio"] { margin-right: 0.4rem; accent-color: var(--accent); }

/* ─── Assessment Question Card ─── */
.tool-qcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem; transition: border-color 0.2s; }
.tool-qcard.answered { border-color: var(--accent); }
.tool-qcrit { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.4rem; }
.tool-qcrit.tcrit { background: rgba(239,68,68,0.2); color: var(--red, #ef4444); }
.tool-qcrit.timp { background: rgba(245,158,11,0.2); color: var(--warning, #f59e0b); }
.tool-qcrit.tstd { background: rgba(139,148,158,0.2); color: var(--text-muted); }
.tool-qtext { font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.6rem; line-height: 1.5; }

/* ─── Dimension Sections ─── */
.tool-dim { margin-bottom: 1.5rem; }
.tool-dim-header { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.tool-dim-num { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tool-dim-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.tool-dim-score { font-size: 1.1rem; font-weight: 700; }

/* ─── Result Panels ─── */
.tool-results-panel { display: none; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.tool-results-panel.visible { display: block; animation: fadeIn 0.3s ease; }
.tool-result { display: none; margin-top: 1.5rem; }
.tool-result.show { display: block; animation: fadeIn 0.3s ease; }
.tool-result-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; font-weight: 600; }
.tool-result-block { padding: 1.5rem; border-radius: var(--radius); text-align: center; margin-bottom: 1rem; }

/* ─── Score Tiers ─── */
.tool-big-score { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; line-height: 1; margin: 0.5rem 0; }
.tool-big-score span { font-size: 1rem; }
.tool-tier { text-align: center; margin-top: 0.5rem; }
.tool-tier-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tool-tier-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }
.tool-tier-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.tool-tier-head h3 { font-size: 0.9rem; font-weight: 700; margin: 0; }
.tool-tier-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ─── Tags ─── */
.tool-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.15rem 0.5rem; border-radius: 3px; }
.tool-tag-g { background: rgba(63,185,80,0.2); color: var(--success, #3fb950); }
.tool-tag-y { background: rgba(210,153,34,0.2); color: var(--warning, #d29922); }
.tool-tag-r { background: rgba(248,81,73,0.2); color: var(--danger, #f85149); }

/* ─── Checkboxes ─── */
.tool-ck { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.15s; }
.tool-ck:hover { color: var(--text-primary); }
.tool-ck input[type="checkbox"] { margin-top: 0.15rem; accent-color: var(--accent); flex-shrink: 0; }
.tool-ck.done { color: var(--accent); text-decoration: line-through; opacity: 0.7; }

/* ─── Badges ─── */
.tool-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 3px; }
.tool-badge-green { background: rgba(63,185,80,0.2); color: var(--success, #3fb950); }
.tool-badge-red { background: rgba(248,81,73,0.2); color: var(--danger, #f85149); }
.tool-badge-yellow { background: rgba(210,153,34,0.2); color: var(--warning, #d29922); }

/* ─── Tables ─── */
.tool-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.75rem; }
.tool-table th { text-align: left; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--border); background: var(--bg-input); }
.tool-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.tool-table tbody tr:hover { background: var(--bg-card-hover); }

/* ─── Show Card (multi-item scoring) ─── */
.tool-show-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem; }
.tool-show-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; gap: 0.75rem; }
.tool-show-name { flex: 1; padding: 0.5rem 0.75rem; font-size: 0.85rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); outline: none; font-family: var(--font-body); }
.tool-show-name:focus { border-color: var(--accent); }
.tool-show-score { font-size: 1.2rem; font-weight: 700; min-width: 3em; text-align: right; }
.tool-factor-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.tool-factor-label { font-size: 0.82rem; color: var(--text-secondary); flex: 1; }
.ss-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-input); color: var(--text-secondary); cursor: pointer; font-size: 0.8rem; font-weight: 600; transition: all 0.15s; }
.ss-btn:hover { border-color: var(--accent); }
.ss-btn.sel { background: var(--accent); color: #0D1117; border-color: var(--accent); }
.spon-fbtns, .cand-qbtns { display: flex; gap: 0.35rem; }

/* ─── Verdict & Bars ─── */
.tool-verdict { text-align: center; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.tool-verdict h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; margin: 0 0 0.5rem; }
.tool-verdict p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.tool-bar-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.tool-bar-lbl { font-size: 0.78rem; font-weight: 600; min-width: 80px; text-align: right; }
.tool-bar-trk { flex: 1; height: 8px; background: var(--border); border-radius: 100px; overflow: hidden; }
.tool-bar-fill { height: 100%; border-radius: 100px; transition: width 0.5s ease; }

/* ─── KPI Grid ─── */
.tool-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.tool-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.tool-kpi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.35rem; }
.tool-kpi-val { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.tool-kpi-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ─── Dimension Result Cards ─── */
.tool-dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.tool-dim-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem; text-align: center; }
.tool-dim-card-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.3rem; }
.tool-dim-card-score { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; }
.tool-dim-card-score span { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Calculator ─── */
.tool-calc { max-width: 700px; margin: 0 auto; }
.tool-cat-section { margin-bottom: 1.5rem; }
.tool-cat-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding: 0.5rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.tool-line-item { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.tool-line-item label { font-size: 0.82rem; color: var(--text-secondary); flex: 1; }
.tool-line-item input { width: 120px; padding: 0.4rem 0.6rem; font-size: 0.82rem; text-align: right; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-family: var(--font-mono); outline: none; }
.tool-line-item input:focus { border-color: var(--accent); }

/* ─── Totals Bar ─── */
.tool-totals-bar { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; padding: 1rem 0; margin-top: 1rem; border-top: 2px solid var(--border); }
.tool-total { text-align: center; }
.tool-total-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; }
.tool-total-val { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.tool-variance { font-size: 0.78rem; color: var(--text-secondary); text-align: center; }
.tool-accent { color: var(--accent) !important; }

/* ─── Input Grid (2 columns) ─── */
.tool-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.tool-input-block h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 0.75rem; }
.tool-field { margin-bottom: 0.6rem; }
.tool-field label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.tool-field input { width: 100%; padding: 0.45rem 0.65rem; font-size: 0.82rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); outline: none; font-family: var(--font-body); }
.tool-field input:focus { border-color: var(--accent); }
.tool-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.tool-row label { font-size: 0.82rem; color: var(--text-secondary); flex: 1; }
.tool-row input { width: 100px; padding: 0.4rem 0.6rem; font-size: 0.82rem; text-align: right; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); outline: none; }

/* ─── Sliders ─── */
.tool-slider { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.tool-slider span { font-size: 0.72rem; color: var(--text-muted); min-width: 80px; }
.tool-slider span:last-of-type { text-align: right; }
.tool-range { flex: 1; accent-color: var(--accent); }
.tool-slider-score { font-size: 1rem; font-weight: 700; min-width: 2em; text-align: center; }
.tool-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; }
.tool-card-title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.tool-card-hint { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Submit Area ─── */
.tool-submit-area { text-align: center; margin: 1.5rem 0; }
.tool-submit-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.tool-submit-area .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tool-submit-area .btn.ready { background: var(--accent); color: #0D1117; }

/* ─── Mode Sections (Booth Content Audit) ─── */
.tool-mode { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem; }
.tool-mode-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.tool-mode-info h3 { font-size: 0.8rem; font-weight: 700; margin: 0; }
.tool-mode-info p { font-size: 0.72rem; color: var(--text-muted); margin: 0; }
.tool-mode-score { font-size: 0.9rem; font-weight: 700; min-width: 3em; text-align: right; }

/* ─── Calendar Grid ─── */
.tool-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.tool-cal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.tool-cal-card h3 { font-size: 0.8rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text-primary); }
.tool-cal-card input,
.tool-cal-card select { width: 100%; padding: 0.4rem 0.6rem; font-size: 0.82rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); margin-bottom: 0.4rem; outline: none; font-family: var(--font-body); }
.tool-cal-card select { cursor: pointer; }
.cal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }

/* ─── Touch Timeline ─── */
.tool-timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; }
.tool-touch { padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; }
.touch-week { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; }
.touch-label { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.tool-touch select,
.tool-touch input { width: 100%; padding: 0.45rem 0.65rem; font-size: 0.82rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); margin-bottom: 0.5rem; outline: none; font-family: var(--font-body); }

/* ─── Confirmation Tracker Row ─── */
.tool-ct-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; transition: border-color 0.2s; }
.tool-ct-row.done { border-color: var(--success, #3fb950); opacity: 0.7; }
.tool-ct-row .ct-name { flex: 1; padding: 0.4rem 0.6rem; font-size: 0.82rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); outline: none; }
.tool-ct-row label { font-size: 0.78rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.tool-ct-row input[type="checkbox"] { accent-color: var(--accent); }

/* ─── Section ─── */
.tool-section { margin-bottom: 2rem; }
.tool-section h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; margin: 0 0 0.5rem; }
.tool-section h2 em { font-style: normal; color: var(--accent); }
.tool-section p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Principles Grid ─── */
.tool-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1rem; }
.tool-principle { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.tool-principle h4 { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--accent); margin: 0 0 0.35rem; }
.tool-principle p { font-size: 0.75rem; color: var(--text-secondary); margin: 0; line-height: 1.4; }

/* ─── Services Grid ─── */
.tool-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.tool-service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color 0.2s; }
.tool-service-card:hover { border-color: var(--accent); }
.tool-service-num { font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.tool-service-card h3 { font-size: 0.9rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--text-primary); }
.tool-service-card p { font-size: 0.78rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ─── CTA Section ─── */
.tool-cta { text-align: center; padding: 2rem; background: var(--bg-card); border: 1px solid var(--accent); border-radius: var(--radius); margin-top: 2rem; }
.tool-cta h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; margin: 0 0 0.5rem; }
.tool-cta p { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 1rem; }

/* ─── Score Tier Colors (result blocks) ─── */
.score-critical { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.3); }
.score-weak { background: rgba(210,153,34,0.1); border: 1px solid rgba(210,153,34,0.3); }
.score-average { background: rgba(139,148,158,0.1); border: 1px solid rgba(139,148,158,0.3); }
.score-strong { background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.3); }
.score-elite { background: rgba(189,255,0,0.1); border: 1px solid rgba(189,255,0,0.3); }

/* ─── Tools Grid (renderTools landing page) ─── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.tools-landing-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.85rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text-primary); transition: border-color 0.15s, transform 0.15s; cursor: pointer; }
.tools-landing-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tools-landing-card__label { font-size: 0.85rem; font-weight: 600; }
.tools-landing-card__desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }
.tools-landing-card:hover .tools-landing-card__desc { color: var(--text-secondary); }
.tools-landing-card__arrow { font-size: 0.9rem; color: var(--text-muted); transition: color 0.15s; align-self: flex-end; margin-top: 0.25rem; }
.tools-landing-card:hover .tools-landing-card__arrow { color: var(--accent); }

/* ─── Tools Responsive ─── */
@media (max-width: 768px) {
    .tool-input-grid { grid-template-columns: 1fr; }
    .tool-principles { grid-template-columns: 1fr 1fr; }
    .tool-cal-grid { grid-template-columns: 1fr; }
    .tool-title { font-size: 1.6rem; }
    .tool-big-score { font-size: 2.5rem; }
}
@media (max-width: 480px) {
    .tool-principles { grid-template-columns: 1fr; }
    .tool-kpi-grid { grid-template-columns: 1fr 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
}

/* ─── Tools Landing Page: Categorized Layout ─── */
.tool-category { margin-bottom: 2.5rem; }
.tool-category__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.tool-category__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.tool-category__subtitle { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0 0 0; max-width: 400px; }

@media (max-width: 768px) {
    .tool-category__title { font-size: 1.1rem; }
    .tool-category__subtitle { font-size: 0.75rem; }
    .tool-card__desc { display: none; }
}

/* ─── Dashboard Grid Layout ─── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.dashboard-section { grid-column: span 1; }
.dashboard-section--wide { grid-column: 1 / -1; }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-section { grid-column: 1; }
}

/* ─── Quick Actions ─── */
.quick-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; padding: 0.5rem 0; }
.quick-action-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text-primary); transition: border-color 0.15s, transform 0.15s; cursor: pointer; }
.quick-action-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.quick-action-icon { font-size: 1.4rem; }
.quick-action-label { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; }
.quick-action-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; }

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 3rem 2rem; margin: 1.5rem 0; background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state--onboarding { border-color: rgba(189,255,0,0.3); background: rgba(189,255,0,0.03); }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state__title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.5rem; }
.empty-state__message { font-size: 0.85rem; color: var(--text-secondary); max-width: 400px; margin: 0 auto 1.25rem; }
.empty-state__actions { display: flex; gap: 0.75rem; justify-content: center; }

/* ─── Onboarding Modal ─── */
.onboarding-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.3s ease; }
.onboarding-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: modalSlideIn 0.3s ease; }
.onboarding-illustration { font-size: 3rem; margin-bottom: 1rem; }
.onboarding-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.75rem; }
.onboarding-content { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 1.5rem; }
.onboarding-progress { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.2s; display: inline-block; }
.onboarding-dot.active { background: var(--accent); }
.onboarding-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.onboarding-actions > :first-child { width: auto; }
.onboarding-actions .btn { min-width: 100px; }

/* ─── Breadcrumb ─── */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb-sep { color: var(--border); font-size: 0.7rem; }

/* ─── Stepper Component ─── */
.stepper { display: flex; align-items: center; gap: 0; margin: 1.5rem 0; }
.stepper-step { display: flex; align-items: center; gap: 0.5rem; flex: 1; position: relative; }
.stepper-step:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--border); margin: 0 0.75rem; }
.stepper-step.active:not(:last-child)::after { background: var(--accent); }
.stepper-step.completed:not(:last-child)::after { background: var(--success); }
.stepper-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; border: 2px solid var(--border); color: var(--text-muted); flex-shrink: 0; }
.stepper-step.active .stepper-circle { border-color: var(--accent); color: var(--accent); }
.stepper-step.completed .stepper-circle { background: var(--success); border-color: var(--success); color: #000; }
.stepper-label { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.stepper-step.active .stepper-label { color: var(--text-primary); font-weight: 600; }

/* ─── Tool Card (landing page) description always visible ─── */
@media (max-width: 768px) {
    .tool-category__title { font-size: 1.1rem; }
    .tool-category__subtitle { font-size: 0.75rem; }
    .tools-landing-card__desc { display: none; }
}

/* ─── Page transition animation ─── */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.main-content > .container, .main-content > :not(.loading) { animation: pageIn 0.2s ease; }

/* ─── Focus visible accessibility ─── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ─── Light theme tokens ─── */
[data-theme="light"] {
    --bg-primary: #F5F5F4;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-card-hover: #F0F0EE;
    --text-primary: #1A1A18;
    --text-secondary: #4A4A48;
    --text-muted: #8A8A88;
    --border: #D4D4D2;
    --border-light: #E4E4E2;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.08);
}
