/* Meta tag workbench — shared by /meta-tag-preview and its six sub-tools.
   Scoped to .mt so it cannot leak into the page's Tailwind sections. */

.mt {
  --mt-ink: #0b1220;
  --mt-soft: #475569;
  --mt-muted: #6b7a90;
  --mt-line: #e2e8f0;
  --mt-card: rgba(255, 255, 255, 0.78);
  --mt-field: #ffffff;
  --mt-accent: #4f46e5;
  --mt-accent-soft: rgba(79, 70, 229, 0.09);
  --mt-good: #059669;
  --mt-warn: #b45309;
  --mt-bad: #dc2626;
  position: relative;
  border: 1px solid var(--mt-line);
  border-radius: 26px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(6, 182, 212, 0.09), transparent 55%),
    var(--mt-card);
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--mt-ink);
  overflow: hidden;
}

html.dark .mt,
html[data-theme="dark"] .mt,
body.dark .mt {
  --mt-ink: #eef2f9;
  --mt-soft: #b6c2d4;
  --mt-muted: #8b9bb4;
  --mt-line: rgba(255, 255, 255, 0.09);
  --mt-card: rgba(13, 17, 27, 0.82);
  --mt-field: rgba(255, 255, 255, 0.04);
  --mt-accent: #8b8cf8;
  --mt-accent-soft: rgba(139, 140, 248, 0.12);
  --mt-good: #34d399;
  --mt-warn: #fbbf24;
  --mt-bad: #f87171;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.mt *,
.mt *::before,
.mt *::after { box-sizing: border-box; }

.mt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mt-line);
  background: rgba(255, 255, 255, 0.35);
}
html.dark .mt-bar,
html[data-theme="dark"] .mt-bar,
body.dark .mt-bar { background: rgba(255, 255, 255, 0.02); }

.mt-bar-left,
.mt-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mt-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mt-good);
}
.mt-live i {
  width: 7px; height: 7px; border-radius: 999px; background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent);
  animation: mt-pulse 2s infinite;
}
@keyframes mt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.mt-timing { font-size: 11.5px; color: var(--mt-muted); font-variant-numeric: tabular-nums; }

.mt-btn {
  appearance: none;
  border: 1px solid var(--mt-line);
  background: var(--mt-field);
  color: var(--mt-ink);
  border-radius: 10px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.mt-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--mt-accent) 45%, var(--mt-line)); }
.mt-btn:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 2px; }
.mt-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #0891b2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 0.7);
}

.mt-grid {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.mt-form {
  border: 1px solid var(--mt-line);
  border-radius: 18px;
  background: var(--mt-field);
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 84px;
}
html.dark .mt-form,
html[data-theme="dark"] .mt-form,
body.dark .mt-form { background: rgba(255, 255, 255, 0.025); }

.mt-form-head { margin-bottom: 14px; }
.mt-form-head h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.mt-form-head span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--mt-muted); }

.mt-field { display: block; margin-bottom: 13px; }
.mt-field:last-of-type { margin-bottom: 0; }

.mt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mt-soft);
  margin-bottom: 5px;
}

.mt-count {
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--mt-muted);
  background: var(--mt-accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.mt-count.is-good { color: var(--mt-good); border-color: color-mix(in srgb, var(--mt-good) 30%, transparent); }
.mt-count.is-warn { color: var(--mt-warn); border-color: color-mix(in srgb, var(--mt-warn) 30%, transparent); }
.mt-count.is-bad { color: var(--mt-bad); border-color: color-mix(in srgb, var(--mt-bad) 30%, transparent); }

.mt-field input,
.mt-field textarea,
.mt-field select {
  width: 100%;
  border: 1px solid var(--mt-line);
  border-radius: 10px;
  background: var(--mt-field);
  color: var(--mt-ink);
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mt-field textarea { resize: vertical; min-height: 76px; }
.mt-field input:focus,
.mt-field textarea:focus,
.mt-field select:focus {
  outline: none;
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 3px var(--mt-accent-soft);
}
.mt-field input::placeholder,
.mt-field textarea::placeholder { color: var(--mt-muted); opacity: 0.75; }

.mt-field-hint { display: block; margin-top: 4px; font-size: 10.8px; line-height: 1.45; color: var(--mt-muted); }

.mt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mt-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.mt-panel {
  position: relative;
  border: 1px solid var(--mt-line);
  border-radius: 18px;
  background: var(--mt-field);
  padding: 15px;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
html.dark .mt-panel,
html[data-theme="dark"] .mt-panel,
body.dark .mt-panel { background: rgba(255, 255, 255, 0.025); }

.mt-panel[data-panel="serp"],
.mt-panel[data-panel="audit"] { grid-column: 1 / -1; }

.mt-panel.is-focus {
  border-color: color-mix(in srgb, var(--mt-accent) 55%, var(--mt-line));
  box-shadow: 0 0 0 3px var(--mt-accent-soft), 0 18px 40px -28px rgba(79, 70, 229, 0.55);
  order: -1;
}
.mt-panel.is-focus[data-panel="serp"],
.mt-panel.is-focus[data-panel="og"],
.mt-panel.is-focus[data-panel="x"],
.mt-panel.is-focus[data-panel="audit"] { grid-column: 1 / -1; }

.mt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.mt-panel-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-muted);
}
.mt-panel-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mt-accent);
  background: var(--mt-accent-soft);
  border-radius: 999px;
  padding: 3px 8px;
}
.mt-panel-tag[hidden] { display: none; }

