/* =============================================================================
 GuardForge — Admin CSS (Forge Design System v2, amber-scoped)
 ============================================================================= */

/* 1. Shared design tokens — kept at :root so they coexist with sibling Forge
 plugins without colliding on a page that loads more than one of them. */
:root {
    --bg-light:       #F8F9FC;
    --surface:        #FFFFFF;
    --border:         #E5E7EB;
    --text-primary:   #1A1A2E;
    --text-secondary: #4B5563;
    --text-muted:     #6B7280;
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-error:   #EF4444;
    --status-success-light: #ECFDF5;
    --status-warning-light: #FFFBEB;
    --status-error-light:   #FEF2F2;
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   14px;
    --radius-xl:   16px;
    --radius-pill: 100px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
    --shadow-card: 0 24px 64px rgba(0,0,0,0.08);
    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 2. Scoped amber accent — only applies under .gf-admin so the colour
 never leaks into other plugins on the same screen. */
.gf-admin {
    --accent:        #2ABE55;
    --accent-hover:  #00A541;
    --accent-active: #008935;
    --accent-light:  #48CF68;
    --accent-muted:  #B0EFB8;
    --accent-subtle: #EBFCED;
    --on-accent:     #0C1A3A;
    --shadow-btn:    0 4px 24px color-mix(in srgb, #2ABE55 35%, transparent);
    --shadow-accent: 0 8px 24px rgba(42, 190, 85, 0.30);
}

/* 3. Base typography */
.gf-admin .wrap {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.55;
    max-width: 1200px;
}
.gf-admin .wrap p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }

/* 4. Unified admin header — same shape as Flow/Velocity/Draft Forge, this
 product's own accent (ADMIN-HEADER-SPEC.md, forge/paused/revival-2026-09-03/).
 Printed once per screen by GUARDFORGE_Admin_Header::render. */
.gf-admin .forge-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 64px;
    padding: 10px 0;
    margin: 0 0 24px;
    background: var(--surface);
    border-bottom: 3px solid var(--accent);
}
.gf-admin .forge-admin-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.gf-admin .forge-admin-header__mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}
.gf-admin .forge-admin-header__mark--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--on-accent);
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-accent);
}
.gf-admin .forge-admin-header__titles { min-width: 0; }
.gf-admin .forge-admin-header__product {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
}
.gf-admin .forge-admin-header__version { font-weight: 400; }
.gf-admin .forge-admin-header__screen {
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}
.gf-admin .forge-admin-header__screen small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}
.gf-admin .forge-admin-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.gf-admin .forge-admin-header__docs {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.gf-admin .forge-admin-header__docs:hover { color: var(--accent); }
@media (max-width: 782px) {
    .gf-admin .forge-admin-header__meta {
        flex-basis: 100%;
        margin-top: 4px;
    }
}

/* 5. Notices */
.gf-admin .gf-notice {
    padding: 12px 16px;
    margin: 0 0 20px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    border-left: 4px solid var(--accent);
}
.gf-admin .gf-notice-ok   { border-left-color: var(--status-success); background: var(--status-success-light); }
.gf-admin .gf-notice-warn { border-left-color: var(--status-warning); background: var(--status-warning-light); }
.gf-admin .gf-notice-err  { border-left-color: var(--status-error);   background: var(--status-error-light); }

/* 6. Grid + cards */
.gf-admin .gf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 960px) {
    .gf-admin .gf-grid { grid-template-columns: 1fr; }
}
.gf-admin .gf-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.gf-admin .gf-card-full { grid-column: 1 / -1; }
.gf-admin .gf-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #FAFAFA 0%, #F4F4F5 100%);
    border-bottom: 1px solid var(--border);
}
.gf-admin .gf-card-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.gf-admin .gf-card-head .dashicons {
    color: var(--accent);
    width: 18px;
    height: 18px;
    font-size: 18px;
}
.gf-admin .gf-card-body { padding: 4px 0; }

/* The AI credits card: the shared connection class prints the markup, this plugin only gives it room. */
.gf-admin .gf-ai-credits { padding: 14px 18px 6px; }
.gf-admin .gf-ai-credits h2 { margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; }
.gf-admin .gf-ai-credits p { margin: 0 0 8px; }
.gf-admin #guardforge-ai-trial { margin: 0; padding: 0 18px 14px; }

/* 7. Toggle row */
.gf-admin .gf-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 18px;
    gap: 10px;
    border-bottom: 1px solid #F4F4F5;
}
.gf-admin .gf-row:last-child { border-bottom: none; }
.gf-admin .gf-row label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}
.gf-admin .gf-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
}
.gf-admin .gf-label-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.gf-admin .gf-label-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.5;
}

