#growth-portfolio-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #4f46e5);
  box-shadow: 0 14px 36px rgba(79, 70, 229, .34);
  font: 700 14px/1 system-ui, sans-serif;
  cursor: pointer;
}
#growth-portfolio-launch:hover { transform: translateY(-2px); }
#growth-portfolio-launch svg { width: 19px; height: 19px; }

.gp-shell {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: auto;
  color: #172033;
  background: #f4f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.gp-shell[hidden] { display: none; }
.gp-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid #e5e9f2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.gp-brand { display: flex; align-items: center; gap: 12px; }
.gp-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #4f46e5);
  font-weight: 900;
}
.gp-brand strong { display: block; font-size: 16px; }
.gp-brand span { display: block; margin-top: 2px; color: #778198; font-size: 12px; }
.gp-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.gp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid #dfe4ee;
  border-radius: 11px;
  padding: 0 14px;
  color: #354056;
  background: #fff;
  font: 700 13px/1 system-ui, sans-serif;
  cursor: pointer;
}
.gp-button:hover { border-color: #b8c1d5; background: #fafbfe; }
.gp-button:disabled { opacity: .5; cursor: not-allowed; }
.gp-button-primary { border-color: #5549eb; color: #fff; background: #5b50ed; }
.gp-button-primary:hover { border-color: #473bd9; background: #4f44df; }
.gp-button-danger { color: #c83e54; }
.gp-container { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 60px; }
.gp-titlebar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 22px; }
.gp-titlebar h1 { margin: 0; color: #172033; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
.gp-titlebar p { margin: 7px 0 0; color: #778198; font-size: 14px; }
.gp-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.gp-stat { min-height: 118px; border: 1px solid #e4e8f1; border-radius: 17px; padding: 20px; background: #fff; box-shadow: 0 8px 30px rgba(32,43,71,.04); }
.gp-stat-label { color: #7c8599; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.gp-stat-value { margin-top: 10px; color: #182137; font-size: 32px; font-weight: 900; letter-spacing: -.04em; }
.gp-stat-note { margin-top: 5px; color: #8b94a8; font-size: 12px; }
.gp-stat-danger .gp-stat-value { color: #d13e57; }
.gp-stat-warning .gp-stat-value { color: #de8a1a; }
.gp-stat-success .gp-stat-value { color: #17815b; }
.gp-panel { border: 1px solid #e2e7f0; border-radius: 18px; background: #fff; box-shadow: 0 10px 34px rgba(32,43,71,.04); }
.gp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px; border-bottom: 1px solid #edf0f5; }
.gp-field, .gp-select {
  min-height: 40px;
  border: 1px solid #dce2ec;
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
  color: #2f3a50;
  background: #fff;
  font: 500 13px system-ui, sans-serif;
}
.gp-field:focus, .gp-select:focus { border-color: #746af2; box-shadow: 0 0 0 3px rgba(91,80,237,.1); }
.gp-search { min-width: 230px; flex: 1; }
.gp-selected { margin-left: auto; color: #7b8498; font-size: 12px; font-weight: 700; }
.gp-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.gp-table-wrap { overflow-x: auto; }
.gp-table { width: 100%; border-collapse: collapse; }
.gp-table th { padding: 12px 14px; color: #8a93a7; background: #fafbfc; font-size: 11px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.gp-table td { padding: 14px; border-top: 1px solid #edf0f5; vertical-align: middle; font-size: 13px; }
.gp-table tbody tr:hover { background: #fbfcff; }
.gp-site { min-width: 210px; }
.gp-site strong { display: block; color: #273147; font-size: 14px; }
.gp-site a { display: block; overflow: hidden; max-width: 270px; margin-top: 3px; color: #798398; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.gp-score { display: inline-grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: #147a55; background: #e8f8f1; font-weight: 900; }
.gp-score-warning { color: #aa6911; background: #fff2da; }
.gp-score-critical { color: #ba3047; background: #ffe8ed; }
.gp-score-empty { color: #7f8798; background: #f0f2f6; }
.gp-chip { display: inline-flex; align-items: center; min-height: 24px; margin: 2px 4px 2px 0; border-radius: 999px; padding: 0 9px; color: #5c55b9; background: #eeedff; font-size: 11px; font-weight: 700; }
.gp-group { color: #435068; font-weight: 700; }
.gp-muted { color: #8b94a6; font-size: 12px; }
.gp-issue-count { color: #c14258; font-weight: 800; }
.gp-trend { display: inline-block; margin-left: 6px; border-radius: 6px; padding: 2px 5px; font-size: 10px; font-weight: 900; vertical-align: top; }
.gp-trend-up { color: #16815b; background: #e5f8ef; }
.gp-trend-down { color: #c03850; background: #ffe7ec; }
.gp-monitoring { display: inline-block; color: #9299a9; font-size: 11px; font-weight: 800; white-space: nowrap; }
.gp-monitoring-on { color: #16815b; }
.gp-status-error { margin-top: 4px; color: #c43b52; font-size: 10px; font-weight: 800; }
.gp-subdomain-inline { margin-top: 4px; font-size: 9px; font-weight: 800; }
.gp-row-actions { display: flex; gap: 7px; }
.gp-icon-button { border: 1px solid #e1e5ee; border-radius: 9px; padding: 7px 9px; color: #5d667a; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.gp-icon-button:hover { border-color: #bfc6d5; }
.gp-side { position: sticky; top: 94px; overflow: hidden; }
.gp-side-head { padding: 18px 18px 13px; border-bottom: 1px solid #edf0f5; }
.gp-side-head-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gp-side-buttons { display: flex; align-items: flex-end; gap: 8px; flex-direction: column; }
.gp-side-head h2 { margin: 0; font-size: 16px; }
.gp-side-head p { margin: 5px 0 0; color: #8a93a6; font-size: 12px; }
.gp-link-button { border: 0; padding: 2px 0; color: #5b50ed; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.gp-alerts { max-height: 310px; overflow: auto; }
.gp-alert { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f0f2f6; background: #fff; }
.gp-alert-read { opacity: .55; }
.gp-alert-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #efa52f; }
.gp-alert-critical { background: #dc3d58; box-shadow: 0 0 0 4px #ffe8ed; }
.gp-alert-warning { background: #df8e1e; box-shadow: 0 0 0 4px #fff1d8; }
.gp-alert strong { display: block; color: #333c50; font-size: 12px; line-height: 1.35; }
.gp-alert p { margin: 4px 0; color: #7f899d; font-size: 11px; line-height: 1.4; }
.gp-alert span { color: #9aa2b2; font-size: 10px; }
.gp-alert button { align-self: start; border: 1px solid #dfe4ed; border-radius: 8px; width: 26px; height: 26px; color: #6258d9; background: #fff; cursor: pointer; }
.gp-issues { max-height: 640px; overflow: auto; }
.gp-issue { padding: 14px 18px; border-bottom: 1px solid #f0f2f6; }
.gp-issue:last-child { border-bottom: 0; }
.gp-issue-top { display: flex; justify-content: space-between; gap: 12px; }
.gp-issue strong { color: #30394d; font-size: 13px; }
.gp-issue-count-badge { flex: 0 0 auto; border-radius: 999px; padding: 3px 8px; color: #b8364d; background: #ffe9ee; font-size: 11px; font-weight: 900; }
.gp-issue-sites { margin-top: 6px; color: #8a93a6; font-size: 11px; line-height: 1.5; }
.gp-empty { padding: 46px 20px; color: #8a93a6; text-align: center; }
.gp-empty-compact { padding: 24px 16px; font-size: 12px; }
.gp-modal-backdrop { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; background: rgba(19,28,48,.58); backdrop-filter: blur(5px); }
.gp-modal-backdrop[hidden] { display: none; }
.gp-modal { width: min(560px, 100%); border-radius: 20px; padding: 24px; background: #fff; box-shadow: 0 30px 80px rgba(12,18,34,.28); }
.gp-modal h2 { margin: 0 0 5px; font-size: 21px; }
.gp-modal > p { margin: 0 0 20px; color: #7c8597; font-size: 13px; }
.gp-form { display: grid; gap: 13px; }
.gp-label { display: grid; gap: 6px; color: #566176; font-size: 12px; font-weight: 800; }
.gp-label[hidden] { display: none; }
.gp-label .gp-field { width: 100%; box-sizing: border-box; }
.gp-switch-row { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #e1e5ee; border-radius: 12px; padding: 12px; color: #39445a; cursor: pointer; }
.gp-switch-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: #5b50ed; }
.gp-switch-row span { display: grid; gap: 3px; }
.gp-switch-row b { font-size: 13px; }
.gp-switch-row small { color: #858ea1; font-size: 11px; line-height: 1.35; }
.gp-textarea { min-height: 92px; padding-top: 10px; resize: vertical; }
.gp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.gp-toast { position: fixed; right: 24px; top: 88px; z-index: 230; max-width: 420px; border-radius: 13px; padding: 13px 16px; color: #fff; background: #263248; box-shadow: 0 15px 45px rgba(20,29,48,.24); font-size: 13px; font-weight: 700; }
.gp-toast[hidden] { display: none; }
.gp-toast-error { background: #c93e55; }
.gp-progress { height: 3px; overflow: hidden; background: #e8eafd; }
.gp-progress::after { content: ""; display: block; width: 35%; height: 100%; background: #5b50ed; animation: gp-progress 1s infinite ease-in-out; }
.gp-tasks-panel { margin-top: 20px; overflow: hidden; }
.gp-tasks-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid #edf0f5; }
.gp-tasks-heading h2 { margin: 0; font-size: 18px; }
.gp-tasks-heading p { margin: 5px 0 0; color: #8992a5; font-size: 12px; }
.gp-task-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #e8ebf2; }
.gp-task-column { min-width: 0; background: #f8f9fc; }
.gp-task-column > header { display: flex; justify-content: space-between; padding: 14px 16px; color: #4a556b; background: #fff; }
.gp-task-column > header strong { font-size: 13px; }
.gp-task-column > header span { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 8px; color: #655bd7; background: #eeedff; font-size: 11px; font-weight: 900; }
.gp-task-list { display: grid; gap: 10px; max-height: 620px; overflow: auto; padding: 12px; }
.gp-task-card { position: relative; overflow: hidden; border: 1px solid #e2e6ee; border-radius: 13px; padding: 13px; background: #fff; box-shadow: 0 4px 14px rgba(27,37,59,.04); }
.gp-task-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #8f96a7; }
.gp-priority-high::before { background: #da3d57; }
.gp-priority-medium::before { background: #e39a2b; }
.gp-priority-low::before { background: #599bd4; }
.gp-task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gp-task-meta span { overflow: hidden; color: #6d778c; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.gp-task-meta b { flex: 0 0 auto; border-radius: 999px; padding: 3px 7px; color: #6c6270; background: #f1f2f5; font-size: 9px; text-transform: uppercase; }
.gp-task-card > strong { display: block; color: #30394d; font-size: 13px; line-height: 1.4; }
.gp-task-card > p { margin: 6px 0; color: #7f889a; font-size: 11px; line-height: 1.45; }
.gp-task-card > time { color: #8e96a6; font-size: 10px; font-weight: 700; }
.gp-task-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gp-task-actions button { border: 1px solid #dde2eb; border-radius: 8px; padding: 6px 8px; color: #575f72; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.gp-task-actions button:hover { border-color: #aeb7c9; }
.gp-task-actions .gp-task-delete { margin-left: auto; color: #c43d54; }
.gp-report-backdrop { align-items: start; overflow: auto; }
.gp-report-modal { width: min(1120px, 100%); margin: 24px auto; }
.gp-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.gp-report-heading h2 { margin: 0; }
.gp-report-heading p { margin: 5px 0 0; color: #7f899c; font-size: 12px; }
.gp-report-loading { padding: 60px 20px; color: #7f899c; text-align: center; }
.gp-report-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.gp-report-stats article { border: 1px solid #e4e8f0; border-radius: 13px; padding: 14px; background: #fafbfe; }
.gp-report-stats span { display: block; color: #838da1; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.gp-report-stats strong { display: block; margin-top: 7px; color: #263148; font-size: 24px; }
.gp-report-stats small { color: #8992a4; font-size: 11px; }
.gp-ok { color: #17815b !important; }
.gp-bad { color: #c73c54 !important; }
.gp-report-section { overflow: hidden; border: 1px solid #e4e8f0; border-radius: 14px; background: #fff; }
.gp-report-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #edf0f5; }
.gp-report-section-head h3 { margin: 0; color: #303a50; font-size: 14px; }
.gp-report-section-head p { margin: 4px 0 0; color: #9098a9; font-size: 10px; }
.gp-section-summary { align-self: center; color: #687287; font-size: 10px; font-weight: 800; text-align: right; }
.gp-subdomain-head { display: flex; align-items: center; gap: 12px; }
.gp-chart { min-height: 220px; padding: 10px 14px; }
.gp-chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.gp-chart-grid { stroke: #e9ecf3; stroke-width: 1; }
.gp-chart-label { fill: #9aa2b2; font: 10px system-ui, sans-serif; }
.gp-chart-area { fill: rgba(91,80,237,.1); }
.gp-chart-line { fill: none; stroke: #5b50ed; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.gp-chart-point { fill: #fff; stroke: #5b50ed; stroke-width: 3; }
.gp-recommendations-section { margin-top: 14px; }
.gp-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-recommendation { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px; border-right: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.gp-recommendation > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; color: #5b50ed; background: #eeedff; font-size: 11px; font-weight: 900; }
.gp-recommendation-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.gp-recommendation-meta b { color: #6258d9; font-size: 9px; text-transform: uppercase; }
.gp-recommendation-meta em { border-radius: 999px; padding: 2px 6px; color: #827448; background: #fff4d9; font-size: 8px; font-style: normal; font-weight: 800; }
.gp-recommendation strong { color: #343e54; font-size: 12px; }
.gp-recommendation p { margin: 5px 0; color: #858ea0; font-size: 10px; }
.gp-recommendation small { display: block; color: #505b71; font-size: 10px; line-height: 1.45; }
.gp-report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.gp-diagnostic-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #f0f2f6; }
.gp-diagnostic-row:last-child { border-bottom: 0; }
.gp-diagnostic-row span { color: #858ea0; font-size: 11px; }
.gp-diagnostic-row strong { overflow-wrap: anywhere; color: #384258; font-size: 11px; font-weight: 700; }
.gp-report-history { max-height: 420px; overflow: auto; }
.gp-history-item { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f0f2f6; }
.gp-history-item > div:first-child { display: grid; align-content: start; gap: 3px; }
.gp-history-item strong { color: #3a4358; font-size: 13px; }
.gp-history-item span { color: #9199a9; font-size: 9px; }
.gp-history-issue { display: inline-block; margin: 0 4px 4px 0; border-radius: 6px; padding: 3px 6px; color: #a84052 !important; background: #fff0f3; font-size: 9px !important; font-weight: 700; }
.gp-history-good { color: #17815b !important; font-size: 10px !important; font-weight: 800; }
.gp-pages-section { margin-top: 14px; }
.gp-subdomains-section { margin-top: 14px; }
.gp-subdomain-filterbar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px auto; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eef1f5; background: #fafbfc; }
.gp-subdomain-filterbar .gp-field { min-height: 36px; padding: 8px 10px; }
.gp-subdomain-filterbar span { color: #7f899c; font-size: 10px; font-weight: 800; white-space: nowrap; }
.gp-subdomains-table { max-height: 560px; overflow: auto; }
.gp-subdomains-table thead { position: sticky; top: 0; z-index: 1; }
.gp-subdomain-status { display: inline-flex; border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 900; }
.gp-subdomain-ok { color: #167552; background: #e8f7f0; }
.gp-subdomain-bad { color: #b63850; background: #fff0f3; }
.gp-pages-table { overflow-x: auto; }
.gp-pages-table table { width: 100%; border-collapse: collapse; }
.gp-pages-table th { padding: 10px 12px; color: #8992a4; background: #fafbfc; font-size: 9px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.gp-pages-table td { max-width: 280px; padding: 10px 12px; border-top: 1px solid #eef1f5; color: #626c80; font-size: 10px; vertical-align: top; }
.gp-pages-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.gp-pages-table a { display: block; overflow: hidden; color: #5147d4; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.gp-pages-table small { display: block; margin-top: 4px; color: #c13c53; font-size: 9px; }
@keyframes gp-progress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@media (max-width: 1050px) { .gp-summary { grid-template-columns: repeat(2, 1fr); } .gp-grid { grid-template-columns: 1fr; } .gp-side { position: static; } .gp-task-board { grid-template-columns: 1fr; } .gp-task-list { max-height: 420px; } .gp-report-columns { grid-template-columns: 1fr; } .gp-report-stats { grid-template-columns: repeat(3, 1fr); } .gp-recommendations { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  #growth-portfolio-launch { right: 14px; bottom: 14px; }
  .gp-topbar { min-height: 64px; padding: 0 14px; }
  .gp-brand span { display: none; }
  .gp-container { width: min(100% - 24px, 1480px); padding-top: 20px; }
  .gp-titlebar { align-items: flex-start; flex-direction: column; }
  .gp-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .gp-stat { min-height: 96px; padding: 14px; }
  .gp-stat-value { font-size: 25px; }
  .gp-selected { width: 100%; margin-left: 0; }
  .gp-actions .gp-button span { display: none; }
  .gp-form-row { grid-template-columns: 1fr; }
  .gp-tasks-heading { align-items: flex-start; flex-direction: column; }
  .gp-report-stats { grid-template-columns: 1fr 1fr; }
  .gp-report-modal { margin: 0; border-radius: 14px; padding: 16px; }
  .gp-diagnostic-row { grid-template-columns: 90px 1fr; }
  .gp-subdomain-head { align-items: flex-end; flex-direction: column; gap: 5px; }
  .gp-subdomain-filterbar { grid-template-columns: 1fr; }
}
