.mm-serp { max-width: 48rem; margin-block: 2rem; text-align: left; }
.mm-serp *, .mm-serp *::before, .mm-serp *::after { box-sizing: border-box; }
.mm-serp .mm-serp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mm-serp label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .45rem; color: var(--mm-ink-800); }
.mm-serp label span { font-weight: 400; color: var(--mm-ink-600); }
.mm-serp input[type="text"], .mm-serp textarea { display: block; width: 100%; max-width: 100%; border: 1px solid var(--mm-ink-200); border-radius: .55rem; background: var(--mm-ink-50); color: var(--mm-ink-900); font: 400 1rem/1.5 "Inter", sans-serif; padding: .7rem .9rem; }
.mm-serp textarea { resize: vertical; min-height: 7rem; }
.mm-serp :is(input, textarea, button, summary):focus-visible { outline: 3px solid var(--mm-brand-500); outline-offset: 3px; }
.mm-serp small { display: block; margin-top: .5rem; color: var(--mm-ink-600); font-size: .8rem; line-height: 1.55; }
.mm-serp .mm-serp-field { margin-top: 1.5rem; }
.mm-serp .mm-serp-meter { height: 6px; background: var(--mm-ink-100); border-radius: 10px; margin-top: .9rem; overflow: hidden; }
.mm-serp-meter span { display: block; height: 100%; width: 0; background: #287248; }
.mm-serp-meter span[data-state="warning"] { background: #a35b00; }
.mm-serp-meter span[data-state="overflow"] { background: #b42318; }
.mm-serp .mm-serp-metric { font-size: .85rem; font-weight: 600; margin: .5rem 0 .2rem; font-variant-numeric: tabular-nums; }
.mm-serp .mm-serp-status { font-size: .8rem; line-height: 1.5; margin: 0; color: var(--mm-ink-600); }
.mm-serp-status[data-state="overflow"] { color: #a51d14; }
.mm-serp .mm-serp-preview-heading { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--mm-ink-200); margin-top: 2rem; padding-top: 1.5rem; }
.mm-serp .mm-serp-preview-heading h2 { font: 600 1.15rem/1.4 "Inter", sans-serif; margin: 0; }
.mm-serp-devices { display: flex; gap: .4rem; }
.mm-serp .mm-serp-devices button { padding: .6rem .85rem; }
.mm-serp .mm-serp-devices button[aria-pressed="true"] { background: var(--mm-brand-700); color: #fff; border-color: var(--mm-brand-700); }
.mm-serp-preview-shell { margin-top: 1rem; border: 1px solid var(--mm-ink-200); border-radius: .7rem; padding: 1rem; background: #fff; }
.mm-serp-preview { width: 600px; max-width: 100%; margin-inline: auto; text-align: left; font-family: Arial, sans-serif; }
.mm-serp-preview[data-device="mobile"] { width: 360px; }
.mm-serp-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mm-serp-identity > div { min-width: 0; }
.mm-serp-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; color: #5f6368; text-align: center; font: 24px/28px Arial, sans-serif; }
.mm-serp .mm-serp-site { font: 14px/20px Arial, sans-serif; color: #202124; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm-serp .mm-serp-url { font: 12px/18px Arial, sans-serif; color: #4d5156; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm-serp .mm-serp-title { font: 400 20px/26px Arial, sans-serif; color: #1a0dab; overflow-wrap: anywhere; white-space: pre-line; margin: 0 0 4px; }
.mm-serp .mm-serp-description { font: 400 14px/22px Arial, sans-serif; color: #4d5156; overflow-wrap: anywhere; white-space: pre-line; }
.mm-serp .mm-serp-model, .mm-serp .mm-serp-note { font-size: .8rem; line-height: 1.6; color: var(--mm-ink-600); margin: .75rem 0; }
.mm-serp .mm-serp-export { margin-top: 1.5rem; padding: 1rem; background: var(--mm-ink-50); border-radius: .6rem; }
.mm-serp-export summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.mm-serp-export label { margin-top: 1rem; }
.mm-serp .mm-serp-export textarea { font-family: ui-monospace, monospace; font-size: .8rem; }
.mm-serp-export p, .mm-serp-export [role="status"] { font-size: .8rem; line-height: 1.5; }
.mm-serp .mm-serp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1rem; }
@media (max-width: 600px) {
  .mm-serp .mm-serp-pair { grid-template-columns: 1fr; }
  .mm-serp { padding: 1rem; }
  .mm-serp-preview-shell { padding: .75rem; }
}
