html[data-mkp-theme="dark"] body{
  background:
    radial-gradient(circle at 15% 0%,rgba(23,167,91,.08),transparent 28rem),
    var(--mkp-bg);
}
html[data-mkp-theme="dark"] .mkp-v2-hero__mesh{opacity:.18}
html[data-mkp-theme="dark"] .mkp-v2-path-card,
html[data-mkp-theme="dark"] .mkp-v2-content-card--article,
html[data-mkp-theme="dark"] .mkp-v2-tool-card,
html[data-mkp-theme="dark"] .mkp-v2-cta__box,
html[data-mkp-theme="dark"] .mkp-module-foundation__card{box-shadow:0 10px 30px rgba(0,0,0,.16)}
html[data-mkp-theme="dark"] .mkp-button--light{color:var(--mkp-ink)}
html[data-mkp-theme="dark"] .mkp-footer{background:#061217}


/* Phase 02.7 — dark motion visibility */
html[data-mkp-theme="dark"] .mkp-particle--dot{
  background:#52dc8f;
  box-shadow:
    0 0 0 7px rgba(82,220,143,.10),
    0 0 24px rgba(82,220,143,.20);
}

html[data-mkp-theme="dark"] .mkp-particle--ring{
  border-color:rgba(104,225,158,.48);
  box-shadow:inset 0 0 0 8px rgba(64,207,132,.035);
}

html[data-mkp-theme="dark"] .mkp-particle--cross:before,
html[data-mkp-theme="dark"] .mkp-particle--cross:after{
  background:rgba(135,223,174,.50);
}

html[data-mkp-theme="dark"] .mkp-particle--square{
  border-color:rgba(91,222,151,.46);
  background:rgba(23,167,91,.035);
}

html[data-mkp-theme="dark"] .mkp-section-particle{
  opacity:.48;
  border-color:rgba(79,221,146,.24);
  filter:drop-shadow(0 0 18px rgba(32,182,105,.08));
}

html[data-mkp-theme="dark"] .mkp-section-particle:before{
  border-color:rgba(95,224,155,.34);
}

html[data-mkp-theme="dark"] .mkp-section-particle:after{
  background:rgba(49,204,123,.11);
}

html[data-mkp-theme="dark"] .mkp-v2-hero__mesh{
  opacity:.28;
  background-image:radial-gradient(rgba(114,222,163,.26) 1px,transparent 1px);
}

html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--ring{
  border-color:rgba(95,230,157,.52);
  box-shadow:
    inset 0 0 0 12px rgba(52,209,127,.045),
    0 0 28px rgba(49,204,123,.06);
}

html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--ring:after{
  border-color:rgba(144,225,178,.36);
}

html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--dot{
  background:#57df93;
  box-shadow:
    0 0 0 9px rgba(87,223,147,.10),
    0 0 26px rgba(87,223,147,.24);
}

html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--grid{
  opacity:.82;
  background-image:radial-gradient(rgba(112,224,161,.52) 1.3px,transparent 1.3px);
}

html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--spark{
  border-color:rgba(99,225,158,.50);
  background:rgba(15,42,46,.78);
  box-shadow:0 8px 24px rgba(0,0,0,.26);
}

html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--spark:before,
html[data-mkp-theme="dark"] .mkp-mobile-photo-motion--spark:after{
  background:#62e099;
}

html[data-mkp-theme="dark"] .mkp-v2-mobile-portrait{
  border-color:rgba(117,221,164,.17);
  background:
    radial-gradient(circle at 45% 18%,rgba(52,196,119,.15),transparent 42%),
    linear-gradient(155deg,#13272c,#0d2c25);
  box-shadow:
    0 25px 60px rgba(0,0,0,.32),
    0 0 38px rgba(31,172,102,.05),
    inset 0 0 0 8px rgba(255,255,255,.018);
}


/* Phase 03-A Knowledge */
html[data-mkp-theme="dark"] .mkp-knowledge-card,
html[data-mkp-theme="dark"] .mkp-empty-state,
html[data-mkp-theme="dark"] .mkp-topic-cloud a,
html[data-mkp-theme="dark"] .mkp-knowledge-single__aside a,
html[data-mkp-theme="dark"] .mkp-knowledge-hub-nav a{
  box-shadow:0 10px 30px rgba(0,0,0,.17);
}
html[data-mkp-theme="dark"] .mkp-knowledge-card__placeholder{
  background:
    radial-gradient(circle at 30% 20%,rgba(64,213,133,.13),transparent 38%),
    linear-gradient(145deg,var(--mkp-surface-2),rgba(23,167,91,.09));
}


/* Phase 03-B */
html[data-mkp-theme="dark"] .mkp-knowledge-player,
html[data-mkp-theme="dark"] .mkp-transcript{
  box-shadow:0 14px 34px rgba(0,0,0,.20);
}
html[data-mkp-theme="dark"] .mkp-knowledge-player:before{
  background:rgba(68,212,135,.07);
}


/* Phase 03-C */
html[data-mkp-theme="dark"] .mkp-knowledge-search,
html[data-mkp-theme="dark"] .mkp-featured-card,
html[data-mkp-theme="dark"] .mkp-knowledge-results__head>span{
  box-shadow:0 12px 30px rgba(0,0,0,.19);
}
html[data-mkp-theme="dark"] .mkp-featured-card__media{
  background:linear-gradient(145deg,var(--mkp-surface-2),rgba(23,167,91,.08));
}


/* Phase 03-D */
html[data-mkp-theme="dark"] .mkp-visual-breadcrumbs{
  background:rgba(14,31,36,.94);
}
html[data-mkp-theme="dark"] .mkp-content-navigation__item{
  box-shadow:0 10px 28px rgba(0,0,0,.17);
}
html[data-mkp-theme="dark"] .mkp-knowledge-single__content blockquote{
  background:rgba(23,167,91,.09);
}


/* Phase 04-A Tools */
html[data-mkp-theme="dark"] .mkp-tool-card,
html[data-mkp-theme="dark"] .mkp-tool-stage,
html[data-mkp-theme="dark"] .mkp-tool-gate{
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
html[data-mkp-theme="dark"] .mkp-tool-stats strong{
  color:#c9eee0;
}


/* Phase 04-B Tools */
html[data-mkp-theme="dark"] .mkp-tools-search,
html[data-mkp-theme="dark"] .mkp-tool-history{
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}
html[data-mkp-theme="dark"] .mkp-tool-metric-results strong{
  color:#c9eee0;
}


/* Phase 04-C */
html[data-mkp-theme="dark"] .mkp-qr-preview{
  background:#fff;
}
html[data-mkp-theme="dark"] .mkp-serp-preview{
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}


/* ==========================================================
   Phase 04-C.1 — Tools dark-mode readability
   ========================================================== */
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button--ghost,
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button--light{
  border-color:rgba(191,224,211,.14);
  background:var(--mkp-surface);
  color:#e8f4ef!important;
  box-shadow:0 8px 22px rgba(0,0,0,.15);
}
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button--ghost:hover,
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button--light:hover{
  border-color:rgba(100,224,156,.25);
  background:rgba(38,73,69,.82);
  color:#bff1d4!important;
}
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button--primary{
  color:#fff!important;
}
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button:disabled,
html[data-mkp-theme="dark"] .mkp-tool-stage .mkp-button[disabled]{
  border-color:rgba(191,224,211,.09);
  background:rgba(255,255,255,.035);
  color:#8da49d!important;
  opacity:.78;
}

html[data-mkp-theme="dark"] .mkp-tool-editor textarea,
html[data-mkp-theme="dark"] .mkp-tool-editor input,
html[data-mkp-theme="dark"] .mkp-tool-form-grid input,
html[data-mkp-theme="dark"] .mkp-tool-form-grid select,
html[data-mkp-theme="dark"] .mkp-tool-result-box textarea,
html[data-mkp-theme="dark"] .mkp-qr-url-field input{
  border-color:rgba(191,224,211,.13);
  background:rgba(255,255,255,.045);
  color:#e9f4f0;
}
html[data-mkp-theme="dark"] .mkp-tool-editor textarea::placeholder,
html[data-mkp-theme="dark"] .mkp-tool-editor input::placeholder,
html[data-mkp-theme="dark"] .mkp-tool-form-grid input::placeholder,
html[data-mkp-theme="dark"] .mkp-qr-url-field input::placeholder{
  color:#81968f;
}
html[data-mkp-theme="dark"] .mkp-qr-input-card,
html[data-mkp-theme="dark"] .mkp-tool-stats>div,
html[data-mkp-theme="dark"] .mkp-tool-metric-results>div,
html[data-mkp-theme="dark"] .mkp-seo-check,
html[data-mkp-theme="dark"] .mkp-tool-history{
  border-color:rgba(191,224,211,.10);
  background:rgba(255,255,255,.035);
}
html[data-mkp-theme="dark"] .mkp-qr-url-field>span,
html[data-mkp-theme="dark"] .mkp-qr-input-card__head strong{
  color:#e8f4ef;
}

html[data-mkp-theme="dark"] .mkp-tools-pagination .page-numbers,
html[data-mkp-theme="dark"] .mkp-tools-pagination__arrow{
  border-color:rgba(191,224,211,.11);
  background:var(--mkp-surface);
  color:#d9ebe4;
  box-shadow:0 7px 18px rgba(0,0,0,.15);
}
html[data-mkp-theme="dark"] .mkp-tools-pagination .page-numbers:hover,
html[data-mkp-theme="dark"] .mkp-tools-pagination__arrow:hover{
  border-color:rgba(100,224,156,.24);
  background:rgba(32,75,61,.76);
  color:#baf0d0;
}
html[data-mkp-theme="dark"] .mkp-tools-pagination .page-numbers.current{
  background:linear-gradient(135deg,#1c434f,#10954f);
  color:#fff;
}


/* Phase 04-D — Tools featured/related */
html[data-mkp-theme="dark"] .mkp-tools-featured{
  border-color:rgba(191,224,211,.10);
  background:
    radial-gradient(circle at 10% 0%,rgba(16,149,79,.12),transparent 22rem),
    rgba(255,255,255,.025);
}
html[data-mkp-theme="dark"] .mkp-tool-card__badge{
  background:rgba(255,255,255,.055);
  color:#aabdb6;
}
html[data-mkp-theme="dark"] .mkp-tool-card__badge--featured{
  background:rgba(16,149,79,.16);
  color:#aeecc8;
}


/* Phase 05-A — Portfolio */
html[data-mkp-theme="dark"] .mkp-case-card,
html[data-mkp-theme="dark"] .mkp-collaboration-card,
html[data-mkp-theme="dark"] .mkp-case-single__cover,
html[data-mkp-theme="dark"] .mkp-case-outcome,
html[data-mkp-theme="dark"] .mkp-case-client,
html[data-mkp-theme="dark"] .mkp-collaboration-single__logo{
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}
html[data-mkp-theme="dark"] .mkp-case-card__badges span{
  background:rgba(4,17,21,.78);
}
html[data-mkp-theme="dark"] .mkp-case-kpis{
  background:#102f38;
}


/* Phase 05-B */
html[data-mkp-theme="dark"] .mkp-case-builder-section--image figure,
html[data-mkp-theme="dark"] .mkp-case-builder-section--quote blockquote,
html[data-mkp-theme="dark"] .mkp-case-builder-section--cta,
html[data-mkp-theme="dark"] .mkp-before-after-slider{
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
html[data-mkp-theme="dark"] .mkp-case-builder-section--quote p{
  color:#e8f4ef;
}


/* Phase 05-B.1 — Content Studio Case sections */
html[data-mkp-theme="dark"] .mkp-case-service,
html[data-mkp-theme="dark"] .mkp-case-story-map article,
html[data-mkp-theme="dark"] .mkp-case-seo-results__table article,
html[data-mkp-theme="dark"] .mkp-case-testimonial{
  box-shadow:0 12px 28px rgba(0,0,0,.14);
}
html[data-mkp-theme="dark"] .mkp-case-testimonial p{
  color:#e8f4ef;
}
