/* NullSec — pages.css — pages layer (M0.4) */
.about-content {

  max-width: var(--article-width);
  margin: 0 auto;

}

.article-page {

  padding: 100px 0 60px;

}

.article-header {

  margin-bottom: 48px;

}

.article-header .category-badge {

  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 100px;
  margin-bottom: 20px;

}

.article-header h1 {

  margin-bottom: 16px;

}

.article-header .article-meta {

  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 24px;

}

.article-header .article-meta .dot {

  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);

}

.article-cover {

  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 40px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-elevated);

}

.article-body {

  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);

}

.article-body h2 {

  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);

}

.article-body h3 {

  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);

}

.article-body p {

  margin-bottom: 1.25rem;

}

.article-body ul, .article-body ol {

  margin-bottom: 1.25rem;
  padding-left: 1.5rem;

}

.article-body ul {
 list-style: disc; 
}

.article-body ol {
 list-style: decimal; 
}

.article-body li {

  margin-bottom: 0.5rem;
  color: var(--text-muted);

}

.article-body blockquote {

  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;

}

.article-body blockquote strong {

  color: var(--text);

}

.article-body a {

  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;

}

.article-body a:hover {

  color: var(--accent-hover);

}

.article-body img {

  border-radius: var(--radius-sm);
  margin: 1.5rem 0;

}

.article-body .footnotes {

  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;

}

.article-navigation {

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);

}

.article-references {

  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);

}

.article-references h3 {

  font-size: 1rem;
  margin-bottom: 16px;

}

.article-references ol {

  padding-left: 1.25rem;
  font-size: 0.875rem;

}

.article-references li {

  margin-bottom: 8px;
  color: var(--text-dim);

}

.article-references a {

  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;

}

@media (max-width: 768px) {
  .article-navigation {

    grid-template-columns: 1fr;
  
  }
}

@media print {
  .article-page {
 padding-top: 20px; 
  }
}

.article-header .status-badge {

  margin-bottom: 12px;
  display: inline-flex;

}

.journey-page {

  padding-top: 120px;

}

.tools-search {

  flex: 1;
  min-width: 240px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;

}

.tools-search:focus {

  border-color: var(--accent);

}

.tools-search::placeholder {

  color: var(--text-dim);

}

.tools-categories {

  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;

}

.tools-cat-btn {

  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;

}

.tools-cat-btn:hover {

  border-color: var(--accent);
  color: var(--text);

}

.tools-cat-btn.active {

  background: var(--accent);
  border-color: var(--accent);
  color: #fff;

}

.contribute-card {

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;

}

.contribute-card:hover {

  transform: translateY(-2px);
  border-color: var(--accent);

}

.contribute-card .icon {

  font-size: 2rem;
  margin-bottom: 12px;
  display: block;

}

.contribute-card h3 {

  font-size: 1rem;
  margin-bottom: 8px;

}

.contribute-card p {

  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;

}

.article-card, .featured-article, .start-card, .weekly-mission, .highlight-card, .project-card, .contribute-card, .resource-card {

  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;

}

.filter-btn, .tools-cat-btn {

  transition: all 0.2s ease;

}

.community-page .project-card {

  padding: 32px;

}

.community-page .section-header p {

  max-width: 560px;

}

.community-page {

  padding-top: 120px;

}



.community-page .project-card {

  padding: 28px 32px;

}

.journey-hero {

  padding: 140px 0 40px !important;

}

.journey-page {

  padding-top: 0 !important;

}


/* --- Profile page --- */
.profile-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
}

.profile-info h1 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.profile-info p {
  margin: 0;
  color: var(--text-dim);
}

.profile-account-username {
  font-size: 1.1rem !important;
  color: var(--accent) !important;
  margin-bottom: 6px !important;
}

.profile-account-note {
  margin-top: 6px !important;
}

.profile-gate-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.profile-stat {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}

