/* ═══════════════════════════════════════════════════════════════
   Audit Report Plugin — Professional Stylesheet v1.3.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Card wrapper ─────────────────────────────────────────────── */
.arp-card {
    max-width: 1000px;
    margin: 28px auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dde3ec;
    box-shadow: 0 6px 32px rgba(15,23,42,.07);
    padding: 28px 28px 32px;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #1e293b;
}

.arp-title    { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #0f172a; }
.arp-subtitle { margin: 0 0 20px; color: #64748b; font-size: 14px; }

/* ── Form ─────────────────────────────────────────────────────── */
.arp-form label { display: block; font-weight: 600; margin-bottom: 8px; color: #334155; }
.arp-row        { display: flex; gap: 10px; flex-wrap: wrap; }

.arp-row input {
    flex: 1 1 300px;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color .15s;
}
.arp-row input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.arp-row button {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.arp-row button:hover  { opacity: .88; }
.arp-row button:active { transform: scale(.98); }

.arp-loader { margin-top: 14px; color: #2563eb; font-weight: 600; font-size: 14px; }
#arp-result { margin-top: 22px; }

/* ── Alerts ──────────────────────────────────────────────────── */
.arp-alert-error {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

/* ── Score pills bar ─────────────────────────────────────────── */
.arp-scorebar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

.arp-score-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 160px;
    border-radius: 12px;
    padding: 14px 18px;
}
.arp-score-pill-pass { background: #f0fdf4; border: 1.5px solid #86efac; }
.arp-score-pill-warn { background: #fef2f2; border: 1.5px solid #fca5a5; }

.arp-score-pill-icon { font-size: 26px; line-height: 1; }
.arp-score-pill-pass .arp-score-pill-icon { color: #16a34a; }
.arp-score-pill-warn .arp-score-pill-icon { color: #dc2626; }

.arp-score-pill-body  { display: flex; flex-direction: column; gap: 2px; }
.arp-score-pill-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.arp-score-pill-num   { font-size: 28px; font-weight: 800; line-height: 1; }
.arp-score-pill-pass .arp-score-pill-num { color: #16a34a; }
.arp-score-pill-warn .arp-score-pill-num { color: #dc2626; }
.arp-score-pill-denom { font-size: 16px; font-weight: 600; opacity: .65; }

/* ── Result notice ───────────────────────────────────────────── */
.arp-notice { border-radius: 9px; padding: 13px 16px; font-size: 14px; margin-bottom: 14px; }
.arp-notice-pass { background: #f0fdf4; border-left: 4px solid #22c55e; color: #14532d; }
.arp-notice-warn { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }

/* ── Warning summary list ────────────────────────────────────── */
.arp-warn-summary {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.arp-warn-summary-title {
    font-weight: 700;
    color: #9a3412;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.arp-warn-summary-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 13px;
    color: #431407;
    padding: 3px 0;
}
.arp-warn-summary-dot  { color: #ea580c; font-size: 10px; flex-shrink: 0; }
.arp-warn-summary-more { font-size: 12px; color: #9a3412; margin-top: 6px; font-style: italic; }

/* ── Sections ────────────────────────────────────────────────── */
.arp-sections { display: flex; flex-direction: column; gap: 18px; }

.arp-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}
.arp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 10px;
    flex-wrap: wrap;
    gap: 8px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.arp-section-name  { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.arp-section-stats { display: flex; align-items: center; gap: 10px; }
.arp-section-badge {
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 11px;
}
.arp-section-badge-good { background: #dcfce7; color: #15803d; }
.arp-section-badge-warn { background: #fee2e2; color: #991b1b; }
.arp-section-pct { font-size: 18px; font-weight: 800; color: #374151; }

.arp-section-bar      { height: 5px; background: #e2e8f0; }
.arp-section-bar-fill { height: 100%; transition: width .4s ease; }

/* ── Check cards ─────────────────────────────────────────────── */
.arp-card-item {
    margin: 10px 10px 0;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    background: #fff;
    overflow: hidden;
}
.arp-card-item:last-child { margin-bottom: 10px; }

.arp-item-pass { border-left-color: #22c55e; }
.arp-item-warn { border-left-color: #ef4444; background: #fffcfc; }

/* ── Card header ─────────────────────────────────────────────── */
.arp-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px 9px;
    border-bottom: 1px solid #f1f5f9;
}
.arp-item-title { font-weight: 700; font-size: 15px; color: #1e293b; }

.arp-learn-more {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 8px;
    white-space: nowrap;
    transition: background .12s;
}
.arp-learn-more:hover { background: #e2e8f0; }

.arp-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Status badge */
.arp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    padding: 3px 10px;
    white-space: nowrap;
}
.arp-badge-pass  { background: #dcfce7; color: #15803d; }
.arp-badge-warn  { background: #fee2e2; color: #991b1b; }
.arp-badge-score { font-weight: 800; opacity: .75; margin-left: 1px; }

.arp-importance { font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap; }

/* ── Value row ───────────────────────────────────────────────── */
.arp-item-value {
    margin: 9px 14px 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 13px;
    color: #334155;
    word-break: break-all;
}
.arp-value-label { font-weight: 600; color: #64748b; }

/* ── Detail groups ───────────────────────────────────────────── */
/* Each group is a visually distinct box for warn / pass / info lines.
   Warns appear first (red box), then passes (green), then info (grey).
   This makes it immediately clear what failed vs what passed.       */

.arp-det-group {
    margin: 9px 14px 0;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid transparent;
}
.arp-det-group:last-child { margin-bottom: 10px; }

.arp-det-group-warn { border-color: #fecaca; background: #fef2f2; }
.arp-det-group-pass { border-color: #bbf7d0; background: #f0fdf4; }
.arp-det-group-info { border-color: #e2e8f0; background: #f8fafc; }

/* Individual detail lines inside a group */
.arp-det-pass,
.arp-det-warn,
.arp-det-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.45;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.arp-det-pass:last-child,
.arp-det-warn:last-child,
.arp-det-info:last-child { border-bottom: none; }

.arp-det-pass { color: #14532d; }
.arp-det-warn { color: #7f1d1d; }
.arp-det-info { color: #334155; }

.arp-det-icon { flex-shrink: 0; font-size: 12px; font-weight: 700; margin-top: 1px; }
.arp-det-pass .arp-det-icon { color: #16a34a; }
.arp-det-warn .arp-det-icon { color: #dc2626; }
.arp-det-info .arp-det-icon { color: #94a3b8; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 680px) {
    .arp-card          { padding: 16px; }
    .arp-score-pill    { flex: 1 1 100%; }
    .arp-score-pill-num { font-size: 22px; }
    .arp-section-name  { font-size: 14px; }
    .arp-item-title    { font-size: 13px; }
    .arp-item-head     { flex-direction: column; align-items: flex-start; }
    .arp-item-meta     { gap: 6px; }
    .arp-badge         { font-size: 11px; padding: 2px 8px; }
}


/* ═══════════════════════════════════════════════════════════════
   On-page Score Dashboard — Professional Design
   ═══════════════════════════════════════════════════════════════ */

.arp-sb {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    overflow: hidden;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Header */
.arp-sb-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}
.arp-sb-hdr-left { display: flex; flex-direction: column; gap: 2px; }
.arp-sb-hdr-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}
.arp-sb-hdr-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.arp-sb-issue-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    padding: 5px 14px;
}
.arp-sb-issue-pass { background: #f0fdf4; color: #15803d; border: 1.5px solid #bbf7d0; }
.arp-sb-issue-warn { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }

/* Body */
.arp-sb-body {
    display: flex;
    gap: 0;
    padding: 24px;
    align-items: flex-start;
}

/* Donut column */
.arp-sb-donut-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-right: 28px;
    border-right: 1px solid #f1f5f9;
    margin-right: 28px;
}

.arp-sb-donut-wrap {
    position: relative;
    width: 130px;
    height: 130px;
}
.arp-sb-donut-wrap svg {
    width: 130px;
    height: 130px;
}
.arp-sb-donut-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.arp-sb-donut-pct {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.arp-sb-donut-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 3px;
}

/* Summary pills under donut */
.arp-sb-summary { display: flex; gap: 8px; }
.arp-sb-sum-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding: 8px 14px;
    min-width: 56px;
}
.arp-sb-sum-pass { background: #f0fdf4; border: 1px solid #bbf7d0; }
.arp-sb-sum-warn { background: #fef2f2; border: 1px solid #fecaca; }
.arp-sb-sum-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.arp-sb-sum-pass .arp-sb-sum-num { color: #16a34a; }
.arp-sb-sum-warn .arp-sb-sum-num { color: #dc2626; }
.arp-sb-sum-txt {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 3px;
}
.arp-sb-sum-pass .arp-sb-sum-txt { color: #16a34a; }
.arp-sb-sum-warn .arp-sb-sum-txt { color: #dc2626; }

/* Section grid */
.arp-sb-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    align-content: start;
}

.arp-sb-item {}

.arp-sb-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.arp-sb-item-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.arp-sb-item-pct {
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    margin-left: 8px;
}

.arp-sb-item-track {
    height: 8px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}
.arp-sb-item-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .5s ease;
}

.arp-sb-item-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 780px) {
    .arp-sb-body        { flex-direction: column; padding: 16px; }
    .arp-sb-donut-col   { flex-direction: row; border-right: none; border-bottom: 1px solid #f1f5f9; padding-right: 0; margin-right: 0; padding-bottom: 16px; margin-bottom: 16px; width: 100%; justify-content: center; }
    .arp-sb-grid        { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Page Overview Card — Professional Design
   ═══════════════════════════════════════════════════════════════ */

.arp-overview {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    overflow: hidden;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Top bar */
.arp-ov-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.arp-ov-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.arp-ov-type-pill svg { color: #94a3b8; }

.arp-ov-showbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.arp-ov-showbtn:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
}

/* Body: thumb + info */
.arp-ov-body {
    display: flex;
    gap: 0;
    padding: 0;
}

/* Thumbnail */
.arp-ov-thumb {
    flex-shrink: 0;
    width: 200px;
    min-height: 140px;
    background: #f1f5f9;
    border-right: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.arp-ov-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.arp-ov-thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Info panel */
.arp-ov-info {
    flex: 1;
    padding: 18px 22px;
    min-width: 0;
}

.arp-ov-field { margin-bottom: 10px; }
.arp-ov-field:last-child { margin-bottom: 0; }

.arp-ov-field-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f59e0b;
    margin-bottom: 3px;
}

.arp-ov-field-val {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.arp-ov-desc-val {
    font-size: 13px;
    font-weight: 400;
    color: #475569;
    line-height: 1.55;
}

.arp-ov-url-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}
.arp-ov-url-link:hover { text-decoration: underline; }
.arp-ov-url-link svg { flex-shrink: 0; color: #60a5fa; }

/* Stats strip */
.arp-ov-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.arp-ov-stat-cell {
    padding: 14px 16px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.arp-ov-stat-cell:last-child { border-right: none; }

.arp-ov-stat-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}
.arp-ov-stat-label svg { flex-shrink: 0; color: #94a3b8; }

.arp-ov-stat-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.arp-ov-stat-num {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* Chips */
.arp-ov-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 10px;
    line-height: 1.4;
}
.arp-chip-green { background: #dcfce7; color: #15803d; }
.arp-chip-red   { background: #fee2e2; color: #991b1b; }
.arp-chip-blue  { background: #dbeafe; color: #1d4ed8; }
.arp-chip-amber { background: #fef9c3; color: #854d0e; }

/* Responsive */
@media (max-width: 900px) {
    .arp-ov-stats { grid-template-columns: repeat(3, 1fr); }
    .arp-ov-stat-cell:nth-child(3) { border-right: none; }
    .arp-ov-stat-cell:nth-child(3n) { border-right: none; }
    .arp-ov-stat-cell:nth-child(n+4) { border-top: 1px solid #f1f5f9; }
}
@media (max-width: 680px) {
    .arp-ov-body    { flex-direction: column; }
    .arp-ov-thumb   { width: 100%; min-height: 160px; border-right: none; border-bottom: 1px solid #f1f5f9; }
    .arp-ov-stats   { grid-template-columns: repeat(2, 1fr); }
    .arp-ov-stat-cell:nth-child(even) { border-right: none; }
    .arp-ov-stat-cell:nth-child(n+3) { border-top: 1px solid #f1f5f9; }
}

/* ═══════════════════════════════════════════════════════════════
   Checks Tab Navigation
   ═══════════════════════════════════════════════════════════════ */

.arp-tabs-wrap {
    margin-bottom: 14px;
}

.arp-tabs-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.arp-tabs-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #94a3b8;
    text-transform: uppercase;
}

.arp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.arp-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    font-family: inherit;
    white-space: nowrap;
}

.arp-tab:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.arp-tab-active {
    background: #2563eb;
    color: #fff !important;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.arp-tab-active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Section fade transition base */
.arp-section {
    transition: opacity .25s ease;
}

@media (max-width: 680px) {
    .arp-tabs      { gap: 4px; }
    .arp-tab       { padding: 6px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   Professional Loader
   ═══════════════════════════════════════════════════════════════ */

.arp-loader {
    display: none;
    margin-top: 24px;
}

.arp-loader-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(15,23,42,.10);
    padding: 40px 36px 32px;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Ring */
.arp-loader-ring {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}
.arp-loader-ring svg {
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
}
.arp-ring-track {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 10;
}
.arp-ring-fill {
    fill: none;
    stroke: url(#arp-grad);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset .35s ease;
}

.arp-loader-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.arp-loader-pct {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    line-height: 1;
}

/* Text block */
.arp-loader-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.arp-loader-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.arp-loader-step {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    min-height: 20px;
    transition: opacity .2s;
}

/* Progress bar */
.arp-loader-bar-wrap {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}
.arp-loader-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    transition: width .35s ease;
}

/* Step indicators */
.arp-loader-steps-row {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-between;
}
.arp-lstep {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
    flex: 1;
    position: relative;
    padding-top: 10px;
    transition: color .25s;
}
.arp-lstep::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background .25s, transform .2s;
}
.arp-lstep-active {
    color: #2563eb;
}
.arp-lstep-active::before {
    background: #2563eb;
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.arp-lstep-done {
    color: #22c55e;
}
.arp-lstep-done::before {
    background: #22c55e;
}

/* SVG gradient def — inject once */
.arp-loader-ring svg defs { display: block; }

/* ═══════════════════════════════════════════════════════════════
   Download PDF Bar
   ═══════════════════════════════════════════════════════════════ */

.arp-pdf-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    margin-top: 16px;
}

.arp-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 2px 10px rgba(37,99,235,.3);
    white-space: nowrap;
}
.arp-pdf-btn:hover  { opacity: .88; box-shadow: 0 4px 16px rgba(37,99,235,.4); }
.arp-pdf-btn:active { transform: scale(.97); }
.arp-pdf-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.arp-pdf-note {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

@media print {
    .arp-pdf-bar,
    .arp-tabs-wrap,
    #arp-audit-form,
    .arp-loader { display: none !important; }
}

@keyframes arp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
