:root {
  --pg-bg: #f4f7fb;
  --pg-surface: #ffffff;
  --pg-surface-2: #f8fafc;
  --pg-surface-3: #eef2f7;
  --pg-border: #e2e8f0;
  --pg-border-strong: #cbd5e1;
  --pg-text: #0f172a;
  --pg-text-soft: #475569;
  --pg-muted: #7c8ba1;
  --pg-primary: #2563eb;
  --pg-primary-strong: #1d4ed8;
  --pg-primary-soft: #eaf2ff;
  --pg-success: #0f9f6e;
  --pg-warning: #d97706;
  --pg-danger: #dc2626;
  --pg-purple: #7c3aed;
  --pg-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --pg-shadow-soft: 0 9px 24px rgba(15, 23, 42, .06);
  --pg-radius-xl: 24px;
  --pg-radius-lg: 18px;
  --pg-radius-md: 14px;
  --pg-topbar-height: 72px;
  --pg-sidebar-width: 294px;
}

html[data-theme="dark"] {
  --pg-bg: #090f1d;
  --pg-surface: #111827;
  --pg-surface-2: #172033;
  --pg-surface-3: #1f2937;
  --pg-border: #273449;
  --pg-border-strong: #3b4961;
  --pg-text: #f8fafc;
  --pg-text-soft: #c5cfdd;
  --pg-muted: #8fa0b7;
  --pg-primary: #60a5fa;
  --pg-primary-strong: #93c5fd;
  --pg-primary-soft: rgba(59, 130, 246, .16);
  --pg-success: #34d399;
  --pg-warning: #fbbf24;
  --pg-danger: #f87171;
  --pg-purple: #a78bfa;
  --pg-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  --pg-shadow-soft: 0 10px 26px rgba(0, 0, 0, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--pg-bg); }
body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--pg-bg);
  color: var(--pg-text);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.pg-app-shell { min-height: 100vh; }
.pg-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--pg-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--pg-border);
  background: color-mix(in srgb, var(--pg-surface) 92%, transparent);
  backdrop-filter: blur(18px);
}
.pg-topbar-left, .pg-topbar-actions { display: flex; align-items: center; gap: 10px; }
.pg-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; }
.pg-brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, .28);
}
.pg-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.pg-brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.pg-brand-copy small { margin-top: 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--pg-muted); }
.pg-icon-button {
  width: 42px; height: 42px; border: 1px solid var(--pg-border); border-radius: 13px;
  display: inline-grid; place-items: center;
  background: var(--pg-surface);
  cursor: pointer;
  transition: .2s ease;
}
.pg-icon-button:hover { transform: translateY(-1px); border-color: var(--pg-border-strong); box-shadow: var(--pg-shadow-soft); }
.pg-mobile-filter-toggle { display: none; }

.pg-workspace { display: grid; grid-template-columns: var(--pg-sidebar-width) minmax(0, 1fr); min-height: 100vh; padding-top: var(--pg-topbar-height); }
.pg-filter-panel {
  position: fixed;
  top: var(--pg-topbar-height); bottom: 0; left: 0;
  width: var(--pg-sidebar-width);
  z-index: 45;
  overflow-y: auto;
  padding: 18px 16px 30px;
  border-right: 1px solid var(--pg-border);
  background: var(--pg-surface);
}
.pg-filter-mobile-head { display: none; }
.pg-filter-form { display: flex; flex-direction: column; gap: 12px; }
.pg-filter-section {
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-lg);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-filter-primary { padding: 14px; display: grid; gap: 8px; background: linear-gradient(180deg, var(--pg-surface), var(--pg-surface-2)); }
.pg-filter-section summary {
  list-style: none;
  padding: 14px 15px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 13px; font-weight: 800;
}
.pg-filter-section summary::-webkit-details-marker { display: none; }
.pg-filter-section[open] summary i { transform: rotate(180deg); }
.pg-filter-section summary i { font-size: 11px; color: var(--pg-muted); transition: .2s ease; }
.pg-filter-content { display: grid; gap: 9px; padding: 0 14px 14px; border-top: 1px solid var(--pg-border); }
.pg-filter-content > label:first-child { margin-top: 12px; }
.pg-filter-section label { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--pg-text-soft); }
.pg-select-wrap, .pg-input-wrap { position: relative; }
.pg-select-wrap > i, .pg-input-wrap > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--pg-muted); font-size: 12px; pointer-events: none;
}
.pg-filter-form select, .pg-filter-form input[type="search"], .pg-modal input[type="number"] {
  width: 100%; height: 43px;
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  background: var(--pg-surface-2);
  color: var(--pg-text);
  outline: none;
  transition: .2s ease;
}
.pg-select-wrap select, .pg-input-wrap input { padding-left: 34px; }
.pg-filter-form select { padding: 0 34px 0 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pg-muted) 50%), linear-gradient(135deg, var(--pg-muted) 50%, transparent 50%); background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.pg-select-wrap select { padding-left: 34px; }
.pg-filter-form input[type="search"] { padding-right: 12px; }
.pg-filter-form select:focus, .pg-filter-form input:focus, .pg-modal input:focus { border-color: var(--pg-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pg-primary) 16%, transparent); }
.pg-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pg-choice span {
  min-height: 35px; display: grid; place-items: center;
  padding: 6px; border: 1px solid var(--pg-border); border-radius: 10px;
  background: var(--pg-surface-2); font-size: 10px; cursor: pointer; transition: .2s ease;
}
.pg-choice input:checked + span { color: var(--pg-primary); border-color: var(--pg-primary); background: var(--pg-primary-soft); }
.pg-switch-row { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-switch-row span { display: inline-flex; align-items: center; gap: 8px; }
.pg-switch-row span i { color: #f59e0b; }
.pg-switch-row input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--pg-surface-3); position: relative; cursor: pointer; transition: .2s ease; }
.pg-switch-row input::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(15,23,42,.24); transition: .2s ease; }
.pg-switch-row input:checked { background: var(--pg-primary); }
.pg-switch-row input:checked::after { transform: translateX(18px); }
.pg-filter-actions { display: grid; gap: 8px; position: sticky; bottom: -1px; padding: 10px 0 2px; background: linear-gradient(180deg, transparent, var(--pg-surface) 30%); }

.pg-main { grid-column: 2; min-width: 0; padding: 28px clamp(18px, 3vw, 42px) 0; }
.pg-main-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.pg-main-head h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; line-height: 1; }
.pg-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--pg-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.pg-main-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-button {
  min-height: 42px; border: 1px solid transparent; border-radius: 12px; padding: 0 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s ease;
}
.pg-button:hover { transform: translateY(-1px); }
.pg-button-primary { color: white; background: linear-gradient(135deg, var(--pg-primary), #7c3aed); box-shadow: 0 10px 24px rgba(37, 99, 235, .2); }
.pg-button-secondary { color: var(--pg-primary); background: var(--pg-primary-soft); border-color: color-mix(in srgb, var(--pg-primary) 30%, var(--pg-border)); }
.pg-button-ghost { color: var(--pg-text-soft); background: var(--pg-surface); border-color: var(--pg-border); }
.pg-button-card { width: 100%; color: white; background: var(--pg-primary); }
.pg-button-card:hover { background: var(--pg-primary-strong); }
.pg-button-filter-mobile { display: none; color: var(--pg-text); background: var(--pg-surface-2); border-color: var(--pg-border); }

.pg-toast-static { margin-bottom: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--pg-success) 30%, var(--pg-border)); border-radius: 12px; background: color-mix(in srgb, var(--pg-success) 10%, var(--pg-surface)); color: var(--pg-success); font-size: 12px; font-weight: 800; }
.pg-filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.pg-filter-chip { padding: 7px 10px; border: 1px solid var(--pg-border); border-radius: 999px; background: var(--pg-surface); font-size: 11px; font-weight: 700; color: var(--pg-text-soft); }
.pg-filter-chip-count { color: var(--pg-primary); background: var(--pg-primary-soft); border-color: transparent; }
.pg-filter-clear { font-size: 11px; font-weight: 800; color: var(--pg-danger); margin-left: 3px; }

