  /* ===== Page wrapper ===== */
  .mirolabs-alt-wrap{
    margin: 10px 20px 20px 0;
  }
  .mirolabs-alt-wrap *{
    box-sizing: border-box;
  }

  /* =========================
     HERO (soft pro gray — not white)
     ========================= */

  .af-hero{
    margin: 0 0 18px;
    border-radius: 12px;
    padding: 14px 16px;

    background: linear-gradient(180deg, #f3f4f6 0%, #eef2f7 100%);
    border: 1px solid #d6d9de;
    border-left: 6px solid #f59e0b;
    box-shadow: 0 8px 20px rgba(15,23,42,0.07);

    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }

  /* Logo box blends with hero */
  .af-hero-pill{
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(214,217,222,0.95);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
  }
  .af-hero-pill-inner{
    width: 100%;
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background: transparent;
  }
  .af-hero-pill-inner img{
    width: 112%;
    height: 112%;
    object-fit: contain;
    display:block;
  }
  .af-hero-pill-fallback{
    font-weight: 600;
    letter-spacing: .04em;
    font-size: 12px;
    color: #111827;
  }

  /* Main */
  .af-hero-main{ min-width: 0; }

  .af-hero-title-row{
    display:flex;
    align-items:center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
  }
  .af-hero-title{
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    letter-spacing: normal;
  }

  /* Tags */
  .af-hero-tag{
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(214,217,222,0.95);
    color: #374151;
    font-weight: 500;
  }
  .af-hero-tag.alt{
    background: rgba(238,242,255,0.70);
    border-color: rgba(199,210,254,0.95);
    color: #1e3a8a;
  }

  .af-hero-sub{
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
  }

  /* Chips row */
  .af-hero-chips{
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .af-chip,
  .af-chip-pill{
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(214,217,222,0.95);
    background: rgba(255,255,255,0.55);
    color: #111827;
    display:inline-flex;
    align-items:center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 400;
  }

  .af-chip strong{
    font-weight: 500;
    color: #111827;
  }
  .af-chip span{
    color: #6b7280;
    font-weight: 400;
  }

  /* Safe mode pill (darker green + white text) */
  .af-chip-pill.on{
    border-color: rgba(22,163,74,0.70);
    background: rgba(22,163,74,0.55);
    color: #ffffff;
    font-weight: 600;
  }

  .af-chip-pill.off{
    border-color: rgba(239,68,68,0.45);
    background: rgba(239,68,68,0.10);
    color: #7f1d1d;
    font-weight: 600;
  }

  /* Right tip box */
 /* ===== Tip box (pro) ===== */
.af-hero-metrics{
  justify-self: end;
  align-self: stretch;
  min-width: 260px;

  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(214,217,222,0.95);
  border-radius: 12px;
  padding: 10px 12px;

  display:flex;
  flex-direction: column;
  gap: 8px;

  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  position: relative;
  overflow: hidden;
}

/* small top accent */
.af-hero-metrics::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height: 2px;
  background: linear-gradient(90deg, rgba(245,158,11,0.8), rgba(37,99,235,0.55));
  opacity: .9;
}

.af-tip-title{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #111827;
}
.af-tip-title strong{
  font-weight: 500;
}

.af-tip-ico{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.22);
  font-size: 14px;
  line-height: 1;
}

.af-tip-sub{
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
}

