:root {
  --swf-blue: #0877ad;
  --swf-blue-dark: #075d87;
  --swf-cyan: #0d91a1;
  --swf-green: #087f5b;
  --swf-amber: #9a5b00;
  --swf-red: #b42318;
  --swf-soft-blue: #eaf6fc;
  --swf-soft-green: #eaf8f2;
  --swf-soft-amber: #fff7e8;
  --swf-soft-red: #fff0ee;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(950px 520px at 15% 0%, rgba(0, 115, 170, .10), transparent 64%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.mp-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mp-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20000;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff;
  color: var(--swf-blue-dark);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

.mp-skip-link:focus {
  transform: translateY(0);
}

.mp-site-chrome {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
}

.mp-site-header-inner,
.mp-breadcrumb ol,
.mp-related-panel {
  width: min(1240px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.mp-site-header-inner {
  display: flex;
  box-sizing: border-box;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-right: auto !important;
  margin-left: auto !important;
}

.mp-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.mp-site-brand img {
  display: block;
  object-fit: contain;
}

.mp-site-brand span,
.mp-site-brand strong,
.mp-site-brand small {
  display: block;
}

.mp-site-brand strong {
  line-height: 1.05;
}

.mp-site-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.mp-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.mp-primary-nav a {
  padding: 7px 9px;
  border-radius: 8px;
  color: #34495a;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.mp-primary-nav a:hover {
  background: var(--swf-soft-blue);
  color: var(--swf-blue-dark);
}

.mp-breadcrumb {
  border-top: 1px solid rgba(17,24,39,.075);
}

.mp-breadcrumb ol {
  display: flex;
  min-height: 36px;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 7px 0;
  list-style: none;
  color: var(--muted);
  font-size: .75rem;
}

.mp-breadcrumb li + li::before {
  margin-right: 8px;
  color: #9aa6af;
  content: "/";
}

.mp-breadcrumb a {
  color: var(--swf-blue-dark);
  text-decoration: none;
}

#app {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,248,253,.96)),
    var(--panel);
}

.eyebrow,
.proof-row,
.controls,
.player-tools,
.section-heading,
.security-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 11px;
  color: var(--swf-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--swf-cyan);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3.3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  letter-spacing: -.01em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.sub {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.proof-row {
  margin-top: 16px;
}

.proof-chip,
.runtime-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid rgba(8,119,173,.22);
  border-radius: 999px;
  background: var(--swf-soft-blue);
  color: #155270;
  font-size: .78rem;
  font-weight: 740;
}

.runtime-chip {
  border-color: rgba(8,127,91,.24);
  background: var(--swf-soft-green);
  color: var(--swf-green);
}

.controls {
  margin-top: 17px;
}

.btn,
.url {
  box-sizing: border-box;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.88);
  color: var(--text);
}

.btn {
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 680;
  transition: background .16s ease, border-color .16s ease, transform .08s ease;
}

.btn:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(8,119,173,.42);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn.primary {
  border-color: var(--swf-blue) !important;
  background: var(--swf-blue) !important;
  color: #fff !important;
}

.btn.primary:hover:not(:disabled) {
  border-color: var(--swf-blue-dark) !important;
  background: var(--swf-blue-dark) !important;
}

.btn.sample {
  border-color: rgba(8,127,91,.34) !important;
  background: var(--swf-soft-green) !important;
  color: #066c4c !important;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.url {
  flex: 1 1 350px;
  min-width: 220px;
  padding: 9px 12px;
}

.btn:focus-visible,
.url:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(8,119,173,.28);
  outline-offset: 2px;
}

.security-line {
  justify-content: space-between;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.security-line strong {
  color: var(--swf-green);
}

.status {
  min-height: 20px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.status.good { color: var(--swf-green); }
.status.warn { color: var(--swf-amber); }
.status.bad { color: var(--swf-red); }

[hidden] {
  display: none !important;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, .84fr);
  gap: 14px;
}

.player-panel,
.report-panel {
  min-width: 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.player-name,
.section-note {
  color: var(--muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.18);
  border-radius: 13px;
  background:
    linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.025) 75%),
    linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.025) 75%),
    #f7fafc;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

#playerHost,
#rufflePlayer {
  width: 100%;
  height: 100%;
}

#playerHost {
  display: grid;
  place-items: stretch;
}

#rufflePlayer {
  display: block;
}

.empty-state {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: 100%;
  padding: 26px;
  text-align: center;
}

