:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e5eaf1;
  --text: #172033;
  --muted: #7a8498;
  --navy: #16243d;
  --navy-2: #20314e;
  --accent: #2c6bed;
  --green: #18a874;
  --red: #d84a5f;
  --shadow: 0 12px 40px rgba(20, 35, 60, .08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24,168,116,.12);
}


.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(44,107,237,.12), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(24,168,116,.1), transparent 28%),
    var(--bg);
}

.login-card {
  width: min(440px, 100%);
  padding: 38px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--navy);
  color: white;
  font-weight: 900;
  letter-spacing: -.06em;
  margin-bottom: 26px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin: 0;
}

.login-card h1 {
  margin: 7px 0 8px;
  font-size: 31px;
  letter-spacing: -.04em;
}

.login-card form {
  display: grid;
  gap: 17px;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,107,237,.10);
}

.primary-button {
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  padding: 14px 18px;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--navy-2);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.error {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--red);
  background: rgba(216,74,95,.08);
  font-size: 13px;
}


.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 3px 7px 28px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 15px;
}

.sidebar-brand span {
  color: #9eacc2;
  font-size: 11px;
  letter-spacing: .12em;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  color: #b7c2d4;
  background: transparent;
  padding: 11px 13px;
  border-radius: 11px;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255,255,255,.09);
  color: white;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}

.system-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #b7c2d4;
  font-size: 12px;
  padding: 9px;
}

.logout-button {
  margin-top: 7px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: white;
  border-radius: 10px;
  padding: 10px;
}


.main {
  min-width: 0;
  padding: 0 34px 50px;
}

.topbar {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.top-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.search-box {
  width: 300px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.search-box input {
  border: 0;
  box-shadow: none;
  padding-left: 2px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.profile strong,
.profile span {
  display: block;
}

.profile strong {
  font-size: 13px;
}

.profile span {
  color: var(--muted);
  font-size: 11px;
}

.view {
  padding-top: 30px;
}

.hero-row,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.hero-row h3,
.panel h3 {
  margin: 0 0 5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 23px 0;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 5px 20px rgba(20,35,60,.04);
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  font-size: 31px;
  margin: 10px 0 8px;
}

.kpi-foot {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 5px 20px rgba(20,35,60,.04);
}

.project-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 13px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 4px;
}

.project-row:first-child {
  border-top: 0;
}

.project-name strong,
.project-name span {
  display: block;
}

.project-name strong {
  font-size: 13px;
}

.project-name span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.badge {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.badge.public {
  background: rgba(24,168,116,.09);
  color: var(--green);
}

.badge.private {
  background: rgba(22,36,61,.07);
  color: var(--navy);
}

.mode {
  font-size: 11px;
  color: var(--muted);
  min-width: 85px;
  text-align: right;
}

.security-list {
  margin-top: 17px;
}

.security-list > div,
.settings-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}

.security-list > div:first-child {
  border-top: 0;
}

.good {
  color: var(--green);
}

.project-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

.project-table th,
.project-table td {
  text-align: left;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.project-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.placeholder-card {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 60px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.placeholder-card p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
}

.placeholder-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.settings-grid {
  margin-top: 17px;
}


@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 210px 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 210px;
  }
}


@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-footer {
    margin-top: 18px;
  }

  .main {
    padding: 0 18px 35px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    width: 100%;
  }

  .profile {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 1fr auto;
  }

  .mode {
    grid-column: 1 / -1;
    text-align: left;
  }
}


/* ==========================================================
   Plantera SEO ONE – Live Intelligence 6C-2B
   ========================================================== */

