/* TeamPosts — brand styles on top of Bootstrap 5 (CDN). No build step required. */
:root {
    --tp-indigo: #4F46E5;
    --tp-indigo-600: #4338CA;
    --tp-cyan: #06B6D4;
    --tp-lime: #A3E635;
    --tp-navy: #0B1026;
    --tp-navy-2: #141A3A;
    --tp-ink: #1E2238;
    --tp-muted: #6B7280;
    --tp-bg: #F5F6FB;
    --tp-border: #E5E7F0;
    --tp-grad: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --tp-radius: 14px;
    --bs-primary: #4F46E5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4F46E5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338CA;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-color: #1E2238;
    --bs-border-radius: .6rem;
}

body { background: var(--tp-bg); -webkit-font-smoothing: antialiased; }
body.tp-public { background: #fff; }
h1, h2, h3, h4, h5, .fw-800 { letter-spacing: -.02em; }
.fw-800 { font-weight: 800 !important; }
.text-grad { background: var(--tp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted-2 { color: var(--tp-muted) !important; }
.small-caps { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--tp-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.break-all { word-break: break-all; }
.min-w-0 { min-width: 0; }

/* Buttons */
.btn { font-weight: 600; }
.btn-primary { --bs-btn-bg: #4F46E5; --bs-btn-border-color: #4F46E5; --bs-btn-hover-bg: #4338CA; --bs-btn-hover-border-color: #4338CA; --bs-btn-active-bg: #3730A3; --bs-btn-disabled-bg: #4F46E5; --bs-btn-disabled-border-color: #4F46E5; }
.btn-outline-primary { --bs-btn-color: #4F46E5; --bs-btn-border-color: #4F46E5; --bs-btn-hover-bg: #4F46E5; --bs-btn-hover-border-color: #4F46E5; --bs-btn-active-bg: #4338CA; }
.btn-grad { background: var(--tp-grad); color: #fff; border: 0; box-shadow: 0 8px 24px -10px rgba(79, 70, 229, .7); }
.btn-grad:hover, .btn-grad:focus { color: #fff; filter: brightness(1.07); }
.btn-lime { background: var(--tp-lime); color: var(--tp-navy); border: 0; }
.btn-lime:hover { background: #bef264; color: var(--tp-navy); }
.btn-soft { background: rgba(79, 70, 229, .08); color: var(--tp-indigo); border: 0; }
.btn-soft:hover { background: rgba(79, 70, 229, .16); color: var(--tp-indigo-600); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #A5B4FC; box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }
.form-check-input:checked { background-color: var(--tp-indigo); border-color: var(--tp-indigo); }

/* Cards */
.card { border: 1px solid var(--tp-border); border-radius: var(--tp-radius); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card-header { background: #fff; border-bottom: 1px solid var(--tp-border); border-radius: var(--tp-radius) var(--tp-radius) 0 0 !important; font-weight: 700; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(30, 34, 56, .25); }
.stat .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .stat-label { color: var(--tp-muted); font-size: .85rem; }

/* Navbar */
.tp-nav { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--tp-border); }
.tp-nav .nav-link { font-weight: 600; color: var(--tp-ink); }
.tp-nav .nav-link:hover, .tp-nav .nav-link.active { color: var(--tp-indigo); }
.tp-nav-dark { background: rgba(11, 16, 38, .85); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tp-nav-dark .nav-link { color: rgba(255, 255, 255, .85); }
.tp-nav-dark .nav-link:hover { color: #fff; }
.tp-logo { height: 34px; width: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--tp-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.badge-pro { background: var(--tp-grad); color: #fff; font-weight: 700; }
.badge-free { background: #EEF0F7; color: var(--tp-ink); font-weight: 700; }

/* Hero */
.tp-hero { background: var(--tp-navy); color: #fff; position: relative; overflow: hidden; padding: 7.5rem 0 5rem; }
.tp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.tp-hero .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.tp-hero .glow.g1 { width: 520px; height: 520px; background: #4F46E5; top: -180px; right: -120px; }
.tp-hero .glow.g2 { width: 420px; height: 420px; background: #06B6D4; bottom: -220px; left: -120px; opacity: .35; }
.tp-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; }
.tp-hero .lead { color: rgba(255, 255, 255, .78); }
.hero-form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: .5rem; }
.hero-form .form-control { background: transparent; border: 0; color: #fff; font-size: 1.1rem; }
.hero-form .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.hero-form .form-control:focus { box-shadow: none; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .8rem; border-radius: 99px; background: rgba(163, 230, 53, .12); color: var(--tp-lime); font-weight: 700; font-size: .82rem; }
.hero-preview { background: #fff; color: var(--tp-ink); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }

/* Marketing sections */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--tp-navy); color: #fff; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; background: rgba(79, 70, 229, .1); color: var(--tp-indigo); }
.logos-strip { color: var(--tp-muted); font-weight: 700; letter-spacing: .02em; }
.price-card.featured { border: 2px solid var(--tp-indigo); box-shadow: 0 24px 48px -24px rgba(79, 70, 229, .5); }
.check-list { list-style: none; padding-left: 0; }
.check-list li { padding: .3rem 0 .3rem 1.8rem; position: relative; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .28rem; color: #10B981; font-weight: 700; }
.check-list.x li::before { content: "\F62A"; color: #CBD5E1; }

/* Pipeline */
.pipeline { display: flex; flex-wrap: wrap; gap: .5rem; counter-reset: step; }
.pipeline .step { position: relative; display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem .55rem .6rem; border-radius: 99px; border: 1px solid var(--tp-border); background: #fff; font-weight: 600; font-size: .88rem; color: var(--tp-ink); text-decoration: none; }
.pipeline .step .num { counter-increment: step; width: 24px; height: 24px; border-radius: 50%; background: #EEF0F7; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }
.pipeline .step .num::before { content: counter(step); }
.pipeline .step.done { border-color: #A7F3D0; background: #ECFDF5; }
.pipeline .step.done .num { background: #10B981; color: #fff; }
.pipeline .step.done .num::before { content: "\2713"; }
.pipeline .step.next { border-color: var(--tp-indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.pipeline .step.locked { opacity: .65; }
.pipeline-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.pipeline-flow .node { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 1rem; }
.pipeline-flow .node i { font-size: 1.4rem; color: var(--tp-lime); }

/* Score ring */
.score-ring { --v: 0; --c: #10B981; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), #E9ECF5 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.score-ring .inner { position: relative; z-index: 1; text-align: center; }
.score-ring .val { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.score-ring.sm { width: 64px; height: 64px; }
.score-ring.sm::after { inset: 6px; }
.score-ring.sm .val { font-size: 1.15rem; }
.score-pill { display: inline-block; min-width: 42px; text-align: center; padding: .2rem .5rem; border-radius: 8px; font-weight: 800; font-size: .85rem; }
.score-good { background: #DCFCE7; color: #166534; }
.score-ok { background: #FEF3C7; color: #92400E; }
.score-bad { background: #FEE2E2; color: #991B1B; }
.cat-bar { height: 8px; border-radius: 99px; background: #EEF0F7; overflow: hidden; }
.cat-bar > span { display: block; height: 100%; border-radius: 99px; }

/* Scan progress */
.scan-progress { height: 18px; border-radius: 99px; background: #E9ECF5; overflow: hidden; }
.scan-progress .bar { height: 100%; width: 0; background: var(--tp-grad); border-radius: 99px; transition: width .6s ease; position: relative; }
.scan-progress .bar::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%); background-size: 22px 22px; animation: tp-stripes 1s linear infinite; }
@keyframes tp-stripes { to { background-position: 22px 0; } }
.live-feed li { animation: tp-in .35s ease; }
@keyframes tp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #10B981; display: inline-block; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: tp-pulse 1.5s infinite; }
@keyframes tp-pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* Issue cards */
.issue-card { border-left: 4px solid #CBD5E1; cursor: pointer; }
.issue-card.sev-critical { border-left-color: #EF4444; }
.issue-card.sev-warning { border-left-color: #F59E0B; }
.issue-card.sev-notice { border-left-color: #3B82F6; }
.issue-card .chev { transition: transform .2s ease; }
.issue-card[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sev { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .5rem; border-radius: 6px; }
.sev-critical .sev, .sev.critical { background: #FEE2E2; color: #B91C1C; }
.sev-warning .sev, .sev.warning { background: #FEF3C7; color: #B45309; }
.sev-notice .sev, .sev.notice { background: #DBEAFE; color: #1D4ED8; }
.fix-steps { counter-reset: fx; list-style: none; padding-left: 0; }
.fix-steps li { counter-increment: fx; position: relative; padding: .35rem 0 .35rem 2.2rem; }
.fix-steps li::before { content: counter(fx); position: absolute; left: 0; top: .3rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(79, 70, 229, .1); color: var(--tp-indigo); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* Tables */
.table-tp { --bs-table-bg: transparent; margin-bottom: 0; }
.table-tp thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tp-muted); font-weight: 700; border-bottom-width: 1px; white-space: nowrap; background: #FAFBFE; }
.table-tp td { vertical-align: middle; }
.table-tp .url-cell { max-width: 360px; }
.table-scroll { max-height: 640px; overflow: auto; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; }
.sort-link { color: inherit; text-decoration: none; }

/* Site sub-nav */
.site-head { background: #fff; border-bottom: 1px solid var(--tp-border); }
.site-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.site-tabs::-webkit-scrollbar { display: none; }
.site-tabs .nav-link { color: var(--tp-muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; border-radius: 0; padding: .8rem .9rem; }
.site-tabs .nav-link:hover { color: var(--tp-ink); }
.site-tabs .nav-link.active { color: var(--tp-indigo); border-bottom-color: var(--tp-indigo); }
.site-tabs .bi-lock-fill { font-size: .7rem; opacity: .6; }

/* Connect tabs + code */
.platform-tabs .nav-link { display: flex; gap: .45rem; align-items: center; border: 1px solid var(--tp-border); background: #fff; color: var(--tp-ink); font-weight: 600; margin: 0 .4rem .5rem 0; border-radius: 10px; }
.platform-tabs .nav-link.active { background: var(--tp-indigo); border-color: var(--tp-indigo); color: #fff; }
.code-wrap { position: relative; }
.code-wrap pre { background: var(--tp-navy); color: #E2E8F0; border-radius: 12px; padding: 1rem 1.1rem; font-size: .8rem; max-height: 420px; overflow: auto; margin: 0; }
.code-wrap .copy-btn { position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.token-box { background: #0B1026; color: var(--tp-lime); border-radius: 12px; padding: 1rem 1.2rem; font-size: 1.05rem; word-break: break-all; }
.step-list { counter-reset: st; list-style: none; padding-left: 0; }
.step-list > li { counter-increment: st; position: relative; padding: 0 0 1.2rem 2.8rem; border-left: 2px dashed var(--tp-border); margin-left: 1rem; }
.step-list > li:last-child { border-left-color: transparent; }
.step-list > li::before { content: counter(st); position: absolute; left: -1rem; top: -.2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tp-grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.check-row { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--tp-border); }
.check-row:last-child { border-bottom: 0; }

/* Upsell */
.pro-lock { background: linear-gradient(135deg, rgba(79,70,229,.06), rgba(6,182,212,.06)); border: 1px dashed #A5B4FC; }

/* Prose (AI output, legal pages) */
.prose { line-height: 1.7; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6rem; margin-bottom: .6rem; font-weight: 800; }
.prose h1 { font-size: 1.6rem; } .prose h2 { font-size: 1.3rem; } .prose h3 { font-size: 1.1rem; }
.prose table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--tp-border); padding: .45rem .6rem; }
.prose th { background: #FAFBFE; }
.prose code { background: #EEF0F7; padding: .1rem .35rem; border-radius: 5px; color: #7C3AED; }
.prose blockquote { border-left: 4px solid #A5B4FC; padding-left: 1rem; color: var(--tp-muted); }
.legal-toc a { color: var(--tp-muted); text-decoration: none; display: block; padding: .2rem 0; font-size: .9rem; }
.legal-toc a:hover { color: var(--tp-indigo); }

/* Footer */
.tp-footer { background: var(--tp-navy); color: rgba(255, 255, 255, .7); }
.tp-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.tp-footer a:hover { color: #fff; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-side { background: var(--tp-navy); color: #fff; position: relative; overflow: hidden; }
.auth-card { max-width: 440px; width: 100%; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 250px; flex-shrink: 0; background: var(--tp-navy); color: #fff; }
.admin-side .nav-link { color: rgba(255, 255, 255, .72); border-radius: 10px; padding: .6rem .8rem; display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.admin-side .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side .nav-link.active { background: rgba(79, 70, 229, .35); color: #fff; }
.admin-main { flex: 1; min-width: 0; }
@media (max-width: 991.98px) { .admin-side { display: none; } .admin-side.show { display: block; position: fixed; inset: 0 auto 0 0; z-index: 1050; } }
.db-cell { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-level { font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: .15rem .45rem; border-radius: 5px; }
.log-error, .log-critical, .log-alert, .log-emergency { background: #FEE2E2; color: #B91C1C; }
.log-warning { background: #FEF3C7; color: #B45309; }
.log-info, .log-notice { background: #DBEAFE; color: #1D4ED8; }
.log-debug { background: #EEF0F7; color: #475569; }
.log-context { background: #0B1026; color: #CBD5E1; font-size: .75rem; border-radius: 8px; padding: .8rem; max-height: 320px; overflow: auto; white-space: pre-wrap; }

/* Utilities */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--tp-muted); }
.empty-state i { font-size: 2.4rem; color: #A5B4FC; }
.busy-overlay { position: fixed; inset: 0; background: rgba(11, 16, 38, .55); z-index: 2000; display: none; align-items: center; justify-content: center; }
.busy-overlay.show { display: flex; }
.busy-overlay .box { background: #fff; border-radius: 16px; padding: 1.6rem 2rem; text-align: center; max-width: 360px; }
.position-change.up { color: #16A34A; font-weight: 700; }
.position-change.down { color: #DC2626; font-weight: 700; }

/* ---------------------------------------------------------------------------
   Grow: checklists, field guides and the ROI tracker
   --------------------------------------------------------------------------- */
.grow-nav .nav-link { background: #fff; border: 1px solid var(--tp-border); color: var(--tp-ink); font-weight: 600; }
.grow-nav .nav-link.active { background: var(--tp-grad); border-color: transparent; color: #fff; }
.task-card { border-left: 4px solid #E5E7F0; }
.task-card.status-done { border-left-color: #10B981; background: #FCFEFD; }
.task-card.status-doing { border-left-color: #F59E0B; }
.task-card.status-skipped { opacity: .65; }
.task-card [aria-expanded="true"] .chev { transform: rotate(180deg); }
.task-card .chev { transition: transform .2s ease; }
.task-check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #CBD5E1; color: #94A3B8; font-size: .9rem; }
.task-check.done { background: #10B981; border-color: #10B981; color: #fff; }
.task-check.doing { border-color: #F59E0B; color: #B45309; }
.task-check.skipped { border-style: dashed; }
.field-guide { border: 1px solid var(--tp-border); border-radius: 12px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .7rem .9rem; border-bottom: 1px solid var(--tp-border); }
.field-row:last-child { border-bottom: 0; }
.field-row:nth-child(odd) { background: #FAFBFE; }
.field-label { font-weight: 700; font-size: .88rem; }
.field-help { font-size: .9rem; color: #475569; }

/* ---------------------------------------------------------------------------
   Mobile (phones). Everything above is desktop-first; this makes it usable
   on a 360-400px screen without horizontal scrolling.
   --------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .field-row { grid-template-columns: 1fr; gap: .15rem; }
    .field-label { font-size: .92rem; }
    .grow-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .grow-nav::-webkit-scrollbar { display: none; }
    .grow-nav .nav-link { white-space: nowrap; }
}

@media (max-width: 575.98px) {
    /* iOS zooms the page when a focused input is under 16px */
    .form-control, .form-select, .form-control-sm, .form-select-sm { font-size: 16px; }

    body { font-size: .96rem; }
    .container, .container-xl { padding-left: 1rem; padding-right: 1rem; }
    main.py-4 { padding-top: 1rem !important; padding-bottom: 1.5rem !important; }

    h1, .h1 { font-size: 1.6rem; }
    h2, .h2 { font-size: 1.35rem; }
    h3, .h3 { font-size: 1.2rem; }
    .display-5, .display-6 { font-size: 1.8rem; }
    .lead { font-size: 1rem; }

    .card-body { padding: 1rem; }
    .card-body.p-4, .card-body.p-lg-5 { padding: 1.1rem !important; }
    .stat .stat-value { font-size: 1.45rem; }
    .stat .stat-label { font-size: .78rem; }

    /* Marketing pages */
    .tp-hero { padding: 3.5rem 0 2.5rem; }
    .section { padding: 3rem 0; }
    .hero-form { padding: .75rem; }
    .hero-form .form-control { font-size: 1rem; }
    .pipeline-flow { grid-template-columns: 1fr 1fr; }

    /* App chrome */
    .tp-logo { height: 28px; }
    .site-head .score-ring.sm { width: 48px; height: 48px; }
    .site-head .score-ring.sm .val { font-size: .95rem; }
    .site-tabs .nav-link { padding: .65rem .7rem; font-size: .9rem; }
    .avatar { width: 30px; height: 30px; }

    /* Scores and rings */
    .score-ring { width: 118px; height: 118px; }
    .score-ring .val { font-size: 2rem; }

    /* Tables and code always scroll inside their own box, never the page */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table-tp td, .table-tp th { padding: .5rem .45rem; font-size: .88rem; }
    .table-tp .url-cell { max-width: 200px; }
    .prose table { display: block; overflow-x: auto; white-space: nowrap; }
    .code-wrap pre { font-size: .72rem; padding: .8rem; }
    .token-box { font-size: .9rem; padding: .8rem; }

    /* Buttons and groups stack instead of squashing */
    .btn-group-sm > .btn { padding: .35rem .5rem; font-size: .82rem; }
    .platform-tabs .nav-link { font-size: .85rem; padding: .4rem .6rem; }
    .step-list > li { padding-left: 2.4rem; }
    .fix-steps li { padding-left: 2rem; }

    /* Admin */
    .admin-main .p-4 { padding: 1rem !important; }
    .db-cell { max-width: 150px; }
    .log-context { font-size: .7rem; }

    /* Auth pages */
    .auth-card { max-width: 100%; }
}

@media (max-width: 380px) {
    .pipeline-flow { grid-template-columns: 1fr; }
    .btn-lg { font-size: 1rem; padding: .6rem 1rem; }
}