/* 8. Badges */
.gf-admin .gf-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    white-space: nowrap;
    align-self: center;
}
.gf-admin .gf-badge-rec  { background: var(--status-success-light); color: var(--status-success); }
.gf-admin .gf-badge-opt  { background: #F4F4F5;                    color: var(--text-muted); }
.gf-admin .gf-badge-pro  { background: var(--accent-subtle);       color: var(--accent-active); }

/* 9. Controls + fields */
.gf-admin .gf-field-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 18px;
}
@media (max-width: 960px) { .gf-admin .gf-field-grid { grid-template-columns: 1fr; } }
.gf-admin .gf-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.gf-admin .wrap input[type="text"],
.gf-admin .wrap input[type="search"],
.gf-admin .wrap input[type="email"],
.gf-admin .wrap input[type="url"],
.gf-admin .wrap input[type="password"],
.gf-admin .wrap input[type="number"],
.gf-admin .wrap textarea,
.gf-admin .wrap select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    min-height: 36px;
    font-size: 13px;
    line-height: 1.5;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.15s var(--ease-out),
        box-shadow 0.15s var(--ease-out),
        background-color 0.15s var(--ease-out);
}
.gf-admin .wrap input[type="text"],
.gf-admin .wrap input[type="search"],
.gf-admin .wrap input[type="email"],
.gf-admin .wrap input[type="url"],
.gf-admin .wrap input[type="password"] {
    max-width: 320px;
}
.gf-admin .wrap input[type="number"] {
    max-width: 140px;
}
.gf-admin .wrap textarea {
    display: block;
    max-width: 100%;
}
.gf-admin .wrap select {
    max-width: 320px;
    padding-right: 34px;
    appearance: none;
    background-color: var(--surface);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 15px,
        calc(100% - 11px) 15px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.gf-admin .wrap input[type="text"]:hover,
.gf-admin .wrap input[type="search"]:hover,
.gf-admin .wrap input[type="email"]:hover,
.gf-admin .wrap input[type="url"]:hover,
.gf-admin .wrap input[type="password"]:hover,
.gf-admin .wrap input[type="number"]:hover,
.gf-admin .wrap textarea:hover,
.gf-admin .wrap select:hover {
    border-color: #D1D5DB;
}
.gf-admin .wrap input[type="text"]:focus,
.gf-admin .wrap input[type="search"]:focus,
.gf-admin .wrap input[type="email"]:focus,
.gf-admin .wrap input[type="url"]:focus,
.gf-admin .wrap input[type="password"]:focus,
.gf-admin .wrap input[type="number"]:focus,
.gf-admin .wrap textarea:focus,
.gf-admin .wrap select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    outline: none;
}
.gf-admin .wrap input[type="text"]:disabled,
.gf-admin .wrap input[type="search"]:disabled,
.gf-admin .wrap input[type="email"]:disabled,
.gf-admin .wrap input[type="url"]:disabled,
.gf-admin .wrap input[type="password"]:disabled,
.gf-admin .wrap input[type="number"]:disabled,
.gf-admin .wrap textarea:disabled,
.gf-admin .wrap select:disabled {
    background: #F9FAFB;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.78;
}
.gf-admin .wrap textarea {
    min-height: 88px;
    resize: vertical;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 12px;
}
.gf-admin .wrap input[type="checkbox"],
.gf-admin .wrap input[type="radio"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 1px 7px 0 0;
    border: 1px solid #D1D5DB;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    appearance: none;
    cursor: pointer;
    vertical-align: middle;
    transition:
        border-color 0.15s var(--ease-out),
        box-shadow 0.15s var(--ease-out),
        background-color 0.15s var(--ease-out);
}
.gf-admin .wrap input[type="checkbox"] {
    border-radius: 4px;
}
.gf-admin .wrap input[type="radio"] {
    border-radius: 999px;
}
.gf-admin .wrap input[type="checkbox"]:checked {
    border-color: var(--accent);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.1L5.6 9.7L11 4.3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}