:root {
  --amber: #b7791f;
  --amber-soft: rgba(183,121,31,.10);
  --green-soft: rgba(24,168,116,.10);
  --red-soft: rgba(216,74,95,.09);
  --blue-soft: rgba(44,107,237,.08);
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-card {
  min-width: 0;
}

.kpi-card.has-attention {
  border-color: rgba(183,121,31,.28);
  background:
    linear-gradient(
      180deg,
      rgba(183,121,31,.035),
      white
    );
}

.kpi-card.has-attention strong {
  color: var(--amber);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.refresh-state {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  background: white;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.secondary-button:hover {
  border-color: #cbd5e1;
  background: var(--surface-soft);
}

.secondary-button:disabled {
  cursor: wait;
  opacity: .55;
}

.project-row.live-row {
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(160px, .55fr)
    auto
    minmax(130px, .42fr);
  gap: 18px;
  padding: 16px 4px;
}

.project-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-subtags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.project-health {
  display: grid;
  gap: 4px;
}

.project-health > span,
.project-health > small {
  color: var(--muted);
  font-size: 10px;
}

.live-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-state strong {
  font-size: 12px;
}

.state-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: none;
}

.state-dot.online {
  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(24,168,116,.11);
}

.state-dot.warning {
  background: var(--amber);
  box-shadow:
    0 0 0 4px rgba(183,121,31,.10);
}

.state-dot.error {
  background: var(--red);
  box-shadow:
    0 0 0 4px rgba(216,74,95,.09);
}

.state-dot.neutral {
  background: #94a3b8;
  box-shadow:
    0 0 0 4px rgba(148,163,184,.10);
}

.mode-live {
  min-width: 120px;
  line-height: 1.4;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.live-table {
  min-width: 1030px;
}

.table-sub {
  display: block;
  max-width: 260px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.state-badge.online {
  color: var(--green);
}

.state-badge.warning {
  color: var(--amber);
}

.state-badge.error {
  color: var(--red);
}

.state-badge.neutral {
  color: var(--muted);
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.seo-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.seo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.seo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 17px 18px 13px;
}

.seo-card-head strong,
.seo-card-head span {
  display: block;
}

.seo-card-head strong {
  font-size: 13px;
}

.seo-card-head > div > span {
  max-width: 310px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.seo-mode-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.finding-list {
  padding: 5px 18px 10px;
}

.finding-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.finding-row:first-child {
  border-top: 0;
}

.finding-row > span {
  color: var(--muted);
  flex: 0 0 110px;
}

.finding-row strong {
  max-width: 68%;
  text-align: right;
  overflow-wrap: anywhere;
}

.finding-ok {
  color: var(--green);
}

.finding-hint {
  color: var(--amber);
}

.finding-info {
  color: var(--text);
}

.empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}


@media (max-width: 1350px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-row.live-row {
    grid-template-columns:
      minmax(230px, 1fr)
      minmax(150px, .65fr)
      auto;
  }

  .mode-live {
    grid-column: 2 / -1;
    text-align: left;
  }
}


@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-row.live-row {
    grid-template-columns: 1fr auto;
  }

  .project-health {
    grid-column: 1 / -1;
  }

  .mode-live {
    grid-column: 1 / -1;
  }

  .panel-head {
    align-items: flex-start;
  }

  .panel-actions {
    align-items: flex-end;
    flex-direction: column;
  }
}


@media (max-width: 760px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .panel-actions {
    width: 100%;
    align-items: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-card-head {
    flex-direction: column;
  }

  .finding-row {
    flex-direction: column;
    gap: 5px;
  }

  .finding-row > span {
    flex: auto;
  }

  .finding-row strong {
    max-width: 100%;
    text-align: left;
  }
}


/* ==========================================================
   Plantera SEO ONE – Live Intelligence 6C-2B
   ========================================================== */

:root {
  --amber: #b7791f;
  --amber-soft: rgba(183,121,31,.10);
  --green-soft: rgba(24,168,116,.10);
  --red-soft: rgba(216,74,95,.09);
  --blue-soft: rgba(44,107,237,.08);
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-card {
  min-width: 0;
}

.kpi-card.has-attention {
  border-color: rgba(183,121,31,.28);
  background:
    linear-gradient(
      180deg,
      rgba(183,121,31,.035),
      white
    );
}

.kpi-card.has-attention strong {
  color: var(--amber);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.refresh-state {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  background: white;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.secondary-button:hover {
  border-color: #cbd5e1;
  background: var(--surface-soft);
}

.secondary-button:disabled {
  cursor: wait;
  opacity: .55;
}

.project-row.live-row {
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(160px, .55fr)
    auto
    minmax(130px, .42fr);
  gap: 18px;
  padding: 16px 4px;
}

.project-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-subtags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.project-health {
  display: grid;
  gap: 4px;
}

.project-health > span,
.project-health > small {
  color: var(--muted);
  font-size: 10px;
}

.live-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-state strong {
  font-size: 12px;
}

.state-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: none;
}

.state-dot.online {
  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(24,168,116,.11);
}

.state-dot.warning {
  background: var(--amber);
  box-shadow:
    0 0 0 4px rgba(183,121,31,.10);
}

.state-dot.error {
  background: var(--red);
  box-shadow:
    0 0 0 4px rgba(216,74,95,.09);
}

.state-dot.neutral {
  background: #94a3b8;
  box-shadow:
    0 0 0 4px rgba(148,163,184,.10);
}

.mode-live {
  min-width: 120px;
  line-height: 1.4;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.live-table {
  min-width: 1030px;
}

.table-sub {
  display: block;
  max-width: 260px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.state-badge.online {
  color: var(--green);
}

.state-badge.warning {
  color: var(--amber);
}

.state-badge.error {
  color: var(--red);
}

.state-badge.neutral {
  color: var(--muted);
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.seo-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.seo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.seo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 17px 18px 13px;
}

.seo-card-head strong,
.seo-card-head span {
  display: block;
}

.seo-card-head strong {
  font-size: 13px;
}

.seo-card-head > div > span {
  max-width: 310px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.seo-mode-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.finding-list {
  padding: 5px 18px 10px;
}

.finding-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.finding-row:first-child {
  border-top: 0;
}

.finding-row > span {
  color: var(--muted);
  flex: 0 0 110px;
}

.finding-row strong {
  max-width: 68%;
  text-align: right;
  overflow-wrap: anywhere;
}

.finding-ok {
  color: var(--green);
}

.finding-hint {
  color: var(--amber);
}

.finding-info {
  color: var(--text);
}

.empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}


@media (max-width: 1350px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-row.live-row {
    grid-template-columns:
      minmax(230px, 1fr)
      minmax(150px, .65fr)
      auto;
  }

  .mode-live {
    grid-column: 2 / -1;
    text-align: left;
  }
}


@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-row.live-row {
    grid-template-columns: 1fr auto;
  }

  .project-health {
    grid-column: 1 / -1;
  }

  .mode-live {
    grid-column: 1 / -1;
  }

  .panel-head {
    align-items: flex-start;
  }

  .panel-actions {
    align-items: flex-end;
    flex-direction: column;
  }
}


@media (max-width: 760px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .panel-actions {
    width: 100%;
    align-items: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-card-head {
    flex-direction: column;
  }

  .finding-row {
    flex-direction: column;
    gap: 5px;
  }

  .finding-row > span {
    flex: auto;
  }

  .finding-row strong {
    max-width: 100%;
    text-align: left;
  }
}


/* =========================================
   Automation Dashboard 6F-2
   ========================================= */

.automation-panel {
  margin-bottom: 18px;
}

.automation-kpis {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.automation-card {
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  padding: 17px;
  background: #ffffff;
  min-width: 0;
}

.automation-card span {
  display: block;
  color: #687386;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 7px;
}

.automation-card strong {
  display: block;
  color: #14213d;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 5px;
}

.automation-card small {
  display: block;
  color: #8993a4;
  font-size: 12px;
}

.automation-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.automation-state.is-ok {
  background: #eaf8ef;
  color: #16753a;
}

.automation-state.is-warning {
  background: #fff5df;
  color: #956400;
}

.automation-state.is-loading {
  background: #eef2f7;
  color: #607086;
}

.automation-protection {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #f8fafc;
}

.automation-protection-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 21px;
}

.automation-protection strong {
  display: block;
  color: #14213d;
  margin-bottom: 4px;
}

.automation-protection p {
  margin: 0;
  color: #687386;
  font-size: 13px;
  line-height: 1.45;
}

.automation-history-panel {
  overflow: hidden;
}

.automation-table {
  width: 100%;
  border-collapse: collapse;
}

.automation-table th,
.automation-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  white-space: nowrap;
}

.automation-table th {
  color: #687386;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.automation-table td {
  color: #263348;
  font-size: 13px;
}

.automation-run-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.automation-run-status.is-ok {
  background: #eaf8ef;
  color: #16753a;
}

.automation-run-status.is-running {
  background: #eaf2ff;
  color: #255ea8;
}

.automation-run-status.is-warning {
  background: #fff5df;
  color: #956400;
}

.automation-source-note {
  margin: 14px 0 0;
  color: #8993a4;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .automation-kpis {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .automation-kpis {
    grid-template-columns: 1fr;
  }

  .automation-protection {
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .automation-protection
  .automation-state {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


/* Plantera SEO ONE – Deep Crawl Intelligence 6G-7C */

.seo-deep-summary {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.seo-summary-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.seo-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.seo-summary-card strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  line-height: 1;
}

.seo-tone-critical strong {
  color: #b42318;
}

.seo-tone-high strong {
  color: #c2410c;
}

.seo-tone-medium strong {
  color: var(--amber);
}

.seo-tone-info strong {
  color: var(--text);
}

.seo-deep-card {
  display: flex;
  flex-direction: column;
}

.seo-crawl-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.seo-crawl-state.ok {
  background: rgba(18, 183, 106, .10);
  color: var(--green);
}

.seo-crawl-state.warn {
  background: rgba(245, 158, 11, .11);
  color: var(--amber);
}

.seo-severity-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 13px 17px;
}

.seo-severity {
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: center;
}

.seo-severity span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.seo-severity strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.seo-critical strong {
  color: #b42318;
}

.seo-high strong {
  color: #c2410c;
}

.seo-medium strong {
  color: var(--amber);
}

.seo-info strong {
  color: var(--text);
}

.seo-index-guard {
  margin: 0 17px 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.seo-index-guard strong,
.seo-index-guard span {
  display: block;
}

.seo-index-guard strong {
  font-size: 10px;
}

.seo-index-guard span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.seo-index-guard.needs-review {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .07);
}

.seo-index-guard.needs-review strong {
  color: var(--amber);
}

.seo-deep-findings {
  border-top: 1px solid var(--line);
}

.seo-deep-finding {
  padding: 11px 17px;
  border-top: 1px solid var(--line);
}

.seo-deep-finding:first-child {
  border-top: 0;
}

.seo-deep-finding-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.seo-deep-finding-main > div {
  min-width: 0;
}

.seo-deep-finding-main strong {
  display: block;
  font-size: 10px;
  line-height: 1.35;
}

.seo-deep-finding-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.seo-level-dot {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}

.level-critical {
  background: #b42318;
}

.level-high {
  background: #c2410c;
}

.level-medium {
  background: var(--amber);
}

.level-info {
  background: var(--text);
}

.seo-finding-url,
.seo-finding-detail {
  margin: 6px 0 0 15px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.seo-finding-detail {
  color: var(--text);
  opacity: .78;
}

.seo-no-findings {
  padding: 18px;
  color: var(--green);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 1350px) {
  .seo-deep-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .seo-deep-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .seo-severity-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* Plantera SEO ONE – SEO UI Polish 6G-7D */

@media (min-width: 1201px) {
  #seoOverview.seo-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

.seo-card-head strong {
  font-size: 14px;
}

.seo-card-head > div > span {
  font-size: 11px;
}

.seo-mode-line {
  font-size: 11px;
}

.seo-deep-finding {
  padding: 13px 17px;
}

.seo-deep-finding-main strong {
  font-size: 12px;
  line-height: 1.4;
}

.seo-deep-finding-main small {
  margin-top: 4px;
  font-size: 10px;
}

.seo-finding-url,
.seo-finding-detail {
  font-size: 10px;
  line-height: 1.5;
}

.seo-index-guard strong {
  font-size: 11px;
}

.seo-index-guard span {
  font-size: 10px;
}

.seo-severity span {
  font-size: 9px;
}

.seo-severity strong {
  font-size: 18px;
}

@media (max-width: 1200px) {
  #seoOverview.seo-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #seoOverview.seo-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }
}



/* Plantera SEO ONE – Visitor Intelligence 7A-2E */

.visitor-panel {
  min-height: 560px;
}

.visitor-panel-head {
  align-items: center;
}

.visitor-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visitor-select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.visitor-state {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.visitor-state.is-loading {
  background: var(--surface-soft);
  color: var(--muted);
}

.visitor-state.is-ok {
  background: rgba(18, 183, 106, .10);
  color: var(--green);
}

.visitor-state.is-warning {
  background: rgba(245, 158, 11, .10);
  color: var(--amber);
}

.visitor-summary {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.visitor-summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.visitor-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.visitor-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1;
}

.visitor-summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.visitor-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(18, 183, 106, .22);
  border-radius: 11px;
  background: rgba(18, 183, 106, .06);
}

.visitor-privacy strong {
  color: var(--green);
  font-size: 10px;
}

.visitor-privacy span {
  color: var(--muted);
  font-size: 10px;
}

.visitor-section-head {
  margin-top: 20px;
}

.visitor-section-head h4 {
  margin: 0;
  font-size: 13px;
}

.visitor-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.visitor-project-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.visitor-project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.visitor-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.visitor-project-head strong {
  display: block;
  font-size: 13px;
}

.visitor-project-head div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.visitor-project-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.visitor-project-state.enabled {
  background: rgba(18, 183, 106, .10);
  color: var(--green);
}

.visitor-project-state.disabled {
  background: var(--surface-soft);
  color: var(--muted);
}

.visitor-project-metrics {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 16px;
}

.visitor-project-metrics div {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: center;
}

.visitor-project-metrics span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.visitor-project-metrics strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.visitor-project-meta {
  padding: 0 16px 13px;
  color: var(--muted);
  font-size: 9px;
}

.visitor-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.visitor-mini-list {
  min-height: 120px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.visitor-mini-list:nth-child(2n) {
  border-right: 0;
}

.visitor-mini-list h5 {
  margin: 0 0 8px;
  font-size: 10px;
}

.visitor-list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.visitor-list-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.visitor-list-row strong {
  flex: 0 0 auto;
  font-size: 9px;
}

.visitor-list-empty,
.visitor-empty {
  color: var(--muted);
  font-size: 10px;
}

.visitor-lower-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.visitor-insight-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.visitor-insight-panel .visitor-section-head {
  margin-top: 0;
}

.visitor-empty {
  margin-top: 14px;
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  text-align: center;
}

.visitor-privacy-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.visitor-privacy-details div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.visitor-privacy-details span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.visitor-privacy-details strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

@media (max-width: 1350px) {
  .visitor-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .visitor-project-grid,
  .visitor-lower-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .visitor-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .visitor-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .visitor-detail-grid,
  .visitor-privacy-details {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .visitor-mini-list {
    border-right: 0;
  }
}


/* =========================================
   Visitor Geo Dashboard 7A-3D
   ========================================= */

.visitor-lower-grid {
  grid-template-columns:
    minmax(0, 1.7fr)
    minmax(280px, .8fr);
}

.visitor-geo-panel {
  min-width: 0;
}

.visitor-geo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.visitor-geo-state {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.visitor-geo-state.is-loading {
  background: var(--surface-soft);
  color: var(--muted);
}

.visitor-geo-state.is-ok {
  background: rgba(18, 183, 106, .10);
  color: var(--green);
}

.visitor-geo-state.is-warning {
  background: rgba(245, 158, 11, .10);
  color: var(--amber);
}

.visitor-geo-content {
  margin-top: 14px;
}

.visitor-geo-main {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(220px, .65fr);
  gap: 14px;
}

.visitor-map-column {
  min-width: 0;
}

.visitor-world-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.visitor-world-map svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}

.visitor-map-ocean {
  fill: var(--surface-soft);
  stroke: var(--line);
}

.visitor-map-grid path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  opacity: .55;
}

.visitor-map-land path {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 2;
  stroke-linejoin: round;
}

.visitor-map-pulse {
  fill: rgba(18, 183, 106, .13);
  stroke: rgba(18, 183, 106, .20);
  stroke-width: 1;
}

.visitor-map-dot {
  fill: var(--green);
  stroke: var(--surface);
  stroke-width: 2;
  cursor: help;
}

.visitor-map-marker:hover .visitor-map-pulse {
  fill: rgba(18, 183, 106, .20);
}

.visitor-map-marker:hover .visitor-map-dot {
  stroke-width: 3;
}

.visitor-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 9px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.visitor-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visitor-map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.visitor-geo-ranking,
.visitor-geo-cities {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.visitor-geo-cities {
  margin-top: 14px;
}

.visitor-geo-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
}

.visitor-geo-list-head strong {
  font-size: 10px;
}

.visitor-geo-list-head span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.visitor-geo-row {
  display: grid;
  grid-template-columns:
    22px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
}

.visitor-geo-row:first-child {
  border-top: 0;
}

.visitor-geo-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.visitor-geo-label {
  min-width: 0;
}

.visitor-geo-label strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-geo-label small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-geo-value {
  font-size: 10px;
}

.visitor-city-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.visitor-city-row:nth-child(2n) {
  border-left: 1px solid var(--line);
}

.visitor-geo-map-empty {
  margin-top: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visitor-geo-disclaimer {
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.visitor-geo-disclaimer strong {
  color: var(--text);
}

.visitor-geo-attribution {
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.visitor-geo-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}


@media (max-width: 1200px) {
  .visitor-geo-main {
    grid-template-columns:
      minmax(0, 1fr);
  }
}


@media (max-width: 1000px) {
  .visitor-lower-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }
}


@media (max-width: 760px) {
  .visitor-geo-head {
    align-items: stretch;
    flex-direction: column;
  }

  .visitor-geo-state {
    align-self: flex-start;
  }

  .visitor-city-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .visitor-city-row:nth-child(2n) {
    border-left: 0;
  }

  .visitor-map-legend {
    flex-direction: column;
  }
}



/* ==========================================================
   PSEO_REPORTS_V1
   Performance Reports
   ========================================================== */

.report-panel {
  min-height: 640px;
}

.report-panel-head {
  align-items: center;
}

.report-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.report-summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 16px;
  min-width: 0;
}

.report-summary-card span,
.report-project-metrics span,
.report-seo-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.report-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  color: var(--text);
}

.report-summary-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.report-section {
  margin-top: 22px;
}

.report-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.report-section-head h4 {
  margin: 0;
  font-size: 16px;
}

.report-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.report-project-grid {
  display: grid;
  gap: 14px;
}

.report-project-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  overflow: hidden;
}

.report-project-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.report-project-head strong {
  display: block;
  font-size: 14px;
}

.report-project-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  word-break: break-all;
}

.report-project-badges {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-badge {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 10px !important;
  font-weight: 700;
}

.report-badge.is-ok {
  color: var(--green);
}

.report-badge.is-warn {
  color: var(--text);
}

.report-project-metrics {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.report-project-metrics > div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.report-project-metrics > div:last-child {
  border-right: 0;
}

.report-project-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.report-seo-strip {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.report-seo-strip > div {
  padding: 11px 16px;
}

.report-seo-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.report-project-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.report-project-details > div {
  padding: 14px 16px;
}

.report-project-details > div:first-child {
  border-right: 1px solid var(--line);
}

.report-project-details h5 {
  margin: 0 0 10px;
  font-size: 12px;
}

.report-bottom-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-bottom-grid .report-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.report-list {
  display: grid;
  gap: 3px;
}

.report-list-row {
  display: grid;
  grid-template-columns:
    24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-top: 1px solid var(--line);
}

.report-list-row:first-child {
  border-top: 0;
}

.report-list-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.report-list-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.report-list-row strong {
  font-size: 11px;
}

.report-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.report-source-note {
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}


@media (max-width: 1100px) {

  .report-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .report-seo-strip {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 760px) {

  .report-panel-head,
  .report-project-head {
    align-items: stretch;
    flex-direction: column;
  }

  .report-controls {
    width: 100%;
  }

  .report-summary-grid,
  .report-bottom-grid,
  .report-project-details {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .report-project-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .report-project-metrics > div {
    border-bottom: 1px solid var(--line);
  }

  .report-project-details > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-seo-strip {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================
   PSEO_SETTINGS_CONTROL_V1
   ========================================================== */

.settings-control {
  display: grid;
  gap: 16px;
}

.settings-main-panel,
.settings-section-panel {
  min-width: 0;
}

.settings-panel-head {
  align-items: center;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-overview-grid,
.settings-status-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.settings-live-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.settings-live-card > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.settings-live-card > strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 17px;
}

.settings-live-card > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.settings-live-card.is-ok {
  border-color:
    color-mix(
      in srgb,
      var(--green) 28%,
      var(--line)
    );
}

.settings-live-card.is-warn {
  border-color: var(--line);
}

.settings-audit-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.settings-audit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.settings-audit-row:first-child {
  border-top: 0;
}

.settings-audit-row strong {
  display: block;
  font-size: 12px;
}

.settings-audit-row > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.settings-audit-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.settings-audit-meta span {
  margin: 0 !important;
  white-space: nowrap;
}

.settings-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
}

.settings-control-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.settings-control-note strong {
  color: var(--text);
}


@media (max-width: 1100px) {
  .settings-overview-grid,
  .settings-status-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 760px) {
  .settings-panel-head,
  .settings-audit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-overview-grid,
  .settings-status-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .settings-audit-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }
}


/* ==========================================================
   PSEO_PROJECT_MANAGEMENT_V1
   ========================================================== */

.pseo-project-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.pseo-project-admin-toolbar h3 {
  margin: 0;
}

.pseo-project-admin-toolbar p {
  margin: 5px 0 0;
}


.pseo-primary-button,
.pseo-secondary-button,
.pseo-danger-button,
.pseo-icon-button {
  border-radius: 10px;
  min-height: 36px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pseo-primary-button {
  border: 1px solid #172b4d;
  background: #172b4d;
  color: #fff;
}

.pseo-secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.pseo-danger-button {
  border: 1px solid #ead0d0;
  background: #fff8f8;
  color: #9f3030;
}

.pseo-icon-button {
  width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
}

.pseo-primary-button:disabled,
.pseo-secondary-button:disabled,
.pseo-danger-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}


.pseo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pseo-modal.hidden {
  display: none;
}

.pseo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 48, .46);
  backdrop-filter: blur(3px);
}

.pseo-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 24px 70px
    rgba(15, 28, 48, .18);
}

.pseo-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pseo-modal-head h3 {
  margin: 0;
}

.pseo-modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}


.pseo-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.pseo-field > span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.pseo-field input,
.pseo-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.pseo-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pseo-project-safety-note {
  padding: 12px 13px;
  border: 1px solid #cce3dc;
  border-radius: 11px;
  background: #f5fbf8;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pseo-project-safety-note strong {
  color: var(--text);
}

.pseo-form-status,
.pseo-project-control-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.pseo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}


.pseo-project-controls {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.pseo-project-control-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.pseo-project-control-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.pseo-project-control-main strong {
  display: block;
  font-size: 13px;
}

.pseo-project-control-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.pseo-project-control-badges {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pseo-control-badge {
  display: inline-flex !important;
  width: auto;
  margin: 0 !important;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 700;
}

.pseo-control-badge.is-public {
  border-color: #cbe7db;
  background: #f3fbf7;
  color: #16805b !important;
}

.pseo-control-badge.is-private {
  background: #f4f5f7;
  color: #39465a !important;
}

.pseo-project-control-state {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pseo-project-control-state > div {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.pseo-project-control-state span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pseo-project-control-state strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.pseo-project-control-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}


/* PSEO_PROJECT_CONTROLS_V2B */

.pseo-project-control-actions button {
  flex:
    0 1 auto;
}

.pseo-project-control-card
.pseo-secondary-button:disabled {
  color: var(--muted);
  background: var(--surface-soft);
}

.pseo-project-control-card
button[title] {
  position: relative;
}


@media (max-width: 900px) {
  .pseo-project-control-state {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 650px) {
  .pseo-project-admin-toolbar,
  .pseo-project-control-main {
    flex-direction: column;
    align-items: stretch;
  }

  .pseo-form-grid,
  .pseo-project-control-state {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .pseo-project-control-badges {
    justify-content: flex-start;
  }

  .pseo-modal {
    padding: 12px;
  }
}


/* PSEO_NOTIFICATION_CENTER_CSS_V1 */

.pseo-notification-center {
  position: relative;
  display: flex;
  align-items: center;
}


.pseo-notification-bell {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e7ef;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}


.pseo-notification-bell:hover {
  border-color: #c9d3e1;
  box-shadow:
    0 5px 16px
    rgba(15, 23, 42, 0.08);
}


.pseo-notification-bell:active {
  transform: scale(0.97);
}


.pseo-notification-bell:focus-visible {
  outline: 3px solid
    rgba(37, 99, 235, 0.18);

  outline-offset: 2px;
}


.pseo-notification-bell-icon {
  font-size: 18px;
  line-height: 1;
}


.pseo-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}


.pseo-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(
    430px,
    calc(100vw - 32px)
  );
  max-height: min(
    620px,
    calc(100vh - 100px)
  );
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  box-shadow:
    0 18px 48px
    rgba(15, 23, 42, 0.16);
  z-index: 1000;
}


.pseo-notification-head {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}


.pseo-notification-head > div {
  min-width: 0;
}


.pseo-notification-head strong {
  display: block;
  font-size: 15px;
  color: #172033;
}


.pseo-notification-status {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #778397;
}


.pseo-notification-read-all {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #315b9a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}


.pseo-notification-read-all:hover {
  background: #f2f6fb;
}


.pseo-notification-read-all:disabled {
  color: #aab3c0;
  cursor: default;
  background: transparent;
}


.pseo-notification-list {
  max-height: 500px;
  overflow-y: auto;
}


.pseo-notification-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid #f0f3f7;
  background: #ffffff;
}


.pseo-notification-item:last-child {
  border-bottom: 0;
}


.pseo-notification-item.is-unread {
  background: #f8fbff;
}


.pseo-notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #eef3f8;
}


.pseo-notification-item.is-warning
.pseo-notification-icon {
  background: #fff5df;
}


.pseo-notification-item.is-critical
.pseo-notification-icon {
  background: #feecec;
}


.pseo-notification-item.is-recovery
.pseo-notification-icon {
  background: #eaf8ef;
}


.pseo-notification-body {
  min-width: 0;
}


.pseo-notification-title {
  color: #172033;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.4;
}


.pseo-notification-message {
  margin-top: 5px;
  color: #5f6b7d;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}


.pseo-notification-meta {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: #8a95a5;
  font-size: 11px;
}


.pseo-notification-read {
  border: 0;
  background: transparent;
  color: #315b9a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 6px;
}


.pseo-notification-read:hover {
  background: #edf3fa;
}


.pseo-notification-empty {
  padding: 28px 18px;
  text-align: center;
  color: #7a8698;
  font-size: 13px;
}


@media (
  max-width: 760px
) {

  .pseo-notification-panel {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height:
      calc(100vh - 92px);
  }


  .pseo-notification-head {
    align-items: flex-start;
  }

}
