/* ═══════════════════════════════════════════════════════════════════
   PPS GLOBAL STYLESHEET
   Pure Property Solutions — The Pure Way: Trust. Quality. Results.™
   Version 2.0 — Premium Hub Theme
   ═══════════════════════════════════════════════════════════════════ */

/* ── IMPORTS ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── CSS VARIABLES ───────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --dark-blue:   #004C8C;
  --blue:        #0096D6;
  --blue-mid:    #0072A8;
  --light-bg:    #EBF6FC;
  --light-bg-2:  #F0F6FB;

  /* Neutrals */
  --gray:        #3A3A3A;
  --gray-mid:    #666666;
  --gray-light:  #999999;
  --border:      #D0DCE8;
  --border-light:#E8EEF4;
  --white:       #FFFFFF;
  --page-bg:     #F2F7FB;

  /* Semantic */
  --green:       #1E8449;
  --green-light: #E8F5EE;
  --amber:       #D68910;
  --amber-light: #FEF9E7;
  --red:         #C0392B;
  --red-light:   #FDEDEC;

  /* Elevation */
  --shadow-sm:   0 1px 4px rgba(0,40,80,0.08);
  --shadow:      0 3px 16px rgba(0,40,80,0.10);
  --shadow-md:   0 6px 28px rgba(0,40,80,0.13);
  --shadow-lg:   0 12px 48px rgba(0,40,80,0.16);
  --shadow-inset:inset 0 1px 3px rgba(0,0,0,0.06);

  /* Geometry */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  /* Typography */
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;

  /* Transitions */
  --transition:  0.18s ease;
  --transition-fast: 0.12s ease;

  /* Header */
  --header-h:    64px;
}

/* ── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--gray);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──────────────────────────────────────────────────────── */
.pps-header {
  background: var(--dark-blue);
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pps-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}
.pps-header-left:hover { opacity: 0.9; }

.pps-header-logo { height: 40px; width: auto; }

.pps-header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.pps-header-title {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pps-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pps-header-user {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-right: 4px;
}
.pps-header-user span { color: rgba(255,255,255,0.85); font-weight: 500; }

.pps-btn-header {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.pps-btn-header:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
}
.pps-btn-header.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.pps-btn-header.primary:hover { background: var(--blue-mid); }

.pps-header-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── BRAND & FOOTER ──────────────────────────────────────────────── */
.pps-footer {
  text-align: center;
  padding: 36px 20px 32px;
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pps-footer-logo { height: 44px; width: auto; opacity: 0.9; }
.pps-footer-motto {
  width: min(100%, 520px);
  height: auto;
  opacity: 0.95;
}
.pps-footer-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.pps-login-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 8px;
}
.pps-login-strip .pps-login-logo { height: 52px; width: auto; }
.pps-login-strip .pps-login-motto {
  width: min(100%, 420px);
  height: auto;
  opacity: 0.95;
}

.pps-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.pps-login-brand .pps-login-logo { height: 56px; width: auto; }
.pps-login-brand .pps-login-motto {
  width: min(100%, 420px);
  height: auto;
  opacity: 0.95;
}

.pps-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.pps-hero-brand .pps-hero-logo { height: 48px; width: auto; }
.pps-hero-brand .pps-hero-motto { height: 32px; width: auto; max-width: min(100%, 480px); opacity: 0.88; }

/* ── PAGE LAYOUT ─────────────────────────────────────────────────── */
.pps-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
.pps-main-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.pps-page-title {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--dark-blue);
  margin-bottom: 4px;
  line-height: 1.2;
}
.pps-page-sub {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 28px;
}

/* ── CARDS ───────────────────────────────────────────────────────── */
.pps-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pps-card:hover { box-shadow: var(--shadow-md); }
.pps-card-body { padding: 24px; }

.pps-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pps-card-header h2, .pps-card-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--dark-blue);
}

/* Section head (blue rule above) */
.pps-section-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding-bottom: 8px;
  margin-bottom: 14px;
  margin-top: 4px;
  border-bottom: 1.5px solid var(--border);
}

/* ── TOOL CARDS (Dashboard) ──────────────────────────────────────── */
.pps-tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border-light);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--gray);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pps-tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dark-blue), var(--blue));
  opacity: 0;
  transition: opacity var(--transition);
}
.pps-tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,150,214,0.3);
  transform: translateY(-2px);
}
.pps-tool-card:hover::before { opacity: 1; }

