﻿/* ============================================================
   PamerIT – Custom Stylesheet
   ============================================================ */

/* ── Root Variables ──────────────────────────────────────── */
:root {
    --pit-radius:     0.75rem;
    --pit-shadow:     0 2px 12px rgba(0, 0, 0, .08);
    --pit-sidebar-w:  240px;
    --pit-topbar-h:   56px;

    /* Dark system palette */
    --pit-bg:         #060c18;
    --pit-surface:    #0d1526;
    --pit-border:     #1e2d4a;
    --pit-accent:     #818cf8;
    --pit-accent-deep:#6366f1;
    --pit-accent-btn: #4f46e5;
    --pit-text:       #e8ecf4;
    --pit-muted:      #8896b3;

    /* Header/footer heights */
    --pit-header-h:   62px;
    --pit-footer-h:   52px;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: .9375rem;
    background-color: var(--pit-bg);
    color: var(--pit-text);
    -webkit-font-smoothing: antialiased;
}

/* ── Public Header ────────────────────────────────────────── */
.pit-header {
    background: rgba(6, 12, 24, .92);
    border-bottom: 1px solid var(--pit-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pit-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--pit-header-h);
}

.pit-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.pit-brand-mark {
    width: 30px;
    height: 30px;
    background: var(--pit-accent-deep);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    color: #fff;
    flex-shrink: 0;
}

.pit-brand-mark.lg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.125rem;
}

.pit-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pit-text);
    letter-spacing: -.025em;
}

.pit-header-tagline {
    font-size: .75rem;
    color: var(--pit-muted);
    letter-spacing: .01em;
}

@media (max-width: 575.98px) {
    .pit-header-tagline { display: none; }
}

/* ── Public Footer ────────────────────────────────────────── */
.pit-footer {
    background: var(--pit-surface);
    border-top: 1px solid var(--pit-border);
}

.pit-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--pit-footer-h);
}

.pit-footer-brand {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--pit-text);
    letter-spacing: -.01em;
}

.pit-footer-copy {
    font-size: .75rem;
    color: var(--pit-muted);
}

/* ════════════════════════════════════════════════════════════
   LANDING PAGE — SPLIT LAYOUT
   ════════════════════════════════════════════════════════════ */

.lp-wrap {
    display: flex;
    flex: 1;
    min-height: calc(100vh - var(--pit-header-h) - var(--pit-footer-h));
}

/* ── Left: Dark Hero Panel ────────────────────────────────── */
.lp-left {
    flex: 0 0 58%;
    display: flex;
    align-items: center;
    padding: 4.5rem 5rem;
    position: relative;
    overflow: hidden;

    /* Layered background: grid + glow + base */
    background-color: var(--pit-bg);
    background-image:
        radial-gradient(ellipse 75% 55% at 10% 40%,  rgba(79,70,229,.18) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 90% 85%,  rgba(16,185,129,.06) 0%, transparent 55%),
        linear-gradient(rgba(255,255,255,.018) 1px,   transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 100%, 100%, 48px 48px, 48px 48px;
}

/* Subtle top-left glow orb */
.lp-left::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 65%);
    pointer-events: none;
}

.lp-left-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.lp-logo-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2.75rem;
}

.lp-logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pit-text);
    letter-spacing: -.025em;
}

.lp-headline {
    font-size: clamp(2.1rem, 3.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
    color: var(--pit-text);
    margin-bottom: 1.25rem;
}

.lp-headline em {
    font-style: normal;
    color: var(--pit-accent);
}

.lp-desc {
    font-size: .9375rem;
    color: var(--pit-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Feature list */
.lp-features {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0 0 2.75rem;
    flex-direction: column;
    gap: 1.1rem;
}

.lp-features li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.lp-feat-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: rgba(99,102,241,.18);
    border: 1px solid rgba(99,102,241,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pit-accent);
    font-size: .7rem;
    margin-top: .1rem;
}

.lp-features li div {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.lp-features strong {
    font-size: .875rem;
    font-weight: 600;
    color: var(--pit-text);
}

.lp-features span {
    font-size: .8125rem;
    color: var(--pit-muted);
    line-height: 1.4;
}

/* Stats row */
.lp-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--pit-border);
}

.lp-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .1rem;
}