.gf-admin .wrap input[type="radio"]:checked {
    border-color: var(--accent);
    background:
        radial-gradient(circle at center, var(--accent) 0 38%, transparent 42%),
        var(--surface);
}
.gf-admin .wrap input[type="checkbox"]:focus,
.gf-admin .wrap input[type="radio"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    outline: none;
}
.gf-admin .wrap input[type="checkbox"]:disabled,
.gf-admin .wrap input[type="radio"]:disabled {
    background-color: #F3F4F6;
    border-color: #E5E7EB;
    cursor: not-allowed;
    opacity: 0.78;
}
.gf-admin .wrap input[type="checkbox"]:disabled:checked,
.gf-admin .wrap input[type="radio"]:disabled:checked {
    background-color: var(--accent-muted);
    border-color: var(--accent-muted);
}
.gf-admin .gf-field .gf-field-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* 10. Buttons */
.gf-admin .gf-save-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}
.gf-admin .gf-version { font-size: 11px; color: var(--text-muted); }
.gf-admin .wrap .button,
.gf-admin .wrap button,
.gf-admin .wrap a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 15px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition:
        background-color 0.15s var(--ease-out),
        border-color 0.15s var(--ease-out),
        color 0.15s var(--ease-out),
        box-shadow 0.15s var(--ease-out),
        transform 0.15s var(--ease-out);
}
.gf-admin .wrap .button:hover,
.gf-admin .wrap button:hover,
.gf-admin .wrap a.button:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: var(--text-primary);
    transform: translateY(-1px);
}
.gf-admin .wrap .button:focus,
.gf-admin .wrap button:focus,
.gf-admin .wrap a.button:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    color: var(--text-primary);
    outline: none;
}
.gf-admin .wrap .button:disabled,
.gf-admin .wrap button:disabled,
.gf-admin .wrap .button.disabled,
.gf-admin .wrap .button[aria-disabled="true"] {
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}
.gf-admin .wrap .button.button-small {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 12px;
}
.gf-admin .wrap .button.button-primary,
.gf-admin .wrap button.button-primary,
.gf-admin .wrap .gf-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--shadow-btn);
}
.gf-admin .wrap .button.button-primary:hover,
.gf-admin .wrap button.button-primary:hover,
.gf-admin .wrap .gf-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--on-accent);
}
.gf-admin .wrap .button.button-primary:focus,
.gf-admin .wrap button.button-primary:focus,
.gf-admin .wrap .gf-btn-primary:focus {
    color: var(--on-accent);
    box-shadow: 0 0 0 3px var(--accent-subtle), var(--shadow-btn);
}
.gf-admin .wrap .button-link-delete,
.gf-admin .wrap button[name="scf_clear_login_log"],
.gf-admin .wrap button[name="scf_clear_audit_log"] {
    border-color: #FCA5A5;
    background: var(--status-error-light);
    color: #B91C1C;
}
.gf-admin .wrap .button-link-delete:hover,
.gf-admin .wrap button[name="scf_clear_login_log"]:hover,
.gf-admin .wrap button[name="scf_clear_audit_log"]:hover {
    border-color: var(--status-error);
    background: #FEE2E2;
    color: #991B1B;
}
.gf-admin .wrap .button-link-delete:focus,
.gf-admin .wrap button[name="scf_clear_login_log"]:focus,
.gf-admin .wrap button[name="scf_clear_audit_log"]:focus {
    border-color: var(--status-error);
    box-shadow: 0 0 0 3px var(--status-error-light);
    color: #991B1B;
}