.pps-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pps-tool-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 3px;
}
.pps-tool-desc {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.4;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.pps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.pps-btn:active { transform: scale(0.98); }

.pps-btn-primary {
  background: var(--dark-blue);
  color: white;
}
.pps-btn-primary:hover { background: #003d73; box-shadow: 0 4px 14px rgba(0,76,140,0.30); }

.pps-btn-blue {
  background: var(--blue);
  color: white;
}
.pps-btn-blue:hover { background: var(--blue-mid); box-shadow: 0 4px 14px rgba(0,150,214,0.30); }

.pps-btn-outline {
  background: transparent;
  color: var(--dark-blue);
  border: 1.5px solid var(--border);
}
.pps-btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--light-bg); }

.pps-btn-ghost {
  background: transparent;
  color: var(--gray-mid);
  border: none;
}
.pps-btn-ghost:hover { color: var(--dark-blue); background: var(--light-bg); }

.pps-btn-danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--border);
  font-size: 13px;
  padding: 6px 12px;
}
.pps-btn-danger:hover { background: var(--red-light); border-color: var(--red); }

.pps-btn-sm { padding: 6px 12px; font-size: 12px; }
.pps-btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.pps-btn-full { width: 100%; }

/* ── FORMS ───────────────────────────────────────────────────────── */
.pps-field { display: flex; flex-direction: column; gap: 5px; }

.pps-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pps-input, .pps-select, .pps-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}
.pps-input:focus, .pps-select:focus, .pps-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,150,214,0.12);
}
.pps-input::placeholder, .pps-textarea::placeholder { color: var(--gray-light); }
.pps-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.pps-select { cursor: pointer; }

/* Form grid */
.pps-form-row { display: grid; gap: 14px; }
.pps-form-row-2 { grid-template-columns: 1fr 1fr; }
.pps-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── TABLES ──────────────────────────────────────────────────────── */
.pps-table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.pps-table {
  width: 100%;
  border-collapse: collapse;
}
.pps-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dark-blue);
  padding: 11px 18px;
  background: var(--light-bg);
  border-bottom: 1.5px solid var(--border);
}
.pps-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
  vertical-align: middle;
}
.pps-table tr:last-child td { border-bottom: none; }
.pps-table tr.clickable { cursor: pointer; }
.pps-table tr.clickable:hover td { background: #F6FAFE; }
.pps-table .prop-name { font-weight: 600; color: var(--dark-blue); }

/* ── BADGES ──────────────────────────────────────────────────────── */
.pps-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pps-badge-blue   { background: var(--light-bg); color: var(--dark-blue); }
.pps-badge-green  { background: var(--green-light); color: var(--green); }
.pps-badge-amber  { background: var(--amber-light); color: var(--amber); }
.pps-badge-red    { background: var(--red-light); color: var(--red); }
.pps-badge-gray   { background: #F0F2F5; color: var(--gray-mid); }

/* ── STATS ROW ───────────────────────────────────────────────────── */
.pps-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.pps-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.pps-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--blue); }
.pps-stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark-blue);
  line-height: 1;
  margin-bottom: 4px;
}
.pps-stat-num .all-time { font-size: 16px; color: var(--gray-light); }
.pps-stat-lbl { font-size: 11px; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── MODALS ──────────────────────────────────────────────────────── */
.pps-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 60, 0.55);
  z-index: 900;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.pps-modal-overlay.active { display: flex; }

.pps-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity:0; transform: scale(0.96) translateY(8px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.pps-modal-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--dark-blue);
  margin-bottom: 16px;
  line-height: 1.2;
}
.pps-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-light);
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  border-radius: 4px;
  transition: color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pps-modal-close:hover { color: var(--gray); }

.pps-meta-row {
  display: flex;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}
.pps-meta-row:last-child { border-bottom: none; }
.pps-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  width: 130px;
  flex-shrink: 0;
  padding-top: 1px;
}
.pps-meta-val { font-size: 14px; color: var(--gray); line-height: 1.4; }

.pps-meta-block {
  margin-top: 12px;
}
.pps-meta-block-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.pps-meta-block-text {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.6;
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.pps-meta-block-text.notes {
  background: #FFFBF0;
  border: 1px solid #FFE9A0;
}

/* ── LOADING ─────────────────────────────────────────────────────── */
.pps-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pps-loading {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-light);
  font-size: 14px;
}
.pps-loading.active { display: block; }
.pps-loading-steps { font-size: 13px; color: var(--gray-light); margin-top: 6px; }

