:root {
  --bg: #f6f2f8;
  --ink: #241428;
  --muted: #645268;
  --line: #e3d7e8;
  --mag: #d21860;
  --stage: #17141c;
  --paper: #fff;
  --sans: "Segoe UI", "Avenir Next", sans-serif;
  --mono: Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
body.has-anchor { padding-bottom: 116px; }
a { color: #8d1248; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 2px; }
.studio-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 22px; background: #241428; color: #fff; }
.studio-bar a { color: #fff; text-decoration: none; }
.brand { font-weight: 800; letter-spacing: -0.03em; margin-right: auto; font-size: 20px; }
.brand span { color: var(--mag); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills a { border: 1px solid #5a3d62; border-radius: 999px; padding: 6px 10px; font-size: 14px; }
.pills a[aria-current="page"] { background: var(--mag); border-color: var(--mag); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 18px 70px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 18px; }
.lab { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.panel, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
textarea, input, select { width: 100%; font: 15px/1.45 var(--mono); border: 1px solid #ddcfe3; border-radius: 8px; padding: 8px; }
.stage { background: var(--stage); border-radius: 28px; padding: 18px; color: #fff; }
.phone { width: min(100%, 260px); margin: 0 auto; aspect-ratio: 9/16; background: linear-gradient(180deg, #3a2a4a, #141821 40%, #0e0f14); border-radius: 24px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 2px #000; }
.safe-top, .safe-bottom, .safe-side { position: absolute; background: rgba(210, 24, 96, .28); }
.safe-top { left: 0; right: 0; top: 0; height: 7.3%; }
.safe-bottom { left: 0; right: 0; bottom: 0; height: 16.7%; }
.safe-side { top: 7.3%; bottom: 16.7%; width: 7.4%; left: 0; }
.safe-side.right { right: 0; left: auto; width: 13%; }
video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.caption { position: absolute; left: 8%; right: 14%; bottom: 18%; text-align: center; font-weight: 700; text-shadow: 0 2px 8px #000; white-space: pre-wrap; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
button, .button { background: var(--mag); color: #fff; border: 0; border-radius: 999px; min-height: 44px; padding: 10px 16px; font: 700 14px var(--sans); cursor: pointer; text-decoration: none; display: inline-block; }
.issue-list { list-style: none; padding: 0; }
.issue-list li { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.badge { font: 700 11px var(--mono); padding: 2px 6px; border-radius: 999px; }
.pass .badge { background: #e7f8ee; color: #0d7a3f; }
.fail .badge { background: #fde7ef; color: #9d1248; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.card h2 { margin-top: 0; font-size: 22px; }
.explain { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-top: 24px; }
.geo-example { background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px dashed var(--mag); }
.geo-example dt { font-weight: 800; margin-top: 8px; }
footer { display: flex; gap: 14px; flex-wrap: wrap; padding: 22px; background: #241428; color: #fff; }
footer a { color: #fff; }
.ad-slot { margin: 28px 0; }
.ad-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-pending .ad-reserved { min-height: 90px; border: 1px dashed #e3b4c8; border-radius: 12px; display: grid; place-items: center; }
.ad-pending .ad-rectangle .ad-reserved, .ad-pending .ad-sidebar .ad-reserved { min-height: 250px; }
.ad-pending .ad-inArticle .ad-reserved, .ad-pending .ad-multiplex .ad-reserved { min-height: 200px; }
.ad-pending .ad-inFeed .ad-reserved { min-height: 110px; }
.ads-live .ad-pending-note { display: none; }
.ad-anchor { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; background: #fff; border-radius: 14px; padding: 8px 46px 10px 12px; box-shadow: 0 8px 30px rgba(36,20,40,.16); }
.ad-dismiss { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f6e8ef; cursor: pointer; }
.cookie-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 16px; background: #ffe8f1; }
.cookie-bar[hidden], .ad-anchor[hidden] { display: none; }
.contact-form { display: grid; gap: 10px; max-width: 560px; }
.clock { font: 13px var(--mono); color: #ddd; }
@media (max-width: 860px) { .lab, .explain { grid-template-columns: 1fr; } }
@media print { .ad-slot, .ad-anchor, .cookie-bar, .studio-bar, footer { display: none !important; } }

/* ad-paused: units stay in HTML comments until a real publisher ID is set. */
.rail:not(:has(.ad-slot)) { display: none; }
.explain:not(:has(.ad-slot)) { grid-template-columns: 1fr; }