.lp-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pit-text);
    letter-spacing: -.05em;
    line-height: 1;
}

.lp-stat-lbl {
    font-size: .7rem;
    color: var(--pit-muted);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lp-stat-div {
    width: 1px;
    height: 32px;
    background: var(--pit-border);
    margin: 0 1.5rem;
    flex-shrink: 0;
}

/* ── Right: Form Panel ────────────────────────────────────── */
.lp-right {
    flex: 0 0 42%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3.5rem;
    border-left: 1px solid rgba(0,0,0,.05);
}

.lp-form-wrap {
    width: 100%;
    max-width: 380px;
}

.lp-form-head {
    margin-bottom: 2rem;
}

.lp-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
    margin: 0 0 .3rem;
}

.lp-form-sub {
    font-size: .8125rem;
    color: #94a3b8;
    margin: 0;
}

/* Field */
.lp-field {
    margin-bottom: 1.25rem;
}

.lp-field-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.lp-select-wrap {
    position: relative;
}

.lp-select {
    width: 100%;
    padding: .72rem 2.5rem .72rem 1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: .5rem;
    font-size: .9375rem;
    color: #0f172a;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.lp-select:focus {
    outline: none;
    border-color: var(--pit-accent-deep);
    box-shadow: 0 0 0 3px rgba(99,102,241,.14);
}

.lp-select-arrow {
    position: absolute;
    right: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}

/* Preview panel */
.lp-preview {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: .6rem;
    padding: 1rem 1.125rem;
    margin-bottom: 1.25rem;
}

.lp-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .4rem;
}

.lp-preview-code {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pit-accent-deep);
}

.lp-preview-badge {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .15em .6em;
    border-radius: 100px;
    background: rgba(16,185,129,.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,.2);
}

.lp-preview-name {
    font-size: .9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: .2rem;
}

.lp-preview-project {
    font-size: .8rem;
    color: #64748b;
    margin-bottom: .5rem;
}