.af-tip-hl{
  display:inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.22);
  color: #7c4a03;
  font-weight: 600;
}


  /* =========================
     Cards
     ========================= */
  .af-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  }
  .af-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .af-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }
  .af-card-sub {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
  }

  .af-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px 24px;
  }
  @media (max-width: 900px){
    .af-form-grid { grid-template-columns: minmax(0, 1fr); }
  }

  .af-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
  .af-label { font-weight: 600; color: #111827; }
  .af-label small { font-weight: 400; color: #6b7280; margin-left: 4px; }

  .af-input, .af-select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    color: #111827;
    background: #ffffff;
  }
  .af-input:focus, .af-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
  }

  .af-radio-row, .af-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: #111827;
  }
  .af-radio-row label, .af-checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .af-radio-row strong { font-weight: 600; }

  /* Toolbar / status */
  .af-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }
  .af-toolbar .button-primary {
    border-radius: 999px;
    padding: 6px 16px;
  }
  .af-toolbar .button { font-size: 13px; }
  .af-pager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
  }
  .af-pager span { font-size: 12px; color: #6b7280; }
  .af-toolbar-status { font-size: 12px; color: #6b7280; }

  .af-hidden { display: none !important; }

  /* KPI summary */
  .af-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  @media (max-width: 900px) {
    .af-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .af-kpi {
    border-radius: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
  }
  .af-kpi-label { font-size: 11px; color: #6b7280; margin-bottom: 3px; }
  .af-kpi-value { font-size: 17px; font-weight: 600; color: #111827; }

  /* Results table */
  .mirolabs-alt-wrap table.af-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
  }
  .mirolabs-alt-wrap table.af-table thead { background: #f3f4f6; }
  .mirolabs-alt-wrap table.af-table thead th {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
  }
  .mirolabs-alt-wrap table.af-table tbody td {
    padding: 7px 10px;
    font-size: 13px;
    color: #111827;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
  }
  .mirolabs-alt-wrap table.af-table tbody tr:nth-child(even) td { background: #fafafa; }
  .mirolabs-alt-wrap table.af-table tbody tr.af-hidden-row td { display: none; }

  .af-actions .button.button-small {
    margin-right: 4px;
    margin-bottom: 2px;
  }

  /* Pills + status */
  .af-img-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .af-img-good { background: #e6f6f0; color: #047857; }
  .af-img-mid  { background: #fff7e6; color: #92400e; }
  .af-img-bad  { background: #fee2e2; color: #b91c1c; }

  .af-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  }
  .af-status-critical { background:#fee2e2; color:#b91c1c; }
  .af-status-needs-fix { background:#fff7e6; color:#92400e; }
  .af-status-good     { background:#e6f6f0; color:#047857; }
  .af-status-none     { background:#e5e7eb; color:#374151; }

  /* Filters */
  .af-results-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }
  .af-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #4b5563;
  }
  .af-filters label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .af-search {
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 12px;
    min-width: 200px;
  }
  .af-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
  }

  /* Inspector */
  .af-inspector-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .af-inspector-desc {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 10px;
  }
  .af-inspector-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
  }
  .af-inspector-table th,
  .af-inspector-table td {
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid #edf2f7;
  }
  .af-inspector-table thead { background: #f9fafb; }

  .af-muted { font-size: 12px; color: #6b7280; }
  /* ===== Colored feature chips (soft + pro) ===== */
.af-chip-blue{
  background: rgba(37,99,235,0.12) !important;
  border-color: rgba(37,99,235,0.28) !important;
  color: #0b2a6f !important;
}
.af-chip-blue span{ color: rgba(11,42,111,0.75) !important; }

.af-chip-purple{
  background: rgba(124,58,237,0.12) !important;
  border-color: rgba(124,58,237,0.26) !important;
  color: #3b1a8a !important;
}
.af-chip-purple span{ color: rgba(59,26,138,0.72) !important; }

/* Optional: make Safe pill slightly richer */
.af-chip-pill.on{
  background: rgba(22,163,74,0.58) !important;
  border-color: rgba(22,163,74,0.72) !important;
  color: #fff !important;
}
/* ===== Pro chips ===== */
.af-hero-chips{ gap:10px; }

.af-chip-pro{
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: #111827;
}

/* left accent line (the "pro" touch) */
.af-chip-pro::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,0.18);
}

/* small sub text */
.af-chip-sub{
  color: #6b7280;
  font-weight: 400;
  font-size: 12px;
}

/* keep strong medium weight */
.af-chip-pro strong{
  font-weight: 500;
  color: #111827;
}

/* variant tints (subtle) */
.af-chip-alt{
  background: rgba(245,158,11,0.10);               /* Miro yellow */
  border-color: rgba(245,158,11,0.22);
}
.af-chip-alt::before{
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}

.af-chip-scan{
  background: rgba(37,99,235,0.08);                /* blue */
  border-color: rgba(37,99,235,0.18);
}
.af-chip-scan::before{
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.16);
}

.af-chip-safe{
  background: rgba(22,163,74,0.10);                /* green */
  border-color: rgba(22,163,74,0.20);
}
.af-chip-safe::before{
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16);
}
