/* Pacemeet Portal — Engineering Control Panel design */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Stone palette */
  --pm-text: #1C1917;
  --pm-text-secondary: #57534E;
  --pm-text-tertiary: #A8A29E;
  --pm-border: #E7E5E4;
  --pm-border-strong: #D6D3D1;
  --pm-bg: #FAF9F7;
  --pm-surface: #F5F5F4;
  --pm-surface-alt: #FAFAF9;
  --pm-surface-raised: #FFFFFF;

  /* Accent */
  --pm-amber: #D97706;
  --pm-amber-light: #FEF3C7;
  --pm-amber-muted: #92400E;
  --pm-teal: #0D9488;
  --pm-teal-light: #CCFBF1;
  --pm-teal-muted: #115E59;

  /* Buttons */
  --pm-btn-primary: #1C1917;
  --pm-btn-hover: #44403C;

  /* Semantic */
  --pm-green: #16A34A;
  --pm-red: #DC2626;

  /* Fonts */
  --pm-font-display: 'Outfit', system-ui, sans-serif;
  --pm-font-body: 'DM Sans', system-ui, sans-serif;
  --pm-font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

[data-theme="dark"] {
  --pm-text: #E7E5E4;
  --pm-text-secondary: #A8A29E;
  --pm-text-tertiary: #78716C;
  --pm-border: #2C2926;
  --pm-border-strong: #3D3835;
  --pm-bg: #0C0A09;
  --pm-surface: #1C1917;
  --pm-surface-alt: #141211;
  --pm-surface-raised: #292524;

  --pm-amber-light: rgba(217, 119, 6, 0.15);
  --pm-teal-light: rgba(13, 148, 136, 0.15);
  --pm-btn-primary: #E7E5E4;
  --pm-btn-hover: #D6D3D1;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

::selection {
  background: var(--pm-amber-light);
  color: var(--pm-text);
}

body {
  font-family: var(--pm-font-body);
  color: var(--pm-text);
  background: var(--pm-bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--pm-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Navigation === */
.nav {
  border-bottom: 1px solid var(--pm-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.25rem;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--pm-bg);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-logo {
  font-family: var(--pm-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pm-text);
  letter-spacing: -0.03em;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pm-amber);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-logo:hover {
  text-decoration: none;
  opacity: 1;
}
.nav-logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--pm-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pm-text-tertiary);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-links a:hover {
  background: var(--pm-surface);
  color: var(--pm-text-secondary);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--pm-amber-light);
  color: var(--pm-amber-muted);
  font-weight: 600;
}
[data-theme="dark"] .nav-links a.active {
  color: var(--pm-amber);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nav-user {
  font-family: var(--pm-font-mono);
  font-size: 0.78rem;
  color: var(--pm-text-tertiary);
  letter-spacing: 0.02em;
}

.nav-logout {
  display: inline;
}

.nav-logout button {
  background: none;
  border: none;
  color: var(--pm-text-tertiary);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--pm-font-body);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-logout button:hover {
  background: var(--pm-surface);
  color: var(--pm-text-secondary);
}

/* === Main Content === */
.main {
  max-width: 940px;
  margin: 0 auto;
  padding: 2rem;
}

.main-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* === Page Title === */
.page-title {
  font-family: var(--pm-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pm-amber);
  display: inline-block;
}

/* === Cards === */
.card {
  background: var(--pm-surface-raised);
  border: 1px solid var(--pm-border);
  border-left: 3px solid var(--pm-border-strong);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
  display: block;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.card:hover {
  border-left-color: var(--pm-amber);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  text-decoration: none;
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: var(--pm-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pm-text);
  letter-spacing: -0.01em;
}

.card-title a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pm-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.card-title a:hover {
  border-bottom-color: var(--pm-amber);
  text-decoration: none;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--pm-text-secondary);
  line-height: 1.5;
}

.card-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.card-links a {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  color: var(--pm-text-secondary);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  transition: all 0.15s ease;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card-links a:hover {
  background: var(--pm-amber-light);
  border-color: var(--pm-amber);
  color: var(--pm-amber-muted);
  text-decoration: none;
}
[data-theme="dark"] .card-links a:hover {
  color: var(--pm-amber);
}

.card-meta {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  color: var(--pm-text-tertiary);
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
}

/* Card view count */
.card-views {
  font-family: var(--pm-font-mono);
  font-size: 0.7rem;
  color: var(--pm-text-tertiary);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.card-views::before {
  content: '👁';
  font-size: 0.75rem;
}

/* === Status Dots === */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--pm-bg);
}

.status-ok { background-color: var(--pm-green); }
.status-fail { background-color: var(--pm-red); }
.status-unknown { background-color: #BDC3C7; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--pm-btn-primary);
  color: var(--pm-bg);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--pm-font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.4;
}

.btn:hover {
  background: var(--pm-btn-hover);
  text-decoration: none;
  color: var(--pm-bg);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: var(--pm-red);
}
.btn-danger:hover {
  background: #B91C1C;
}

.btn-ghost {
  background: transparent;
  color: var(--pm-text);
  border: 1px solid var(--pm-border);
}
.btn-ghost:hover {
  background: var(--pm-surface);
  color: var(--pm-text);
}

/* === Forms === */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pm-text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: var(--pm-font-body);
  color: var(--pm-text);
  background: var(--pm-surface-raised);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--pm-amber);
  box-shadow: 0 0 0 2px var(--pm-amber-light);
}

.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: var(--pm-font-body);
  color: var(--pm-text);
  background: var(--pm-surface-raised);
  outline: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--pm-amber);
  box-shadow: 0 0 0 2px var(--pm-amber-light);
}