.lp-preview-desc {
    font-size: .8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* CTA Button */
.lp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .8rem 1.5rem;
    background: var(--pit-accent-btn);
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.lp-btn:hover:not(:disabled) {
    background: #4338ca;
    box-shadow: 0 6px 24px rgba(79,70,229,.4);
}

.lp-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Notice + hint */
.lp-notice {
    font-size: .875rem;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: .9rem 1rem;
    margin-bottom: 1rem;
}

.lp-form-hint {
    text-align: center;
    font-size: .75rem;
    color: #94a3b8;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.lp-form-hint code {
    font-size: .7rem;
    background: #e2e8f0;
    color: #475569;
    padding: .1em .4em;
    border-radius: .25rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1023.98px) {
    .lp-wrap       { flex-direction: column; }
    .lp-left       { flex: none; padding: 3rem 2rem 2.5rem; }
    .lp-left-inner { max-width: 100%; }
    .lp-headline   { font-size: 2rem; }
    .lp-right      { flex: 1; padding: 2.5rem 1.5rem; border-left: none; border-top: 1px solid #e2e8f0; }
    .lp-form-wrap  { max-width: 100%; }
}

@media (max-width: 575.98px) {
    .lp-left       { padding: 2.5rem 1.25rem 2rem; }
    .lp-features   { gap: .85rem; }
    .lp-stat-div   { margin: 0 1rem; }
}

/* ════════════════════════════════════════════════════════════
   BOOTSTRAP OVERRIDES (public pages on dark bg)
   ════════════════════════════════════════════════════════════ */

/* Make container-based pages have a light bg */
main > .container,
main > .container-fluid {
    background: transparent;
}

/* ── Bootstrap Card tweaks ───────────────────────────────── */
.card {
    border-radius: var(--pit-radius) !important;
    box-shadow: var(--pit-shadow);
}

.card-header {
    border-radius: var(--pit-radius) var(--pit-radius) 0 0 !important;
}

/* ── Score card ──────────────────────────────────────────── */
.score-card {
    transition: border-color .2s, box-shadow .2s;
    cursor: default;
    background: #fff;
}

.score-card:hover {
    border-color: var(--pit-accent-deep) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.score-input[type='number'] { -moz-appearance: textfield; }

/* ── Step wizard ─────────────────────────────────────────── */
.step-badge {
    transition: background-color .25s;
    font-size: .85rem;
}

/* ── Admin Layout ────────────────────────────────────────── */
.admin-layout { background: #f1f5f9; min-height: 100vh; }

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--pit-topbar-h);
}

.admin-wrapper { min-height: calc(100vh - var(--pit-topbar-h)); }

.admin-sidebar {
    width: var(--pit-sidebar-w);
    min-height: calc(100vh - var(--pit-topbar-h));
    position: sticky;
    top: var(--pit-topbar-h);
    height: calc(100vh - var(--pit-topbar-h));
    overflow-y: auto;
    flex-shrink: 0;
    transition: transform .3s ease;
}

.admin-sidebar .nav-link {
    padding: .55rem .9rem;
    font-size: .875rem;
    transition: background-color .15s;
}

.admin-sidebar .nav-link:hover         { background: rgba(255,255,255,.08); }
.admin-sidebar .nav-link.active-nav    { background: rgba(255,255,255,.12); color: #fff !important; font-weight: 600; }

.admin-content {
    min-height: calc(100vh - var(--pit-topbar-h));
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: var(--pit-topbar-h);
        left: 0;
        z-index: 1020;
        transform: translateX(-100%);
        height: calc(100vh - var(--pit-topbar-h));
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { width: 100% !important; }
}

/* ── Badges & pills ──────────────────────────────────────── */
.badge.fs-6 { font-size: .85rem !important; padding: .4em .65em; }

/* ── Progress bars ───────────────────────────────────────── */
.progress { border-radius: 999px; overflow: hidden; }

/* ── Tables ──────────────────────────────────────────────── */
.table th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Font monospace ──────────────────────────────────────── */
.font-monospace {
    font-family: 'Cascadia Code', 'Consolas', monospace !important;
    font-size: .85rem;
}

/* ── Misc ────────────────────────────────────────────────── */
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.rounded-4     { border-radius: var(--pit-radius) !important; }

.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   EVALUATION FORM & SUCCESS PAGE
   ════════════════════════════════════════════════════════════ */

/* ── Context bar (breadcrumb header) ─────────────────────── */
.ef-context-bar {
    background: var(--pit-surface);
    border-bottom: 1px solid var(--pit-border);
    font-size: .8125rem;
}

.ef-context-inner {
    display: flex;
    align-items: center;
    height: 44px;
}

.ef-context-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.ef-back-link {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--pit-muted);
    text-decoration: none;
    transition: color .15s;
    font-size: .8rem;
}

.ef-back-link:hover { color: var(--pit-text); }

.ef-context-sep {
    width: 1px;
    height: 14px;
    background: var(--pit-border);
}

.ef-context-code {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pit-accent);
}

.ef-context-name {
    font-weight: 600;
    color: var(--pit-text);
    font-size: .8125rem;
}

.ef-context-project {
    color: var(--pit-muted);
    font-size: .8rem;
}

/* ── Step indicator ──────────────────────────────────────── */
.ef-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.ef-step {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}

.ef-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    transition: background .25s, color .25s;
    flex-shrink: 0;
}

.ef-step-label {
    font-size: .8125rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: color .25s;
}

.ef-step.active .ef-step-num {
    background: var(--pit-accent-btn);
    color: #fff;
}