/* ── ACTIVITY ITEMS ──────────────────────────────────────────────── */
.pps-act-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}
.pps-act-item:last-child { border-bottom: none; }
.pps-act-item.clickable { cursor: pointer; }
.pps-act-item.clickable:hover { background: #F6FAFE; }
.pps-act-name { font-size: 13.5px; font-weight: 500; color: var(--dark-blue); }
.pps-act-meta { font-size: 11.5px; color: var(--gray-light); margin-top: 2px; }

/* ── ALERTS & TOASTS ─────────────────────────────────────────────── */
.pps-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray);
  color: white;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  transition: all 0.22s ease;
  pointer-events: none;
  white-space: nowrap;
}
.pps-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pps-toast.success { background: var(--green); }
.pps-toast.error   { background: var(--red); }

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.pps-empty {
  text-align: center;
  color: var(--gray-light);
  padding: 48px 24px;
  font-size: 14px;
}
.pps-empty-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.4; }

/* ── PWA INSTALL BANNER ──────────────────────────────────────────── */
.pps-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 250;
  animation: pps-install-in 0.28s ease;
}
@keyframes pps-install-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pps-install-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
}
.pps-install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pps-install-text strong {
  font-size: 14px;
  color: var(--dark-blue);
}
.pps-install-text span {
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.4;
}
.pps-install-action {
  flex-shrink: 0;
  background: var(--dark-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}
.pps-install-action:hover { background: var(--blue); }
.pps-install-dismiss {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--gray-light);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 52px; }
  .pps-footer { flex-direction: column; gap: 14px; padding: 32px 16px 28px; }
  .pps-footer-divider { display: none; }
  .pps-footer-logo { height: 40px; }
  .pps-footer-motto { width: min(100%, 100%); }
  .pps-header { padding: 0 12px; gap: 0; }
  .pps-header-logo { height: 28px; }
  .pps-header-divider { height: 18px; }
  .pps-header-title { font-size: 12px; }
  .pps-header-user { display: none; }
  .pps-btn-header { padding: 5px 10px; font-size: 11px; }
  .pps-main, .pps-main-narrow { padding: 16px 12px 60px; }
  .pps-page-title { font-size: 22px; }
  .pps-form-row-2 { grid-template-columns: 1fr; }
  .pps-form-row-3 { grid-template-columns: 1fr 1fr; }
  .pps-modal { padding: 18px 14px; width: 95%; }
  .pps-stats-row { grid-template-columns: repeat(2, 1fr); }
  .pps-table td, .pps-table th { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  :root { --header-h: 48px; }
  .pps-header-logo { height: 24px; }
  .pps-header-title { display: none; }
  .pps-stats-row { grid-template-columns: 1fr 1fr; }
  .pps-form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pps-stats-row { grid-template-columns: 1fr 1fr; }
  .pps-form-row-3 { grid-template-columns: 1fr; }
  .pps-table td, .pps-table th { padding: 9px 12px; }
}

/* ── ESTIMATE RELIABILITY ─────────────────────────────────────────── */
.pps-confidence {
  border-radius: var(--radius, 10px);
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border);
}
.pps-confidence-high {
  background: var(--green-light);
  border-color: #81C784;
}
.pps-confidence-medium {
  background: var(--amber-light);
  border-color: #FFD54F;
}
.pps-confidence-low {
  background: var(--red-light);
  border-color: #EF9A9A;
}
.pps-confidence-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-blue);
  margin-bottom: 4px;
}
.pps-confidence-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 4px;
}
.pps-confidence-detail {
  font-size: 12px;
  color: var(--gray-mid);
}
.pps-confidence-hint {
  font-size: 11px;
  color: var(--gray-light);
  margin-top: 6px;
  font-style: italic;
}
.pps-reliability-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.pps-reliability-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  background: var(--light-bg-2, #f8fbfd);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}
.pps-reliability-label { font-weight: 600; color: var(--dark-blue); }
.pps-reliability-value { color: var(--gray); text-align: right; }
.pps-reliability-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.pps-rel-high { background: var(--green-light); color: var(--green); }
.pps-rel-medium { background: #E3F2FD; color: var(--blue-mid); }
.pps-rel-low { background: var(--amber-light); color: #9A6B00; }
.pps-rel-manual { background: #E8EAF6; color: #3949AB; }
.pps-rel-missing { background: var(--red-light); color: var(--red); }
@media (max-width: 600px) {
  .pps-reliability-row { grid-template-columns: 1fr; text-align: left; }
  .pps-reliability-value { text-align: left; }
}

.pps-step-progress { display: none; }
@media (max-width: 768px) {
  .pps-step-progress {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: var(--header-h); z-index: 150;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 10px 14px; margin-bottom: 16px; border-radius: 8px; border: 1px solid var(--border-light);
    font-size: 12px; font-weight: 600; color: var(--dark-blue);
  }
  .pps-step-progress-bar { flex: 1; height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
  .pps-step-progress-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.2s ease; width: 0%; }
  .pps-step-progress-text { white-space: nowrap; flex-shrink: 0; }
}
