/**
 * apps/particle-size/css/particle-size.css
 * All styles for the Particle Size Analyzer.
 * Requires ../../shared/css/variables.css to be loaded first.
 */

/* ══════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

.ps-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   APP HEADER
══════════════════════════════════════════════════ */

/* works whether the element is <div> or <header> */
.ps-app-header {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(to right, #2196F3, #1565C0);
  color: white;
  border-radius: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* reset browser <header> defaults */
  box-sizing: border-box;
  width: 100%;
}

.ps-app-header h1 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  margin-top: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ps-app-header .subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 300;
}

.ps-app-header .header-content {
  max-width: calc(100% - 160px);
  margin: 0 auto;
}

/* Home button */
.ps-home-btn {
  position: absolute; top: 20px; left: 20px;
  width: 35px; height: 35px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer; color: white; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 100;
}
.ps-home-btn:hover { background: white; color: #2196F3; }

/* Settings button */
.ps-settings-open-btn {
  position: absolute; top: 20px; left: 65px;
  width: 35px; height: 35px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer; color: white; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 100;
}
.ps-settings-open-btn:hover { background: white; color: #2196F3; transform: rotate(90deg); }

/* Dark mode toggle alignment inside header */
.ps-app-header .hub-dark-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  height: 35px;
}
.ps-app-header .hub-dark-toggle:hover {
  background: white !important;
  color: #2196F3 !important;
}

html.dark-mode .ps-app-header .hub-dark-toggle,
body.dark-mode .ps-app-header .hub-dark-toggle {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: white !important;
}

html.dark-mode .ps-app-header .hub-dark-toggle:hover,
body.dark-mode .ps-app-header .hub-dark-toggle:hover {
  background: white !important;
  color: #2196F3 !important;
}

/* ══════════════════════════════════════════════════
   FORM LAYOUT
══════════════════════════════════════════════════ */

.ps-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
}

.form-group { margin-bottom: 0; }