.ef-step.active .ef-step-label { color: #0f172a; }

.ef-step-num.done {
    background: var(--pit-accent-btn);
    color: #fff;
}

.ef-step-track {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 .75rem;
    border-radius: 1px;
    overflow: hidden;
}

.ef-step-fill {
    height: 100%;
    width: 0%;
    background: var(--pit-accent-btn);
    transition: width .3s ease;
}

/* ── Cards ───────────────────────────────────────────────── */
.ef-card {
    background: #fff;
    border-radius: .875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
    margin-bottom: 1rem;
}

.ef-card-head {
    padding: 1.375rem 1.625rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.ef-card-title {
    font-size: .9375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.02em;
    margin: 0 0 .2rem;
}

.ef-card-sub {
    font-size: .775rem;
    color: #94a3b8;
    margin: 0;
}

.ef-card-body {
    padding: 1.5rem 1.625rem;
}

/* ── Form elements ───────────────────────────────────────── */
.ef-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}

.ef-req { color: #ef4444; }

.ef-input {
    display: block;
    width: 100%;
    padding: .65rem .875rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: .5rem;
    font-size: .9375rem;
    color: #0f172a;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
    resize: vertical;
}

.ef-input:focus {
    outline: none;
    border-color: var(--pit-accent-deep);
    box-shadow: 0 0 0 3px rgba(99,102,241,.13);
    background: #fff;
}

.ef-input.is-invalid  { border-color: #ef4444; }
.ef-input.is-valid    { border-color: #22c55e; }

.ef-hint { font-size: .75rem; color: #94a3b8; }

/* ── Buttons ─────────────────────────────────────────────── */
.ef-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.5rem;
    background: var(--pit-accent-btn);
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}

.ef-btn-primary:hover:not(:disabled) {
    background: #4338ca;
    box-shadow: 0 4px 16px rgba(79,70,229,.38);
    color: #fff;
}

.ef-btn-primary:disabled { opacity: .35; cursor: not-allowed; }

.ef-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: .72rem 1.25rem;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: .5rem;
    font-size: .9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    text-decoration: none;
}

.ef-btn-ghost:hover { border-color: #cbd5e1; color: #334155; }

.ef-btn-submit {
    display: inline-flex;
    align-items: center;
    padding: .75rem 2rem;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -.01em;
    transition: background .15s, box-shadow .15s;
}

.ef-btn-submit:hover:not(:disabled) {
    background: #047857;
    box-shadow: 0 4px 16px rgba(5,150,105,.35);
}

.ef-btn-submit:disabled { opacity: .4; cursor: not-allowed; }

.ef-btn-ghost-link {
    display: block;
    text-align: center;
    font-size: .875rem;
    color: #64748b;
    text-decoration: none;
    padding: .6rem;
    transition: color .15s;
}

.ef-btn-ghost-link:hover { color: #334155; }

.ef-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.625rem;
    border-radius: 0 0 .875rem .875rem;
}

/* ── Score rows ──────────────────────────────────────────── */
.ef-score-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: .625rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ef-score-row {
    padding: .875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .1s;
}

.ef-score-row:last-child { border-bottom: none; }
.ef-score-row:hover      { background: #fafbfc; }
.ef-score-row.has-error  { background: #fff5f5; }

.ef-score-meta {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .625rem;
}

.ef-score-icon {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pit-accent-deep);
    font-size: .875rem;
    flex-shrink: 0;
    margin-top: .05rem;
}

.ef-score-label {
    font-size: .8375rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: .1rem;
    cursor: pointer;
}

.ef-score-desc {
    font-size: .75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.ef-score-ctrl {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ef-range {
    flex: 1;
    accent-color: var(--pit-accent-btn);
    cursor: pointer;
}

.ef-numbox {
    width: 68px;
    padding: .35rem .5rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: .375rem;
    font-size: .9375rem;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    text-align: center;
    transition: border-color .15s;
    -moz-appearance: textfield;
}

.ef-numbox::-webkit-outer-spin-button,
.ef-numbox::-webkit-inner-spin-button { -webkit-appearance: none; }

.ef-numbox:focus {
    outline: none;
    border-color: var(--pit-accent-deep);
    background: #fff;
}

.ef-field-error {
    font-size: .75rem;
    color: #ef4444;
    margin-top: .35rem;
}

/* ── Score summary box ───────────────────────────────────── */
.ef-score-summary {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: .625rem;
    overflow: hidden;
}

.ef-summary-box {
    flex: 1;
    padding: 1rem;
    text-align: center;
}

.ef-summary-box.accent {
    background: rgba(79,70,229,.06);
    border-left: 1.5px solid #e2e8f0;
}

.ef-summary-sep {
    width: 1px;
    background: #e2e8f0;
}

.ef-summary-lbl {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #94a3b8;
    margin-bottom: .3rem;
}

.ef-summary-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pit-accent-btn);
    letter-spacing: -.04em;
    line-height: 1;
}

.ef-summary-sub {
    font-size: .7rem;
    color: #94a3b8;
    margin-top: .2rem;
}

/* ── Success page ────────────────────────────────────────── */
.ef-success-head {
    padding: 2.5rem 1.625rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    border-bottom: 1px solid #e8edf8;
}

.ef-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(5,150,105,.3);
}

.ef-success-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
    margin: 0 0 .4rem;
}

.ef-success-sub {
    font-size: .875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.ef-score-hero {
    margin-bottom: 1.5rem;
}

.ef-score-ring {
    display: inline-flex;
    align-items: baseline;
    gap: .25rem;
    padding: .75rem 1.5rem;
    border-radius: .75rem;
    margin-bottom: .75rem;
}

.ef-score-ring.high { background: rgba(5,150,105,.08); }
.ef-score-ring.mid  { background: rgba(245,158,11,.08); }
.ef-score-ring.low  { background: rgba(239,68,68,.08); }

.ef-score-ring-val {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}

.ef-score-ring.high .ef-score-ring-val { color: #059669; }
.ef-score-ring.mid  .ef-score-ring-val { color: #d97706; }
.ef-score-ring.low  .ef-score-ring-val { color: #dc2626; }

.ef-score-ring-lbl {
    font-size: .875rem;
    font-weight: 600;
    color: #94a3b8;
}

.ef-score-hero-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #94a3b8;
    margin-bottom: .75rem;
}

.ef-score-bar-wrap {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 200px;
}

.ef-score-bar {
    height: 100%;
    border-radius: 3px;
    transition: width .6s ease;
}

.ef-score-bar.high { background: #059669; }
.ef-score-bar.mid  { background: #f59e0b; }
.ef-score-bar.low  { background: #ef4444; }

.ef-summary-table {
    border: 1.5px solid #e2e8f0;
    border-radius: .625rem;
    overflow: hidden;
    margin-bottom: 1rem;
    text-align: left;
}

.ef-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.ef-summary-row:last-child { border-bottom: none; }

.ef-summary-key {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    flex-shrink: 0;
}

.ef-summary-val-text {
    font-size: .875rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.ef-info-note {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #f0f6ff;
    border: 1px solid #c7d9f7;
    border-radius: .5rem;
    padding: .875rem 1rem;
    text-align: left;
}

.ef-info-icon {
    color: #3b82f6;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.ef-info-note p {
    font-size: .8125rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE OPTIMIZATIONS
   ════════════════════════════════════════════════════════════ */

/* ── Tablet portrait & below (< 768px) ─────────────────────── */
@media (max-width: 767.98px) {

    /* Landing — right panel */
    .lp-right {
        padding: 2rem 1.25rem 2.5rem;
    }

    /* Context bar — allow wrapping on narrower screens */
    .ef-context-inner {
        height: auto;
        min-height: 44px;
        padding: .5rem 0;
        flex-wrap: wrap;
        gap: .3rem;
    }

    /* Eval step labels — hide on mobile, keep number bubbles */
    .ef-step-label {
        display: none;
    }

    /* Cards — tighter padding */
    .ef-card-head {
        padding: 1rem 1.125rem .75rem;
    }

    .ef-card-body {
        padding: 1.125rem;
    }

    /* Action bar — tighter padding */
    .ef-action-bar {
        padding: .875rem 1.125rem;
    }

    /* Score numbox slightly smaller */
    .ef-numbox {
        width: 60px;
        font-size: .875rem;
    }

    /* Score ctrl gap tighter */
    .ef-score-ctrl {
        gap: .5rem;
    }

    /* Admin table — prevent card overflow */
    .admin-content .card {
        overflow: hidden;
    }
}

/* ── Mobile (< 576px) ──────────────────────────────────────── */
@media (max-width: 575.98px) {

    /* ── Landing left panel ─── */
    .lp-headline {
        font-size: 1.75rem;
        letter-spacing: -.035em;
    }

    .lp-desc {
        font-size: .875rem;
        margin-bottom: 1.75rem;
    }

    .lp-logo-row {
        margin-bottom: 2rem;
    }

    .lp-features {
        margin-bottom: 2rem;
    }

    /* Stats row — hide dividers, let stats fill row */
    .lp-stat-row {
        gap: 0;
        flex-wrap: nowrap;
    }

    .lp-stat-div {
        display: none;
    }

    .lp-stat {
        flex: 1;
        text-align: center;
        padding: 0 .25rem;
    }

    .lp-stat-val {
        font-size: 1.25rem;
    }

    .lp-stat-lbl {
        font-size: .6rem;
    }

    /* ── Landing right panel ─── */
    .lp-right {
        padding: 1.75rem 1.125rem 2rem;
    }

    .lp-form-title {
        font-size: 1.15rem;
    }

    /* ── Context bar ─── */
    .ef-context-project {
        display: none;
    }

    /* ── Step indicator ─── */
    .ef-steps {
        margin-bottom: 1.25rem;
    }

    /* ── Cards ─── */
    .ef-card-head {
        padding: .875rem 1rem .625rem;
    }

    .ef-card-body {
        padding: 1rem;
    }

    /* ── Score rows ─── */
    .ef-score-row {
        padding: .75rem .875rem;
    }

    /* ── Action bar — stack full-width ─── */
    .ef-action-bar {
        flex-direction: column-reverse;
        padding: .875rem 1rem;
        gap: .625rem;
    }

    .ef-btn-ghost,
    .ef-btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* ── Score summary ─── */
    .ef-summary-val {
        font-size: 1.35rem;
    }

    /* ── Success page ─── */
    .ef-success-head {
        padding: 2rem 1rem 1.25rem;
    }

    .ef-score-ring {
        padding: .6rem 1.25rem;
    }

    .ef-score-ring-val {
        font-size: 2rem;
    }

    /* ── Footer — center on mobile ─── */
    .pit-footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: .1rem;
        height: auto;
        padding: .625rem 0;
    }

    /* ── Admin table scroll hint ─── */
    .table-responsive::after {
        content: '';
        display: none;
    }
}

/* ── Very small screens (< 400px) ──────────────────────────── */
@media (max-width: 399.98px) {

    .lp-headline {
        font-size: 1.5rem;
    }

    .lp-right {
        padding: 1.5rem 1rem 1.75rem;
    }

    .ef-score-meta {
        gap: .5rem;
    }

    .ef-score-icon {
        width: 24px;
        height: 24px;
        font-size: .75rem;
    }

    .ef-numbox {
        width: 52px;
        padding: .3rem .375rem;
    }

    .ef-score-ring-val {
        font-size: 1.75rem;
    }

    .ef-card-body {
        padding: .875rem;
    }
}