.empty-state-inner {
  max-width: 430px;
}

.empty-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--swf-blue), var(--swf-cyan));
  box-shadow: 0 12px 24px rgba(8,119,173,.22);
  color: #fff;
  font-weight: 850;
  letter-spacing: .02em;
}

.empty-state p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.player-tools {
  margin-top: 11px;
}

.player-tools .status-chip {
  margin-left: auto;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.report-stack {
  display: grid;
  gap: 12px;
}

.summary-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

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

.fact-card {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.75);
}

.fact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 760;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.fact-card strong,
.fact-card small {
  display: block;
  overflow-wrap: anywhere;
}

.fact-card strong {
  font-size: .94rem;
}

.fact-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.script-callout,
.warning-panel,
.privacy-callout {
  padding: 11px 12px;
  border-left: 4px solid var(--swf-green);
  border-radius: 9px;
  background: var(--swf-soft-green);
  color: #105b45;
  font-size: .85rem;
  line-height: 1.45;
}

.script-callout.warn,
.warning-panel {
  border-left-color: var(--swf-amber);
  background: var(--swf-soft-amber);
  color: #724600;
}

.inventory-box,
.tag-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.57);
}

.inventory-box h3,
.tag-box summary {
  font-size: .94rem;
  font-weight: 760;
}

.named-assets {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.named-assets ul,
.warning-panel ul {
  margin: 7px 0 0;
  padding-left: 1.2rem;
}

.named-assets li,
.warning-panel li {
  margin: .3rem 0;
  overflow-wrap: anywhere;
  font-size: .8rem;
}

.tag-box summary {
  cursor: pointer;
  list-style-position: outside;
}

.tag-summary {
  margin-left: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
}

.tag-table-wrap {
  max-height: 260px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

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

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .78rem;
}

th {
  position: sticky;
  top: 0;
  background: #f2f7fa;
  color: var(--muted);
  font-size: .69rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3) {
  width: 54px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.compatibility-intro {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.5;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.matrix-wrap th:nth-child(2),
.matrix-wrap td:nth-child(2) {
  width: 150px;
}

.matrix-wrap th:nth-child(3),
.matrix-wrap td:nth-child(3) {
  width: auto;
}

.support {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 780;
  white-space: nowrap;
}

.support.yes {
  background: var(--swf-soft-green);
  color: var(--swf-green);
}

.support.partial {
  background: var(--swf-soft-amber);
  color: var(--swf-amber);
}

.support.no {
  background: var(--swf-soft-red);
  color: var(--swf-red);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}

.faq details:first-of-type {
  margin-top: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 720;
}

.faq details p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.privacy-callout {
  margin-top: 12px;
  border-left-color: var(--swf-blue);
  background: var(--swf-soft-blue);
  color: #164f69;
}

#dropOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(247,249,252,.82);
  backdrop-filter: blur(10px);
}

#dropOverlay.visible {
  display: grid;
}

.drop-card {
  padding: 34px;
  border: 2px dashed var(--swf-blue);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--swf-blue-dark);
  font-size: 1.1rem;
  font-weight: 780;
  text-align: center;
}

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0,0,0,.055);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

.mp-related-panel {
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow: var(--shadow);
  color: var(--text);
}

.mp-related-panel p,
.mp-related-panel li {
  color: var(--muted);
  line-height: 1.5;
}

.mp-related-panel ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.mp-related-panel a {
  color: var(--swf-blue-dark);
}

html.mp-embedded .mp-site-chrome,
html.mp-embedded .mp-skip-link,
html.mp-embedded .mp-related-panel {
  display: none !important;
}

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

  .player-frame {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .mp-site-header-inner,
  .mp-breadcrumb ol,
  .mp-related-panel {
    width: min(calc(100% - 18px), 1240px);
  }

  .mp-site-header-inner {
    min-height: 54px;
  }

  .mp-primary-nav {
    display: none;
  }

  #app {
    width: min(calc(100% - 18px), 1240px);
    margin-top: 10px;
  }

  .panel {
    padding: 14px;
    border-radius: 13px;
  }

  .controls .btn,
  .controls .url {
    width: 100%;
    flex-basis: 100%;
  }

  .proof-row {
    gap: 7px;
  }

  .proof-chip,
  .runtime-chip {
    font-size: .72rem;
  }

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

  .player-frame {
    min-height: 210px;
  }

  .player-tools .status-chip {
    width: 100%;
    margin-left: 0;
  }

  .matrix-wrap table {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