/* Sample weight row */
.ps-sample-section {
  background: var(--bg-tertiary);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.ps-sample-section label {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-sample-section input {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s;
}
.ps-sample-section input:focus {
  border-color: #2196F3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}

/* ══════════════════════════════════════════════════
   SIEVE CARDS
══════════════════════════════════════════════════ */

.ps-sieve-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.ps-sieve-card {
  background: var(--bg-card);
  border-radius: 14px;
  border: 2px solid var(--border-color);
  padding: 16px 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ps-sieve-card.status-pass { border-color: #4CAF50; box-shadow: 0 2px 10px rgba(76,175,80,0.12); }
.ps-sieve-card.status-fail { border-color: #f44336; box-shadow: 0 2px 10px rgba(244,67,54,0.12); }

.ps-sieve-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ps-sieve-badge {
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: white; border-radius: 8px;
  padding: 4px 10px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.5px; white-space: nowrap;
}
.ps-sieve-badge.top { background: linear-gradient(135deg, #FF9800, #e65100); }
.ps-sieve-card-head h4 { font-size: 0.95rem; color: var(--text-secondary); font-weight: 600; margin: 0; }

/* 3-column field row */
.ps-sieve-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.ps-sieve-fields .form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  display: block;
}
.ps-sieve-fields .form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: 9px;
  font-size: 15px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s;
}
.ps-sieve-fields .form-group input:focus {
  border-color: #2196F3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
}

/* Result box — 3rd column */
.ps-field-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  width: 72px;
  height: 48px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
  text-align: center;
  transition: all 0.3s ease;
}
.ps-field-result .ps-result-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; opacity: 0.6;
  margin-bottom: 2px; color: var(--text-secondary); line-height: 1;
}
.ps-field-result .ps-result-value {
  font-size: 0.95rem; font-weight: 800;
  color: var(--text-secondary); line-height: 1;
}
.ps-field-result.pass { background: rgba(76,175,80,0.13); border-color: #4CAF50; }
.ps-field-result.pass .ps-result-label,
.ps-field-result.pass .ps-result-value { color: #2e7d32; opacity: 1; }
.ps-field-result.fail { background: rgba(244,67,54,0.12); border-color: #f44336; }
.ps-field-result.fail .ps-result-label,
.ps-field-result.fail .ps-result-value { color: #c62828; opacity: 1; }

.ps-limits-info {
  margin-top: 9px; font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex; align-items: center; gap: 5px;
}
.ps-limits-info strong { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════
   PAN CARD
══════════════════════════════════════════════════ */

.ps-pan-card {
  background: var(--bg-tertiary);
  border-radius: 14px;
  border: 2px dashed var(--border-color);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.ps-pan-card.status-pass { border-color: #4CAF50; background: rgba(76,175,80,0.05); }
.ps-pan-card.status-fail { border-color: #f44336; background: rgba(244,67,54,0.04); }
.ps-pan-label { font-weight: 700; color: var(--text-primary); margin-bottom: 3px; font-size: 0.95rem; }
.ps-pan-limit { font-size: 0.75rem; color: var(--text-tertiary); }
.ps-pan-result-box { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ps-pan-pct { font-size: 1.4rem; font-weight: 700; color: var(--text-secondary); }
.ps-pan-pct.calculated { color: var(--text-primary); }
.ps-pan-pct.pass-color { color: #2e7d32 !important; }
.ps-pan-pct.fail-color { color: #c62828 !important; }

/* Status pill */
.ps-status-pill {
  font-size: 0.72rem; font-weight: 700; border-radius: 20px;
  padding: 3px 10px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-tertiary); color: var(--text-tertiary);
}
.ps-status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ps-status-pill.pass { background: rgba(76,175,80,0.15); color: #2e7d32; }
.ps-status-pill.fail { background: rgba(244,67,54,0.13); color: #c62828; }

/* ══════════════════════════════════════════════════
   SUMMARY CARD
══════════════════════════════════════════════════ */

.ps-summary-card {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}
.ps-summary-title { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.ps-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.ps-summary-row:last-child { border-bottom: none; }
.ps-summary-row .label { color: var(--text-secondary); }
.ps-summary-row .value { font-weight: 700; color: var(--text-primary); }

.ps-overall-result {
  text-align: center; padding: 14px; border-radius: 11px; margin-top: 10px;
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ps-overall-result.pass { background: rgba(76,175,80,0.12); color: #2e7d32; border: 2px solid #4CAF50; }
.ps-overall-result.fail { background: rgba(244,67,54,0.10); color: #c62828; border: 2px solid #f44336; }
.ps-overall-result.pending { background: var(--bg-tertiary); color: var(--text-tertiary); border: 2px dashed var(--border-color); }

/* ══════════════════════════════════════════════════
   RESET BUTTON
══════════════════════════════════════════════════ */

.ps-reset-btn {
  width: 100%; padding: 13px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Poppins", sans-serif;
}
.ps-reset-btn:hover { background: #f44336; border-color: #f44336; color: white; }

/* ══════════════════════════════════════════════════
   SETTINGS OVERLAY & MODAL
══════════════════════════════════════════════════ */

.ps-settings-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9500;
  display: none; justify-content: center; align-items: center;
  backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 0.3s ease;
}
.ps-settings-overlay.active { display: flex; opacity: 1; }

.ps-settings-modal {
  background: var(--bg-card);
  border-radius: 20px;
  width: min(94vw, 560px);
  max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.19,1,0.22,1);
}
.ps-settings-overlay.active .ps-settings-modal { transform: translateY(0); }

.ps-settings-head {
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: white;
  padding: 20px 52px 20px 22px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  flex-shrink: 0;
}
.ps-settings-head-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ps-settings-head h3 { margin: 0 0 3px; font-size: 1.1rem; font-weight: 700; }
.ps-settings-head p  { margin: 0; font-size: 0.8rem; opacity: 0.8; }

.ps-modal-close-btn {
  position: absolute; top: 13px; right: 13px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: white; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease;
}
.ps-modal-close-btn:hover { background: rgba(255,255,255,0.35); transform: rotate(90deg); }

.ps-settings-body {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}

.ps-set-sec {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color); border-radius: 13px; padding: 15px;
}
.ps-set-sec-title {
  font-size: 0.88rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.ps-sieve-count-badge {
  background: #2196F3; color: white;
  border-radius: 20px; padding: 2px 9px;
  font-size: 0.72rem; font-weight: 700;
}
.ps-add-sieve-btn {
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: white; border: none; border-radius: 8px;
  padding: 6px 13px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: all 0.2s; font-family: "Poppins", sans-serif; white-space: nowrap;
}
.ps-add-sieve-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(33,150,243,0.35); }

.ps-set-field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ps-set-field-row .form-group { flex: 1; min-width: 100px; margin-bottom: 10px; }
.ps-set-field-row .form-group label {
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 5px; display: block;
}
.ps-set-field-row .form-group input {
  width: 100%; padding: 10px 12px;
  border: 2px solid var(--border-color); border-radius: 9px;
  font-size: 15px; background: var(--bg-input); color: var(--text-primary);
  transition: border-color 0.3s; font-family: "Poppins", sans-serif;
}
.ps-set-field-row .form-group input:focus {
  border-color: #2196F3; outline: none;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
}

.ps-sieves-list { display: flex; flex-direction: column; gap: 7px; }
.ps-sieve-list-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color); border-radius: 10px;
  padding: 11px 13px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; transition: border-color 0.2s;
}
.ps-sieve-list-item:hover { border-color: #90caf9; }
.ps-sieve-list-main { display: flex; align-items: center; flex: 1; min-width: 0; flex-wrap: nowrap; gap: 8px; }
.ps-sieve-list-meta { display: flex; gap: 10px; flex-wrap: nowrap; font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; }
.ps-sieve-list-btns { display: flex; gap: 5px; flex-shrink: 0; }
.ps-sieve-edit-btn, .ps-sieve-delete-btn {
  width: 30px; height: 30px; border: none; border-radius: 7px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; transition: all 0.2s;
}
.ps-sieve-edit-btn   { background: rgba(33,150,243,0.1); color: #2196F3; }
.ps-sieve-edit-btn:hover { background: #2196F3; color: white; }
.ps-sieve-delete-btn { background: rgba(244,67,54,0.1); color: #f44336; }
.ps-sieve-delete-btn:hover { background: #f44336; color: white; }

.ps-sieve-edit-form {
  background: rgba(33,150,243,0.05);
  border: 2px solid rgba(33,150,243,0.25);
  border-radius: 13px; padding: 15px;
  animation: psFormSlide 0.22s ease;
}
@keyframes psFormSlide { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.ps-edit-form-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.88rem; font-weight: 700; color: #1976D2; margin-bottom: 12px;
}
.ps-edit-form-close-x {
  background: rgba(33,150,243,0.1); border: none; color: #2196F3;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; transition: all 0.2s;
}
.ps-edit-form-close-x:hover { background: #2196F3; color: white; }
.ps-edit-actions { display: flex; gap: 8px; margin-top: 4px; }

.ps-settings-footer {
  padding: 13px 18px; border-top: 1px solid var(--border-color);
  display: flex; gap: 8px; background: var(--bg-secondary); flex-shrink: 0;
}
.ps-footer-reset-btn, .ps-footer-apply-btn {
  border: none; border-radius: 10px;
  padding: 11px 16px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s; font-family: "Poppins", sans-serif;
}
.ps-footer-reset-btn {
  background: var(--bg-tertiary); color: var(--text-secondary);
  border: 1.5px solid var(--border-color); flex: 1;
}
.ps-footer-reset-btn:hover { background: #f44336; color: white; border-color: #f44336; }
.ps-footer-apply-btn {
  background: linear-gradient(135deg, #2196F3, #1565C0); color: white;
  flex: 2; justify-content: center;
  box-shadow: 0 4px 14px rgba(33,150,243,0.28);
}
.ps-footer-apply-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(33,150,243,0.4); }

.ps-empty-state { text-align:center; padding:22px 14px; color: var(--text-tertiary); font-size: 0.88rem; }
.ps-empty-state i { font-size: 2.2rem; opacity: 0.25; display: block; margin-bottom: 8px; }

/* Shared btn style used in settings modal */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; font-family: "Poppins", sans-serif; transition: all 0.2s;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .ps-sieve-fields { grid-template-columns: 1fr 1fr auto; gap: 6px; }
  .ps-app-header .header-content { max-width: calc(100% - 120px); }
  .ps-settings-head {
    padding-right: 46px;
  }
  .ps-sieve-list-main,
  .ps-sieve-list-meta {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════ */

.dark-mode body { background: var(--bg-primary); }
.dark-mode .ps-set-sec          { background: #2d2d2d; border-color: #404040; }
.dark-mode .ps-sieve-list-item  { background: #2c2c2c; border-color: #404040; }
.dark-mode .ps-sieve-edit-form  { background: rgba(33,150,243,0.08); border-color: rgba(33,150,243,0.3); }
.dark-mode .ps-settings-footer  { background: #1e1e1e; border-top-color: #333; }
.dark-mode .ps-footer-reset-btn { background: #2d2d2d; color: #b0b0b0; border-color: #444; }
.dark-mode .ps-settings-modal   { background: #1e1e1e; }
.dark-mode .ps-sieve-card       { background: #1e1e1e; }
.dark-mode .ps-pan-card         { background: #2d2d2d; }
.dark-mode .ps-summary-card     { background: linear-gradient(135deg, #2d2d2d, #1e1e1e); }
/* ══════════════════════════════════════════════════
   NORMALIZE BUTTON
══════════════════════════════════════════════════ */
.ps-normalize-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #FF9800 0%, #e65100 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(255,152,0,.35);
  animation: psNormPulse 2s ease-in-out infinite;
}
.ps-normalize-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,152,0,.50);
  animation: none;
}
.ps-normalize-btn:active { transform: translateY(0); }

.ps-norm-badge {
  background: rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .5px;
}

@keyframes psNormPulse {
  0%,100% { box-shadow: 0 3px 12px rgba(255,152,0,.35); }
  50%      { box-shadow: 0 3px 22px rgba(255,152,0,.60); }
}

/* ══════════════════════════════════════════════════
   ADJUSTMENT LOG
══════════════════════════════════════════════════ */
.ps-adjust-log {
  margin-top: 12px;
  border: 1.5px solid rgba(33,150,243,.22);
  border-radius: 12px;
  overflow: hidden;
  animation: psLogIn .3s ease;
}
@keyframes psLogIn {
  from { opacity:0; transform:translateY(-5px); }
  to   { opacity:1; transform:translateY(0); }
}

.ps-adj-header {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(33,150,243,.10);
  padding: 9px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1565C0;
}
.dark-mode .ps-adj-header { color: #90caf9; background: rgba(33,150,243,.18); }

.ps-adj-close {
  margin-left: auto;
  background: rgba(33,150,243,.12);
  border: none;
  color: #1565C0;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  transition: background .2s, color .2s;
}
.ps-adj-close:hover { background: #2196F3; color: #fff; }
.dark-mode .ps-adj-close { color: #90caf9; }

.ps-adj-body { padding: 4px 0; }

.ps-adj-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.ps-adj-row:last-child { border-bottom: none; }
.ps-adj-unchanged { opacity: .40; }

.ps-adj-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 78px;
  font-weight: 700;
  color: var(--text-secondary);
}
.ps-adj-detail {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.78rem;
}
.ps-adj-delta {
  font-weight: 800;
  font-size: 0.78rem;
  min-width: 66px;
  text-align: right;
}
.ps-adj-delta.pos { color: #2e7d32; }
.ps-adj-delta.neg { color: #c62828; }
.dark-mode .ps-adj-delta.pos { color: #a5d6a7; }
.dark-mode .ps-adj-delta.neg { color: #ef9a9a; }

.ps-adj-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 0.73rem;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}