.pg-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pg-kpi-card {
  min-height: 124px; padding: 17px;
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--pg-border); border-radius: var(--pg-radius-lg);
  background: var(--pg-surface); box-shadow: var(--pg-shadow-soft);
}
.pg-kpi-icon { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--pg-primary); background: var(--pg-primary-soft); }
.pg-kpi-card:nth-child(2) .pg-kpi-icon { color: #1877f2; background: color-mix(in srgb, #1877f2 13%, var(--pg-surface)); }
.pg-kpi-card:nth-child(3) .pg-kpi-icon { color: var(--pg-warning); background: color-mix(in srgb, var(--pg-warning) 13%, var(--pg-surface)); }
.pg-kpi-card:nth-child(4) .pg-kpi-icon { color: var(--pg-purple); background: color-mix(in srgb, var(--pg-purple) 13%, var(--pg-surface)); }
.pg-kpi-card:nth-child(5) .pg-kpi-icon { color: var(--pg-success); background: color-mix(in srgb, var(--pg-success) 13%, var(--pg-surface)); }
.pg-kpi-card > div { min-width: 0; display: flex; flex-direction: column; }
.pg-kpi-card small { color: var(--pg-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.pg-kpi-card strong { margin-top: 8px; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -.04em; }
.pg-kpi-card em { margin-top: 8px; color: var(--pg-text-soft); font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-kpi-progress-copy { flex: 1; }
.pg-kpi-progress-copy strong span { color: var(--pg-muted); font-size: 14px; }
.pg-mini-progress { width: 100%; height: 6px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: var(--pg-surface-3); }
.pg-mini-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pg-success), #22c55e); }

.pg-chart-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, .7fr) minmax(230px, .7fr); gap: 12px; margin-top: 12px; }
.pg-chart-card { min-height: 280px; padding: 17px; border: 1px solid var(--pg-border); border-radius: var(--pg-radius-lg); background: var(--pg-surface); box-shadow: var(--pg-shadow-soft); overflow: hidden; }
.pg-chart-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pg-chart-card header > div { display: flex; flex-direction: column; }
.pg-chart-card header small { color: var(--pg-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pg-chart-card header strong { margin-top: 5px; font-size: 15px; }
.pg-chart-total { padding: 7px 10px; border-radius: 999px; color: var(--pg-primary); background: var(--pg-primary-soft); font-size: 10px; font-weight: 800; }
.pg-chart-canvas { position: relative; height: 210px; margin-top: 8px; }
.pg-chart-line { height: 215px; }

.pg-results-section { margin-top: 18px; }
.pg-results-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-results-toolbar > div { display: flex; align-items: baseline; gap: 9px; }
.pg-results-toolbar strong { font-size: 18px; }
.pg-results-toolbar span { color: var(--pg-muted); font-size: 11px; font-weight: 700; }
.pg-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pg-group-card {
  position: relative; min-width: 0; padding: 17px;
  display: flex; flex-direction: column;
  border: 1px solid var(--pg-border); border-radius: var(--pg-radius-lg);
  background: var(--pg-surface); box-shadow: var(--pg-shadow-soft);
  overflow: hidden; transition: .22s ease;
}
.pg-group-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pg-primary) 30%, var(--pg-border)); box-shadow: var(--pg-shadow); }
.pg-group-card.is-favorite { border-color: color-mix(in srgb, #f59e0b 50%, var(--pg-border)); }
.pg-card-accent { position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--pg-primary), var(--pg-purple), #06b6d4); }
.pg-group-card-head { display: flex; align-items: center; justify-content: space-between; }
.pg-group-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: white; background: #1877f2; font-size: 17px; }
.pg-favorite-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--pg-border); border-radius: 12px; background: var(--pg-surface-2); color: var(--pg-muted); cursor: pointer; transition: .2s ease; }
.pg-favorite-button:hover, .pg-favorite-button.is-active { color: #f59e0b; border-color: color-mix(in srgb, #f59e0b 45%, var(--pg-border)); background: color-mix(in srgb, #f59e0b 10%, var(--pg-surface)); }
.pg-favorite-button.is-loading { opacity: .55; pointer-events: none; }
.pg-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.pg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pg-badge-public { color: var(--pg-success); background: color-mix(in srgb, var(--pg-success) 10%, var(--pg-surface)); }
.pg-badge-private { color: var(--pg-purple); background: color-mix(in srgb, var(--pg-purple) 10%, var(--pg-surface)); }
.pg-badge-activity.hot { color: var(--pg-danger); background: color-mix(in srgb, var(--pg-danger) 10%, var(--pg-surface)); }
.pg-badge-activity.high { color: var(--pg-warning); background: color-mix(in srgb, var(--pg-warning) 11%, var(--pg-surface)); }
.pg-badge-activity.medium { color: var(--pg-primary); background: var(--pg-primary-soft); }
.pg-badge-activity.low { color: var(--pg-muted); background: var(--pg-surface-3); }
.pg-group-card h2 { min-height: 48px; margin: 12px 0 6px; font-size: 16px; line-height: 1.45; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-group-location, .pg-pack-label { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--pg-muted); font-size: 10px; }
.pg-group-location span, .pg-pack-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-pack-label { margin-top: 7px; color: var(--pg-text-soft); font-weight: 700; }
.pg-group-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 15px; }
.pg-group-metrics > div { min-width: 0; padding: 10px 8px; border-radius: 12px; background: var(--pg-surface-2); }
.pg-group-metrics small { display: block; color: var(--pg-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.pg-group-metrics strong { display: block; margin-top: 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-card-score { margin-top: 14px; }
.pg-card-score > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--pg-muted); }
.pg-card-score strong { color: var(--pg-text-soft); }
.pg-score-track { height: 5px; margin-top: 7px; border-radius: 999px; overflow: hidden; background: var(--pg-surface-3); }
.pg-score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #06b6d4, var(--pg-primary), var(--pg-purple)); }
.pg-group-card footer { margin-top: auto; padding-top: 16px; }

.pg-empty-state { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed var(--pg-border-strong); border-radius: var(--pg-radius-xl); background: var(--pg-surface); text-align: center; }
.pg-empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--pg-primary); background: var(--pg-primary-soft); font-size: 22px; }
.pg-pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 22px 0 4px; }
.pg-page-button { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--pg-border); border-radius: 11px; background: var(--pg-surface); font-size: 11px; font-weight: 800; }
.pg-page-button:hover, .pg-page-button.is-active { color: white; border-color: var(--pg-primary); background: var(--pg-primary); }
.pg-page-button.is-disabled { opacity: .4; pointer-events: none; }

.pg-footer { margin-top: 30px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--pg-border); color: var(--pg-muted); font-size: 10px; }
.pg-footer span:first-child { font-weight: 800; color: var(--pg-text-soft); }
.pg-filter-overlay { display: none; }

.pg-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 18px; }
.pg-modal.is-open { display: grid; }
.pg-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .64); backdrop-filter: blur(4px); }
.pg-modal-dialog { position: relative; z-index: 1; width: min(420px, 100%); border: 1px solid var(--pg-border); border-radius: var(--pg-radius-xl); background: var(--pg-surface); box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; }
.pg-modal-dialog > header { height: 62px; padding: 0 17px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--pg-border); }
.pg-modal-dialog form { padding: 20px; }
.pg-modal-dialog label { display: block; margin-bottom: 8px; color: var(--pg-text-soft); font-size: 11px; font-weight: 800; }
.pg-modal-dialog input { padding: 0 12px; }
.pg-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pg-live-toast { position: fixed; right: 20px; bottom: 20px; z-index: 110; max-width: min(360px, calc(100vw - 40px)); padding: 12px 14px; border: 1px solid var(--pg-border); border-radius: 12px; background: var(--pg-surface); box-shadow: var(--pg-shadow); font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
.pg-live-toast.is-visible { opacity: 1; transform: translateY(0); }
.pg-live-toast.is-error { color: var(--pg-danger); }
.pg-live-toast.is-success { color: var(--pg-success); }

@media (max-width: 1380px) {
  .pg-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-chart-grid { grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr); }
  .pg-chart-card:last-child { grid-column: span 2; min-height: 245px; }
  .pg-chart-card:last-child .pg-chart-canvas { height: 175px; }
}

@media (max-width: 1120px) {
  .pg-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-chart-grid { grid-template-columns: 1fr 1fr; }
  .pg-chart-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --pg-topbar-height: 64px; }
  .pg-topbar { padding: 0 14px; }
  .pg-brand { min-width: 0; }
  .pg-brand-copy small { display: none; }
  .pg-mobile-filter-toggle { display: inline-grid; }
  .pg-workspace { display: block; }
  .pg-main { padding: 22px 14px 0; }
  .pg-filter-panel {
    top: 0; width: min(340px, calc(100vw - 34px)); z-index: 90;
    padding-top: 12px; transform: translateX(-105%); transition: .25s ease;
    box-shadow: 24px 0 60px rgba(0,0,0,.26);
  }
  body.pg-filter-open .pg-filter-panel { transform: translateX(0); }
  .pg-filter-mobile-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; }
  .pg-filter-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(2,6,23,.55); backdrop-filter: blur(3px); }
  body.pg-filter-open .pg-filter-overlay { display: block; }
  body.pg-filter-open { overflow: hidden; }
  .pg-button-filter-mobile { display: inline-flex; }
  .pg-chart-grid { grid-template-columns: 1fr; }
  .pg-chart-wide, .pg-chart-card:last-child { grid-column: auto; }
  .pg-chart-card:last-child .pg-chart-canvas { height: 210px; }
  .pg-main-head { align-items: flex-start; }
}

@media (max-width: 620px) {
  .pg-brand-copy strong { font-size: 14px; }
  .pg-topbar-actions { gap: 6px; }
  .pg-topbar-actions .pg-icon-button { width: 38px; height: 38px; }
  .pg-main-head { flex-direction: column; }
  .pg-main-actions { width: 100%; }
  .pg-main-actions .pg-button { flex: 1; }
  .pg-kpi-grid, .pg-group-grid { grid-template-columns: 1fr; }
  .pg-kpi-card { min-height: 108px; }
  .pg-chart-card { min-height: 260px; }
  .pg-results-toolbar { align-items: flex-end; }
  .pg-group-card h2 { min-height: auto; }
  .pg-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 0; }
  .pg-pagination { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* =========================================================
   LeadsPRO Groups Premium V3
   ========================================================= */
@media (min-width: 1381px) {
  .pg-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.pg-kpi-pack-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, .18), transparent 36%),
    var(--pg-surface);
}
.pg-kpi-card:nth-child(1) .pg-kpi-icon { color: var(--pg-purple); background: rgba(124,58,237,.12); }
.pg-kpi-card:nth-child(2) .pg-kpi-icon { color: var(--pg-primary); background: rgba(37,99,235,.12); }
.pg-kpi-card:nth-child(3) .pg-kpi-icon { color: #1877f2; background: rgba(24,119,242,.12); }
.pg-kpi-card:nth-child(4) .pg-kpi-icon { color: var(--pg-warning); background: rgba(245,158,11,.13); }
.pg-kpi-card:nth-child(5) .pg-kpi-icon { color: var(--pg-purple); background: rgba(124,58,237,.12); }
.pg-kpi-card:nth-child(6) .pg-kpi-icon { color: var(--pg-success); background: rgba(16,185,129,.12); }
.pg-kpi-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  color: var(--pg-primary); font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em;
}
.pg-kpi-link:hover { transform: translateX(2px); }

.pg-chart-card { min-height: 330px; }
.pg-chart-wide { min-height: 390px; }
.pg-chart-header-week { align-items: flex-start; gap: 14px; }
.pg-week-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.pg-week-actions nav { display: flex; align-items: center; gap: 5px; }
.pg-week-button,
.pg-week-current {
  min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; border: 1px solid var(--pg-border); border-radius: 10px;
  background: var(--pg-surface-2); color: var(--pg-text-soft);
  font-size: 10px; line-height: 1; font-weight: 900; white-space: nowrap;
}
.pg-week-button:hover, .pg-week-current:hover { border-color: var(--pg-primary); color: var(--pg-primary); }
.pg-week-button.is-disabled { opacity: .38; pointer-events: none; }
.pg-chart-canvas canvas { display: block !important; width: 100% !important; height: 100% !important; }
.pg-week-values {
  display: grid; grid-template-columns: repeat(7, minmax(62px, 1fr)); gap: 7px;
  margin-top: 14px;
}
.pg-week-value {
  min-height: 50px; padding: 7px 6px; border: 1px solid var(--pg-border);
  border-radius: 11px; background: var(--pg-surface-2); text-align: center;
}
.pg-week-value strong { display: block; font-size: 11px; color: var(--pg-text); }
.pg-week-value span { display: block; margin-top: 3px; font-size: 10px; color: var(--pg-muted); }
.pg-week-value.has-value { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.07); }
.pg-week-value.is-today { box-shadow: inset 0 0 0 1px var(--pg-primary); }
.pg-chart-data-list { display: grid; gap: 7px; margin-top: 12px; }
.pg-chart-data-list > span,
.pg-chart-data-grid > span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--pg-muted); font-size: 10px; font-weight: 750;
}
.pg-chart-data-list b,
.pg-chart-data-grid b { color: var(--pg-text); font-size: 11px; }
.pg-chart-data-list i,
.pg-chart-data-grid i {
  width: 8px; height: 8px; display: inline-block; flex: 0 0 8px;
  margin-right: 5px; border-radius: 50%; background: var(--pg-primary);
}
.pg-chart-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; margin-top: 12px; }