.profile-stat span {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* --- Recovery key card (profile page) --- */
.profile-recovery {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
}

.profile-recovery h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.recovery-key-display {
  display: block;
  font-family: var(--font-code);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 12px;
}

.recovery-warning {
  font-size: 0.875rem;
  color: #FBBF24;
  margin-bottom: 16px;
}

.recovery-actions {
  display: flex;
  gap: 10px;
}

/* --- Settings section (profile page) --- */
.profile-edit-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.profile-edit-form input[type="text"] {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.profile-edit-error {
  color: #EF4444;
  font-size: 0.8rem;
}

.profile-settings {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.settings-row:last-of-type {
  border-bottom: none;
}

.settings-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.9rem;
}

.settings-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.settings-badge.on {
  color: #34D399;
  border-color: rgba(52,211,153,0.35);
}

.settings-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Authentication info (profile page) --- */
.profile-auth {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
}

.profile-auth h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.profile-auth-rows {
  display: flex;
  flex-direction: column;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.auth-row:last-of-type {
  border-bottom: none;
}

.auth-value {
  color: var(--text-dim);
  text-align: right;
}

.auth-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Account actions (backend-gated) --- */
.profile-auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.auth-signed-in {
  flex-basis: 100%;
  font-size: 0.95rem;
  color: var(--text);
  margin: 4px 0 4px;
}

/* --- Auth forms (M32: username + password, no email) --- */
.profile-auth-forms {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.auth-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.auth-form-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.auth-form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.auth-form-field input {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.auth-form-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-form-error {
  font-size: 0.8rem;
  color: #EF4444;
  min-height: 1em;
}

.auth-form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.auth-recovery-notice {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.auth-recovery-notice h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.auth-recovery-key {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  background: var(--bg-card);
  border-radius: 6px;
  margin-bottom: 8px;
}

.auth-recovery-warning {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.nav-signout {
  color: var(--text-dim);
}

.nav-signout:hover {
  color: #EF4444;
}

/* --- Community dashboard --- */
.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.community-stat {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.community-stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
}

.community-stat span {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.community-map-container {
  max-width: 760px;
}

.community-regions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-region-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.community-region-row span:last-child {
  color: var(--text-dim);
}

/* Activity bars (M35 aggregated country activity) */
.activity-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 14px;
}

.activity-bar-wrap {
  height: 10px;
  background: var(--bg-elevated);
  border-radius: 5px;
  overflow: hidden;
}

.activity-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.4s ease;
}

.activity-bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.breakdown-stat {
  min-height: 96px;
}

.community-privacy-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

/* --- Community mission activity --- */
.country-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* --- Mission discovery filters (journey page) --- */
.mission-filters {
  margin: 28px 0;
}

.mission-filters .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mission-filter-input,
.mission-filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.mission-filter-input {
  flex: 1 1 180px;
  min-width: 160px;
}

.mission-filter-reset {
  padding: 8px 16px;
}

/* --- Community challenges --- */
.community-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.challenge-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.challenge-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.challenge-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.challenge-progress {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.challenge-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
}

.challenge-count {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Community ranking --- */
.ranking-row .ranking-rank {
  color: var(--accent);
  font-weight: 700;
}

/* --- Mission detail: global impact (anonymous) --- */
.mission-global-impact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mission-global-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.mission-global-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- Europe activity map (M17, preparation) ------------------------- */
.europe-map {
  width: 100%;
  height: auto;
  /* Reserve the map's aspect ratio (viewBox 1613x1417) so the container does
     not collapse/layout-shift while the real SVG loads. */
  aspect-ratio: 1613 / 1417;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.europe-map--loading {
  /* Visible, neutral placeholder while the real SVG markup is fetched. */
  background:
    linear-gradient(100deg, var(--bg-card, #1e2430) 40%, var(--bg-elevated, #2a2f3a) 50%, var(--bg-card, #1e2430) 60%);
  background-size: 200% 100%;
  animation: nsMapShimmer 1.2s infinite;
  min-height: 320px;
}
@keyframes nsMapShimmer {
  from { background-position: 120% 0; }
  to { background-position: -80% 0; }
}
.europe-map path.country {
  stroke: var(--bg);
  stroke-width: 1;
  transition: fill 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  fill: var(--border);
}
.europe-map path.country:hover,
.europe-map path.country:focus {
  filter: brightness(1.35);
  outline: none;
}
.europe-map path.country:focus-visible {
  outline: 2px solid var(--accent, #7fd4e6);
  outline-offset: 1px;
}
.europe-map path.country.selected {
  stroke: var(--accent, #7fd4e6);
  stroke-width: 2.5;
  filter: brightness(1.45);
}
.ranking-row.selected {
  background: var(--accent-subtle, rgba(127,212,230,0.12));
  border-color: var(--accent, #7fd4e6);
}
/* Intensity classes (CSS variables — palette stays with the design system). */
.europe-map path.country--none        { fill: var(--country-none, #2a2a2e); }
.europe-map path.country--very-low    { fill: var(--country-very-low, #3a3f5a); }
.europe-map path.country--low         { fill: var(--country-low, #3f5a8a); }
.europe-map path.country--medium      { fill: var(--country-medium, #4a7fb5); }
.europe-map path.country--high        { fill: var(--country-high, #5fa3d6); }
.europe-map path.country--very-high   { fill: var(--country-very-high, #7fd4e6); }

.europe-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.europe-map-legend .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 4px;
}
.europe-map-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.europe-country-panel {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
}
.europe-country-panel h4 { margin: 0 0 12px; font-size: 1.1rem; }
.europe-country-panel .metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.europe-country-panel .metric:last-child { border-bottom: 0; }
.europe-country-panel .metric strong { font-size: 1rem; color: var(--accent, #818CF8); }
.europe-country-panel .metric-panel-empty {
  color: var(--text-dim, #9aa3b2);
  font-style: italic;
}

/* M28: global last-update label (non-individual). */
.community-last-update {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.community-last-update-label { margin: 0; }

/* --- Public Profile (M37) ---------------------------------------- */
.public-profile-header h1 {
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.public-profile-header p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.public-profile-section {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text);
  margin: 32px 0 16px;
}

.public-profile-stat {
  min-height: 96px;
}

/* --- Public Profile customization (M38) -------------------------- */
.public-profile-bio {
  font-size: 1rem;
  color: var(--text);
  margin: 12px 0;
}

.public-profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.public-profile-interest {
  padding: 3px 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
}

.public-profile-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-profile-achievement {
  flex: 1 1 200px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.public-profile-achievement strong {
  display: block;
  color: var(--accent);
}

.public-profile-achievement span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.public-profile-edit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.public-profile-field textarea,
.public-profile-field input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
}

/* --- M42: safe wrapping for user-generated / long content --------- */
.public-profile-bio,
.public-profile-interest,
.public-profile-header h1,
.campaign-desc,
.community-region-row,
.mission-card p,
.mission-card h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

.public-profile-interests {
  max-width: 100%;
}

/* --- M48: account page polish -------------------------------------- */
.profile-settings,
.public-profile-edit-card,
.profile-recovery-card,
.profile-stat,
.profile-auth,
.profile-summary {
  background: var(--bg-elevated, #1e2430);
  border: 1px solid var(--border, #2f3646);
  border-radius: 12px;
  padding: 20px;
}
.profile-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: 1.4rem; color: var(--accent, #818CF8); }
.profile-stat span { font-size: 0.85rem; color: var(--text-dim, #9aa3b2); }
.settings-label { display: flex; flex-direction: column; gap: 2px; }
.settings-label-hint { font-size: 0.78rem; color: var(--text-dim, #9aa3b2); }
.country-controls { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
@media (min-width: 561px) {
  .country-controls { min-width: 220px; width: 220px; }
}
.country-status { font-size: 0.85rem; color: var(--text-dim, #9aa3b2); }
.sync-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-dim, #9aa3b2);
  border: 1px solid var(--border, #2f3646); border-radius: 999px;
  padding: 4px 10px; background: var(--bg-elevated, #1e2430);
}
.sync-status-pill[data-status="syncing"] { color: #60a5fa; }
.sync-status-pill[data-status="pending"] { color: #fbbf24; }
.sync-status-pill[data-status="offline"] { color: #f87171; }
.sync-status-pill[data-status="synced"] { color: #34d399; }

/* M49: persistent country info panel states */
.panel-state {
  font-size: 0.78rem;
  color: var(--accent, #818CF8);
  font-weight: 600;
  margin-left: 6px;
}
.europe-country-panel p.metric {
  display: block;
  color: var(--text-dim, #9aa3b2);
  border-bottom: 0;
}

/* --- M49/M50: Account page redesign ----------------------------- */
.account-section { min-height: 100vh; }
.account-shell {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card, #1e2430);
  border: 1px solid var(--border, #2f3646);
  border-radius: 16px;
  padding: 22px 24px;
}
.account-header .profile-info { flex: 1 1 300px; min-width: 0; }
.account-sync {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 24px;
  flex: 0 0 auto;
}
.account-card {
  background: var(--bg-card, #1e2430);
  border: 1px solid var(--border, #2f3646);
  border-radius: 16px;
  padding: 22px 24px;
}
.account-card-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.account-card-head p { margin: 0 0 16px; color: var(--text-dim, #9aa3b2); font-size: 0.88rem; line-height: 1.5; }
.account-reset-row { display: flex; margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.account-footer { padding: 4px 0 24px; text-align: center; }

@media (max-width: 560px) {
  .account-shell { padding: 0 14px; }
  .account-header, .account-card { padding: 18px 16px; }
  .account-header { flex-direction: column; }
  .account-sync { justify-content: flex-start; }
  /* Let settings rows wrap on narrow screens so controls never overflow. */
  .settings-row { flex-wrap: wrap; gap: 8px; }
  .country-selector { align-items: stretch; }
  .country-controls { width: 100%; }
  .auth-form-card { max-width: 100%; }
  .profile-auth-forms .auth-form-card,
  .auth-form-card.password-form { width: 100%; }
}

/* M50: account identity card extras */
.profile-info-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim, #9aa3b2);
}
.profile-account-username {
  font-size: 1.6rem;
  margin: 4px 0;
  /* M59: allow long usernames (max 32 chars) to wrap instead of overflowing the
     account card on narrow screens. */
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.profile-auth-state { font-size: 0.82rem; color: var(--text-dim, #9aa3b2); margin-top: 6px; }