/* ---- Google SERP ---- */
.mt-serp {
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
html.dark .mt-serp,
html[data-theme="dark"] .mt-serp,
body.dark .mt-serp { background: #202124; border-color: #3c4043; }

.mt-serp-url { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mt-favicon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  color: #5f6368;
  font-size: 12px;
  font-weight: 700;
}
html.dark .mt-favicon,
html[data-theme="dark"] .mt-favicon,
body.dark .mt-favicon { background: #303134; border-color: #5f6368; color: #bdc1c6; }
.mt-serp-site { font-size: 12px; line-height: 1.3; color: #202124; }
.mt-serp-crumb { font-size: 12px; line-height: 1.3; color: #4d5156; }
html.dark .mt-serp-site,
html[data-theme="dark"] .mt-serp-site,
body.dark .mt-serp-site { color: #e8eaed; }
html.dark .mt-serp-crumb,
html[data-theme="dark"] .mt-serp-crumb,
body.dark .mt-serp-crumb { color: #bdc1c6; }

.mt-serp-title {
  margin: 8px 0 2px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: #1a0dab;
  overflow-wrap: anywhere;
}
html.dark .mt-serp-title,
html[data-theme="dark"] .mt-serp-title,
body.dark .mt-serp-title { color: #8ab4f8; }
.mt-serp-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: #4d5156;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
html.dark .mt-serp-desc,
html[data-theme="dark"] .mt-serp-desc,
body.dark .mt-serp-desc { color: #bdc1c6; }

/* ---- Open Graph card ---- */
.mt-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.mt-chip {
  appearance: none;
  border: 1px solid var(--mt-line);
  background: transparent;
  color: var(--mt-muted);
  border-radius: 999px;
  padding: 4px 9px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.mt-chip.is-on { color: var(--mt-accent); border-color: color-mix(in srgb, var(--mt-accent) 45%, var(--mt-line)); background: var(--mt-accent-soft); }
.mt-chip:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 2px; }

.mt-og {
  border: 1px solid #d8dee6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
html.dark .mt-og,
html[data-theme="dark"] .mt-og,
body.dark .mt-og { background: #161b24; border-color: rgba(255, 255, 255, 0.12); }

.mt-og-media {
  aspect-ratio: 1.91 / 1;
  background-color: #eef2f7;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #8794a7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px;
}
.mt-og-media:empty::after,
.mt-x-media:empty::after {
  content: attr(data-placeholder);
  font-size: 11px;
  color: #8794a7;
  text-align: center;
  padding: 0 12px;
}
.mt-og-media.has-image::after,
.mt-x-media.has-image::after { display: none; }
.mt-og-media.has-image { color: transparent; font-size: 0; }
html.dark .mt-og-media,
html[data-theme="dark"] .mt-og-media,
body.dark .mt-og-media { background-color: #0d1117; color: #64748b; }

.mt-og-body { padding: 11px 13px 13px; border-top: 1px solid #eef1f5; }
html.dark .mt-og-body,
html[data-theme="dark"] .mt-og-body,
body.dark .mt-og-body { border-top-color: rgba(255, 255, 255, 0.07); }
.mt-og-domain {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a94a3;
}
.mt-og-title {
  margin-top: 3px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #101828;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
html.dark .mt-og-title,
html[data-theme="dark"] .mt-og-title,
body.dark .mt-og-title { color: #f1f5f9; }
.mt-og-desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #667085;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
html.dark .mt-og-desc,
html[data-theme="dark"] .mt-og-desc,
body.dark .mt-og-desc { color: #98a6ba; }

.mt-og[data-platform="whatsapp"] { border-color: #cfe9d8; }
.mt-og[data-platform="whatsapp"] .mt-og-domain { color: #128c7e; }
.mt-og[data-platform="discord"] { border-color: #4752c4; }
.mt-og[data-platform="discord"] .mt-og-domain { color: #7289da; }
.mt-og[data-platform="linkedin"] .mt-og-domain { color: #0a66c2; }
.mt-og[data-platform="slack"] { border-left: 4px solid #611f69; }
.mt-og[data-platform="slack"] .mt-og-domain { color: #611f69; }

/* ---- X card ---- */
.mt-x {
  border: 1px solid #cfd9de;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
}
html.dark .mt-x,
html[data-theme="dark"] .mt-x,
body.dark .mt-x { background: #000; border-color: #2f3336; }

.mt-x-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mt-x-avatar {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #0891b2);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.mt-x-name { font-size: 14px; font-weight: 700; color: #0f1419; line-height: 1.2; }
.mt-x-handle { font-size: 13px; color: #536471; line-height: 1.2; }
html.dark .mt-x-name,
html[data-theme="dark"] .mt-x-name,
body.dark .mt-x-name { color: #e7e9ea; }
html.dark .mt-x-handle,
html[data-theme="dark"] .mt-x-handle,
body.dark .mt-x-handle { color: #71767b; }

.mt-x-body { display: block; }
.mt-x-media {
  aspect-ratio: 1.91 / 1;
  border-radius: 12px;
  background-color: #eef2f7;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #8794a7;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 9px;
}
.mt-x-media.has-image { color: transparent; font-size: 0; }
html.dark .mt-x-media,
html[data-theme="dark"] .mt-x-media,
body.dark .mt-x-media { background-color: #16181c; color: #71767b; }
.mt-x-title { font-size: 14.5px; font-weight: 600; color: #0f1419; line-height: 1.35; overflow-wrap: anywhere; }
.mt-x-desc {
  margin-top: 2px;
  font-size: 13.5px;
  color: #536471;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mt-x-domain { margin-top: 4px; font-size: 12.5px; color: #536471; }
html.dark .mt-x-title,
html[data-theme="dark"] .mt-x-title,
body.dark .mt-x-title { color: #e7e9ea; }
html.dark .mt-x-desc,
html[data-theme="dark"] .mt-x-desc,
body.dark .mt-x-desc,
html.dark .mt-x-domain,
html[data-theme="dark"] .mt-x-domain,
body.dark .mt-x-domain { color: #71767b; }

.mt-x.is-summary .mt-x-body { display: flex; flex-direction: row-reverse; gap: 10px; align-items: flex-start; }
.mt-x.is-summary .mt-x-media { flex: 0 0 92px; width: 92px; aspect-ratio: 1 / 1; margin: 0; }

/* ---- warnings ---- */
.mt-warn {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mt-warn);
  background: color-mix(in srgb, var(--mt-warn) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--mt-warn) 24%, transparent);
  border-radius: 9px;
  padding: 7px 9px;
}
.mt-warn[hidden] { display: none; }

.mt-note { margin: 9px 0 0; font-size: 10.8px; line-height: 1.5; color: var(--mt-muted); }

/* ---- audit ---- */
.mt-audit-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mt-score { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mt-score-text { font-size: 11.5px; color: var(--mt-muted); line-height: 1.4; }
.mt-scorebar { height: 7px; border-radius: 999px; background: var(--mt-accent-soft); overflow: hidden; margin-bottom: 12px; }
.mt-scorebar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #7c3aed 55%, #0891b2);
  transition: width 0.25s ease;
}
.mt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mt-checks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid var(--mt-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}
.mt-check-mark {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}
.mt-checks li.is-ok .mt-check-mark { color: #fff; background: var(--mt-good); }
.mt-checks li.is-bad .mt-check-mark { color: #fff; background: var(--mt-bad); }
.mt-checks strong { display: block; font-weight: 600; color: var(--mt-ink); line-height: 1.35; }
.mt-checks small { display: block; margin-top: 1px; font-size: 10.5px; color: var(--mt-muted); }

.mt-import { margin-top: 11px; border-top: 1px dashed var(--mt-line); padding-top: 10px; }
.mt-import summary { cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--mt-accent); }
.mt-import textarea {
  width: 100%;
  min-height: 78px;
  margin-top: 8px;
  border: 1px solid var(--mt-line);
  border-radius: 9px;
  background: var(--mt-field);
  color: var(--mt-ink);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  resize: vertical;
}
.mt-import .mt-btn { margin-top: 7px; }

/* ---- code output ---- */
.mt-code {
  margin: 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #0b1020;
  color: #dbe4f5;
  overflow: hidden;
}
.mt-code.is-focus {
  box-shadow: 0 0 0 3px var(--mt-accent-soft), 0 22px 44px -30px rgba(79, 70, 229, 0.8);
  border-color: rgba(139, 140, 248, 0.55);
}
.mt-code-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mt-code-head .mt-panel-kicker { color: #8fa1c0; }
.mt-code-head p { margin: 3px 0 0; font-size: 11.5px; color: #8294b3; }
.mt-code-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mt-code-box {
  margin: 0;
  padding: 14px 16px;
  max-height: 340px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
  tab-size: 2;
}
.mt-code-box code { font: inherit; color: inherit; }
.mt-code-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #8294b3;
}
.mt-code-foot nav { display: flex; flex-wrap: wrap; gap: 12px; }
.mt-code-foot a { color: #a5b4fc; text-decoration: none; font-weight: 600; }
.mt-code-foot a:hover { text-decoration: underline; }

/* ---- toast ---- */
.mt-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 14px);
  z-index: 80;
  background: #101828;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .mt-grid { grid-template-columns: 1fr; }
  .mt-form { position: static; }
}
@media (max-width: 720px) {
  .mt-bar { padding: 11px 13px; }
  .mt-grid { padding: 13px; gap: 13px; }
  .mt-stage { grid-template-columns: 1fr; }
  .mt-panel[data-panel="serp"],
  .mt-panel[data-panel="audit"] { grid-column: auto; }
  .mt-panel.is-focus { grid-column: auto; }
  .mt-code { margin: 0 13px 13px; }
  .mt-row { grid-template-columns: 1fr; }
  .mt-serp { padding: 13px 14px; }
  .mt-serp-title { font-size: 18px; }
  .mt-x.is-summary .mt-x-media { flex-basis: 78px; width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt *, .mt *::before, .mt *::after { animation: none !important; transition: none !important; }
}

/* ---- page-level helpers shared by the seven meta pages ---- */
.mt-summary {
  max-width: 56rem;
  margin: 0 auto;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.06);
  border-radius: 18px;
  padding: 18px 20px;
}
.mt-summary span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6366f1;
}
.mt-summary p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.65; color: #3f4a5c; }
.mt-summary strong { color: #111827; font-weight: 700; }
html.dark .mt-summary,
html[data-theme="dark"] .mt-summary,
body.dark .mt-summary { border-color: rgba(129, 140, 248, 0.28); background: rgba(99, 102, 241, 0.09); }
html.dark .mt-summary p,
html[data-theme="dark"] .mt-summary p,
body.dark .mt-summary p { color: #c3cede; }
html.dark .mt-summary strong,
html[data-theme="dark"] .mt-summary strong,
body.dark .mt-summary strong { color: #fff; }

.mt-wf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-wf > span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-right: 4px;
}
.mt-wf a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.mt-wf a:hover { border-color: #a5b4fc; color: #4338ca; transform: translateY(-1px); }
html.dark .mt-wf a,
html[data-theme="dark"] .mt-wf a,
body.dark .mt-wf a { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #cbd5e1; }
html.dark .mt-wf a:hover,
html[data-theme="dark"] .mt-wf a:hover,
body.dark .mt-wf a:hover { color: #c7d2fe; border-color: rgba(165, 180, 252, 0.45); }

.mt-cluster-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 22px;
}
.mt-cluster-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.65);
  padding: 14px 15px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.mt-cluster-card:hover { transform: translateY(-2px); border-color: #a5b4fc; box-shadow: 0 16px 34px -24px rgba(79, 70, 229, 0.5); }
.mt-cluster-card[aria-current="page"] { border-color: #6366f1; background: rgba(99, 102, 241, 0.07); }
.mt-cluster-card .cc-name { display: block; font-size: 13.5px; font-weight: 700; color: #111827; }
.mt-cluster-card .cc-desc { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #64748b; }
html.dark .mt-cluster-card,
html[data-theme="dark"] .mt-cluster-card,
body.dark .mt-cluster-card { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); }
html.dark .mt-cluster-card .cc-name,
html[data-theme="dark"] .mt-cluster-card .cc-name,
body.dark .mt-cluster-card .cc-name { color: #f1f5f9; }
html.dark .mt-cluster-card .cc-desc,
html[data-theme="dark"] .mt-cluster-card .cc-desc,
body.dark .mt-cluster-card .cc-desc { color: #94a3b8; }
html.dark .mt-cluster-card[aria-current="page"],
html[data-theme="dark"] .mt-cluster-card[aria-current="page"],
body.dark .mt-cluster-card[aria-current="page"] { background: rgba(99, 102, 241, 0.12); }