.form-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-inline .form-select {
  width: auto;
}

/* === Login Page === */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--pm-surface);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--pm-surface-raised);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
}
[data-theme="dark"] .login-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.login-title {
  font-family: var(--pm-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.login-error {
  background: #FEF2F2;
  color: var(--pm-red);
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
}

.login-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* === Tables === */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  background: var(--pm-surface-raised);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead th {
  text-align: left;
  font-family: var(--pm-font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--pm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 0.6rem;
  border-bottom: 2px solid var(--pm-border-strong);
  background: var(--pm-surface);
}

tbody td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--pm-border);
  vertical-align: middle;
}

tbody tr:nth-child(even) {
  background: var(--pm-surface-alt);
}

tbody tr:hover {
  background: var(--pm-amber-light);
}

/* === Error Page === */
.error-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.error-code {
  font-family: var(--pm-font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--pm-border-strong);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 1rem;
  color: var(--pm-text-tertiary);
  margin-bottom: 1.5rem;
}

.error-link {
  font-size: 0.9rem;
  color: var(--pm-text-secondary);
}
.error-link:hover { color: var(--pm-text); }

/* === Flash / Alerts === */
.flash {
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.flash-success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.flash-error {
  background: #FEF2F2;
  color: var(--pm-red);
  border: 1px solid #FECACA;
}

/* === Admin Section === */
.admin-form-card {
  border: 1px solid var(--pm-border);
  border-left: 3px solid var(--pm-teal);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--pm-surface-raised);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.admin-form-card h3 {
  font-family: var(--pm-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.admin-form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-form-row .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 120px;
}

/* === Empty State === */
.empty-state {
  color: var(--pm-text-tertiary);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* === Admin Action Buttons === */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Card Grid for catalog */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Theme toggle in nav */
.theme-toggle {
  background: none;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  color: var(--pm-text-tertiary);
  font-size: 0.875rem;
  transition: all 0.15s ease;
  line-height: 1;
  margin-left: 0.5rem;
}
.theme-toggle:hover {
  background: var(--pm-surface);
  border-color: var(--pm-border-strong);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
  }
  .main {
    padding: 1.5rem 1rem;
  }
  .main-wide {
    padding: 0;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-row {
    flex-direction: column;
  }
  .nav-links {
    gap: 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  table {
    font-size: 0.8rem;
  }
}

/* === Team Dashboard === */
.team-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 2rem 3rem;
}

.team-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.team-header h1 {
  font-family: var(--pm-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pm-amber);
  display: inline-block;
}
.team-week {
  color: var(--pm-text-secondary);
  font-family: var(--pm-font-mono);
  font-size: 0.85rem;
}
.team-content h2 {
  font-family: var(--pm-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.team-content h2::before {
  content: '';
  width: 3px;
  height: 1em;
  background: var(--pm-teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Summary cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.summary-card {
  background: var(--pm-surface-raised);
  border: 1px solid var(--pm-border);
  border-left: 3px solid var(--pm-border-strong);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.summary-card:hover {
  border-left-color: var(--pm-amber);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
}
[data-theme="dark"] .summary-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.summary-label {
  font-family: var(--pm-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-text-tertiary);
  margin-bottom: 0.2rem;
}
.summary-value {
  font-family: var(--pm-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pm-text);
  letter-spacing: -0.02em;
}
.summary-hint {
  font-size: 0.72rem;
  color: var(--pm-text-tertiary);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Table scroll wrapper */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  background: var(--pm-surface-raised);
}

/* Team table */
.team-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.team-table th {
  font-family: var(--pm-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-text-secondary);
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--pm-border-strong);
  background: var(--pm-surface);
  white-space: nowrap;
}
.team-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--pm-border); font-variant-numeric: tabular-nums; }
.team-table tbody tr:nth-child(even) { background: var(--pm-surface-alt); }
.team-table tbody tr:hover td { background: var(--pm-amber-light); }
.team-table a { color: var(--pm-teal); text-decoration: none; }
.team-table a:hover { text-decoration: underline; }
.team-table-mini { font-size: 0.8rem; margin-top: 0.5rem; }

/* Lang badge */
.lang-badge {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  color: var(--pm-text-secondary);
}
.lang-count { color: var(--pm-text-tertiary); font-weight: 400; }

/* Color classes */
.velocity-green { color: var(--pm-green); font-weight: 600; }
.velocity-yellow { color: var(--pm-amber); font-weight: 600; }
.velocity-red { color: var(--pm-red); font-weight: 600; }
.sm-green { color: var(--pm-green); font-weight: 600; }
.sm-yellow { color: var(--pm-amber); }
.sm-red { color: var(--pm-red); font-weight: 600; }
.ratio-green { color: var(--pm-green); }
.ratio-yellow { color: var(--pm-amber); }
.ratio-red { color: var(--pm-red); font-weight: 600; }

/* Alert badge */
.badge-alert {
  display: inline-flex;
  align-items: center;
  font-family: var(--pm-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(220, 38, 38, 0.1);
  color: var(--pm-red);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Chart wrapper */
.chart-wrap {
  position: relative;
  height: 280px;
  max-width: 900px;
  margin: 0.5rem 0 2rem;
  padding: 1rem;
  background: var(--pm-surface-raised);
  border: 1px solid var(--pm-border);
  border-radius: 6px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--pm-text-tertiary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--pm-text-secondary); text-decoration: none; }
.back-link::before { content: '←'; }

/* Profile header */
.profile-header { margin-bottom: 1.5rem; }
.profile-header h1 {
  font-family: var(--pm-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pm-amber);
  display: inline-block;
}
.profile-meta {
  color: var(--pm-text-secondary);
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.profile-meta a { color: var(--pm-teal); }

/* Lang group details */
.lang-group { margin-bottom: 0.5rem; }
.lang-group summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--pm-font-display);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
.lang-group summary:hover { color: var(--pm-teal); }

/* Task list */
.task-list { list-style: none; padding: 0; }
.task-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pm-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.task-list a { color: var(--pm-teal); text-decoration: none; font-weight: 500; }
.task-list a:hover { text-decoration: underline; }
.task-meta {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  color: var(--pm-text-tertiary);
}

/* Analysis cards */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.analysis-card {
  background: var(--pm-surface-raised);
  border: 1px solid var(--pm-border);
  border-left: 3px solid var(--pm-border-strong);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.analysis-card.analysis-good { border-left-color: var(--pm-green); }
.analysis-card.analysis-warn { border-left-color: var(--pm-amber); }
.analysis-card.analysis-bad { border-left-color: var(--pm-red); }
.analysis-card.analysis-neutral { border-left-color: var(--pm-text-tertiary); }

.analysis-title {
  font-family: var(--pm-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--pm-text);
}
.analysis-good .analysis-title { color: var(--pm-green); }
.analysis-warn .analysis-title { color: var(--pm-amber); }
.analysis-bad .analysis-title { color: var(--pm-red); }

.analysis-lines {
  list-style: none;
  padding: 0;
}
.analysis-lines li {
  font-size: 0.82rem;
  color: var(--pm-text-secondary);
  padding: 0.15rem 0;
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.5;
}
.analysis-lines li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--pm-text-tertiary);
  font-weight: 700;
}

/* Empty state */
.empty-state {
  color: var(--pm-text-tertiary);
  font-style: italic;
  padding: 1rem 0;
}

/* Details */
details { margin-bottom: 1rem; }
details summary {
  cursor: pointer;
  font-family: var(--pm-font-display);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0;
}
details[open] summary { margin-bottom: 0.5rem; }

/* === Print === */
@media print {
  .nav, .theme-toggle { display: none !important; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