/* 11. Tables */
.gf-admin .gf-table-wrap { overflow: auto; }
.gf-admin .gf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.gf-admin .gf-table th {
    text-align: left;
    padding: 10px 14px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.gf-admin .gf-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #F4F4F5;
    vertical-align: top;
}
.gf-admin .gf-table tr:hover td { background: #FAFAFA; }
.gf-admin .gf-mono { font-family: 'Menlo', 'Monaco', monospace; font-size: 12px; }

.gf-admin .gf-result-success { color: var(--status-success); font-weight: 600; }
.gf-admin .gf-result-failed  { color: var(--status-error);   font-weight: 600; }
.gf-admin .gf-result-locked  { color: #92400E; background: var(--accent-subtle); padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; }
/* Would have been locked, but staging mode let it through. Deliberately
 quieter than .gf-result-locked: the row is a record of something that did
 NOT happen, and it must not read as an enforced block. */
.gf-admin .gf-result-soft_locked { color: var(--text-muted); background: var(--bg-light); padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; border: 1px dashed var(--border); }

/* "Explain this event" — the bought answer, sitting under the row it is about.
 Recessed rather than highlighted: it is commentary on the line above, and a
 log that has been read a dozen times should still scan as a log. */
.gf-admin .gf-explain-row > td { background: var(--bg-light); border-top: 0; padding: 12px 16px 14px; }
.gf-admin .gf-explain-narrative { margin: 0 0 8px; max-width: 76ch; line-height: 1.55; }
.gf-admin .gf-explain-actions { margin: 0 0 8px; padding-left: 20px; max-width: 76ch; }
.gf-admin .gf-explain-actions li { margin-bottom: 3px; }
.gf-admin .gf-explain-meta { margin: 0; font-size: 11px; color: var(--text-muted); }
.gf-admin .gf-explain-chip { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; background: var(--bg-light); }
/* Same four colours the vulnerability screen already uses for the same four
 words, so one severity does not read two ways inside one plugin. */
.gf-admin .gf-explain-sev-critical { color: var(--status-error); background: var(--status-error-light); }
.gf-admin .gf-explain-sev-high     { color: #92400E; background: var(--accent-subtle); }
.gf-admin .gf-explain-sev-medium,
.gf-admin .gf-explain-sev-low      { color: var(--text-secondary); }

/* 12. Stat boxes (integrity, dashboard) */
.gf-admin .gf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.gf-admin .gf-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.gf-admin .gf-stat-val {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}
.gf-admin .gf-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* 14. Hardening score.
 The dial, the band letter, the checklist rows and the sparkline. The
 :target rule at the end is what makes a fix link land somewhere visible:
 the checklist deep-links to admin.php?page=guardforge#gf-card-<slug>, and
 without a highlight the browser scrolls to a card that looks like every
 other card on the screen. */
.gf-admin .gf-score-dial {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 18px;
}
.gf-admin .gf-score-value {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}
.gf-admin .gf-score-value span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
}
.gf-admin .gf-score-band {
    display: inline-block;
    margin-top: 8px;
    min-width: 34px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-align: center;
    color: #FFFFFF;
    background: var(--text-muted);
}
.gf-admin .gf-score-band-a { background: var(--accent); }
.gf-admin .gf-score-band-b { background: #7CBE2A; }
.gf-admin .gf-score-band-c { background: var(--status-warning); }
.gf-admin .gf-score-band-d { background: var(--status-error); }
.gf-admin .gf-score-verdict { flex: 1 1 320px; }
.gf-admin .gf-score-verdict p { margin: 0 0 10px; }
.gf-admin .gf-score-meta {
    font-size: 12px;
    color: var(--text-muted);
}
.gf-admin .gf-score-summary .gf-card-body {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 18px;
}
.gf-admin .gf-score-summary-num {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}
.gf-admin .gf-score-summary-text { color: var(--text-secondary); }
/* §6.4 K1-d review round 1, m3: no rule existed for this class at all, so
 the caption rendered as an ordinary flex item — same size and colour as
 the number and the band beside it — inside .gf-score-summary's flex row.
 flex-basis: 100% forces it onto its own full-width line regardless of
 where it sits in the row, the same trick a caption under a figure uses. */
.gf-admin .gf-score-caption {
    display: block;
    flex-basis: 100%;
    font-size: 12px;
    color: var(--text-muted);
}
.gf-admin .gf-score-summary-link { margin-left: auto; }
.gf-admin .gf-score-item { align-items: flex-start; }
.gf-admin .gf-score-item-fail { border-left: 3px solid var(--status-error); }
.gf-admin .gf-score-item-warn { border-left: 3px solid var(--status-warning); }
.gf-admin .gf-score-item-ok   { border-left: 3px solid var(--accent); }
.gf-admin .gf-score-item-na   { border-left: 3px solid var(--border); }
/* Set and not in force here. Last, so it wins over the green of an ok row —
 the point of the marker is that the row must not read as a live defence. */
.gf-admin .gf-score-item-caveat { border-left: 3px solid var(--status-warning); }
.gf-admin .gf-score-item .gf-label-title,
.gf-admin .gf-score-item .gf-label-desc,
.gf-admin .gf-score-caveat,
.gf-admin .gf-score-why,
.gf-admin .gf-score-fix {
    display: block;
}
.gf-admin .gf-score-caveat {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--status-warning);
    max-width: 70ch;
}
.gf-admin .gf-score-staging { margin-bottom: 12px; }
.gf-admin .gf-score-why {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    max-width: 70ch;
}
.gf-admin .gf-score-fix {
    margin-top: 6px;
    font-size: 12px;
    max-width: 70ch;
}
.gf-admin .gf-score-marks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    white-space: nowrap;
}
.gf-admin .gf-score-points {
    font-size: 12px;
    color: var(--text-muted);
}
.gf-admin .gf-score-spark {
    display: block;
    width: 100%;
    height: 60px;
    margin-bottom: 18px;
    color: var(--accent);
}
.gf-admin .gf-score-badge-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.gf-admin .gf-card:target {
    box-shadow: 0 0 0 2px var(--accent);
}

/* 15. Staging / development mode.
 The live decision panel above the two controls. Its whole job is to be
 impossible to miss while the operator is editing the host list directly
 underneath it — that panel is what lets the detector trust a host-list
 match on a site whose copied wp-config still says "production". */
.gf-admin .gf-staging-state {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 18px 4px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    border-left: 3px solid var(--border);
    background: var(--bg-light);
    color: var(--text-secondary);
}
.gf-admin .gf-staging-state-on {
    border-left-color: var(--status-warning);
    background: var(--status-warning-light);
    color: var(--text-primary);
}
.gf-admin .gf-staging-host { font-size: 12px; color: var(--text-muted); }
.gf-admin .gf-staging-host code { font-size: 12px; }
/* The global banner is core markup, because assets/css/admin.css is only
 enqueued on GuardForge screens — everywhere else this rule simply is not
 there, and core's notice-warning carries the whole appearance. */
.gf-admin .gf-staging-banner { border-left-color: var(--status-warning); }
