.intelligence-accordion {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
}

.intelligence-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.intelligence-accordion summary::-webkit-details-marker {
  display: none;
}

.intelligence-accordion-body {
  padding: 0 14px 14px 14px;
}

.intelligence-accordion-body p,
.intelligence-accordion-body ul {
  margin-top: 0;
}

.health-accordion {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.health-accordion summary {
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.accordion-body {
  padding: 0 14px 14px;
}

.drawer-ai-output {
  background: var(--drawer-surface);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
}

.drawer-ai-output p {
  margin: 0 0 12px 0;
}

.drawer-ai-output ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.drawer-ai-output li {
  margin-bottom: 8px;
}

.drawer-ai-output code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.drawer-code-block {
  background: #0f172a;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 12px 0 16px 0;
  white-space: pre-wrap;
}

.ai-section-title {
  margin: 18px 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.ai-intro-callout {
  margin: 0 0 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
  line-height: 1.7;
}

.ai-detail-line {
  margin: 0 0 12px 0;
  line-height: 1.7;
}

.ai-mini-heading {
  margin: 16px 0 8px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ai-inline-label {
  display: inline-block;
  font-weight: 700;
}

.ai-followup-note {
  margin: 16px 0 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
  font-size: 13px;
  line-height: 1.6;
}

.ai-example-card {
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.ai-example-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.ai-code-block {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e5e7eb;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.ai-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-report {
  display: grid;
  gap: 16px;
}

.product-report-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.product-report-section {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
}

.product-report-section-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.product-report-field,
.product-report-paragraph,
.product-report-empty {
  margin: 0 0 10px 0;
  line-height: 1.7;
}

.product-report-list {
  margin: 0 0 10px 18px;
  padding: 0;
}

.product-report-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* === Center column overflow safety === */
.center-col,
.center-col .accordion-body,
.center-col .panel,
.center-col details,
.center-col .health-accordion {
    overflow: visible;
}

.center-col {
    min-width: 0;
    height: auto;
}

/* === AI Platform Status cards === */
.platform-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.platform-card {
    border: 1px solid rgba(23, 33, 61, 0.10);
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.platform-card-improving {
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.06);
}

.platform-card-stable {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.05);
}

.platform-card-not-improving {
    border-color: rgba(239, 68, 68, 0.20);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.06);
}

.platform-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.platform-card-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #17213d;
    min-width: 0;
}

.platform-card-body {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.platform-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.platform-status-pill {
    white-space: nowrap;
    font-weight: 700;
}

.platform-status-pill-improving {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.platform-status-pill-stable {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.platform-status-pill-not-improving {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Better spacing for health score cards so they do not clip */
.center-col .score-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.center-col .score {
    min-width: 0;
}

/* Tablet */
@media (max-width: 1180px) {
    .platform-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Smaller screens */
@media (max-width: 820px) {
    .center-col .score-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-card-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   Design system cleanup
   panels -> cards -> sections
   ========================================================= */

/* Core section rhythm inside center column */
.center-col {
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
    align-self: start;
}

.center-col .accordion-body,
.center-col details,
.center-col .health-accordion,
.bottom-default-grid > .center-col,
.bottom-default-grid > .panel,
.top-default-grid > .panel {
    overflow: visible !important;
    height: auto !important;
}

/* Kill boxed wrapper feeling around sections that should feel open */
.section-block {
    margin: 0 0 16px 0;
}

.section-block-performance {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Performance score cards: clean floating card feel */
.center-col .score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
}

.center-col .score {
    flex: 1 1 120px;
    max-width: 150px;
    min-width: 110px;
    border: 1px solid rgba(23, 33, 61, 0.10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    padding: 14px 10px;
}

.center-col .score strong {
    display: block;
    margin-bottom: 8px;
}

.center-col .score span {
    display: block;
    line-height: 1.2;
}

.center-col .score-delta {
    margin-top: 10px;
}

/* Accordion sections should look like sections, not nested competing panels */
.center-col .health-accordion {
    border: 1px solid rgba(23, 33, 61, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
    margin-bottom: 14px;
}

.center-col .health-accordion summary {
    padding: 14px 16px;
    font-weight: 700;
}

.center-col .health-accordion .accordion-body {
    padding: 0 16px 16px 16px;
    background: transparent;
}

/* AI readiness card refinement */
.ai-readiness-card {
    border: 1px solid rgba(23, 33, 61, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
    padding: 14px;
    margin-bottom: 14px;
}

/* Subpanels are lighter internal cards */
.subpanel {
    border: 1px solid rgba(23, 33, 61, 0.08);
    border-radius: 16px;
    background: #fafbff;
    padding: 14px;
}

/* SEO list rows */
.seo-health-list,
.site-file-list,
.issue-list,
.checklist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-health-row,
.site-file-row,
.issue-row,
.checklist-item {
    border: 1px solid rgba(23, 33, 61, 0.08);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
}

.seo-health-actions,
.site-file-row .seo-health-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* AI platform status cards */
.platform-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.platform-card {
    border: 1px solid rgba(23, 33, 61, 0.10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.platform-card-improving {
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.06);
}

.platform-card-stable {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.05);
}

.platform-card-not-improving {
    border-color: rgba(239, 68, 68, 0.20);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.06);
}

.platform-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.platform-card-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.platform-card-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #17213d;
}

.platform-card-status-line {
    display: flex;
    align-items: center;
}

.platform-card-body {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.platform-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.platform-status-pill {
    white-space: nowrap;
    font-weight: 700;
}

.platform-status-pill-improving {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.platform-status-pill-stable {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.platform-status-pill-not-improving {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Make old tables inside center column less aggressive if any remain */
.center-col .audit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.center-col .audit-table td,
.center-col .audit-table th {
    vertical-align: top;
    padding: 12px 10px;
}

/* Responsive */
@media (max-width: 1180px) {
    .platform-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .center-col .score-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .center-col .score {
        flex: 1 1 calc(50% - 8px);
        max-width: none;
    }

    .platform-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-card-actions {
        justify-content: flex-start;
    }
}

/* === pass / warn / fail tuning === */

/* score cards */
.center-col .score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-col .score strong,
.center-col .score span,
.center-col .score-delta {
    text-align: center;
    width: 100%;
}

.center-col .score strong {
    margin-left: auto;
    margin-right: auto;
}

/* health rows */
.seo-health-row-pass,
.site-file-found,
.checklist-item.is-pass,
.issue-row-pass {
    background: #eefaf1;
    border-color: #bfe4c8;
}

.seo-health-row-warn,
.checklist-item.is-warn,
.issue-row-warning {
    background: #fff7ea;
    border-color: #f0d19a;
}

.seo-health-row-fail,
.site-file-missing,
.checklist-item.is-fail,
.issue-row-critical {
    background: #fff1f1;
    border-color: #efc2c2;
}

/* make checklist state color visible */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-item .pill-fix {
    margin-left: auto;
}

/* AI platform cards: color coded */
.platform-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.platform-card {
    min-height: 156px;
    justify-content: space-between;
}

.platform-card-improving {
    background: #eefaf1;
    border-color: #bfe4c8;
}

.platform-card-stable {
    background: #fff7ea;
    border-color: #f0d19a;
}

.platform-card-not-improving {
    background: #fff1f1;
    border-color: #efc2c2;
}

.platform-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.platform-card-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-card-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.platform-card-status-line {
    display: flex;
    align-items: center;
}

.platform-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.platform-status-pill-improving {
    background: #e3f7e8;
    color: #15803d;
    border: 1px solid #a7ddb4;
}

.platform-status-pill-stable {
    background: #fff1cf;
    color: #9a6700;
    border: 1px solid #ebc874;
}

.platform-status-pill-not-improving {
    background: #fde6e6;
    color: #b42318;
    border: 1px solid #efb0b0;
}

/* responsive */
@media (max-width: 1180px) {
    .platform-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Center Column Design System
   ========================================================= */

.center-col {
    --cc-surface: #ffffff;
    --cc-surface-soft: #fbfbfc;
    --cc-border: #d8dde7;
    --cc-radius-lg: 22px;
    --cc-radius-md: 16px;
    --cc-radius-sm: 12px;
    --cc-gap-lg: 16px;
    --cc-gap-md: 12px;
    --cc-gap-sm: 10px;
    --cc-pad-lg: 18px;
    --cc-pad-md: 14px;
    --cc-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* unify every accordion/card block */
.center-col .health-accordion {
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    margin: 0 0 16px 0;
    overflow: hidden;
    box-shadow: var(--cc-shadow);
}

.center-col .health-accordion summary {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.center-col .health-accordion .accordion-body {
    padding: 0 18px 18px 18px;
}

/* consistent sub-cards inside center column */
.center-col .subpanel,
.center-col .ai-readiness-card,
.center-col .seo-health-row,
.center-col .site-file-row,
.center-col .issue-row,
.center-col .checklist-item,
.center-col .platform-card {
    border-radius: var(--cc-radius-md);
    border: 1px solid var(--cc-border);
    box-shadow: none;
}

/* PERFORMANCE: score cards */
.center-col .score-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.center-col .score {
    min-height: 168px;
    padding: 16px 14px;
    background: var(--cc-surface-soft);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow: none;
}

.center-col .score-circle-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-col .score-circle {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    border: 4px solid #caa24a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: #9b6b11;
    background: #fffdfa;
    text-align: center;
    margin: 0 auto;
}

.center-col .score-label {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    max-width: 120px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-col .score-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #d8dde7;
    background: #f5f7fb;
    color: #667085;
}

.score-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    background: #f5f7fb;
    color: #667085;
}

.center-col .score-delta.is-up {
    background: #e9f8ee;
    border-color: #b7e2c2;
    color: #1f7a3d;
}

.center-col .score-delta.is-down {
    background: #fdecec;
    border-color: #efc0c0;
    color: #b42318;
}

.center-col .score-delta.is-flat {
    background: #f5f7fb;
    border-color: #d8dde7;
    color: #667085;
}

/* SEO HEALTH rows */
.center-col .seo-health-list,
.center-col .site-file-list,
.center-col .issue-list,
.center-col .checklist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.center-col .seo-health-row,
.center-col .site-file-row,
.center-col .issue-row,
.center-col .checklist-item {
    min-height: 56px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.center-col .seo-health-row span:first-child,
.center-col .site-file-row span:first-child,
.center-col .issue-row span:first-child {
    font-weight: 700;
}

.center-col .seo-health-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.center-col .seo-health-actions strong {
    font-size: 14px;
    font-weight: 800;
}

/* AI READINESS */
.center-col .ai-readiness-card {
    padding: 16px;
    background: var(--cc-surface-soft);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.center-col .ai-readiness-score {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 64px;
    border: 4px solid #caa24a;
    background: #fffdfa;
    color: #9b6b11;
}

.center-col .ai-readiness-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

/* subpanel consistency */
.center-col .subpanel {
    padding: 14px;
    background: var(--cc-surface-soft);
}

.center-col .subpanel h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 800;
}

/* AI PLATFORM */
.center-col .platform-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.center-col .platform-card {
    min-height: 132px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.center-col .platform-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.center-col .platform-card-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.center-col .platform-card-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.center-col .platform-card-status-line {
    display: flex;
    align-items: center;
}

.center-col .platform-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* consistent pills */
.center-col .pill,
.center-col .platform-status-pill,
.center-col .score-delta {
    white-space: nowrap;
}

/* state colors */
.center-col .seo-health-row-pass,
.center-col .site-file-found,
.center-col .checklist-item.is-pass,
.center-col .issue-row-pass,
.center-col .platform-card-improving {
    background: #eefaf1;
    border-color: #bfe4c8;
}

.center-col .seo-health-row-warn,
.center-col .checklist-item.is-warn,
.center-col .issue-row-warning,
.center-col .platform-card-stable {
    background: #fff7ea;
    border-color: #f0d19a;
}

.center-col .seo-health-row-fail,
.center-col .site-file-missing,
.center-col .checklist-item.is-fail,
.center-col .issue-row-critical,
.center-col .platform-card-not-improving {
    background: #fff1f1;
    border-color: #efc2c2;
}

/* responsive */
@media (max-width: 1280px) {
    .center-col .score-row,
    .center-col .platform-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .center-col .score-row,
    .center-col .platform-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Unified section accordion system for Marketing Overview
   ========================================================= */

.center-col .section-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.center-col .section-accordion {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
}

.center-col .section-accordion summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
}

.center-col .section-accordion summary:hover {
    background: #f9fafb;
}

.center-col .section-accordion summary::-webkit-details-marker {
    display: none;
}

.center-col .section-accordion summary::before {
    content: "▸";
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    color: #111827;
    transition: transform 0.18s ease;
    transform-origin: center;
}

.center-col .section-accordion[open] summary::before {
    transform: rotate(90deg);
}

.center-col .section-body {
    padding: 14px 16px 16px 16px;
    border-top: 1px solid #f0f2f5;
    background: #ffffff;
}

/* kill old pill / rounded block feel inside center column */
.center-col .health-accordion,
.center-col .health-accordion summary,
.center-col details.health-accordion,
.center-col .health-accordion .accordion-body {
    border-radius: 14px !important;
}

/* ensure internal cards still look like proper content blocks */
.center-col .score-row,
.center-col .seo-health-list,
.center-col .site-file-list,
.center-col .issue-list,
.center-col .checklist-list,
.center-col .platform-card-grid {
    margin-top: 0;
}

/* make section spacing feel consistent with Impact + Site Signals */
.center-col .section-accordion + .section-accordion {
    margin-top: 0;
}

/* =========================================
   CENTER COLUMN — STRONGER ACCORDION ARROWS
   ========================================= */

.center-col .section-accordion summary::before {
    content: "▸";
    font-size: 18px;              /* bigger */
    font-weight: 700;             /* bolder */
    line-height: 1;
    margin-right: 10px;           /* more spacing */
    color: #111827;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* open state */
.center-col .section-accordion[open] summary::before {
    transform: rotate(90deg);
    color: #2563eb;               /* subtle blue highlight */
}

/* improve alignment */
.center-col .section-accordion summary {
    display: flex;
    align-items: center;
}

/* optional: slightly larger section title */
.center-col .section-accordion summary {
    font-size: 15px;
}


/* Match center-column accordion arrow weight/size to left-column feel */
.center-col .section-accordion summary {
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.center-col .section-accordion summary::before {
  content: "▾";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: transform 0.18s ease, color 0.18s ease;
  margin-right: 0;
}

.center-col .section-accordion[open] summary::before {
  transform: rotate(0deg);
  color: #111827;
}

.center-col .section-accordion summary::-webkit-details-marker {
  display: none;
}

/* =========================================================
   DASHBOARD MODULE SYSTEM
   Safe scoped overrides for draggable module split
   ========================================================= */

.dashboard-stack {
  display: grid;
  gap: 16px;
  align-items: start;
}

.dashboard-module {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
}

.dashboard-module[draggable="true"] {
  cursor: grab;
}

.dashboard-module.is-dragging {
  opacity: 0.55;
  transform: scale(0.995);
}

.dashboard-module.drag-over-before {
  box-shadow: inset 0 3px 0 #2563eb;
}

.dashboard-module.drag-over-after {
  box-shadow: inset 0 -3px 0 #2563eb;
}

/* remove monolith feel from split modules */
.dashboard-stack-left .panel-title,
.dashboard-stack-center .panel-title {
  margin-bottom: 10px;
}

/* each module gets its own consistent accordion shell */
.dashboard-stack-left .health-accordion,
.dashboard-stack-center .health-accordion {
  margin-top: 0;
}

/* preserve clean internal spacing */
.dashboard-stack-left .accordion-body,
.dashboard-stack-center .accordion-body {
  padding-top: 0;
}

/* center stack spacing */
.dashboard-stack-center .score-row,
.dashboard-stack-center .seo-health-list,
.dashboard-stack-center .site-file-list,
.dashboard-stack-center .issue-list,
.dashboard-stack-center .checklist-list,
.dashboard-stack-center .platform-card-grid {
  margin-top: 0;
}

/* keep modules visually consistent */
.dashboard-stack-left > .panel,
.dashboard-stack-center > .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}

/* platform cards still responsive */
@media (max-width: 1180px) {
  .dashboard-stack-center .platform-card-grid {
    grid-template-columns: 1fr;
  }
}

/* center score cards responsive */
@media (max-width: 860px) {
  .dashboard-stack-center .score-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PERFORMANCE SCORE — HARD LOCK (FINAL)
   prevents legacy override conflicts
========================================= */

.dashboard-stack-center .score-circle {
    width: 64px !important;
    height: 64px !important;
    border-radius: 999px !important;
    border: 4px solid #caa24a !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 16px !important;
    font-weight: 800 !important;

    background: #fffdfa !important;
    color: #9b6b11 !important;

    margin: 0 auto !important;
}

.dashboard-stack-center .score-circle-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ensure full vertical centering */
.dashboard-stack-center .score {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Cross-column drag feedback */
.dashboard-stack.stack-drag-over {
  outline: 2px dashed rgba(37, 99, 235, 0.45);
  outline-offset: 6px;
  border-radius: 18px;
}

.dashboard-module.drag-over-before {
  box-shadow: inset 0 3px 0 #2563eb !important;
}

.dashboard-module.drag-over-after {
  box-shadow: inset 0 -3px 0 #2563eb !important;
}

.dashboard-module.is-dragging {
  opacity: 0.6;
}

.premium-intelligence-card-strategy .premium-intelligence-context {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.premium-intelligence-card-strategy .premium-context-card {
  display: block;
}

.premium-intelligence-card-strategy .premium-context-card strong {
  display: block;
  margin-bottom: 6px;
}

.premium-intelligence-card-strategy .strategy-setting-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 10px 12px;
  font-size: 13px;
}

.premium-strategy-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.theme-dark .premium-intelligence-card-strategy .strategy-setting-input {
  background: #0f172a;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

.strategy-output {
  display: grid;
  gap: 18px;
}

.strategy-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 10px 0;
  border-bottom: 1px solid rgba(148,163,184,0.18);
}

.strategy-anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.12);
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}

.strategy-anchor-link:hover {
  background: rgba(148,163,184,0.2);
}

.strategy-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  scroll-margin-top: 18px;
}

.strategy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-section-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.strategy-copy-btn {
  border: 1px solid rgba(148,163,184,0.24);
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.strategy-copy-btn:hover {
  background: rgba(148,163,184,0.12);
}

.strategy-section-body p {
  margin: 0 0 10px 0;
  line-height: 1.7;
}

.strategy-section-body p:last-child {
  margin-bottom: 0;
}

.strategy-mini-heading {
  margin: 10px 0 6px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.strategy-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.strategy-list-ordered {
  padding-left: 22px;
}

.strategy-table-wrap {
  overflow-x: auto;
}

.strategy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.strategy-table th,
.strategy-table td {
  border: 1px solid rgba(148,163,184,0.18);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.strategy-table th {
  background: rgba(148,163,184,0.10);
  font-weight: 700;
}

.strategy-section-body code {
  background: rgba(148,163,184,0.14);
  border-radius: 6px;
  padding: 2px 6px;
}

html {
  scroll-behavior: smooth;
}

.strategy-subcard-grid {
  display: grid;
  gap: 12px;
}

.strategy-subcard-grid-icp {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.strategy-subcard-grid-roadmap {
  grid-template-columns: 1fr;
}

.strategy-subcard {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}

.strategy-subcard-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.strategy-subcard-body p {
  margin: 0 0 8px 0;
}

.strategy-subcard-body p:last-child {
  margin-bottom: 0;
}

.strategy-subcard-body .strategy-list {
  margin-top: 0;
}

body.theme-dark .strategy-subcard {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}

/* Match Marketing Strategy buttons to Brand Voice / Premium action buttons */
.marketing-strategy-btn,
.marketing-strategy-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.marketing-strategy-btn > span:first-child,
.marketing-strategy-refresh-btn > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.marketing-strategy-btn strong,
.marketing-strategy-refresh-btn strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: inherit;
}

.marketing-strategy-btn small,
.marketing-strategy-refresh-btn small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #667085;
}

.marketing-strategy-btn .lock,
.marketing-strategy-refresh-btn .lock {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #475467;
}

.marketing-strategy-btn:hover,
.marketing-strategy-refresh-btn:hover {
  border-color: #cfd7e6;
  background: #fcfcfd;
}

.marketing-strategy-btn:disabled,
.marketing-strategy-refresh-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.theme-dark .marketing-strategy-btn,
body.theme-dark .marketing-strategy-refresh-btn {
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .marketing-strategy-btn small,
body.theme-dark .marketing-strategy-refresh-btn small {
  color: #98a2b3;
}

body.theme-dark .marketing-strategy-btn .lock,
body.theme-dark .marketing-strategy-refresh-btn .lock {
  color: #cbd5e1;
}


.impact-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.impact-item-positive {
  border-color: rgba(52, 168, 83, 0.28);
  background: rgba(52, 168, 83, 0.05);
}

.impact-item-warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
}

.impact-fix-row {
  padding: 12px 14px;
  border: 1px solid rgba(52, 168, 83, 0.22);
  border-radius: 12px;
  background: rgba(52, 168, 83, 0.05);
  margin-bottom: 10px;
}

.seo-health-row-warn {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.30);
}

.seo-health-row-fail {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.30);
}

.seo-health-row-pass {
  background: rgba(52, 168, 83, 0.08);
  border-color: rgba(52, 168, 83, 0.24);
}


.weekly-check-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.weekly-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.weekly-check-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weekly-check-detail {
  font-size: 12px;
  line-height: 1.35;
  color: #667085;
}

.weekly-check-fix-btn,
.impact-open-fix-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.impact-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.impact-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

body.theme-dark .weekly-check-detail {
  color: #98a2b3;
}

body.theme-dark .weekly-check-fix-btn,
body.theme-dark .impact-open-fix-btn {
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .impact-delta-pill {
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
}


.premium-intelligence-credit.is-low-credit,
.lock.is-low-credit {
  opacity: 0.72;
  border-color: rgba(239, 68, 68, 0.28);
}


.dashboard-stack-center .audit-fix-btn .premium-intelligence-credit.pill-credit {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* =========================================================
   migrated from compat.css - second split pass
   ========================================================= */
.accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 600;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.count {
  font-size: 12px;
  opacity: 0.7;
}

.rec-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 14px 4px;
}

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

.rec-row-main {
  flex: 1;
  min-width: 0;
}

.rec-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rec-row-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rec-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rec-row-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.rec-row-action {
  flex: 0 0 auto;
}

.rec-row.is-complete {
  opacity: 0.72;
}

.rec-row.is-complete .rec-row-title {
  text-decoration: line-through;
}

.repair-btn {
  border: 1px solid rgba(17,24,39,0.12);
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
}

.msg.small {
  font-size: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.gated-grid {
  display: grid;
  gap: 10px;
}

.gated-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #f8fafc;
  color: #111827;
}

.gated-btn .lock {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

.upgrade-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.gated-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.gated-btn strong {
  font-size: 14px;
  line-height: 1.3;
}

.gated-btn small {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.75;
  font-weight: 400;
}

.competitor-snapshot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.brand-voice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.premium-intelligence-panel {
  margin-top: 16px;
}

.premium-intelligence-panel h3 {
  margin: 0 0 12px 0;
}

.recommendation-action-btn {
  border: 1px solid rgba(15,23,42,0.14);
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.rec-category-list {
  display: grid;
  gap: 12px;
}

.impact-summary-meta {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.5;
}

.impact-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.impact-score-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
}

.impact-score-card span {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.impact-score-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.impact-score-card small {
  font-size: 12px;
}

.impact-score-card.is-up small {
  color: #86efac;
}

.impact-score-card.is-down small {
  color: #fca5a5;
}

.impact-score-card.is-flat small {
  color: #cbd5e1;
}

.impact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.impact-item-fixed {
  border-left: 4px solid #22c55e;
}

.impact-item-improved {
  border-left: 4px solid #38bdf8;
}

.impact-item-regressed {
  border-left: 4px solid #ef4444;
}

.impact-empty-state {
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 16px;
  color: #cbd5e1;
  line-height: 1.6;
}

.strategic-impact-list {
  display: grid;
  gap: 10px;
}

.strategic-impact-card {
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.strategic-impact-card-applied {
  border-left-color: #22c55e;
}

.strategic-impact-card-reviewed {
  border-left-color: #38bdf8;
}

.strategic-impact-card-pending_validation {
  border-left-color: #f59e0b;
}

.strategic-impact-card-recommended {
  border-left-color: #64748b;
}

.strategic-impact-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.strategic-impact-top strong {
  font-size: 14px;
  line-height: 1.4;
}

.strategic-impact-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.strategic-impact-type-pill,
.strategic-impact-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #0f172a;
}

.strategic-impact-type-pill-subtle {
  background: #fff;
  color: var(--muted);
}

.impact-timestamp {
  margin-bottom: 12px;
}

.score .muted {
  display: block;
  margin-top: 6px;
}

.ai-report-shell { display:grid; gap:18px; }
.ai-report-hero { display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:18px; align-items:center; padding:18px; border:1px solid rgba(148,163,184,.16); border-radius:18px; background:rgba(15,23,42,.04); }
.ai-report-kicker { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.72; margin-bottom:8px; }
.ai-report-title { margin:0 0 10px; font-size:24px; line-height:1.12; }
.ai-report-summary { margin:0; line-height:1.75; opacity:.86; }
.ai-report-score-wrap { text-align:center; padding:14px; border-radius:16px; background:rgba(255,255,255,.5); border:1px solid rgba(148,163,184,.18); }
.ai-report-score { font-size:44px; font-weight:800; line-height:1; }
.ai-report-score-meta { font-size:12px; opacity:.65; margin-top:2px; }
.ai-report-score-band { margin-top:8px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.ai-report-meter { height:10px; border-radius:999px; background:rgba(148,163,184,.16); overflow:hidden; margin-top:12px; }
.ai-report-meter span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#2563eb,#7c3aed); }
.ai-report-meter.small { height:8px; margin-top:8px; }
.ai-report-section { border:1px solid rgba(148,163,184,.14); border-radius:16px; padding:16px; background:rgba(255,255,255,.4); }
.ai-report-section-title { font-size:14px; font-weight:800; margin-bottom:12px; letter-spacing:.02em; }
.ai-report-signal-list,.ai-report-action-list { display:grid; gap:12px; }
.ai-report-signal-row,.ai-report-action,.ai-report-question { padding:12px; border-radius:12px; background:rgba(15,23,42,.03); border:1px solid rgba(148,163,184,.12); }
.ai-report-signal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ai-report-signal-note,.ai-report-action-reason,.ai-report-question-answer { margin-top:8px; line-height:1.7; opacity:.84; }
.ai-report-question-title,.ai-report-action-title { font-weight:700; line-height:1.45; }
.ai-report-action-meta { margin-top:6px; font-size:12px; opacity:.68; text-transform:uppercase; letter-spacing:.06em; }
.ai-report-next-title { margin-top:16px; margin-bottom:8px; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; opacity:.72; }
.ai-report-next-list { margin:0; padding-left:18px; display:grid; gap:8px; }
.ai-report-shell.is-weak .ai-report-score-wrap { border-color:rgba(239,68,68,.18); }
.ai-report-shell.is-developing .ai-report-score-wrap { border-color:rgba(245,158,11,.18); }
.ai-report-shell.is-good .ai-report-score-wrap { border-color:rgba(59,130,246,.18); }
.ai-report-shell.is-strong .ai-report-score-wrap { border-color:rgba(34,197,94,.18); }
.ai-json-fallback { white-space:pre-wrap; word-break:break-word; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; line-height:1.6; }
@media (max-width: 900px) { .ai-report-hero { grid-template-columns:1fr; } }

/* =========================================================
   Unified intelligence panel spacing
   ========================================================= */

.premium-intelligence-panel .accordion-body,
.competitor-analysis-panel .accordion-body,
.geoaeo-analysis-panel .accordion-body {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}

.premium-intelligence-manual-list {
  display: grid;
  gap: 16px;
}

.left-module-premium .panel-title,
.left-module-geoaeo-analysis .panel-title {
  margin-bottom: 10px;
}

.premium-intelligence-panel summary,
.competitor-analysis-panel summary,
.geoaeo-analysis-panel summary {
  font-weight: 700;
  line-height: 1.3;
}

.premium-intelligence-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.03);
}

.premium-intelligence-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premium-intelligence-card-top strong {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.premium-intelligence-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.premium-intelligence-card .muted,
.premium-intelligence-why {
  margin: 0;
  line-height: 1.7;
}

.premium-intelligence-why strong {
  font-weight: 700;
}

.premium-intelligence-btn {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
}

.premium-intelligence-btn > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.premium-intelligence-btn strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.premium-intelligence-btn small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.82;
}

.premium-intelligence-btn .lock {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.upgrade-hint {
  margin: 0;
  padding-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.82;
}

/* make the three panels feel consistent in collapsed/open rhythm */
.premium-intelligence-panel,
.competitor-analysis-panel,
.geoaeo-analysis-panel {
  margin: 0;
}

.premium-intelligence-panel[open] summary,
.competitor-analysis-panel[open] summary,
.geoaeo-analysis-panel[open] summary {
  margin-bottom: 0;
}

/* stack spacing harmony inside intelligence tab */
[data-module-key="premium-intelligence"],
[data-module-key="competitor-analysis"],
[data-module-key="geoaeo-analysis"] {
  min-width: 0;
}

/* responsive tightening */
@media (max-width: 900px) {
  .premium-intelligence-card {
    padding: 14px;
  }

  .premium-intelligence-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-intelligence-credit {
    align-self: flex-start;
  }

  .premium-intelligence-btn {
    align-items: flex-start;
  }
}