.pg-group-card.is-locked { opacity: .88; }
.pg-group-card.is-locked .pg-card-accent { background: var(--pg-warning); }
.pg-badge-unlocked { color: var(--pg-success); background: rgba(16,185,129,.11); }
.pg-badge-locked { color: #b45309; background: rgba(245,158,11,.14); }
.pg-favorite-button.is-disabled { opacity: .4; cursor: not-allowed; }
.pg-button-card.is-locked { color: #92400e; background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.28); }
.pg-button-card.is-locked:hover { background: rgba(245,158,11,.2); }

body.pg-modal-open { overflow: hidden; }
.pg-modal-dialog-wide { width: min(760px, 100%); max-height: min(88vh, 780px); display: flex; flex-direction: column; }
.pg-modal-dialog-wide > header { flex: 0 0 62px; }
.pg-modal-content { padding: 20px; overflow: auto; overscroll-behavior: contain; }
.pg-modal-loading { min-height: 230px; display: grid; place-items: center; text-align: center; color: var(--pg-muted); }
.pg-modal-loading i { display: block; margin: 0 auto 12px; font-size: 32px; color: var(--pg-primary); animation: pg-spin 1s linear infinite; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
.pg-access-state { padding: 12px 4px 4px; text-align: center; }
.pg-access-state-icon {
  width: 68px; height: 68px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 22px; background: rgba(245,158,11,.13); color: var(--pg-warning); font-size: 31px;
}
.pg-access-state h3 { margin: 0 0 9px; color: var(--pg-text); font-size: 22px; }
.pg-access-state p { max-width: 560px; margin: 0 auto; color: var(--pg-muted); font-size: 12px; line-height: 1.65; }
.pg-access-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.pg-access-error .pg-access-state-icon { color: var(--pg-danger); background: rgba(239,68,68,.12); }
.pg-modal-content .modal-header { display: none !important; }
.pg-modal-content .modal-body { padding: 0 !important; }
.pg-modal-content form { padding: 0; }
.pg-modal-content .btn,
.pg-modal-content button[type="submit"],
.pg-modal-content a.btn {
  min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 11px; background: var(--pg-primary); color: #fff !important;
  font-size: 11px; font-weight: 900; text-decoration: none;
}
.pg-modal-content .btn-default,
.pg-modal-content .btn-secondary { background: var(--pg-surface-3); color: var(--pg-text) !important; border: 1px solid var(--pg-border); }
.pg-modal-content input,
.pg-modal-content textarea,
.pg-modal-content select { max-width: 100%; }

/* Marketplace de packs */
.pg-packs-page { min-height: 100vh; padding: calc(var(--pg-topbar-height) + 28px) clamp(14px, 3vw, 42px) 0; }
.pg-packs-container { width: min(1460px, 100%); margin: 0 auto; }
.pg-packs-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 18px;
}
.pg-packs-hero h1 { margin: 4px 0 6px; font-size: clamp(25px, 3vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.pg-packs-hero p { margin: 0; color: var(--pg-muted); font-size: 12px; }
.pg-packs-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-packs-summary span {
  min-width: 116px; padding: 11px 13px; border: 1px solid var(--pg-border); border-radius: 13px;
  background: var(--pg-surface); box-shadow: var(--pg-shadow-soft); color: var(--pg-muted); font-size: 10px; font-weight: 800;
}
.pg-packs-summary strong { display: block; margin-top: 3px; color: var(--pg-text); font-size: 18px; }
.pg-packs-filter {
  display: grid; grid-template-columns: minmax(220px, 1fr) 220px 180px auto; gap: 9px;
  margin-bottom: 18px; padding: 13px; border: 1px solid var(--pg-border); border-radius: 16px; background: var(--pg-surface);
}
.pg-packs-filter input, .pg-packs-filter select { width: 100%; min-height: 40px; }
.pg-pack-market-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.pg-pack-market-card {
  position: relative; min-width: 0; padding: 18px; display: flex; flex-direction: column;
  border: 1px solid var(--pg-border); border-radius: 18px; background: var(--pg-surface);
  box-shadow: var(--pg-shadow-soft); overflow: hidden;
}
.pg-pack-market-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background: var(--pg-warning); }
.pg-pack-market-card.is-active::before { background: var(--pg-success); }
.pg-pack-market-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pg-pack-market-head h2 { margin: 5px 0 0; font-size: 17px; line-height: 1.25; }
.pg-pack-market-location { display:flex; align-items:center; gap:5px; color:var(--pg-muted); font-size:10px; font-weight:800; }
.pg-pack-market-description { min-height: 58px; margin: 13px 0; color: var(--pg-muted); font-size: 11px; line-height: 1.65; }
.pg-pack-market-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 14px; }
.pg-pack-market-metrics div { padding: 9px 10px; border:1px solid var(--pg-border); border-radius:11px; background:var(--pg-surface-2); }
.pg-pack-market-metrics span { display:block; color:var(--pg-muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.pg-pack-market-metrics strong { display:block; margin-top:3px; color:var(--pg-text); font-size:14px; }
.pg-pack-market-footer { margin-top: auto; padding-top: 12px; display:flex; align-items:center; justify-content:space-between; gap:9px; border-top:1px solid var(--pg-border); }
.pg-pack-price { color:var(--pg-muted); font-size:10px; }
.pg-pack-price strong { display:block; color:var(--pg-text); font-size:17px; }
.pg-pack-market-footer .pg-button { flex: 0 0 auto; }
.pg-pack-market-card.is-locked { background: linear-gradient(145deg, var(--pg-surface), rgba(245,158,11,.035)); }

@media (max-width: 1120px) {
  .pg-pack-market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pg-packs-filter { grid-template-columns: minmax(200px,1fr) 1fr 1fr; }
  .pg-packs-filter .pg-button { grid-column: span 3; }
}
@media (max-width: 840px) {
  .pg-chart-header-week { display: block; }
  .pg-week-actions { justify-content: flex-start; margin-top: 11px; }
  .pg-week-values { overflow-x: auto; grid-template-columns: repeat(7, minmax(76px, 1fr)); padding-bottom: 4px; }
  .pg-packs-page { padding-top: calc(var(--pg-topbar-height) + 20px); }
  .pg-packs-hero { align-items:flex-start; flex-direction:column; }
  .pg-packs-summary { width:100%; }
  .pg-packs-summary span { flex:1; }
}
@media (max-width: 680px) {
  .pg-chart-data-grid { grid-template-columns: 1fr; }
  .pg-pack-market-grid { grid-template-columns: 1fr; }
  .pg-packs-filter { grid-template-columns: 1fr; }
  .pg-packs-filter .pg-button { grid-column: auto; }
  .pg-pack-market-description { min-height: auto; }
  .pg-pack-market-footer { align-items:stretch; flex-direction:column; }
  .pg-pack-market-footer .pg-button { width:100%; }
}
.pg-week-value small { display:block; margin-top:2px; color:var(--pg-muted); font-size:8px; text-transform:uppercase; letter-spacing:.05em; }
.pg-chart-data-list i.is-success { background: var(--pg-success); }
.pg-chart-data-list i.is-purple { background: var(--pg-purple); }
.pg-access-kicker { display:block; margin-bottom:7px; color:var(--pg-warning); font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.12em; }
.pg-access-group-preview { max-width:560px; margin:16px auto 0; padding:12px 14px; border:1px solid var(--pg-border); border-radius:13px; background:var(--pg-surface-2); text-align:left; }
.pg-access-group-preview strong { display:block; color:var(--pg-text); font-size:12px; }
.pg-access-group-preview span { display:block; margin-top:4px; color:var(--pg-muted); font-size:10px; }
.pg-access-state-icon.is-success { color:var(--pg-success); background:rgba(16,185,129,.12); }
.pg-modal-loading strong, .pg-modal-loading small { display:block; }
.pg-modal-loading strong { color:var(--pg-text); font-size:13px; }
.pg-modal-loading small { margin-top:5px; font-size:10px; }
.pg-kpi-pack-card { display:grid; grid-template-columns:39px minmax(0,1fr); column-gap:13px; row-gap:0; }
.pg-kpi-pack-card .pg-kpi-link { grid-column:2; margin-top:-2px; }

/* V3: separação visual entre packs comprados e packs bloqueados */
.pg-pack-status-section { margin-top: 22px; }
.pg-pack-status-section + .pg-pack-status-section { margin-top: 34px; }
.pg-pack-status-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 13px; padding: 14px 16px; border: 1px solid var(--pg-border);
  border-radius: 15px; background: var(--pg-surface); box-shadow: var(--pg-shadow-sm);
}
.pg-pack-status-head > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pg-pack-status-head h2 { margin: 0; color: var(--pg-text); font-size: 16px; letter-spacing: -.02em; }
.pg-pack-status-head p { margin: 3px 0 0; color: var(--pg-muted); font-size: 10px; line-height: 1.45; }
.pg-pack-status-head > strong {
  flex: 0 0 auto; min-width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--pg-surface-3); color: var(--pg-text); font-size: 15px;
}
.pg-pack-status-icon {
  flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: color-mix(in srgb, var(--pg-success) 12%, var(--pg-surface)); color: var(--pg-success);
}
.pg-pack-status-icon.is-locked {
  background: color-mix(in srgb, var(--pg-warning) 13%, var(--pg-surface)); color: var(--pg-warning);
}
.pg-group-access-button.is-loading { pointer-events: none; opacity: .72; }
.pg-group-access-button.is-loading i { animation: pg-spin 1s linear infinite; }

@media (max-width: 640px) {
  .pg-pack-status-head { align-items: flex-start; }
  .pg-pack-status-head p { display: none; }
}

/* ========================================================================== 
   Modal gamificado de acesso e feedback — V4
   ========================================================================== */
#groupAccessModal .pg-modal-dialog-wide {
  width: min(860px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
}
#groupAccessModal .pg-modal-content {
  padding: 0;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--pg-primary) 12%, transparent), transparent 34%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--pg-purple) 9%, transparent), transparent 38%),
    var(--pg-surface-2);
}
.pg-mission-shell {
  position: relative;
  min-height: 560px;
  padding: 22px;
  overflow: hidden;
  color: var(--pg-text);
}
.pg-mission-shell [hidden] { display: none !important; }
.pg-mission-hero {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--pg-primary) 18%, var(--pg-border));
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pg-primary) 10%, var(--pg-surface)), color-mix(in srgb, var(--pg-purple) 6%, var(--pg-surface)));
  box-shadow: var(--pg-shadow-soft);
  overflow: hidden;
}
.pg-mission-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -65px;
  top: -90px;
  border-radius: 50%;
  border: 28px solid color-mix(in srgb, var(--pg-primary) 7%, transparent);
  pointer-events: none;
}
.pg-mission-orbit {
  --mission-progress: 0;
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--pg-primary) calc(var(--mission-progress) * 1%), var(--pg-surface-3) 0);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--pg-primary) 7%, transparent), inset 0 0 18px rgba(0,0,0,.08);
  animation: pgMissionOrbitIn .65s cubic-bezier(.2,.8,.2,1) both;
}
.pg-mission-orbit-inner {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--pg-surface);
}
.pg-mission-orbit strong { font-size: 20px; line-height: 1; letter-spacing: -.05em; }
.pg-mission-orbit span { margin-top: 4px; color: var(--pg-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pg-mission-hero-copy { min-width: 0; }
.pg-mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pg-primary);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.pg-mission-kicker i { animation: pgMissionBolt 1.4s ease-in-out infinite; }
.pg-mission-hero h2 {
  margin: 7px 0 9px;
  max-width: 560px;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.pg-mission-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.pg-mission-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pg-surface) 86%, transparent);
  color: var(--pg-text-soft);
  font-size: 9px;
  font-weight: 800;
}
.pg-mission-score {
  position: relative;
  z-index: 1;
  min-width: 120px;
  padding-left: 18px;
  border-left: 1px solid var(--pg-border);
  text-align: right;
}
.pg-mission-score small { display: block; color: var(--pg-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pg-mission-score strong { display: block; margin-top: 6px; font-size: 27px; line-height: 1; }
.pg-mission-score strong span { color: var(--pg-muted); font-size: 13px; }
.pg-mission-score em { display: block; margin-top: 7px; color: var(--pg-success); font-size: 9px; font-style: normal; font-weight: 800; }

.pg-mission-route {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 17px 6px 13px;
}
.pg-mission-step { display: flex; align-items: center; gap: 9px; opacity: .48; transition: .25s ease; }
.pg-mission-step > span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--pg-border-strong);
  border-radius: 10px;
  background: var(--pg-surface);
  color: var(--pg-muted);
  font-size: 10px;
  font-weight: 900;
  transition: .25s ease;
}
.pg-mission-step div { display: flex; flex-direction: column; }
.pg-mission-step strong { font-size: 10px; white-space: nowrap; }
.pg-mission-step small { margin-top: 3px; color: var(--pg-muted); font-size: 8px; white-space: nowrap; }
.pg-mission-step.is-current { opacity: 1; }
.pg-mission-step.is-current > span { color: white; border-color: var(--pg-primary); background: var(--pg-primary); box-shadow: 0 7px 18px color-mix(in srgb, var(--pg-primary) 28%, transparent); }
.pg-mission-shell.is-complete .pg-mission-step[data-mission-step="complete"] > span { border-color: #f59e0b; background: #f59e0b; }
.pg-mission-route-line { height: 3px; overflow: hidden; border-radius: 999px; background: var(--pg-surface-3); }
.pg-mission-route-line span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pg-primary), var(--pg-purple)); transition: width .55s ease; }
.pg-mission-shell.is-accessed .pg-mission-route-line:nth-child(2) span,
.pg-mission-shell.is-complete .pg-mission-route-line span { width: 100%; }

.pg-mission-launch-card,
.pg-mission-feedback-card {
  position: relative;
  border: 1px solid var(--pg-border);
  border-radius: 20px;
  background: var(--pg-surface);
  box-shadow: var(--pg-shadow-soft);
}
.pg-mission-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px;
}
.pg-mission-launch-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pg-mission-card-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #1877f2;
  color: white;
  font-size: 20px;
  box-shadow: 0 10px 25px rgba(24,119,242,.25);
}
.pg-mission-launch-copy small,
.pg-mission-feedback-card header small { color: var(--pg-primary); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.pg-mission-launch-copy strong { display: block; margin-top: 4px; font-size: 14px; }
.pg-mission-launch-copy p { margin: 4px 0 0; color: var(--pg-muted); font-size: 9px; line-height: 1.45; }
.pg-mission-launch-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 210px; }
.pg-mission-launch-button {
  position: relative;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1877f2, #075fc2);
  color: white !important;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(24,119,242,.25);
  transition: .22s ease;
}
.pg-mission-launch-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24,119,242,.32); }
.pg-mission-launch-button.is-counted { pointer-events: auto; cursor: default; background: linear-gradient(135deg, var(--pg-success), #0b7a55); box-shadow: 0 10px 25px color-mix(in srgb, var(--pg-success) 25%, transparent); }
.pg-mission-launch-shine {
  position: absolute;
  top: -40%;
  left: -55%;
  width: 35%;
  height: 180%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: pgMissionShine 2.6s ease-in-out infinite;
}
.pg-mission-launch-button.is-counted .pg-mission-launch-shine { display: none; }
.pg-mission-reopen {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  color: var(--pg-muted);
  font-size: 8px;
  font-weight: 800;
}
.pg-mission-reopen.is-visible { display: inline-flex; }
.pg-mission-reopen.is-busy { opacity: .45; pointer-events: none; }

.pg-mission-feedback-card { margin-top: 12px; padding: 18px; transition: .3s ease; }
.pg-mission-feedback-card:not(.is-enabled) { filter: saturate(.65); }
.pg-mission-feedback-card.is-enabled { border-color: color-mix(in srgb, var(--pg-primary) 25%, var(--pg-border)); }
.pg-mission-feedback-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pg-mission-feedback-card header strong { display: block; margin-top: 5px; font-size: 15px; }
.pg-mission-feedback-card header p { margin: 4px 0 0; color: var(--pg-muted); font-size: 9px; }
.pg-community-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--pg-purple);
  background: color-mix(in srgb, var(--pg-purple) 10%, var(--pg-surface));
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}
.pg-mission-feedback-form { padding: 0 !important; }
.pg-feedback-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.pg-feedback-option {
  position: relative;
  min-height: 138px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--pg-border);
  border-radius: 16px;
  background: var(--pg-surface-2);
  color: var(--pg-text);
  text-align: left;
  cursor: pointer;
  transition: .22s ease;
}
.pg-feedback-option:hover:not(:disabled) { transform: translateY(-3px); border-color: color-mix(in srgb, var(--option-color, var(--pg-primary)) 45%, var(--pg-border)); box-shadow: 0 12px 26px color-mix(in srgb, var(--option-color, var(--pg-primary)) 10%, transparent); }
.pg-feedback-option:disabled { cursor: not-allowed; opacity: .43; }
.pg-feedback-option.is-success { --option-color: var(--pg-success); }
.pg-feedback-option.is-pending { --option-color: var(--pg-warning); }
.pg-feedback-option.is-broken { --option-color: var(--pg-danger); }
.pg-feedback-option.is-selected { border-color: var(--option-color); background: color-mix(in srgb, var(--option-color) 8%, var(--pg-surface)); box-shadow: inset 0 0 0 1px var(--option-color); }
.pg-feedback-option.is-saving { pointer-events: none; animation: pgMissionSaving .8s ease-in-out infinite alternate; }
.pg-feedback-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--option-color);
  background: color-mix(in srgb, var(--option-color) 11%, var(--pg-surface));
  font-size: 15px;
}
.pg-feedback-copy strong { display: block; font-size: 11px; }
.pg-feedback-copy small { display: block; margin-top: 5px; color: var(--pg-muted); font-size: 8px; line-height: 1.45; }
.pg-feedback-copy em { display: none; }
.pg-feedback-check {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--option-color);
  color: white;
  font-size: 8px;
  opacity: 0;
  transform: scale(.55);
  transition: .2s ease;
}
.pg-feedback-option.is-selected .pg-feedback-check { opacity: 1; transform: scale(1); }
.pg-feedback-note-toggle {
  width: 100%;
  margin-top: 10px;
  padding: 9px 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--pg-muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.pg-feedback-note-toggle .fa-chevron-down { margin-left: auto; transition: transform .2s ease; }
.pg-feedback-note-toggle.is-open .fa-chevron-down { transform: rotate(180deg); }
.pg-feedback-note {
  position: relative;
  margin-top: 3px;
  padding: 12px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: var(--pg-surface-2);
  animation: pgMissionNoteIn .22s ease both;
}
.pg-feedback-note label { margin-bottom: 7px !important; }
.pg-feedback-note textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid var(--pg-border);
  border-radius: 11px;
  background: var(--pg-surface);
  color: var(--pg-text);
  font: inherit;
  font-size: 10px;
  outline: none;
}
.pg-feedback-note textarea:focus { border-color: var(--pg-primary); box-shadow: 0 0 0 3px var(--pg-primary-soft); }
.pg-feedback-note > small { display: block; margin-top: 5px; color: var(--pg-muted); font-size: 8px; text-align: right; }
.pg-feedback-result {
  display: none;
  margin-top: 10px;
  padding: 11px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--pg-border);
  border-radius: 13px;
  background: var(--pg-surface-2);
  font-size: 9px;
}
.pg-feedback-result.is-visible { display: flex; animation: pgMissionResultIn .28s ease both; }
.pg-feedback-result > i { font-size: 16px; }
.pg-feedback-result span { color: var(--pg-text-soft); }
.pg-feedback-result span strong { color: var(--pg-text); }
.pg-feedback-result.is-loading > i { color: var(--pg-primary); animation: pgMissionSpin .75s linear infinite; }
.pg-feedback-result.is-success { border-color: color-mix(in srgb, var(--pg-success) 30%, var(--pg-border)); background: color-mix(in srgb, var(--pg-success) 8%, var(--pg-surface)); }
.pg-feedback-result.is-success > i { color: var(--pg-success); }
.pg-feedback-result.is-error { border-color: color-mix(in srgb, var(--pg-danger) 30%, var(--pg-border)); background: color-mix(in srgb, var(--pg-danger) 8%, var(--pg-surface)); }
.pg-feedback-result.is-error > i { color: var(--pg-danger); }
.pg-feedback-locked {
  position: absolute;
  inset: 68px 14px 14px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pg-surface) 82%, transparent);
  backdrop-filter: blur(4px);
  color: var(--pg-muted);
  text-align: center;
  font-size: 9px;
  font-weight: 800;
}
.pg-feedback-locked i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--pg-surface-3); font-size: 14px; }
.pg-mission-footer-note { display: flex; align-items: center; gap: 8px; padding: 13px 5px 2px; color: var(--pg-muted); font-size: 8px; line-height: 1.5; }
.pg-mission-footer-note i { color: var(--pg-primary); font-size: 12px; }
.pg-mission-shell.is-complete .pg-mission-hero { border-color: color-mix(in srgb, #f59e0b 35%, var(--pg-border)); }
.pg-mission-shell.is-complete .pg-mission-kicker { color: #f59e0b; }
.pg-mission-confetti { position: absolute; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; }
.pg-mission-confetti i {
  position: absolute;
  left: var(--x);
  top: -12px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: var(--pg-primary);
  animation: pgMissionConfetti 1.45s cubic-bezier(.2,.7,.25,1) var(--delay) both;
}
.pg-mission-confetti i:nth-child(3n+1) { background: #f59e0b; }
.pg-mission-confetti i:nth-child(3n+2) { background: var(--pg-success); }

@keyframes pgMissionOrbitIn { from { transform: scale(.65) rotate(-80deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes pgMissionBolt { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px) scale(1.08); } }
@keyframes pgMissionShine { 0%,45% { left: -55%; } 75%,100% { left: 130%; } }
@keyframes pgMissionSaving { from { opacity: .55; } to { opacity: 1; } }
@keyframes pgMissionNoteIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pgMissionResultIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pgMissionSpin { to { transform: rotate(360deg); } }
@keyframes pgMissionConfetti { 0% { transform: translate3d(0, -15px, 0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate3d(var(--drift), 640px, 0) rotate(var(--spin)); opacity: 0; } }

@media (max-width: 760px) {
  #groupAccessModal .pg-modal-dialog-wide { width: calc(100vw - 14px); max-height: calc(100vh - 14px); border-radius: 18px; }
  #groupAccessModal .pg-modal-dialog > header { height: 54px; }
  .pg-mission-shell { padding: 12px; }
  .pg-mission-hero { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .pg-mission-orbit { width: 62px; }
  .pg-mission-orbit-inner { width: 48px; }
  .pg-mission-orbit strong { font-size: 16px; }
  .pg-mission-orbit span { font-size: 6px; }
  .pg-mission-score { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 11px 0 0; border-left: 0; border-top: 1px solid var(--pg-border); text-align: left; }
  .pg-mission-score strong { margin: 0 auto 0 10px; font-size: 20px; }
  .pg-mission-score em { margin: 0; }
  .pg-mission-route { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .pg-mission-route-line { display: none; }
  .pg-mission-step { justify-content: center; }
  .pg-mission-step div { display: none; }
  .pg-mission-launch-card { align-items: stretch; flex-direction: column; }
  .pg-mission-launch-actions { min-width: 0; }
  .pg-feedback-options { grid-template-columns: 1fr; }
  .pg-feedback-option { min-height: 0; flex-direction: row; align-items: center; }
  .pg-feedback-copy { padding-right: 24px; }
  .pg-community-chip { display: none; }
  .pg-feedback-locked { inset: 60px 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-mission-shell *, .pg-mission-shell *::before, .pg-mission-shell *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Conta, autenticação e perfis — Premium V5
   ========================================================= */
.pg-topbar-nav { display:flex; align-items:center; gap:4px; margin-left:auto; margin-right:18px; }
.pg-topbar-nav a { min-height:40px; padding:0 12px; display:inline-flex; align-items:center; gap:7px; border-radius:12px; color:var(--pg-text-soft); font-size:11px; font-weight:800; transition:.2s ease; }
.pg-topbar-nav a:hover { color:var(--pg-text); background:var(--pg-surface-2); }
.pg-topbar-nav a.is-active { color:var(--pg-primary); background:var(--pg-primary-soft); }
.pg-standalone-main { min-height:calc(100vh - var(--pg-topbar-height)); padding:calc(var(--pg-topbar-height) + 28px) clamp(18px,4vw,62px) 48px; max-width:1500px; margin:0 auto; }
.pg-page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.pg-page-heading h1 { margin:7px 0 0; font-size:clamp(30px,4vw,46px); line-height:1; letter-spacing:-.045em; }
.pg-alert { display:flex; align-items:flex-start; gap:10px; margin:0 0 18px; padding:13px 15px; border:1px solid var(--pg-border); border-radius:14px; background:var(--pg-surface); font-size:12px; font-weight:700; line-height:1.5; box-shadow:var(--pg-shadow-soft); }
.pg-alert > i { margin-top:2px; font-size:15px; }
.pg-alert.is-success { color:var(--pg-success); border-color:color-mix(in srgb,var(--pg-success) 30%,var(--pg-border)); background:color-mix(in srgb,var(--pg-success) 7%,var(--pg-surface)); }
.pg-alert.is-error { color:var(--pg-danger); border-color:color-mix(in srgb,var(--pg-danger) 30%,var(--pg-border)); background:color-mix(in srgb,var(--pg-danger) 7%,var(--pg-surface)); }
.pg-alert.is-warning { color:var(--pg-warning); border-color:color-mix(in srgb,var(--pg-warning) 35%,var(--pg-border)); background:color-mix(in srgb,var(--pg-warning) 8%,var(--pg-surface)); }
.pg-panel { border:1px solid var(--pg-border); border-radius:var(--pg-radius-xl); background:var(--pg-surface); box-shadow:var(--pg-shadow-soft); }
.pg-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid var(--pg-border); }
.pg-panel-heading span { display:block; color:var(--pg-primary); font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.13em; }
.pg-panel-heading h2 { margin:5px 0 0; font-size:18px; letter-spacing:-.025em; }
.pg-panel-heading > i { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:var(--pg-primary); background:var(--pg-primary-soft); }

.pg-account-hero { display:grid; grid-template-columns:auto minmax(180px,1fr) minmax(480px,1.4fr); align-items:center; gap:20px; margin-bottom:18px; padding:22px; border:1px solid var(--pg-border); border-radius:var(--pg-radius-xl); background:linear-gradient(135deg,var(--pg-surface),color-mix(in srgb,var(--pg-primary) 5%,var(--pg-surface))); box-shadow:var(--pg-shadow); overflow:hidden; position:relative; }
.pg-account-hero::after { content:""; position:absolute; width:260px; height:260px; right:-110px; top:-150px; border-radius:50%; background:radial-gradient(circle,color-mix(in srgb,var(--pg-purple) 18%,transparent),transparent 68%); pointer-events:none; }
.pg-account-avatar { width:78px; height:78px; border-radius:24px; display:grid; place-items:center; overflow:hidden; border:4px solid var(--pg-surface); background:linear-gradient(135deg,var(--pg-primary),var(--pg-purple)); color:white; box-shadow:0 15px 35px rgba(37,99,235,.22); }
.pg-account-avatar img { width:100%; height:100%; object-fit:cover; }
.pg-account-avatar span { font-size:24px; font-weight:900; }
.pg-account-identity h2 { margin:7px 0 4px; font-size:24px; letter-spacing:-.035em; }
.pg-account-identity p { margin:0; color:var(--pg-muted); font-size:12px; }
.pg-status-pill { display:inline-flex; align-items:center; gap:6px; min-height:27px; padding:0 9px; border:1px solid var(--pg-border); border-radius:999px; background:var(--pg-surface-2); color:var(--pg-muted); font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.pg-status-pill.is-active { color:var(--pg-success); border-color:color-mix(in srgb,var(--pg-success) 30%,var(--pg-border)); background:color-mix(in srgb,var(--pg-success) 8%,var(--pg-surface)); }
.pg-status-pill.is-active i { font-size:6px; }
.pg-account-mini-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; position:relative; z-index:1; }
.pg-account-mini-stats > div { min-height:78px; padding:13px; display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:9px; border:1px solid var(--pg-border); border-radius:16px; background:color-mix(in srgb,var(--pg-surface) 88%,transparent); backdrop-filter:blur(10px); }
.pg-account-mini-stats i { grid-row:1/3; width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:var(--pg-primary); background:var(--pg-primary-soft); }
.pg-account-mini-stats span { color:var(--pg-muted); font-size:8px; font-weight:800; }
.pg-account-mini-stats strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.pg-settings-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; align-items:start; }
.pg-settings-aside { display:grid; gap:16px; position:sticky; top:calc(var(--pg-topbar-height) + 18px); }
.pg-premium-form { display:grid; gap:16px; padding:22px; }
.pg-premium-form label { display:grid; gap:7px; color:var(--pg-text-soft); font-size:10px; font-weight:800; }
.pg-premium-form label > span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pg-premium-form label em { color:var(--pg-muted); font-size:8px; font-style:normal; font-weight:700; }
.pg-premium-form input,.pg-premium-form select,.pg-premium-form textarea { width:100%; border:1px solid var(--pg-border); border-radius:12px; background:var(--pg-surface-2); color:var(--pg-text); outline:none; font:inherit; font-size:11px; transition:.2s ease; }
.pg-premium-form input,.pg-premium-form select { height:45px; padding:0 12px; }
.pg-premium-form textarea { padding:12px; resize:vertical; line-height:1.55; }
.pg-premium-form input:focus,.pg-premium-form select:focus,.pg-premium-form textarea:focus { border-color:var(--pg-primary); box-shadow:0 0 0 3px var(--pg-primary-soft); }
.pg-premium-form input[readonly] { color:var(--pg-muted); cursor:not-allowed; background:var(--pg-surface-3); }
.pg-premium-form input[type="file"] { padding:8px; }
.pg-premium-form small { color:var(--pg-muted); font-size:8px; line-height:1.4; }
.pg-form-section { display:grid; gap:14px; padding-bottom:19px; border-bottom:1px solid var(--pg-border); }
.pg-form-section:last-of-type { border-bottom:0; }
.pg-form-section h3 { margin:0; font-size:13px; letter-spacing:-.015em; }
.pg-form-grid { display:grid; gap:12px; }
.pg-form-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pg-form-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.pg-phone-grid { display:grid; grid-template-columns:90px 90px minmax(180px,1fr) minmax(170px,.7fr); gap:10px; }
.pg-form-actions { display:flex; justify-content:flex-end; padding-top:2px; }
.pg-advanced-settings { border:1px solid var(--pg-border); border-radius:16px; overflow:hidden; background:var(--pg-surface-2); }
.pg-advanced-settings summary { list-style:none; display:flex; align-items:center; justify-content:space-between; padding:15px; cursor:pointer; font-size:11px; font-weight:900; }
.pg-advanced-settings summary::-webkit-details-marker { display:none; }
.pg-advanced-settings summary span { display:inline-flex; align-items:center; gap:8px; }
.pg-advanced-settings[open] summary > i { transform:rotate(180deg); }
.pg-advanced-settings > .pg-form-section { padding:16px; border-top:1px solid var(--pg-border); border-bottom:0; }
.pg-password-field { position:relative; }
.pg-password-field input { padding-right:46px; }
.pg-password-field button { position:absolute; right:4px; top:4px; width:37px; height:37px; border:0; border-radius:10px; background:transparent; color:var(--pg-muted); cursor:pointer; }
.pg-password-field button:hover { color:var(--pg-primary); background:var(--pg-primary-soft); }
.pg-password-strength { height:5px; overflow:hidden; border-radius:999px; background:var(--pg-surface-3); }
.pg-password-strength span { display:block; width:0; height:100%; border-radius:inherit; background:var(--pg-danger); transition:.2s ease; }
.pg-password-strength span[data-level="medium"] { background:var(--pg-warning); }
.pg-password-strength span[data-level="good"],.pg-password-strength span[data-level="strong"] { background:var(--pg-success); }
.pg-password-rules { margin:-7px 0 0; padding:0; display:grid; gap:5px; list-style:none; color:var(--pg-muted); font-size:8px; }
.pg-password-rules li::before { content:"○"; margin-right:6px; }
.pg-password-rules li.is-valid { color:var(--pg-success); }
.pg-password-rules li.is-valid::before { content:"✓"; }
.pg-security-card .pg-premium-form { gap:13px; }
.pg-security-card .pg-button { width:100%; }
.pg-account-help { padding:22px; text-align:center; }
.pg-account-help > i { width:50px; height:50px; display:grid; place-items:center; margin:0 auto 12px; border-radius:16px; color:var(--pg-success); background:color-mix(in srgb,var(--pg-success) 10%,var(--pg-surface)); font-size:19px; }
.pg-account-help h3 { margin:0 0 7px; font-size:14px; }
.pg-account-help p { margin:0; color:var(--pg-muted); font-size:9px; line-height:1.65; }
.pg-button-danger { color:white; background:linear-gradient(135deg,var(--pg-danger),#b91c1c); box-shadow:0 10px 24px color-mix(in srgb,var(--pg-danger) 22%,transparent); }
.pg-icon-button.is-danger { color:var(--pg-danger); }
.pg-icon-button.is-danger:hover { border-color:color-mix(in srgb,var(--pg-danger) 35%,var(--pg-border)); background:color-mix(in srgb,var(--pg-danger) 7%,var(--pg-surface)); }

.pg-auth-body { overflow-x:hidden; }
.pg-auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(420px,1.2fr) minmax(420px,.8fr); }
.pg-auth-visual { position:relative; min-height:100vh; padding:48px clamp(35px,6vw,90px); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; background:radial-gradient(circle at 20% 20%,rgba(96,165,250,.26),transparent 35%),radial-gradient(circle at 78% 70%,rgba(124,58,237,.3),transparent 40%),linear-gradient(135deg,#071225,#111d3c 55%,#17103c); color:white; }
.pg-auth-visual::after { content:""; position:absolute; inset:0; opacity:.16; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:45px 45px; mask-image:linear-gradient(to bottom,black,transparent 85%); }
.pg-auth-brand { position:relative; z-index:2; display:flex; align-items:center; gap:12px; }
.pg-auth-brand > div { display:flex; flex-direction:column; }
.pg-auth-brand strong { font-size:18px; }
.pg-auth-brand small { margin-top:4px; font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#aebde2; }
.pg-auth-message { position:relative; z-index:2; max-width:620px; }
.pg-auth-message .pg-eyebrow { color:#93c5fd; }
.pg-auth-message h1 { margin:14px 0 23px; max-width:580px; font-size:clamp(40px,5vw,72px); line-height:.98; letter-spacing:-.055em; }
.pg-auth-benefits { display:flex; flex-wrap:wrap; gap:9px; }
.pg-auth-benefits span { padding:9px 12px; border:1px solid rgba(255,255,255,.15); border-radius:999px; background:rgba(255,255,255,.07); backdrop-filter:blur(8px); font-size:9px; font-weight:800; }
.pg-auth-benefits i { margin-right:5px; color:#34d399; }
.pg-auth-orbit { position:absolute; z-index:1; width:420px; height:420px; right:-80px; top:50%; transform:translateY(-58%); border:1px solid rgba(255,255,255,.12); border-radius:50%; animation:pgAuthFloat 8s ease-in-out infinite; }
.pg-auth-orbit::before,.pg-auth-orbit::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.pg-auth-orbit::before { inset:55px; }.pg-auth-orbit::after { inset:115px; }
.pg-auth-orbit > i { position:absolute; inset:0; margin:auto; width:90px; height:90px; display:grid; place-items:center; border-radius:30px; background:linear-gradient(135deg,#2563eb,#7c3aed); font-size:34px; box-shadow:0 25px 60px rgba(0,0,0,.35); }
.pg-auth-orbit span { position:absolute; width:18px; height:18px; border-radius:50%; background:#60a5fa; box-shadow:0 0 28px currentColor; }
.pg-auth-orbit span:nth-child(2){left:42px;top:95px}.pg-auth-orbit span:nth-child(3){right:62px;bottom:75px;background:#a78bfa}.pg-auth-orbit span:nth-child(4){left:155px;bottom:-8px;background:#34d399}
.pg-auth-card { position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding:clamp(28px,6vw,90px); background:var(--pg-surface); }
.pg-auth-card > h2 { margin:8px 0 8px; font-size:clamp(32px,4vw,48px); line-height:1; letter-spacing:-.045em; }
.pg-auth-card > p { margin:0 0 23px; color:var(--pg-muted); font-size:11px; line-height:1.6; }
.pg-auth-theme { position:absolute; right:25px; top:24px; }
.pg-auth-mobile-brand { display:none; }
.pg-login-form { padding:0; gap:14px; }
.pg-input-icon { position:relative; }
.pg-input-icon > i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--pg-muted); }
.pg-input-icon input { padding-left:42px; }
.pg-login-submit { width:100%; min-height:49px; margin-top:5px; }
.pg-auth-footer { margin-top:22px; padding-top:18px; border-top:1px solid var(--pg-border); color:var(--pg-muted); font-size:8px; text-align:center; }
.pg-auth-footer i { margin-right:5px; color:var(--pg-success); }
@keyframes pgAuthFloat { 0%,100%{transform:translateY(-58%) rotate(0)}50%{transform:translateY(-62%) rotate(7deg)} }

.pg-profile-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:14px; }
.pg-profile-summary > div { min-height:92px; padding:16px; display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:11px; border:1px solid var(--pg-border); border-radius:18px; background:var(--pg-surface); box-shadow:var(--pg-shadow-soft); }
.pg-profile-summary i { grid-row:1/3; width:40px; height:40px; display:grid; place-items:center; border-radius:13px; color:var(--pg-primary); background:var(--pg-primary-soft); }
.pg-profile-summary span { color:var(--pg-muted); font-size:8px; font-weight:800; }
.pg-profile-summary strong { font-size:19px; letter-spacing:-.03em; }
.pg-profile-intro { display:flex; align-items:center; gap:14px; margin-bottom:18px; padding:16px 18px; border:1px solid color-mix(in srgb,var(--pg-primary) 25%,var(--pg-border)); border-radius:18px; background:var(--pg-primary-soft); }
.pg-profile-intro-icon { flex:0 0 auto; width:46px; height:46px; display:grid; place-items:center; border-radius:14px; color:white; background:linear-gradient(135deg,var(--pg-primary),var(--pg-purple)); }
.pg-profile-intro h2 { margin:0 0 4px; font-size:14px; }.pg-profile-intro p { margin:0; color:var(--pg-text-soft); font-size:9px; line-height:1.55; }
.pg-profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pg-profile-card { position:relative; overflow:hidden; border:1px solid var(--pg-border); border-radius:22px; background:var(--pg-surface); box-shadow:var(--pg-shadow-soft); transition:.22s ease; }
.pg-profile-card:hover { transform:translateY(-3px); box-shadow:var(--pg-shadow); }
.pg-profile-card.is-active { border-color:color-mix(in srgb,var(--pg-success) 42%,var(--pg-border)); box-shadow:0 16px 40px color-mix(in srgb,var(--pg-success) 11%,transparent); }
.pg-profile-card.is-active::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:linear-gradient(var(--pg-success),#22c55e); }
.pg-profile-card-top { min-height:74px; padding:16px; display:flex; align-items:flex-start; justify-content:space-between; background:linear-gradient(135deg,var(--pg-surface-2),var(--pg-surface)); }
.pg-profile-platform { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; color:white; font-size:20px; box-shadow:0 12px 25px rgba(15,23,42,.15); }
.pg-profile-platform.is-facebook { background:linear-gradient(135deg,#1877f2,#075fc2); }.pg-profile-platform.is-whatsapp { background:linear-gradient(135deg,#25d366,#128c7e); }
.pg-active-ribbon { display:inline-flex; align-items:center; gap:6px; padding:7px 9px; border-radius:999px; color:var(--pg-success); background:color-mix(in srgb,var(--pg-success) 10%,var(--pg-surface)); font-size:8px; font-weight:900; }
.pg-profile-card-body { min-height:170px; padding:4px 17px 17px; }
.pg-profile-card-body > span { color:var(--pg-muted); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.pg-profile-card-body h2 { margin:8px 0 9px; font-size:17px; line-height:1.25; letter-spacing:-.025em; }
.pg-profile-card-body > a { display:inline-flex; align-items:center; gap:6px; color:var(--pg-primary); font-size:9px; font-weight:800; }
.pg-profile-card-body p { margin:14px 0 0; color:var(--pg-muted); font-size:9px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pg-profile-card-actions { min-height:66px; padding:12px 14px; display:flex; align-items:center; gap:7px; border-top:1px solid var(--pg-border); background:var(--pg-surface-2); }
.pg-profile-card-actions .pg-button { flex:1; }
.pg-profile-empty { min-height:360px; }
.pg-profile-modal-dialog { width:min(600px,calc(100vw - 24px)); }
.pg-profile-modal-body { max-height:calc(100vh - 130px); overflow:auto; }
.pg-profile-form { padding:20px; }
.pg-profile-form-hero { display:flex; align-items:center; gap:13px; padding:14px; border:1px solid var(--pg-border); border-radius:16px; background:var(--pg-surface-2); }
.pg-profile-form-hero > span { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:white; background:linear-gradient(135deg,var(--pg-primary),var(--pg-purple)); }
.pg-profile-form-hero h3 { margin:0 0 3px; font-size:14px; }.pg-profile-form-hero p { margin:0; color:var(--pg-muted); font-size:8px; }
.pg-modal-form-actions { display:flex; justify-content:flex-end; gap:8px; padding-top:5px; }
.pg-delete-illustration,.pg-switch-illustration { width:72px; height:72px; display:grid; place-items:center; margin:2px auto 0; border-radius:24px; font-size:28px; }
.pg-delete-illustration { color:var(--pg-danger); background:color-mix(in srgb,var(--pg-danger) 10%,var(--pg-surface)); }.pg-switch-illustration { color:var(--pg-primary); background:var(--pg-primary-soft); }
.pg-danger-form > h3,.pg-profile-form > h3 { margin:0; text-align:center; font-size:20px; letter-spacing:-.03em; }.pg-danger-form > p,.pg-profile-form > p { margin:-6px auto 0; max-width:430px; color:var(--pg-muted); font-size:10px; line-height:1.6; text-align:center; }
.pg-profile-switch-preview { display:flex; align-items:center; gap:12px; margin:0 auto; padding:12px 16px; border:1px solid var(--pg-border); border-radius:15px; background:var(--pg-surface-2); }
.pg-profile-switch-preview > span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#1877f2; background:rgba(24,119,242,.1); font-size:17px; }.pg-profile-switch-preview small { display:block; color:var(--pg-muted); font-size:7px; }.pg-profile-switch-preview strong { display:block; margin-top:3px; font-size:11px; }
.pg-modal-error { min-height:280px; padding:30px; display:grid; place-content:center; justify-items:center; text-align:center; }.pg-modal-error > i { font-size:32px; color:var(--pg-danger); }.pg-modal-error h3 { margin:12px 0 5px; }.pg-modal-error p { max-width:390px; color:var(--pg-muted); font-size:10px; line-height:1.55; }
.pg-button.is-loading { pointer-events:none; opacity:.72; }

@media (max-width:1100px) {
  .pg-topbar-nav span { display:none; }
  .pg-topbar-nav a { width:40px; padding:0; justify-content:center; }
  .pg-account-hero { grid-template-columns:auto 1fr; }
  .pg-account-mini-stats { grid-column:1/-1; }
  .pg-settings-grid { grid-template-columns:1fr; }
  .pg-settings-aside { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pg-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pg-auth-shell { grid-template-columns:1fr 1fr; }
  .pg-auth-orbit { opacity:.55; }
}
@media (max-width:760px) {
  .pg-topbar { padding:0 12px; }
  .pg-brand { min-width:0; }.pg-brand-copy small { display:none; }
  .pg-topbar-nav { position:fixed; z-index:55; left:10px; right:10px; bottom:10px; height:58px; margin:0; padding:7px; justify-content:space-around; border:1px solid var(--pg-border); border-radius:18px; background:color-mix(in srgb,var(--pg-surface) 94%,transparent); backdrop-filter:blur(16px); box-shadow:var(--pg-shadow); }
  .pg-topbar-nav a { width:auto; min-width:58px; height:43px; flex-direction:column; gap:3px; font-size:7px; }.pg-topbar-nav span { display:block; }
  .pg-standalone-main { padding:calc(var(--pg-topbar-height) + 20px) 13px 95px; }
  .pg-page-heading { align-items:flex-start; flex-direction:column; }.pg-page-heading .pg-button { width:100%; }
  .pg-account-hero { grid-template-columns:64px 1fr; padding:16px; }.pg-account-avatar { width:64px;height:64px;border-radius:19px; }.pg-account-identity h2 { font-size:19px; }
  .pg-account-mini-stats { grid-template-columns:1fr; }.pg-account-mini-stats > div { min-height:64px; }
  .pg-form-grid.two,.pg-form-grid.three,.pg-phone-grid { grid-template-columns:1fr; }
  .pg-settings-aside { grid-template-columns:1fr; }
  .pg-premium-form { padding:16px; }.pg-panel-heading { padding:16px; }
  .pg-profile-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.pg-profile-grid { grid-template-columns:1fr; }
  .pg-profile-card-body { min-height:145px; }
  .pg-auth-shell { display:block; }.pg-auth-visual { display:none; }.pg-auth-card { min-height:100vh; padding:75px 22px 35px; }.pg-auth-mobile-brand { display:flex; align-items:center; gap:10px; margin-bottom:45px; }.pg-auth-theme { top:18px;right:18px; }
  .pg-modal-form-actions { flex-direction:column-reverse; }.pg-modal-form-actions .pg-button { width:100%; }
}

/* Mobile filter reliability patch v5.1 */
@media (max-width: 900px) {
  .pg-mobile-filter-toggle { display: inline-grid !important; flex: 0 0 42px; }
  .pg-button-filter-mobile { display: inline-flex !important; }
  .pg-filter-top-action { order: -10; }
  .pg-filter-panel {
    visibility: visible;
    height: 100dvh;
    max-height: 100dvh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.pg-filter-open .pg-filter-panel { transform: translate3d(0,0,0); }
}
@media (max-width: 760px) {
  .pg-main { padding-bottom: 92px; }
}

/* =========================================================
   Navegação entre experiências + perfil obrigatório V5.2
   ========================================================= */
.pg-nav-game { color: var(--pg-primary) !important; }
.pg-nav-game:not(.is-active) { background: color-mix(in srgb, var(--pg-primary-soft) 65%, transparent); }
.pg-desktop-mode-shortcut { color: var(--pg-primary); }

@media (max-width: 1180px) {
  .pg-experience-nav { margin-right: 10px; gap: 2px; }
  .pg-experience-nav a { padding: 0 9px; }
}

@media (max-width: 900px) {
  .pg-desktop-mode-shortcut { display: none; }
}

@media (max-width: 720px) {
  .pg-experience-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 62px;
    padding: 6px 4px;
    gap: 1px;
    overflow: hidden;
  }
  .pg-experience-nav a {
    flex: 1 1 0;
    width: auto;
    min-width: 0 !important;
    height: 48px;
    padding: 5px 1px;
    border-radius: 11px;
    gap: 2px;
    font-size: 6.5px;
    line-height: 1;
    white-space: nowrap;
  }
  .pg-experience-nav a i { font-size: 13px; }
  .pg-experience-nav a span { display: block; font-size: 6.5px; }
  .pg-topbar-actions { gap: 5px; }
  .pg-topbar-actions .pg-icon-button { width: 37px; height: 37px; }
}

@media (max-width: 390px) {
  .pg-experience-nav a span { font-size: 5.8px; }
  .pg-experience-nav a i { font-size: 12px; }
}

.pg-profile-required-alert{align-items:flex-start;padding:16px 18px;margin-bottom:18px}
.pg-profile-required-alert>i{margin-top:2px;font-size:18px}
.pg-profile-required-alert strong{display:block;margin-bottom:3px;color:var(--pg-text)}

/* =========================================================
   ROTA30™ V7 — contraste premium completo no tema claro
   ========================================================= */
html[data-theme="light"]{
  --pg-bg:#edf2f7;
  --pg-surface:#ffffff;
  --pg-surface-2:#f3f6fa;
  --pg-surface-3:#e5ebf2;
  --pg-border:#b8c4d1;
  --pg-border-strong:#8fa0b2;
  --pg-text:#081525;
  --pg-text-soft:#253b52;
  --pg-muted:#4d6075;
  --pg-primary:#075bb5;
  --pg-primary-strong:#06498f;
  --pg-primary-soft:#dcecff;
  --pg-success:#087a4d;
  --pg-warning:#a65400;
  --pg-danger:#b4232c;
  --pg-purple:#5c35b5;
  --pg-shadow:0 18px 45px rgba(16,40,70,.14);
  --pg-shadow-soft:0 9px 24px rgba(16,40,70,.10);
  color-scheme:light;
}
html[data-theme="light"] body{background:#edf2f7;color:#081525}
html[data-theme="light"] .pg-topbar,
html[data-theme="light"] .pg-filter-panel,
html[data-theme="light"] .pg-panel,
html[data-theme="light"] .pg-group-card,
html[data-theme="light"] .pg-kpi-card,
html[data-theme="light"] .pg-chart-card,
html[data-theme="light"] .pg-pack-market-card,
html[data-theme="light"] .pg-auth-card,
html[data-theme="light"] .pg-modal-dialog{background:#fff;color:#081525}
html[data-theme="light"] .pg-eyebrow,
html[data-theme="light"] .pg-panel-heading span,
html[data-theme="light"] .pg-mission-kicker,
html[data-theme="light"] .pg-mission-launch-copy small,
html[data-theme="light"] .pg-mission-feedback-card header small{color:#075bb5}
html[data-theme="light"] .pg-main-head h1,
html[data-theme="light"] .pg-page-heading h1,
html[data-theme="light"] .pg-auth-card>h2,
html[data-theme="light"] .pg-panel-heading h2,
html[data-theme="light"] .pg-group-card h2,
html[data-theme="light"] .pg-pack-market-head h2{color:#081525}
html[data-theme="light"] .pg-auth-card>p,
html[data-theme="light"] .pg-account-identity p,
html[data-theme="light"] .pg-pack-market-description,
html[data-theme="light"] .pg-group-location,
html[data-theme="light"] .pg-chart-card header small,
html[data-theme="light"] .pg-kpi-card small,
html[data-theme="light"] .pg-kpi-card em,
html[data-theme="light"] .pg-footer{color:#4d6075;opacity:1}
html[data-theme="light"] .pg-premium-form label,
html[data-theme="light"] .pg-filter-section label,
html[data-theme="light"] .pg-pack-label,
html[data-theme="light"] .pg-button-ghost{color:#253b52}
html[data-theme="light"] .pg-premium-form input,
html[data-theme="light"] .pg-premium-form select,
html[data-theme="light"] .pg-premium-form textarea,
html[data-theme="light"] .pg-filter-form select,
html[data-theme="light"] .pg-filter-form input,
html[data-theme="light"] .pg-modal input,
html[data-theme="light"] .pg-feedback-note textarea{background:#f5f7fa;color:#081525;border-color:#aebbc9}
html[data-theme="light"] .pg-premium-form input::placeholder,
html[data-theme="light"] .pg-filter-form input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#65778a;opacity:1}
html[data-theme="light"] .pg-premium-form input:focus,
html[data-theme="light"] .pg-premium-form select:focus,
html[data-theme="light"] .pg-premium-form textarea:focus,
html[data-theme="light"] .pg-filter-form input:focus,
html[data-theme="light"] .pg-filter-form select:focus{border-color:#075bb5;box-shadow:0 0 0 3px rgba(7,91,181,.16)}
html[data-theme="light"] .pg-icon-button,
html[data-theme="light"] .pg-favorite-button,
html[data-theme="light"] .pg-week-button,
html[data-theme="light"] .pg-week-current,
html[data-theme="light"] .pg-page-button{background:#fff;color:#253b52;border-color:#aebbc9}
html[data-theme="light"] .pg-icon-button:hover,
html[data-theme="light"] .pg-favorite-button:hover,
html[data-theme="light"] .pg-week-button:hover,
html[data-theme="light"] .pg-page-button:hover{color:#06498f;border-color:#6e88a3;background:#e8f1fb}
html[data-theme="light"] .pg-button-secondary{color:#06498f;background:#dcecff;border-color:#8db3dc}
html[data-theme="light"] .pg-button-primary,
html[data-theme="light"] .pg-button-card{color:#fff;background:linear-gradient(135deg,#075bb5,#5c35b5)}
html[data-theme="light"] .pg-badge-public{color:#06643f;background:#dff5e9}
html[data-theme="light"] .pg-badge-private{color:#4d2a9c;background:#eee8ff}
html[data-theme="light"] .pg-badge-activity.medium{color:#06498f;background:#dcecff}
html[data-theme="light"] .pg-auth-mobile-brand strong,
html[data-theme="light"] .pg-auth-footer,
html[data-theme="light"] .pg-auth-footer span{color:#334a61}

/* PWA/iPhone: garantir toque e digitação nos formulários de autenticação. */
@media all and (display-mode:standalone){
  .pg-auth-body,.pg-auth-shell,.pg-auth-card,.pg-login-form,.pg-login-form label,.pg-login-form .pg-input-icon,.pg-login-form .pg-password-field{position:relative;pointer-events:auto!important}
  .pg-auth-card{z-index:10}
  .pg-auth-card::before,.pg-auth-card::after,.pg-auth-shell::before,.pg-auth-shell::after,.pg-auth-visual::after{pointer-events:none!important}
  .pg-login-form input,.pg-login-form button{position:relative;z-index:20;pointer-events:auto!important;touch-action:manipulation;-webkit-user-select:text!important;user-select:text!important}
  .pg-login-form input{font-size:16px!important}
}


/* =========================================================
   ROTA30 V12 — navegação fora do header / PWA iPhone
   Corrige position:fixed preso ao backdrop-filter do header.
   ========================================================= */
.pg-topbar-nav.pg-experience-nav{
  position:fixed;
  z-index:70;
  top:0;
  left:50%;
  bottom:auto;
  height:var(--pg-topbar-height);
  margin:0;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

@media(max-width:760px){
  .pg-topbar-nav.pg-experience-nav{
    top:auto!important;
    left:max(8px,env(safe-area-inset-left,0px))!important;
    right:max(8px,env(safe-area-inset-right,0px))!important;
    bottom:max(8px,env(safe-area-inset-bottom,0px))!important;
    width:auto;
    height:64px;
    min-height:64px;
    padding:6px 4px;
    transform:none!important;
    justify-content:space-around;
    gap:1px;
    overflow:hidden;
    border:1px solid var(--pg-border);
    border-radius:19px;
    background:color-mix(in srgb,var(--pg-surface) 96%,transparent);
    box-shadow:0 18px 50px rgba(2,8,23,.28);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }
  .pg-topbar-nav.pg-experience-nav a{
    flex:1 1 0;
    width:auto;
    min-width:0!important;
    height:50px;
    min-height:50px;
    padding:5px 1px!important;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    border-radius:13px;
    font-size:7px;
    line-height:1;
    white-space:nowrap;
  }
  .pg-topbar-nav.pg-experience-nav a i{font-size:15px}
  .pg-topbar-nav.pg-experience-nav a span{display:block;font-size:7px;line-height:1}
  .pg-main,.pg-standalone-main,.pg-packs-page{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
  .pg-footer{margin-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:390px){
  .pg-topbar-nav.pg-experience-nav a span{font-size:6.2px}
  .pg-topbar-nav.pg-experience-nav a i{font-size:14px}
}


/* =========================================================
   ROTA30™ V14 — tipografia legível no Clássico e páginas premium
   ========================================================= */
:root{
  --pg-type-caption:clamp(11px,.68rem + .08vw,12px);
  --pg-type-small:clamp(12px,.72rem + .12vw,13px);
  --pg-type-body:clamp(14px,.84rem + .14vw,16px);
  --pg-type-button:clamp(12px,.73rem + .12vw,14px)
}

.pg-app-shell p,
.pg-standalone-main p,
.pg-packs-page p,
.pg-auth-shell p,
.pg-modal p,
.pg-mission-shell p{
  font-size:var(--pg-type-body)!important;
  line-height:1.58;
  overflow-wrap:anywhere
}
.pg-app-shell small,
.pg-standalone-main small,
.pg-packs-page small,
.pg-auth-shell small,
.pg-modal small,
.pg-mission-shell small{
  font-size:var(--pg-type-caption)!important;
  line-height:1.45
}
.pg-button,
.pg-page-button,
.pg-week-button,
.pg-week-current,
.pg-modal-content .btn,
.pg-modal-content button[type="submit"],
.pg-modal-content a.btn,
.pg-mission-launch-button,
.pg-feedback-option,
.pg-feedback-note-toggle{
  font-size:var(--pg-type-button)!important
}

.pg-eyebrow,
.pg-filter-section label,
.pg-kpi-card small,
.pg-chart-card header small,
.pg-badge,
.pg-group-location,
.pg-pack-label,
.pg-group-metrics small,
.pg-card-score>div:first-child,
.pg-footer,
.pg-kpi-link,
.pg-chart-data-list>span,
.pg-chart-data-grid>span,
.pg-pack-market-location,
.pg-pack-market-metrics span,
.pg-pack-price,
.pg-access-kicker,
.pg-pack-status-head p,
.pg-panel-heading span,
.pg-status-pill,
.pg-account-mini-stats span,
.pg-premium-form label,
.pg-premium-form label em,
.pg-premium-form small,
.pg-password-rules,
.pg-account-help p,
.pg-auth-brand small,
.pg-auth-benefits span,
.pg-auth-footer,
.pg-profile-summary span,
.pg-profile-intro p,
.pg-active-ribbon,
.pg-profile-card-body>span,
.pg-profile-card-body>a,
.pg-profile-card-body p,
.pg-profile-form-hero p,
.pg-profile-switch-preview small,
.pg-modal-error p{
  font-size:var(--pg-type-small)!important;
  line-height:1.45
}

/* Modal de acesso/feedback, antes especialmente pequeno. */
.pg-mission-kicker,
.pg-mission-badges span,
.pg-mission-score small,
.pg-mission-score em,
.pg-mission-step strong,
.pg-mission-step small,
.pg-mission-launch-copy small,
.pg-mission-launch-copy p,
.pg-mission-reopen,
.pg-mission-feedback-card header small,
.pg-mission-feedback-card header p,
.pg-community-chip,
.pg-feedback-copy strong,
.pg-feedback-copy small,
.pg-feedback-note label,
.pg-feedback-note textarea,
.pg-feedback-note>small,
.pg-feedback-result,
.pg-feedback-locked,
.pg-mission-footer-note{
  font-size:var(--pg-type-caption)!important;
  line-height:1.45
}

@media(max-width:780px){
  body{font-size:15px}
  .pg-app-shell p,.pg-standalone-main p,.pg-packs-page p,.pg-auth-shell p,.pg-modal p{font-size:14px!important}
  .pg-topbar-nav a,.pg-experience-nav a{
    font-size:10px!important;
    line-height:1.05;
    min-width:0!important
  }
  .pg-topbar-nav a span,.pg-experience-nav a span{
    display:block!important;
    font-size:9px!important;
    line-height:1.05;
    white-space:nowrap
  }
  .pg-topbar-nav a i,.pg-experience-nav a i{font-size:16px!important}
  .pg-kpi-card,.pg-group-card,.pg-pack-market-card,.pg-panel{min-width:0}
  .pg-group-metrics,.pg-account-mini-stats{gap:9px}
  .pg-group-metrics small{white-space:normal}
}
@media(max-width:430px){
  .pg-topbar-nav a span,.pg-experience-nav a span{font-size:8.5px!important}
  .pg-button{font-size:12px!important}
}
